61.27.11 problem 21

Internal problem ID [12442]
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 : 21
Date solved : Thursday, March 13, 2025 at 11:42:30 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }+a x y^{\prime }+b x y&=0 \end{align*}

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