1.25 problem 25

Internal problem ID [472]

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

CAS Maple gives this as type [_linear]

\[ \boxed {2 y+t y^{\prime }=\frac {\sin \left (t \right )}{t}} \] With initial conditions \begin {align*} \left [y \left (-\frac {\pi }{2}\right ) = a\right ] \end {align*}

Solution by Maple

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

dsolve([2*y(t)+t*diff(y(t),t) = sin(t)/t,y(-1/2*Pi) = a],y(t), singsol=all)
 

\[ y \left (t \right ) = \frac {-\cos \left (t \right )+\frac {a \,\pi ^{2}}{4}}{t^{2}} \]

Solution by Mathematica

Time used: 0.042 (sec). Leaf size: 22

DSolve[{2*y[t]+t*y'[t] == Sin[t]/t,y[-Pi/2]==a},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to \frac {\pi ^2 a-4 \cos (t)}{4 t^2} \]