11.5 problem 31

Internal problem ID [9786]

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: 31.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_Riccati]

Solve \begin {gather*} \boxed {y^{\prime }-y^{2}-a \tan \left (\beta x \right ) y-a b \tan \left (\beta x \right )+b^{2}=0} \end {gather*}

Solution by Maple

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

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

\[ y \relax (x ) = -b -\frac {\left (1+\tan ^{2}\left (\beta x \right )\right )^{\frac {a}{2 \beta }} {\mathrm e}^{-2 b x}}{\int \left (1+\tan ^{2}\left (\beta x \right )\right )^{\frac {a}{2 \beta }} {\mathrm e}^{-2 b x}d x -c_{1}} \]

Solution by Mathematica

Time used: 17.2 (sec). Leaf size: 320

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

\begin{align*} y(x)\to -\frac {b (2 b-i a) e^{2 i \beta x} \, _2F_1\left (1,1-\frac {a-2 i b}{2 \beta };\frac {a+2 i b}{2 \beta }+2;-e^{2 i x \beta }\right )+(a+2 i b+2 \beta ) \left ((a+2 i b) \left (1+a b \beta c_1 e^{2 b x} \cos ^{\frac {a}{\beta }}(\beta x)\right )-i b \, _2F_1\left (1,-\frac {a-2 i b}{2 \beta };\frac {a+2 i b}{2 \beta }+1;-e^{2 i x \beta }\right )\right )}{(2 b-i a) e^{2 i \beta x} \, _2F_1\left (1,1-\frac {a-2 i b}{2 \beta };\frac {a+2 i b}{2 \beta }+2;-e^{2 i x \beta }\right )+(a+2 i b+2 \beta ) \left (a \beta c_1 (a+2 i b) e^{2 b x} \cos ^{\frac {a}{\beta }}(\beta x)-i \, _2F_1\left (1,-\frac {a-2 i b}{2 \beta };\frac {a+2 i b}{2 \beta }+1;-e^{2 i x \beta }\right )\right )} \\ y(x)\to -b \\ \end{align*}