2.35.29 Problem 29

2.35.29.1 Maple
2.35.29.2 Mathematica
2.35.29.3 Sympy

Internal problem ID [13953]
Book : Handbook of exact solutions for ordinary differential equations. By Polyanin and Zaitsev. Second edition
Section : Chapter 2, Second-Order Differential Equations. section 2.1.3-1. Equations with exponential functions
Problem number : 29
Date solved : Friday, December 19, 2025 at 08:52:44 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }+\left (2 a \,{\mathrm e}^{\lambda x}+b -\lambda \right ) y^{\prime }+\left ({\mathrm e}^{2 \lambda x} a^{2}+{\mathrm e}^{\lambda x} a b +c \,{\mathrm e}^{2 \mu x}+d \,{\mathrm e}^{\mu x}+k \right ) y&=0 \\ \end{align*}
2.35.29.1 Maple
ode:=diff(diff(y(x),x),x)+(2*a*exp(lambda*x)+b-lambda)*diff(y(x),x)+(a^2*exp(2*lambda*x)+a*exp(lambda*x)*b+c*exp(2*mu*x)+d*exp(mu*x)+k)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ \text {No solution found} \]

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying a symmetry of the form [xi=0, eta=F(x)] 
checking if the LODE is missing y 
-> Heun: Equivalence to the GHE or one of its 4 confluent cases under a power \ 
@ Moebius 
-> trying a solution of the form r0(x) * Y + r1(x) * Y where Y = exp(int(r(x),\ 
 dx)) * 2F1([a1, a2], [b1], f) 
-> Trying changes of variables to rationalize or make the ODE simpler 
<- unable to find a useful change of variables 
   trying a symmetry of the form [xi=0, eta=F(x)] 
   trying 2nd order exact linear 
   trying symmetries linear in x and y(x) 
   trying to convert to a linear ODE with constant coefficients 
   trying 2nd order, integrating factor of the form mu(x,y) 
   trying a symmetry of the form [xi=0, eta=F(x)] 
   checking if the LODE is missing y 
   -> Heun: Equivalence to the GHE or one of its 4 confluent cases under a pow\ 
er @ Moebius 
   -> trying a solution of the form r0(x) * Y + r1(x) * Y where Y = exp(int(r(\ 
x), dx)) * 2F1([a1, a2], [b1], f) 
   -> Trying changes of variables to rationalize or make the ODE simpler 
   <- unable to find a useful change of variables 
      trying a symmetry of the form [xi=0, eta=F(x)] 
   trying to convert to an ODE of Bessel type 
   -> trying reduction of order to Riccati 
      trying Riccati sub-methods: 
         trying Riccati_symmetries 
         -> trying a symmetry pattern of the form [F(x)*G(y), 0] 
         -> trying a symmetry pattern of the form [0, F(x)*G(y)] 
         -> trying a symmetry pattern of the form [F(x),G(x)*y+H(x)] 
--- Trying Lie symmetry methods, 2nd order --- 
   -> Computing symmetries using: way = 3 
[0, y] 
   <- successful computation of symmetries. 
   -> Computing symmetries using: way = 5
 
2.35.29.2 Mathematica. Time used: 0.761 (sec). Leaf size: 332
ode=D[y[x],{x,2}]+(2*a*Exp[\[Lambda]*x]+b-\[Lambda])*D[y[x],x]+( a^2*Exp[2*\[Lambda]*x] + a*b*Exp[\[Lambda]*x] + c*Exp[2*\[Mu]*x] + d*Exp[\[Mu]*x]+k )*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \left (e^x\right )^{\frac {1}{2}-\frac {\mu }{2}} \left (\left (e^x\right )^{\lambda }\right )^{-\frac {b-\lambda +1}{2 \lambda }} 2^{\frac {1}{2} \left (\frac {\sqrt {\mu ^2 \left (b^2-2 b \lambda +\lambda ^2-4 k\right )}}{\mu ^2}+1\right )} e^{-\frac {a \left (e^x\right )^{\lambda }}{\lambda }+\frac {i \sqrt {c} \left (e^x\right )^{\mu }}{\mu }} \left (\left (e^x\right )^{\mu }\right )^{\frac {1}{2} \left (\frac {\sqrt {\mu ^2 \left (b^2-2 b \lambda +\lambda ^2-4 k\right )}}{\mu ^2}+1\right )} \left (c_1 \operatorname {HypergeometricU}\left (-\frac {-\mu ^2+\frac {i d \mu }{\sqrt {c}}-\sqrt {\left (b^2-2 \lambda b+\lambda ^2-4 k\right ) \mu ^2}}{2 \mu ^2},\frac {\mu ^2+\sqrt {\left (b^2-2 \lambda b+\lambda ^2-4 k\right ) \mu ^2}}{\mu ^2},-\frac {2 i \sqrt {c} \left (e^x\right )^{\mu }}{\mu }\right )+c_2 L_{-\frac {\mu ^2-\frac {i d \mu }{\sqrt {c}}+\sqrt {\left (b^2-2 \lambda b+\lambda ^2-4 k\right ) \mu ^2}}{2 \mu ^2}}^{\frac {\sqrt {\left (b^2-2 \lambda b+\lambda ^2-4 k\right ) \mu ^2}}{\mu ^2}}\left (-\frac {2 i \sqrt {c} \left (e^x\right )^{\mu }}{\mu }\right )\right ) \end{align*}
2.35.29.3 Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
c = symbols("c") 
d = symbols("d") 
k = symbols("k") 
lambda_ = symbols("lambda_") 
mu = symbols("mu") 
y = Function("y") 
ode = Eq((2*a*exp(lambda_*x) + b - lambda_)*Derivative(y(x), x) + (a**2*exp(2*lambda_*x) + a*b*exp(lambda_*x) + c*exp(2*mu*x) + d*exp(mu*x) + k)*y(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False
 
Python version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] 
Sympy version 1.14.0
 
classify_ode(ode,func=y(x)) 
 
('factorable', '2nd_power_series_ordinary')