2.29 problem 29

Internal problem ID [915]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 2, First order equations. Linear first order. Section 2.1 Page 41
Problem number: 29.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

dsolve([diff(y(x),x)+y(x)/x=2/x^2+1,y(-1) = 0],y(x), singsol=all)
 

\[ y \relax (x ) = \frac {-4 i \pi +x^{2}+4 \ln \relax (x )-1}{2 x} \]

Solution by Mathematica

Time used: 0.033 (sec). Leaf size: 26

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

\begin{align*} y(x)\to \frac {x^2+4 \log (x)-4 i \pi -1}{2 x} \\ \end{align*}