Internal problem ID [10526]
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: 28.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_Riccati]
\[ \boxed {y^{\prime }-y^{2}=3 \lambda a +\lambda ^{2}+a \left (\lambda -a \right ) \tan \left (\lambda x \right )^{2}} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 200
dsolve(diff(y(x),x)=y(x)^2+lambda^2+3*a*lambda+a*(lambda-a)*tan(lambda*x)^2,y(x), singsol=all)
\[ y \left (x \right ) = -\frac {\left (-2 \operatorname {LegendreP}\left (\frac {2 a +3 \lambda }{2 \lambda }, \frac {2 a -\lambda }{2 \lambda }, \sin \left (x \lambda \right )\right ) \lambda -2 \operatorname {LegendreQ}\left (\frac {2 a +3 \lambda }{2 \lambda }, \frac {2 a -\lambda }{2 \lambda }, \sin \left (x \lambda \right )\right ) c_{1} \lambda +\sin \left (x \lambda \right ) \left (\operatorname {LegendreQ}\left (\frac {2 a +\lambda }{2 \lambda }, \frac {2 a -\lambda }{2 \lambda }, \sin \left (x \lambda \right )\right ) c_{1} +\operatorname {LegendreP}\left (\frac {2 a +\lambda }{2 \lambda }, \frac {2 a -\lambda }{2 \lambda }, \sin \left (x \lambda \right )\right )\right ) \left (a +\lambda \right )\right ) \sec \left (x \lambda \right )}{\operatorname {LegendreQ}\left (\frac {2 a +\lambda }{2 \lambda }, \frac {2 a -\lambda }{2 \lambda }, \sin \left (x \lambda \right )\right ) c_{1} +\operatorname {LegendreP}\left (\frac {2 a +\lambda }{2 \lambda }, \frac {2 a -\lambda }{2 \lambda }, \sin \left (x \lambda \right )\right )} \]
✓ Solution by Mathematica
Time used: 76.241 (sec). Leaf size: 319
DSolve[y'[x]==y[x]^2+\[Lambda]^2+3*a*\[Lambda]+a*(\[Lambda]-a)*Tan[\[Lambda]*x]^2,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to -\frac {\sin ^{-\frac {a+\lambda }{\lambda }}(2 \lambda x) e^{-\frac {a \text {arctanh}(\cos (2 \lambda x))}{\lambda }} \left (c_1 \sin ^{\frac {a}{\lambda }}(2 \lambda x) ((a+\lambda ) \cos (2 \lambda x)-a+\lambda ) e^{\frac {a \text {arctanh}(\cos (2 \lambda x))}{\lambda }} \int _1^xe^{-\frac {(a-\lambda ) \text {arctanh}(\cos (2 \lambda K[1]))}{\lambda }} \sin ^{-\frac {a+\lambda }{\lambda }}(2 \lambda K[1])dK[1]+\sin ^{\frac {a}{\lambda }}(2 \lambda x) ((a+\lambda ) \cos (2 \lambda x)-a+\lambda ) e^{\frac {a \text {arctanh}(\cos (2 \lambda x))}{\lambda }}+c_1 e^{\text {arctanh}(\cos (2 \lambda x))}\right )}{1+c_1 \int _1^xe^{-\frac {(a-\lambda ) \text {arctanh}(\cos (2 \lambda K[1]))}{\lambda }} \sin ^{-\frac {a+\lambda }{\lambda }}(2 \lambda K[1])dK[1]} \\ y(x)\to \csc (2 \lambda x) \left (-\frac {\sin ^{-\frac {a}{\lambda }}(2 \lambda x) e^{-\frac {(a-\lambda ) \text {arctanh}(\cos (2 \lambda x))}{\lambda }}}{\int _1^xe^{-\frac {(a-\lambda ) \text {arctanh}(\cos (2 \lambda K[1]))}{\lambda }} \sin ^{-\frac {a+\lambda }{\lambda }}(2 \lambda K[1])dK[1]}-(a+\lambda ) \cos (2 \lambda x)+a-\lambda \right ) \\ \end{align*}