Internal
problem
ID
[17269]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
2.
First
order
differential
equations.
Section
2.2
(Linear
equations:
Method
of
integrating
factors).
Problems
at
page
54
Problem
number
:
4
Date
solved
:
Monday, March 31, 2025 at 03:48:08 PM
CAS
classification
:
[_linear]
ode:=diff(y(t),t)+y(t)/t = 5+cos(2*t); dsolve(ode,y(t), singsol=all);
ode=D[y[t],t]+(1/t)*y[t]==5+Cos[2*t]; ic={}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-cos(2*t) + Derivative(y(t), t) - 5 + y(t)/t,0) ics = {} dsolve(ode,func=y(t),ics=ics)