61.27.16 problem 26

Internal problem ID [12447]
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.2-2
Problem number : 26
Date solved : Monday, March 31, 2025 at 05:34:44 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }+\left (a x +b \right ) y^{\prime }+c \left (a x +b -c \right ) y&=0 \end{align*}

Maple. Time used: 0.006 (sec). Leaf size: 31
ode:=diff(diff(y(x),x),x)+(a*x+b)*diff(y(x),x)+c*(a*x+b-c)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{-c x} \left (c_2 \,\operatorname {erf}\left (\frac {\sqrt {2}\, \left (a x +b -2 c \right )}{2 \sqrt {a}}\right )+c_1 \right ) \]
Mathematica. Time used: 0.065 (sec). Leaf size: 70
ode=D[y[x],{x,2}]+(a*x+b)*D[y[x],x]+c*(a*x+b-c)*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^{-\frac {1}{2} x (a x+2 b-2 c)} \left (c_1 \operatorname {HermiteH}\left (-1,\frac {b-2 c+a x}{\sqrt {2} \sqrt {a}}\right )+c_2 e^{\frac {(a x+b-2 c)^2}{2 a}}\right ) \]
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
c = symbols("c") 
y = Function("y") 
ode = Eq(c*(a*x + b - c)*y(x) + (a*x + b)*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False