6.25 problem 171

Internal problem ID [3427]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 6
Problem number: 171.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_rational, [_Riccati, _special]]

\[ \boxed {x y^{\prime }+x y^{2}=-a} \]

Solution by Maple

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

dsolve(x*diff(y(x),x)+a+x*y(x)^2 = 0,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\sqrt {a}\, \left (\operatorname {BesselJ}\left (0, 2 \sqrt {a}\, \sqrt {x}\right ) c_{1} +\operatorname {BesselY}\left (0, 2 \sqrt {a}\, \sqrt {x}\right )\right )}{\sqrt {x}\, \left (c_{1} \operatorname {BesselJ}\left (1, 2 \sqrt {a}\, \sqrt {x}\right )+\operatorname {BesselY}\left (1, 2 \sqrt {a}\, \sqrt {x}\right )\right )} \]

Solution by Mathematica

Time used: 0.244 (sec). Leaf size: 289

DSolve[x y'[x]+a+x y[x]^2==0,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {2 \sqrt {a} \sqrt {x} \operatorname {BesselY}\left (0,2 \sqrt {a} \sqrt {x}\right )+2 \operatorname {BesselY}\left (1,2 \sqrt {a} \sqrt {x}\right )-2 \sqrt {a} \sqrt {x} \operatorname {BesselY}\left (2,2 \sqrt {a} \sqrt {x}\right )-i \sqrt {a} c_1 \sqrt {x} \operatorname {BesselJ}\left (0,2 \sqrt {a} \sqrt {x}\right )-i c_1 \operatorname {BesselJ}\left (1,2 \sqrt {a} \sqrt {x}\right )+i \sqrt {a} c_1 \sqrt {x} \operatorname {BesselJ}\left (2,2 \sqrt {a} \sqrt {x}\right )}{4 x \operatorname {BesselY}\left (1,2 \sqrt {a} \sqrt {x}\right )-2 i c_1 x \operatorname {BesselJ}\left (1,2 \sqrt {a} \sqrt {x}\right )} y(x)\to \frac {\sqrt {a} \sqrt {x} \operatorname {BesselJ}\left (0,2 \sqrt {a} \sqrt {x}\right )+\operatorname {BesselJ}\left (1,2 \sqrt {a} \sqrt {x}\right )-\sqrt {a} \sqrt {x} \operatorname {BesselJ}\left (2,2 \sqrt {a} \sqrt {x}\right )}{2 x \operatorname {BesselJ}\left (1,2 \sqrt {a} \sqrt {x}\right )} \end{align*}