3.20 problem 20

Internal problem ID [9685]

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.3. Equations Containing Exponential Functions
Problem number: 20.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_Riccati]

Solve \begin {gather*} \boxed {\left ({\mathrm e}^{\lambda x} a +b \,{\mathrm e}^{\mu x}+c \right ) y^{\prime }-y^{2}-k \,{\mathrm e}^{\nu x} y+m^{2}-k m \,{\mathrm e}^{\nu x}=0} \end {gather*}

Solution by Maple

Time used: 0.016 (sec). Leaf size: 129

dsolve((a*exp(lambda*x)+b*exp(mu*x)+c)*diff(y(x),x)=y(x)^2+k*exp(nu*x)*y(x)-m^2+k*m*exp(nu*x),y(x), singsol=all)
 

\[ y \relax (x ) = -m -\frac {{\mathrm e}^{\int \frac {k \,{\mathrm e}^{\nu x}}{{\mathrm e}^{\lambda x} a +b \,{\mathrm e}^{\mu x}+c}d x -2 m \left (\int \frac {1}{{\mathrm e}^{\lambda x} a +b \,{\mathrm e}^{\mu x}+c}d x \right )}}{\int \frac {{\mathrm e}^{\int \frac {k \,{\mathrm e}^{\nu x}}{{\mathrm e}^{\lambda x} a +b \,{\mathrm e}^{\mu x}+c}d x -2 m \left (\int \frac {1}{{\mathrm e}^{\lambda x} a +b \,{\mathrm e}^{\mu x}+c}d x \right )}}{{\mathrm e}^{\lambda x} a +b \,{\mathrm e}^{\mu x}+c}d x -c_{1}} \]

Solution by Mathematica

Time used: 9.306 (sec). Leaf size: 358

DSolve[(a*Exp[\[Lambda]*x]+b*Exp[\[Mu]*x]+c)*y'[x]==y[x]^2+k*Exp[\[Nu]*x]*y[x]-m^2+k*m*Exp[\[Nu]*x],y[x],x,IncludeSingularSolutions -> True]
 

\[ \text {Solve}\left [\int _1^x-\frac {\exp \left (-\int _1^{K[6]}-\frac {e^{\nu K[5]} k-2 m}{e^{\lambda K[5]} a+b e^{\mu K[5]}+c}dK[5]\right ) \left (e^{\nu K[6]} k-m+y(x)\right )}{\left (e^{\lambda K[6]} a+b e^{\mu K[6]}+c\right ) k \nu (m+y(x))}dK[6]+\int _1^{y(x)}\left (\frac {\exp \left (-\int _1^x-\frac {e^{\nu K[5]} k-2 m}{e^{\lambda K[5]} a+b e^{\mu K[5]}+c}dK[5]\right )}{k \nu (m+K[7])^2}-\int _1^x\left (\frac {\exp \left (-\int _1^{K[6]}-\frac {e^{\nu K[5]} k-2 m}{e^{\lambda K[5]} a+b e^{\mu K[5]}+c}dK[5]\right ) \left (e^{\nu K[6]} k-m+K[7]\right )}{\left (e^{\lambda K[6]} a+b e^{\mu K[6]}+c\right ) k \nu (m+K[7])^2}-\frac {\exp \left (-\int _1^{K[6]}-\frac {e^{\nu K[5]} k-2 m}{e^{\lambda K[5]} a+b e^{\mu K[5]}+c}dK[5]\right )}{\left (e^{\lambda K[6]} a+b e^{\mu K[6]}+c\right ) k \nu (m+K[7])}\right )dK[6]\right )dK[7]=c_1,y(x)\right ] \]