1.18 problem 2(h)

Internal problem ID [2510]

Book: Theory and solutions of Ordinary Differential equations, Donald Greenspan, 1960
Section: Exercises, page 14
Problem number: 2(h).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

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

Solution by Maple

Time used: 0.056 (sec). Leaf size: 21

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

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

Solution by Mathematica

Time used: 0.004 (sec). Leaf size: 25

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

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