23.3.312 problem 314

Internal problem ID [6026]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Part II. Chapter 3. THE DIFFERENTIAL EQUATION IS LINEAR AND OF SECOND ORDER, page 311
Problem number : 314
Date solved : Friday, October 03, 2025 at 01:45:50 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} \left (\operatorname {c2} \,x^{2}+\operatorname {b2} x +\operatorname {a2} \right ) y+\operatorname {a1} x y^{\prime }+x^{2} y^{\prime \prime }&=0 \end{align*}
Maple. Time used: 0.070 (sec). Leaf size: 75
ode:=(c2*x^2+b2*x+a2)*y(x)+a1*x*diff(y(x),x)+x^2*diff(diff(y(x),x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = x^{-\frac {\operatorname {a1}}{2}} \left (\operatorname {WhittakerM}\left (-\frac {i \operatorname {b2}}{2 \sqrt {\operatorname {c2}}}, \frac {\sqrt {\operatorname {a1}^{2}-2 \operatorname {a1} -4 \operatorname {a2} +1}}{2}, 2 i \sqrt {\operatorname {c2}}\, x \right ) c_1 +\operatorname {WhittakerW}\left (-\frac {i \operatorname {b2}}{2 \sqrt {\operatorname {c2}}}, \frac {\sqrt {\operatorname {a1}^{2}-2 \operatorname {a1} -4 \operatorname {a2} +1}}{2}, 2 i \sqrt {\operatorname {c2}}\, x \right ) c_2 \right ) \]
Mathematica. Time used: 0.069 (sec). Leaf size: 169
ode=(a2 + b2*x + c2*x^2)*y[x] + a1*x*D[y[x],x] + x^2*D[y[x],{x,2}] == 0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to e^{-i \sqrt {\text {c2}} x} x^{\frac {1}{2} \left (\sqrt {\text {a1}^2-2 \text {a1}-4 \text {a2}+1}-\text {a1}+1\right )} \left (c_1 \operatorname {HypergeometricU}\left (\frac {1}{2} \left (\frac {i \text {b2}}{\sqrt {\text {c2}}}+\sqrt {\text {a1}^2-2 \text {a1}-4 \text {a2}+1}+1\right ),\sqrt {\text {a1}^2-2 \text {a1}-4 \text {a2}+1}+1,2 i \sqrt {\text {c2}} x\right )+c_2 L_{\frac {1}{2} \left (-\frac {i \text {b2}}{\sqrt {\text {c2}}}-\sqrt {\text {a1}^2-2 \text {a1}-4 \text {a2}+1}-1\right )}^{\sqrt {\text {a1}^2-2 \text {a1}-4 \text {a2}+1}}\left (2 i \sqrt {\text {c2}} x\right )\right ) \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a1 = symbols("a1") 
a2 = symbols("a2") 
b2 = symbols("b2") 
c2 = symbols("c2") 
y = Function("y") 
ode = Eq(a1*x*Derivative(y(x), x) + x**2*Derivative(y(x), (x, 2)) + (a2 + b2*x + c2*x**2)*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
ValueError : Expected Expr or iterable but got None