23.3.549 problem 555

Internal problem ID [6263]
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 : 555
Date solved : Friday, October 03, 2025 at 01:57:58 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} -\left (k^{2}-p \left (1+p \right ) \left (-x^{2}+1\right )\right ) y-2 x \left (-x^{2}+1\right ) y^{\prime }+\left (-x^{2}+1\right )^{2} y^{\prime \prime }&=0 \end{align*}
Maple. Time used: 0.012 (sec). Leaf size: 17
ode:=-(k^2-p*(1+p)*(-x^2+1))*y(x)-2*x*(-x^2+1)*diff(y(x),x)+(-x^2+1)^2*diff(diff(y(x),x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 \operatorname {LegendreP}\left (p , k , x\right )+c_2 \operatorname {LegendreQ}\left (p , k , x\right ) \]
Mathematica. Time used: 0.019 (sec). Leaf size: 20
ode=-((k^2 - p*(1 + p)*(1 - x^2))*y[x]) - 2*x*(1 - x^2)*D[y[x],x] + (1 - x^2)^2*D[y[x],{x,2}] == 0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 P_p^k(x)+c_2 Q_p^k(x) \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
k = symbols("k") 
p = symbols("p") 
y = Function("y") 
ode = Eq(-2*x*(1 - x**2)*Derivative(y(x), x) + (1 - x**2)**2*Derivative(y(x), (x, 2)) + (-k**2 + p*(1 - x**2)*(p + 1))*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False