The Cauchy-Euler Equation

The Cauchy-Euler equation is the one important family of variable-coefficient linear equations that can be solved in closed form. Its defining feature is that in each term the power of x matches the order of differentiation. Two substitutions unlock it: x = e z , which converts it into a constant-coefficient equation, and y = x r , which turns it directly into a polynomial equation in r .

Quick Reference

Item Statement
General form a n ( x x 0 ) n y ( n ) + a n 1 ( x x 0 ) n 1 y ( n 1 ) + + a 0 y = 0 , x x 0
Second-order form ax^{2}y'' + bxy' + cy = 0, x > 0
Substitution 1 x x 0 = e z , that is, z = ln ( x x 0 ) ; gives constant coefficients
Substitution 2 y = ( x x 0 ) r ; gives an algebraic equation in r
Characteristic equation a r ( r 1 ) + b r + c = 0 , that is, a r 2 + ( b a ) r + c = 0
Distinct real roots y = c 1 x r 1 + c 2 x r 2
Repeated real root y = c 1 x r 1 + c 2 x r 1 ln x
Complex roots α ± i β y = x α [ c 1 cos ( β ln x ) + c 2 sin ( β ln x ) ]
Root r 1 of multiplicity k x r 1 ,   x r 1 ln x ,   ,   x r 1 ( ln x ) k 1
For x < 0 Replace x by | x | throughout

Definition

An equation of the form

a_n(x-x_0)^{n}y^{(n)} + a_{n-1}(x-x_0)^{n-1}y^{(n-1)} + \cdots + a_0y = 0, \qquad (x \neq x_0) \tag{i}

where a 0 , a 1 , , a n are constants, is called the Cauchy-Euler equation, or Euler's equidimensional equation.

This is one of the few linear differential equations with variable coefficients that has a closed-form solution.

Where the name "equidimensional" comes from. In each term a k ( x x 0 ) k y ( k ) , the degree k of the monomial matches the order k of differentiation. So if a 0 , , a n are dimensionless, the physical dimension of x is immaterial and every term has the dimensions of y . Equivalently, the equation is unchanged under the rescaling x λ x , which is exactly the invariance that makes power functions x r the natural trial solutions.

For the rest of this section we take x 0 = 0 , which loses no generality since the substitution x x x 0 recovers the general case.

How to Solve the Cauchy-Euler Equation

  1. By making the substitution x x 0 = e z , or z = ln ( x x 0 ) the Cauchy-Euler equation is transformed into a linear differential equation with constant coefficients, which we already know how to solve.
  2. Alternatively, try a solution of the form y = ( x x 0 ) r with r to be determined. This substitution leads to an algebraic equation in r . If r 1 is a k -fold root of that equation, then the k linearly independent solutions corresponding to it are ( x x 0 ) r 1 , ( x x 0 ) r 1 ln ( x x 0 ) , , ( x x 0 ) r 1 [ ln ( x x 0 ) ] k 1 .

Note the parallel with constant coefficients: there, a repeated root produced extra factors of x ; here it produces extra factors of ln x . The substitution z = ln x explains why, since x in the z -world is ln x in the x -world.

Method 1: Substituting x = e z

Consider the second-order equation

ax^{2}y'' + bxy' + cy = 0, \qquad (x > 0) . \tag{iv}

Introduce a new independent variable z by x = e z , equivalently z = ln x , so that d z d x = 1 x and d 2 z d x 2 = 1 x 2 .

By the chain rule,

y' = \frac{dy}{dx} = \frac{dy}{dz}\frac{dz}{dx} = \frac{1}{x}\frac{dy}{dz}

and, differentiating again with the product and chain rules,

\begin{aligned} y'' = \frac{d^{2}y}{dx^{2}} &= \frac{d}{dx}\left(\frac{dy}{dz}\frac{dz}{dx}\right) \\ &= \left(\frac{d}{dx}\frac{dy}{dz}\right)\frac{dz}{dx} + \frac{dy}{dz}\frac{d^{2}z}{dx^{2}} \\ &= \frac{d^{2}y}{dz^{2}}\left(\frac{dz}{dx}\right)^{2} + \frac{dy}{dz}\frac{d^{2}z}{dx^{2}} \\ &= \frac{1}{x^{2}}\frac{d^{2}y}{dz^{2}} - \frac{1}{x^{2}}\frac{dy}{dz} \end{aligned}

Substituting these expressions into (iv), the factors of x 2 and x cancel exactly against the coefficients, which is the whole point of the equidimensional structure:

a d 2 y d z 2 + ( b a ) d y d z + c y = 0 ,

