Internal
problem
ID
[17271]
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
:
6
Date
solved
:
Monday, March 31, 2025 at 03:48:13 PM
CAS
classification
:
[_linear]
ode:=t*diff(y(t),t)+2*y(t) = sin(t); dsolve(ode,y(t), singsol=all);
ode=t*D[y[t],t]+2*y[t]==Sin[t]; ic={}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(t*Derivative(y(t), t) + 2*y(t) - sin(t),0) ics = {} dsolve(ode,func=y(t),ics=ics)