Given that $ P_l(x) $ is a polynomial solution of Legendre's equation, I want to find the differential equation for the function $ W(x) = (1-x^2) \frac{d^2}{dx^2}P_l(x)$
Since Legendre's equation is $(1-x^2)\frac{d^2}{dx^2}P_l(x) - 2x \frac{d}{dx}P_l(x) + l(l+1)P_l(x)=0 $ I can right away write that $$ W(x) = 2xP'_l(x) - l(l+1)P_l(x) $$ But then, I don't know how to write this as a differential equation for W, since it seems like I only know W in terms of integrals of itself. Thanks.