2.35.14 Problem 14

2.35.14.1 Maple
2.35.14.2 Mathematica
2.35.14.3 Sympy

Internal problem ID [13938]
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 : 14
Date solved : Friday, December 19, 2025 at 08:51:12 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }+\left (a +b \right ) {\mathrm e}^{\lambda x} y^{\prime }+a \,{\mathrm e}^{\lambda x} \left (b \,{\mathrm e}^{\lambda x}+\lambda \right ) y&=0 \\ \end{align*}
2.35.14.1 Maple. Time used: 0.018 (sec). Leaf size: 36
ode:=diff(diff(y(x),x),x)+(a+b)*exp(lambda*x)*diff(y(x),x)+a*exp(lambda*x)*(b*exp(lambda*x)+lambda)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{-\frac {a \,{\mathrm e}^{\lambda x}}{\lambda }} \left (c_2 \,\operatorname {Ei}_{1}\left (-\frac {{\mathrm e}^{\lambda x} \left (a -b \right )}{\lambda }\right )+c_1 \right ) \]

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 
   trying a quadrature 
   checking if the LODE has constant coefficients 
   checking if the LODE is of Euler type 
   trying a symmetry of the form [xi=0, eta=F(x)] 
   checking if the LODE is missing y 
   -> Trying a Liouvillian solution using Kovacics algorithm 
      A Liouvillian solution exists 
      Reducible group (found an exponential solution) 
      Group is reducible, not completely reducible 
   <- Kovacics algorithm successful 
   Change of variables used: 
      [x = ln(t)/lambda] 
   Linear ODE actually solved: 
      (a*b*t+a*lambda)*u(t)+(a*lambda*t+b*lambda*t+lambda^2)*diff(u(t),t)+lambd\ 
a^2*t*diff(diff(u(t),t),t) = 0 
<- change of variables successful
 
2.35.14.2 Mathematica. Time used: 0.699 (sec). Leaf size: 40
ode=D[y[x],{x,2}]+(a+b)*Exp[\[Lambda]*x]*D[y[x],x]+a*Exp[\[Lambda]*x]*(b*Exp[\[Lambda]*x]+\[Lambda])*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to e^{-\frac {a e^{\lambda x}}{\lambda }} \left (c_2 \operatorname {ExpIntegralEi}\left (\frac {(a-b) e^{x \lambda }}{\lambda }\right )+c_1\right ) \end{align*}
2.35.14.3 Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
lambda_ = symbols("lambda_") 
y = Function("y") 
ode = Eq(a*(b*exp(lambda_*x) + lambda_)*y(x)*exp(lambda_*x) + (a + b)*exp(lambda_*x)*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False