Internal problem ID [3019]
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]
\[ \boxed {y^{\prime }=x +\frac {1}{x}} \] With initial conditions \begin {align*} [y \left (-2\right ) = 5] \end {align*}
✓ Solution by Maple
Time used: 0.032 (sec). Leaf size: 21
dsolve([diff(y(x),x)=x+1/x,y(-2) = 5],y(x), singsol=all)
\[ y \left (x \right ) = \frac {x^{2}}{2}+\ln \left (x \right )+3-\ln \left (2\right )-i \pi \]
✓ Solution by Mathematica
Time used: 0.003 (sec). Leaf size: 25
DSolve[{y'[x]==x+1/x,y[-2]==5},y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to \frac {x^2}{2}+\log \left (\frac {x}{2}\right )-i \pi +3 \]