1.2 problem 1. direct method

Internal problem ID [5791]

Book: A course in Ordinary Differential Equations. by Stephen A. Wirkus, Randall J. Swift. CRC Press NY. 2015. 2nd Edition
Section: Chapter 8. Series Methods. section 8.2. The Power Series Method. Problems Page 603
Problem number: 1. direct method.
ODE order: 1.
ODE degree: 1.

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

\[ \boxed {y^{\prime }-y^{2}+x=0} \] With initial conditions \begin {align*} [y \left (0\right ) = 1] \end {align*}

Solution by Maple

Time used: 0.171 (sec). Leaf size: 90

dsolve([diff(y(x),x)=y(x)^2-x,y(0) = 1],y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {-2 \operatorname {AiryAi}\left (1, x\right ) 3^{\frac {5}{6}} \pi -3 \operatorname {AiryAi}\left (1, x\right ) \Gamma \left (\frac {2}{3}\right )^{2} 3^{\frac {2}{3}}-3 \operatorname {AiryBi}\left (1, x\right ) 3^{\frac {1}{6}} \Gamma \left (\frac {2}{3}\right )^{2}+2 \operatorname {AiryBi}\left (1, x\right ) 3^{\frac {1}{3}} \pi }{2 \operatorname {AiryAi}\left (x \right ) 3^{\frac {5}{6}} \pi +3 \operatorname {AiryAi}\left (x \right ) \Gamma \left (\frac {2}{3}\right )^{2} 3^{\frac {2}{3}}+3 \operatorname {AiryBi}\left (x \right ) 3^{\frac {1}{6}} \Gamma \left (\frac {2}{3}\right )^{2}-2 \operatorname {AiryBi}\left (x \right ) 3^{\frac {1}{3}} \pi } \]

Solution by Mathematica

Time used: 9.655 (sec). Leaf size: 109

DSolve[{y'[x]==y[x]^2-x,{y[0]==1}},y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\frac {i \sqrt {x} \left (\operatorname {Gamma}\left (\frac {1}{3}\right ) \operatorname {BesselJ}\left (-\frac {2}{3},\frac {2}{3} i x^{3/2}\right )+\sqrt [3]{-3} \operatorname {Gamma}\left (\frac {2}{3}\right ) \operatorname {BesselJ}\left (\frac {2}{3},\frac {2}{3} i x^{3/2}\right )\right )}{\operatorname {Gamma}\left (\frac {1}{3}\right ) \operatorname {BesselJ}\left (\frac {1}{3},\frac {2}{3} i x^{3/2}\right )-\sqrt [3]{-3} \operatorname {Gamma}\left (\frac {2}{3}\right ) \operatorname {BesselJ}\left (-\frac {1}{3},\frac {2}{3} i x^{3/2}\right )} \\ \end{align*}