Higher-Order Euler and Legendre Equations

An Euler equation is an ODE of the form

The following is an example of an Euler equation.
In[1]:=
Click for copyable input
Out[1]=

The Legendre linear equation is a generalization of the Euler equation. It has the form

This is a Legendre linear equation.
In[2]:=
Click for copyable input
Out[2]=