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]

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

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