a linear differential equation with constant coefficients. Its characteristic equation is

a r ( r 1 ) + b r + c = 0 or a r 2 + ( b a ) r + c = 0 .

This may have two distinct real roots r 1 and r 2 , a double root r 1 , or complex roots α ± i β .

The Three Cases

1. Two distinct real roots. Two linearly independent solutions are

y 1 = e r 1 z = ( e z ) r 1 = x r 1 and y 2 = e r 2 z = x r 2 .

2. Repeated real root. Two linearly independent solutions are

y 1 = e r 1 z = x r 1 and y 2 = z y 1 = x r 1 ln x .

The extra factor z from the constant-coefficient theory becomes ln x on translating back.

3. Complex roots α ± i β . Two linearly independent solutions are

y 1 = e α z cos β z = x α cos ( β ln x ) and y 2 = e α z sin β z = x α sin ( β ln x ) .

Method 2: Substituting y = x r

We may instead assume the solution has the form y = x r and find r directly. Substituting y = x r , y' = rx^{r-1}, y'' = r(r-1)x^{r-2} into (iv),

\begin{aligned} L\left[x^{r}\right] &= ax^{2}\cdot r(r-1)x^{r-2} + bx\cdot rx^{r-1} + cx^{r} \\ &= \left[ar(r-1) + br + c\right]x^{r} = 0 \end{aligned}

Every term produced x r , again because the powers of x match the orders of differentiation. Since x r 0 for x > 0 , we conclude that y = x r is a solution of (iv) whenever r is a root of the characteristic equation

p ( r ) = a r ( r 1 ) + b r + c = 0 , that is, p ( r ) = a r 2 + ( b a ) r + c = 0 .

