1.6 problem 6

Internal problem ID [453]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Section 2.1. Page 40
Problem number: 6.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {2 y+t y^{\prime }-\sin \relax (t )=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\begin{align*} y(t)\to \frac {\sin (t)-t \cos (t)+c_1}{t^2} \\ \end{align*}