55.31.2 problem 150

Internal problem ID [13923]
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-5
Problem number : 150
Date solved : Friday, October 03, 2025 at 06:55:47 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} \left (-a^{2}+x^{2}\right ) y^{\prime \prime }+b y^{\prime }-6 y&=0 \end{align*}
Maple. Time used: 0.006 (sec). Leaf size: 76
ode:=(-a^2+x^2)*diff(diff(y(x),x),x)+b*diff(y(x),x)-6*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -\frac {c_1 \left (10 a^{2} b +24 a^{2} x -b^{3}-6 b^{2} x -18 b \,x^{2}-24 x^{3}\right )}{24}+c_2 \left (a -x \right ) \left (a +x \right ) \left (b -4 x \right ) \left (\frac {a +x}{a -x}\right )^{\frac {b}{2 a}} \]
Mathematica. Time used: 49.523 (sec). Leaf size: 1171
ode=(x^2-a^2)*D[y[x],{x,2}]+b*D[y[x],x]-6*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} \text {Solution too large to show}\end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(b*Derivative(y(x), x) + (-a**2 + x**2)*Derivative(y(x), (x, 2)) - 6*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False