Write the characteristic equation as a r ( r 1 ) + b r + c , not a r 2 + b r + c . The factor r ( r 1 ) comes from differentiating x r twice, and forgetting it is the most common error with Cauchy-Euler equations. For third order the pattern continues: x^{3}y''' contributes r ( r 1 ) ( r 2 ) .

The Three Cases Again

1. Two distinct real roots. If r 1 r 2 are the roots, then

y 1 ( x ) = x r 1 , y 2 ( x ) = x r 2

are two linearly independent solutions of (iv).

2. Repeated real root. If r 1 = r 2 , one solution is y 1 = x r 1 . To construct the second, differentiate both sides of L [ x r ] = p ( r ) x r with respect to r :

\frac{\partial}{\partial r}L\left[x^{r}\right] = L\left[\frac{\partial}{\partial r}x^{r}\right] = L\left[x^{r}\ln x\right] = p'(r)x^{r} + p(r)x^{r}\ln x .

Recall that d d u a u = a u ln a ; in r x r the variable is r and x is held fixed, so the derivative is x r ln x .

For r = r 1 we have p(r_1) = p'(r_1) = 0, since r 1 is a double root, and therefore

L\left[x^{r_1}\ln x\right] = p'(r_1)x^{r_1} + p(r_1)x^{r_1}\ln x = 0 .

This means y 2 = x r 1 ln x is a solution. So the two linearly independent solutions are

y 1 ( x ) = x r 1 , y 2 ( x ) = x r 1 ln x .

3. Complex roots. If the roots of p ( r ) = 0 are the conjugate pair r 1 = α + i β and r 2 = α i β , the general solution is

y = A x α + i β + B x α i β ,

where A and B are constants. Because

\begin{aligned} x^{\alpha+i\beta} &= e^{\ln x^{\alpha+i\beta}} \\ &= e^{(\alpha+i\beta)\ln x} = e^{\alpha\ln x + i\beta\ln x} \qquad \left(\ln A^{B} = B\ln A\right) \\ &= e^{\alpha\ln x}\left[\cos(\beta\ln x) + i\sin(\beta\ln x)\right] \qquad \left(e^{i\theta} = \cos\theta + i\sin\theta\right) \\ &= x^{\alpha}\left[\cos(\beta\ln x) + i\sin(\beta\ln x)\right] \end{aligned}

and similarly

x α i β = x α [ cos ( β ln x ) i sin ( β ln x ) ] ,

the general solution of (iv) can be written as

y = c 1 x α cos ( β ln x ) + c 2 x α sin ( β ln x ) ,

where c 1 = A + B and c 2 = i ( A B ) .

In summary, the two linearly independent solutions are

y 1 ( x ) = x α cos ( β ln x ) , y 2 ( x ) = x α sin ( β ln x ) , ( x > 0 ) .

What If x < 0 ?

So far we have considered x > 0 . When x < 0 , ln x is undefined. In that case start with the change of independent variable t = x , so that t > 0 . Then

\begin{aligned} \frac{dy}{dx} &= \frac{dy}{dt}\frac{dt}{dx} = -\frac{dy}{dt} \\ \frac{d^{2}y}{dx^{2}} &= \frac{d^{2}y}{dt^{2}}\left(\frac{dt}{dx}\right)^{2} + \frac{dy}{dt}\frac{d^{2}t}{dx^{2}} = \frac{d^{2}y}{dt^{2}} \end{aligned}

since d t d x = 1 and d 2 t d x 2 = 0 . Substituting, and noting that x 2 = t 2 while x d y d x = ( t ) ( d y d t ) = t d y d t , the differential equation becomes

a t 2 d 2 y d t 2 + b t d y d t + c y = 0 , ( t > 0 )

which is the same equation in the new variable. Its solution is already known, and replacing t by x expresses the answer in terms of x .

Combining the results for x > 0 and x < 0 , the solution of

a x 2 d 2 y d x 2 + b x d y d x + c y = 0

on any interval not containing the origin depends on the roots r 1 , r 2 of p ( r ) = a r ( r 1 ) + b r + c = 0 :

y = \left\{ \begin{aligned} &c_1\left|x\right|^{r_1} + c_2\left|x\right|^{r_2} && \text{if } r_1 \neq r_2 \text{ and both are real} \\ &c_1\left|x\right|^{r_1} + c_2\left|x\right|^{r_1}\ln\left|x\right| && \text{if } r_1 = r_2 \\ &c_1\left|x\right|^{\alpha}\cos\left(\beta\ln\left|x\right|\right) + c_2\left|x\right|^{\alpha}\sin\left(\beta\ln\left|x\right|\right) && \text{if } r_{1,2} = \alpha \pm i\beta \end{aligned} \right.

In short: put absolute value bars around every x . The origin is a singular point of the equation, so solutions are never guaranteed to extend across it.

Worked Examples

Solve x^{2}y'' + 2xy' - 6y = 0 for x > 0 .

Solution

Here a = 1 , b = 2 , c = 6 . The characteristic equation is

r ( r 1 ) + 2 r 6 = r 2 + r 6 = ( r + 3 ) ( r 2 ) = 0 ,

with distinct real roots r 1 = 2 and r 2 = 3 . Therefore

y = c 1 x 2 + c 2 x 3 .

Solve x^{2}y'' - 3xy' + 4y = 0 for x > 0 .

Solution

The characteristic equation is

r ( r 1 ) 3 r + 4 = r 2 4 r + 4 = ( r 2 ) 2 = 0 ,

a double root at r = 2 . Therefore

y = c 1 x 2 + c 2 x 2 ln x .

This confirms the answer found by reduction of order in Section 4.1, where the logarithm appeared through the integral d x x .

Solve x^{2}y'' + xy' + 4y = 0 for x > 0 .

Solution

The characteristic equation is

r ( r 1 ) + r + 4 = r 2 + 4 = 0 ,

with roots r = ± 2 i , so α = 0 and β = 2 . Therefore

y = c 1 cos ( 2 ln x ) + c 2 sin ( 2 ln x ) .

The solution oscillates in ln x , so the oscillations stretch out as x grows and crowd together as x approaches the origin. This slowing-down behavior is characteristic of Cauchy-Euler equations with complex roots.

Solve the third-order equation x^{3}y''' + 2x^{2}y'' - xy' + y = 0 for x > 0 .

Solution

Substituting y = x r , the derivatives contribute r ( r 1 ) ( r 2 ) , r ( r 1 ) , and r respectively:

r ( r 1 ) ( r 2 ) + 2 r ( r 1 ) r + 1 = 0 .

Expanding,

r 3 3 r 2 + 2 r + 2 r 2 2 r r + 1 = r 3 r 2 r + 1 .

Factoring by grouping,

r 2 ( r 1 ) ( r 1 ) = ( r 1 ) ( r 2 1 ) = ( r 1 ) 2 ( r + 1 ) = 0 .

So r = 1 is a double root and r = 1 is simple, giving

y = c 1 x + c 2 x ln x + c 3 x .

Solve the initial value problem x^{2}y'' - 2xy' + 2y = 0, y ( 1 ) = 3 , y'(1) = 5.

Solution

The characteristic equation is r ( r 1 ) 2 r + 2 = r 2 3 r + 2 = ( r 1 ) ( r 2 ) = 0 , so

y = c_1x + c_2x^{2}, \qquad y' = c_1 + 2c_2x .

Applying the conditions at x = 1 ,

c 1 + c 2 = 3 , c 1 + 2 c 2 = 5 .

