6.8 problem 8

Internal problem ID [575]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Miscellaneous problems, end of chapter 2. Page 133
Problem number: 8.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {2 y+y^{\prime } x -\frac {\sin \relax (x )}{x}=0} \end {gather*} With initial conditions \begin {align*} [y \relax (2) = 1] \end {align*}

Solution by Maple

Time used: 0.019 (sec). Leaf size: 16

dsolve([2*y(x)+x*diff(y(x),x) = sin(x)/x,y(2) = 1],y(x), singsol=all)
 

\[ y \relax (x ) = \frac {-\cos \relax (x )+4+\cos \relax (2)}{x^{2}} \]

Solution by Mathematica

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

DSolve[{2*y[x]+x*y'[x] == Sin[x]/x,y[2]==1},y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {-\cos (x)+4+\cos (2)}{x^2} \\ \end{align*}