4.14 problem 25 part (a)

Internal problem ID [4788]

Book: Mathematical Methods in the Physical Sciences. third edition. Mary L. Boas. John Wiley. 2006
Section: Chapter 8, Ordinary differential equations. Section 4. OTHER METHODS FOR FIRST-ORDER EQUATIONS. page 406
Problem number: 25 part (a).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, `class G`], _rational, _Riccati]

\[ \boxed {y^{\prime }-x y^{2}+\frac {2 y}{x}=-\frac {1}{x^{3}}} \]

Solution by Maple

Time used: 0.0 (sec). Leaf size: 15

dsolve(diff(y(x),x)= x*y(x)^2-2/x*y(x)-1/x^3,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\tanh \left (-\ln \left (x \right )+c_{1} \right )}{x^{2}} \]

Solution by Mathematica

Time used: 1.188 (sec). Leaf size: 63

DSolve[y'[x]== x*y[x]^2-2/x*y[x]-1/x^3,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {i \tan (i \log (x)+c_1)}{x^2} \\ y(x)\to \frac {-x^2+e^{2 i \text {Interval}[\{0,\pi \}]}}{x^4+x^2 e^{2 i \text {Interval}[\{0,\pi \}]}} \\ \end{align*}