55.28.14 problem 24

Internal problem ID [13797]
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 : 24
Date solved : Thursday, October 02, 2025 at 08:06:51 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }+\left (a x +b \right ) y^{\prime }-a y&=0 \end{align*}
Maple. Time used: 0.006 (sec). Leaf size: 65
ode:=diff(diff(y(x),x),x)+(a*x+b)*diff(y(x),x)-a*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{\frac {b^{2}}{2 a}} \pi c_2 \left (a x +b \right ) \operatorname {erf}\left (\frac {\sqrt {2}\, \left (a x +b \right )}{2 \sqrt {a}}\right )+{\mathrm e}^{-\frac {x \left (a x +2 b \right )}{2}} \sqrt {a}\, \sqrt {\pi }\, \sqrt {2}\, c_2 +c_1 \left (a x +b \right ) \]
Mathematica. Time used: 0.285 (sec). Leaf size: 82
ode=D[y[x],{x,2}]+(a*x+b)*D[y[x],x]-a*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {(a x+b) \left (-\frac {\sqrt {\frac {\pi }{2}} c_2 \text {erf}\left (\frac {a x+b}{\sqrt {2} \sqrt {a}}\right )}{a^{3/2}}-\frac {c_2 e^{-\frac {(a x+b)^2}{2 a}}}{a (a x+b)}+c_1\right )}{b} \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(-a*y(x) + (a*x + b)*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False