A Linear Homogeneous ODE is called Cauchy Euler Equation if it is of the form
$$ x^2 y''(x) + a x y'(x) + b y(x) = 0 $$
This is an example of linear equations that has solutions in terms of elementary functions.
The solution to the equation is of the form \(y(x)=x^r\). Substitution gives
$$ r (r-1) x^r + a r x^r + b x^r = 0$$
which can be satisfied if the indicial equation is satisfied:
$$ r (r-1) + a r + b = r^2 + (a-1) r + b = 0$$
which is a quadratic algebraic equation for \(r\) with two roots.
If the roots are distinct, then we have two linearly independent
solutions
$$ y_1(x)=x^{r_1}, \; y_2(x)=x^{r_2} $$
where \(r_1 \ne r_2\). The general solution to the homogeneous problems is
$$ y(x) = c_1 x^{r_1} + c_2 x^{r_2} $$
Example 1
Find the general solution of $$ x^2 y'' - 2 y = 0 $$
solution:
$$ a = 0, b = -2 $$
Indicial Equation
$$r^2 - r - 2 = (r-2)(r+1) = 0 $$
roots
$$ r_1 = 2, r_2 = -1$$
basis functions
$$ y_1 = x^2, \; y_2 = \frac{1}{x} $$
Then the general solution is
$$ y(x) = c_1 x^2 + c_2 \frac{1}{x}$$
Example 2
Find the general solution of $$ x^2 y'' +x y' + y = 0 $$
solution:
$$ a = 1, b = 1 $$
Indicial Equation
$$r^2 + 1 = 0 $$
roots
$$ r_1 = i, r_2 = -i$$
basis functions
$$ y_1 = x^i, \; y_2 = x^{-i} $$
Then the general solution is
$$ y(x) = c_1 x^i + c_2 x^{-i}$$
which can be also written using Euler's identity as follows
$$ y(x) = c_1 e^{\log{x^i}} + c_2 e^{\log{x^{-i}}} = c_1 e^{i \log{x}} + c_2 e^{-i \log{x}} = k_1 \cos{(\log{x})} + k_2 \sin{(\log{x})} $$
Repeating roots
If the roots are not distinct \(r_1 = r_2 = r = -\frac{a-1}{2}\), then we have one linearly independent solution
$$ y_1(x) = x^r $$
The second solution can be obtained by the method of reduction of order.
Assume
$$ y_2(x) = u(x) x^r $$
and substitute
$$ x^2 (u y_1)'' + a x (u y_1)' + b u y_1 = 0 $$
$$ x^2 (u' y_1 + u y_1')' + a x (u' y_1 + u y_1') + b u y_1 = 0 $$
$$ x^2 (u'' y_1 + 2 u' y_1' + u y_1'') + a x (u' y_1 + a u y_1') + b u y_1 = 0 $$
Since \(y_1\) is a solution,
$$ x^2 u y_1'' + a x u y_1' + b u y_1 = 0 $$
the equation becomes
$$ x^2 (u'' y_1 + 2 u' y_1') + a x u' y_1 = 0 $$
$$ u'' x^{r+2} + 2 u' r x^{r+1} + a u' x^{r+1} = 0 $$
$$ u'' x + 2 u' r + a u' = 0 $$
which is a second order linear ODE for \(u(x)\). Reduce the order by \(u'=v\)
$$ v' x + (2 r + a) v = 0 $$
Since \(r = -\frac{a-1}{2}\)
$$ x v' + v = 0 \rightarrow \frac{dv}{v} = -\frac{dx}{x}$$
which has a solution
$$ v = \frac{1}{x} $$
A solution that makes \(y_2\) linearly independent is
$$ u = \log{x} $$
$$ y_2(x) = x^r \log{x} $$
The general solution to problems is
$$ y_h(x) = c_1 x^r + c_2 x^r \log{x} $$
Example 1
Solve the following ODE $$ x^2 y'' - x y' + y = 0 $$
solution:
$$ a = -1, b = 1 $$
Indicial Equation
$$ r^2 - 2r + 1 = (r-1)^2 = 0 $$
roots
$$ r_1 = r_2 = r = 1$$
basis functions
$$ y_1 = x , \; y_2 = x \log{x} $$
Then the general solution is
$$ y(x) = c_1 x + c_2 x \log{x} $$