6.6 problem 1.2-1 (f)

Internal problem ID [2472]

Book: Ordinary Differential Equations, Robert H. Martin, 1983
Section: Problem 1.2-1, page 12
Problem number: 1.2-1 (f).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime } t +2 y=\sin \left (t \right )} \]

Solution by Maple

Time used: 0.0 (sec). Leaf size: 17

dsolve(t*diff(y(t),t)+2*y(t)=sin(t),y(t), singsol=all)
 

\[ y \left (t \right ) = \frac {-\cos \left (t \right ) t +\sin \left (t \right )+c_{1}}{t^{2}} \]

Solution by Mathematica

Time used: 0.034 (sec). Leaf size: 19

DSolve[t*y'[t]+2*y[t]==Sin[t],y[t],t,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\[ y(t)\to \frac {\sin (t)-t \cos (t)+c_1}{t^2} \]