2.16 problem 20

Internal problem ID [26]

Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Section 1.3. Slope fields and solution curves. Page 26
Problem number: 20.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_Riccati]

Solve \begin {gather*} \boxed {y^{\prime }-x^{2}+y^{2}=0} \end {gather*}

Solution by Maple

Time used: 0.003 (sec). Leaf size: 44

dsolve(diff(y(x),x) = x^2-y(x)^2,y(x), singsol=all)
 

\[ y \relax (x ) = \frac {x \left (\BesselI \left (-\frac {3}{4}, \frac {x^{2}}{2}\right ) c_{1}-\BesselK \left (\frac {3}{4}, \frac {x^{2}}{2}\right )\right )}{c_{1} \BesselI \left (\frac {1}{4}, \frac {x^{2}}{2}\right )+\BesselK \left (\frac {1}{4}, \frac {x^{2}}{2}\right )} \]

Solution by Mathematica

Time used: 0.109 (sec). Leaf size: 103

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

\begin{align*} y(x)\to \frac {i x \left (\operatorname {BesselJ}\left (-\frac {3}{4},\frac {i x^2}{2}\right )-c_1 \operatorname {BesselJ}\left (\frac {3}{4},\frac {i x^2}{2}\right )\right )}{\operatorname {BesselJ}\left (\frac {1}{4},\frac {i x^2}{2}\right )+c_1 \operatorname {BesselJ}\left (-\frac {1}{4},\frac {i x^2}{2}\right )} \\ y(x)\to \frac {x \operatorname {BesselI}\left (\frac {3}{4},\frac {x^2}{2}\right )}{\operatorname {BesselI}\left (-\frac {1}{4},\frac {x^2}{2}\right )} \\ \end{align*}