11.3 problem 29

Internal problem ID [9784]

Book: Handbook of exact solutions for ordinary differential equations. By Polyanin and Zaitsev. Second edition
Section: Chapter 1, section 1.2. Riccati Equation. subsection 1.2.6-3. Equations with tangent.
Problem number: 29.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_Riccati]

Solve \begin {gather*} \boxed {y^{\prime }-a y^{2}-b \tan \relax (x ) y-c=0} \end {gather*}

Solution by Maple

Time used: 0.002 (sec). Leaf size: 364

dsolve(diff(y(x),x)=a*y(x)^2+b*tan(x)*y(x)+c,y(x), singsol=all)
 

\[ y \relax (x ) = -\frac {\left (\left (b c_{1}-c_{1}\right ) \LegendreQ \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )+\left (b -1\right ) \LegendreP \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )\right ) \left (\sin ^{3}\relax (x )\right )+\left (\left (\left (-\sqrt {4 a c +b^{2}}\, c_{1}-c_{1}\right ) \LegendreQ \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )+\left (-\sqrt {4 a c +b^{2}}-1\right ) \LegendreP \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )\right ) \left (\cos ^{2}\relax (x )\right )+\left (-b c_{1}+c_{1}\right ) \LegendreQ \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )+\left (-b +1\right ) \LegendreP \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )\right ) \sin \relax (x )+\left (\left (\sqrt {4 a c +b^{2}}\, c_{1}-b c_{1}+2 c_{1}\right ) \LegendreQ \left (\frac {\sqrt {4 a c +b^{2}}}{2}+\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )+\left (\sqrt {4 a c +b^{2}}-b +2\right ) \LegendreP \left (\frac {\sqrt {4 a c +b^{2}}}{2}+\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )\right ) \left (\cos ^{2}\relax (x )\right )}{2 \cos \relax (x ) \left (\sin ^{2}\relax (x )-1\right ) a \left (\LegendreQ \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right ) c_{1}+\LegendreP \left (\frac {\sqrt {4 a c +b^{2}}}{2}-\frac {1}{2}, \frac {b}{2}-\frac {1}{2}, \sin \relax (x )\right )\right )} \]

Solution by Mathematica

Time used: 1.191 (sec). Leaf size: 599

DSolve[y'[x]==a*y[x]^2+b*Tan[x]*y[x]+c,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {\sin (x) \left (-(b-3) (b-1) (b+1) \, _2F_1\left (\frac {1}{4} \left (-b-\sqrt {b^2+4 a c}+2\right ),\frac {1}{4} \left (-b+\sqrt {b^2+4 a c}+2\right );\frac {3-b}{2};\cos ^2(x)\right )+\cos (x) \left ((b+1) \cos (x) (a c+b-1) \, _2F_1\left (\frac {1}{4} \left (-b-\sqrt {b^2+4 a c}+6\right ),\frac {1}{4} \left (-b+\sqrt {b^2+4 a c}+6\right );\frac {5-b}{2};\cos ^2(x)\right )+a i^{b+1} (b-3) c c_1 \cos ^b(x) \, _2F_1\left (\frac {1}{4} \left (b-\sqrt {b^2+4 a c}+4\right ),\frac {1}{4} \left (b+\sqrt {b^2+4 a c}+4\right );\frac {b+3}{2};\cos ^2(x)\right )\right )\right )}{a (b-3) (b+1) \left (\cos (x) \, _2F_1\left (\frac {1}{4} \left (-b-\sqrt {b^2+4 a c}+2\right ),\frac {1}{4} \left (-b+\sqrt {b^2+4 a c}+2\right );\frac {3-b}{2};\cos ^2(x)\right )-i i^b c_1 \cos ^b(x) \, _2F_1\left (\frac {1}{4} \left (b-\sqrt {b^2+4 a c}\right ),\frac {1}{4} \left (b+\sqrt {b^2+4 a c}\right );\frac {b+1}{2};\cos ^2(x)\right )\right )} \\ y(x)\to -\frac {c \sin (2 x) \, _2\tilde {F}_1\left (\frac {1}{4} \left (b-\sqrt {b^2+4 a c}+4\right ),\frac {1}{4} \left (b+\sqrt {b^2+4 a c}+4\right );\frac {b+3}{2};\cos ^2(x)\right )}{4 \, _2\tilde {F}_1\left (\frac {1}{4} \left (b-\sqrt {b^2+4 a c}\right ),\frac {1}{4} \left (b+\sqrt {b^2+4 a c}\right );\frac {b+1}{2};\cos ^2(x)\right )} \\ y(x)\to -\frac {c \sin (2 x) \, _2\tilde {F}_1\left (\frac {1}{4} \left (b-\sqrt {b^2+4 a c}+4\right ),\frac {1}{4} \left (b+\sqrt {b^2+4 a c}+4\right );\frac {b+3}{2};\cos ^2(x)\right )}{4 \, _2\tilde {F}_1\left (\frac {1}{4} \left (b-\sqrt {b^2+4 a c}\right ),\frac {1}{4} \left (b+\sqrt {b^2+4 a c}\right );\frac {b+1}{2};\cos ^2(x)\right )} \\ \end{align*}