Internal problem ID [4789]
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 (b).
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [[_homogeneous, `class D`], _rational, _Riccati]
\[ \boxed {y^{\prime }-\frac {2 y^{2}}{x}-\frac {y}{x}=-2 x} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 15
dsolve(diff(y(x),x)= 2/x*y(x)^2+1/x*y(x)-2*x,y(x), singsol=all)
\[ y \left (x \right ) = -\tanh \left (2 x +2 c_{1} \right ) x \]
✓ Solution by Mathematica
Time used: 0.716 (sec). Leaf size: 47
DSolve[y'[x]== 2/x*y[x]^2+1/x*y[x]-2*x,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to \frac {x-x e^{4 x+2 c_1}}{1+e^{4 x+2 c_1}} \\ y(x)\to -x \\ y(x)\to x \\ \end{align*}