Subtracting gives c 2 = 2 , hence c 1 = 1 , and

y = x + 2 x 2 .

The interval of validity is x > 0 , since the initial point is x = 1 and the origin is a singular point.

Exercises

Solve x^{2}y'' - 5xy' + 9y = 0 for x > 0 .

Solution r ( r 1 ) 5 r + 9 = r 2 6 r + 9 = ( r 3 ) 2 = 0 ,

a double root at r = 3 , so

y = c 1 x 3 + c 2 x 3 ln x .

Solve x^{2}y'' + 3xy' + 5y = 0 for x > 0 .

Solution r ( r 1 ) + 3 r + 5 = r 2 + 2 r + 5 = 0 r = 1 ± 2 i .

Therefore

y = x 1 [ c 1 cos ( 2 ln x ) + c 2 sin ( 2 ln x ) ] .

Solve x^{2}y'' - xy' + y = x for x > 0 . Combine the Cauchy-Euler method with variation of parameters.

Solution

Homogeneous part. r ( r 1 ) r + 1 = r 2 2 r + 1 = ( r 1 ) 2 , a double root at r = 1 , so y 1 = x and y 2 = x ln x .

Wronskian. With y_2' = \ln x + 1,

W = | x x ln x 1 ln x + 1 | = x ln x + x x ln x = x .

Standard form. Dividing by x 2 gives R ( x ) = 1 x .

u_1' = \frac{-x\ln x\cdot\dfrac{1}{x}}{x} = -\frac{\ln x}{x} \quad \Longrightarrow \quad u_1 = -\frac{(\ln x)^{2}}{2}u_2' = \frac{x\cdot\dfrac{1}{x}}{x} = \frac{1}{x} \quad \Longrightarrow \quad u_2 = \ln x y p = ( ln x ) 2 2 x + ln x x ln x = x ( ln x ) 2 2

The general solution is

y = c 1 x + c 2 x ln x + x ( ln x ) 2 2 .

The extra power of ln x is the Cauchy-Euler analogue of the Modification Rule.

Solve x^{2}y'' + 5xy' + 4y = 0 on x < 0 .

Solution r ( r 1 ) + 5 r + 4 = r 2 + 4 r + 4 = ( r + 2 ) 2 = 0 ,

a double root at r = 2 . Since x < 0 , write the answer with absolute values:

y = c 1 | x | 2 + c 2 | x | 2 ln | x | = c 1 x 2 + c 2 ln | x | x 2 ,

using | x | 2 = x 2 for even powers.

Frequently Asked Questions

How do I recognize a Cauchy-Euler equation?

Each term pairs x k with y ( k ) : the power of x equals the order of the derivative. So x^{2}y'', xy', and y all fit, while x^{3}y'' or x^{2}y' do not. The powers must match term by term.


Why does y = x r work?

Because the equation is invariant under rescaling x λ x , and power functions are the functions that transform simply under rescaling. Concretely, x k d k d x k x r is always a constant times x r , so every term produces x r and the equation collapses to a polynomial condition on r .


Why is the characteristic equation a r ( r 1 ) + b r + c rather than a r 2 + b r + c ?

Because d 2 d x 2 x r = r ( r 1 ) x r 2 , so the second-derivative term contributes r ( r 1 ) , not r 2 . Substituting the trial solution rather than writing down a memorized formula avoids this error entirely.


Why does a repeated root produce ln x instead of x ?

The substitution z = ln x turns the equation into a constant-coefficient one, where a repeated root produces the extra factor z . Translating back, z is ln x . Equivalently, differentiating L [ x r ] = p ( r ) x r with respect to r produces x r ln x , since r x r = x r ln x .


What happens at x = 0 ?

It is a singular point: dividing by x 2 to reach standard form produces coefficients that blow up there. Solutions such as x 3 or x 2 ln x misbehave at the origin, and no solution is guaranteed to extend across it. Always solve on an interval that excludes x = 0 .


Which method should I use, x = e z or y = x r ?

For a homogeneous equation, y = x r is faster: one substitution and a polynomial to factor. The substitution x = e z is preferable when the equation is nonhomogeneous, because it converts the problem to a constant-coefficient one where undetermined coefficients becomes available. Alternatively, keep y = x r for the homogeneous part and finish with variation of parameters.


Does the method extend to higher order?

Yes, unchanged. Substituting y = x r into x n y ( n ) gives r ( r 1 ) ( r 2 ) ( r n + 1 ) , so the characteristic equation is a polynomial of degree n in r . Roots contribute the same way: x r 1 , x r 1 ln x , x r 1 ( ln x ) 2 , and so on for multiplicities.