61.10.9 problem 22

Internal problem ID [12196]
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-2. Equations with cosine.
Problem number : 22
Date solved : Tuesday, January 28, 2025 at 01:03:04 AM
CAS classification : [_Riccati]

\begin{align*} y^{\prime }&=-\left (k +1\right ) x^{k} y^{2}+a \,x^{k +1} \cos \left (x \right )^{m} y-a \cos \left (x \right )^{m} \end{align*}

Solution by Maple

Time used: 0.027 (sec). Leaf size: 170

dsolve(diff(y(x),x)=-(k+1)*x^k*y(x)^2+a*x^(k+1)*cos(x)^m*y(x)-a*cos(x)^m,y(x), singsol=all)
 
\[ y = \frac {x^{-k -1} \left (x^{k +1} {\mathrm e}^{\int \frac {\cos \left (x \right )^{m} x^{k +1} a x -2 k -2}{x}d x}+\left (\int x^{k} {\mathrm e}^{\int \frac {\cos \left (x \right )^{m} x^{k +1} a x -2 k -2}{x}d x}d x \right ) k +\int x^{k} {\mathrm e}^{\int \frac {\cos \left (x \right )^{m} x^{k +1} a x -2 k -2}{x}d x}d x +c_{1} \right )}{\left (\int x^{k} {\mathrm e}^{\int \frac {a \,x^{k +2} \cos \left (x \right )^{m}-2 k -2}{x}d x}d x \right ) k +c_{1} +\int x^{k} {\mathrm e}^{\int \frac {a \,x^{k +2} \cos \left (x \right )^{m}-2 k -2}{x}d x}d x} \]

Solution by Mathematica

Time used: 3.097 (sec). Leaf size: 248

DSolve[D[y[x],x]==-(k+1)*x^k*y[x]^2+a*x^(k+1)*Cos[x]^m*y[x]-a*Cos[x]^m,y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to \frac {x^{-k-1} \left (c_1 x \exp \left (\int _1^x-\frac {-a \cos ^m(K[1]) K[1]^{k+2}+k+2}{K[1]}dK[1]\right )+c_1 (k+1) \int _1^x\exp \left (\int _1^{K[2]}-\frac {-a \cos ^m(K[1]) K[1]^{k+2}+k+2}{K[1]}dK[1]\right )dK[2]+k+1\right )}{(k+1) \left (1+c_1 \int _1^x\exp \left (\int _1^{K[2]}-\frac {-a \cos ^m(K[1]) K[1]^{k+2}+k+2}{K[1]}dK[1]\right )dK[2]\right )} \\ y(x)\to \frac {x^{-k} \left (\frac {\exp \left (\int _1^x-\frac {-a \cos ^m(K[1]) K[1]^{k+2}+k+2}{K[1]}dK[1]\right )}{\int _1^x\exp \left (\int _1^{K[2]}-\frac {-a \cos ^m(K[1]) K[1]^{k+2}+k+2}{K[1]}dK[1]\right )dK[2]}+\frac {k+1}{x}\right )}{k+1} \\ \end{align*}