Differential Equations · Undergraduate

Cauchy–Euler Equations: x²y″ + axy′ + by = 0

Quick answer

In a Cauchy–Euler equation x²y″ + axy′ + by = 0, each derivative is multiplied by the matching power of x, so trying y = xʳ turns the equation into the indicial equation r(r − 1) + ar + b = 0. Two real roots give c₁x^(r₁) + c₂x^(r₂). A repeated root r gives c₁xʳ + c₂xʳ ln x. Complex roots α ± βi give x^α(c₁cos(β ln x) + c₂sin(β ln x)). The substitution x = eᵗ turns the equation into one with constant coefficients, which explains all three cases.

What you'll learn

  • Recognize a Cauchy–Euler equation
  • Write and solve the indicial equation r(r − 1) + ar + b = 0
  • Write solutions for distinct, repeated and complex roots
  • Solve an initial value problem at x = 1

Powers of x that match the derivatives

A Cauchy–Euler equation has the form

x2y′′+axy′+by=0,x>0x^2y'' + axy' + by = 0, \qquad x > 0

Each derivative is multiplied by the same power of xx as its order. Try y=xry = x^r: then xy′=rxrxy' = rx^r and x2y′′=r(r−1)xrx^2y'' = r(r - 1)x^r, so every term is a multiple of xrx^r. Dividing by xrx^r leaves the indicial equation

r(r−1)+ar+b=0r(r - 1) + ar + b = 0
RootsGeneral solution
real, r1≠r2r_1 \ne r_2c1xr1+c2xr2c_1x^{r_1} + c_2x^{r_2}
repeated, rrc1xr+c2xrln⁡xc_1x^r + c_2x^r\ln x
complex, α±βi\alpha \pm \beta ixα(c1cos⁡(βln⁡x)+c2sin⁡(βln⁡x))x^\alpha\bigl(c_1\cos(\beta\ln x) + c_2\sin(\beta\ln x)\bigr)

Why logarithms appear

Substitute x=etx = e^t, so t=ln⁡xt = \ln x. The chain rule gives xdydx=dydtx\tfrac{dy}{dx} = \tfrac{dy}{dt} and x2d2ydx2=d2ydt2−dydtx^2\tfrac{d^2y}{dx^2} = \tfrac{d^2y}{dt^2} - \tfrac{dy}{dt}. The equation becomes

d2ydt2+(a−1)dydt+by=0\frac{d^2y}{dt^2} + (a - 1)\frac{dy}{dt} + by = 0

which has constant coefficients, and its characteristic equation is the indicial equation. Its solutions erte^{rt}, tertte^{rt} and eαtcos⁡βte^{\alpha t}\cos\beta t turn back into xrx^r, xrln⁡xx^r\ln x and xαcos⁡(βln⁡x)x^\alpha\cos(\beta\ln x). The table is the constant-coefficient table in disguise.

Worked examples

Common mistakes

Practice problems

  1. Solve x2y′′−6y=0x^2y'' - 6y = 0.

    Answer

    y=c1x3+c2x−2y = c_1x^3 + c_2x^{-2}

    Full solution

    r2−r−6=(r−3)(r+2)r^2 - r - 6 = (r - 3)(r + 2).

  2. Solve x2y′′+3xy′+y=0x^2y'' + 3xy' + y = 0.

    Answer

    y=c1+c2ln⁡xxy = \tfrac{c_1 + c_2\ln x}{x}

    Full solution

    r2+2r+1=(r+1)2r^2 + 2r + 1 = (r + 1)^2, a double root at −1-1.

  3. Solve x2y′′−xy′+5y=0x^2y'' - xy' + 5y = 0.

    Answer

    y=x(c1cos⁡(2ln⁡x)+c2sin⁡(2ln⁡x))y = x\bigl(c_1\cos(2\ln x) + c_2\sin(2\ln x)\bigr)

    Full solution

    r2−2r+5=0r^2 - 2r + 5 = 0 gives r=1±2ir = 1 \pm 2i.

  4. Solve x2y′′+xy′−9y=0x^2y'' + xy' - 9y = 0.

    Answer

    y=c1x3+c2x−3y = c_1x^3 + c_2x^{-3}

    Full solution

    r2−9=0r^2 - 9 = 0.

  5. Solve x2y′′−2y=0x^2y'' - 2y = 0 with y(1)=1y(1) = 1 and y′(1)=−1y'(1) = -1.

    Answer

    y=1xy = \tfrac{1}{x}

    Full solution

    r2−r−2=(r−2)(r+1)r^2 - r - 2 = (r - 2)(r + 1), so y=c1x2+c2x−1y = c_1x^2 + c_2x^{-1}. Then c1+c2=1c_1 + c_2 = 1 and 2c1−c2=−12c_1 - c_2 = -1 give c1=0c_1 = 0, c2=1c_2 = 1.

  6. Find the indicial equation and its roots for x2y′′+5xy′+4y=0x^2y'' + 5xy' + 4y = 0.

    Answer

    r2+4r+4=0r^2 + 4r + 4 = 0; r=−2r = -2 (double)

    Full solution

    r(r−1)+5r+4=r2+4r+4r(r - 1) + 5r + 4 = r^2 + 4r + 4. The solution is y=x−2(c1+c2ln⁡x)y = x^{-2}(c_1 + c_2\ln x).

  7. Under x=etx = e^t, what does x2y′′−2xy′−4y=0x^2y'' - 2xy' - 4y = 0 become?

    Answer

    d2ydt2−3dydt−4y=0\tfrac{d^2y}{dt^2} - 3\tfrac{dy}{dt} - 4y = 0

    Full solution

    The coefficient of dydt\tfrac{dy}{dt} is a−1=−3a - 1 = -3, giving solutions e4t=x4e^{4t} = x^4 and e−t=x−1e^{-t} = x^{-1}.

  8. A student writes the indicial equation of x2y′′−2xy′−4y=0x^2y'' - 2xy' - 4y = 0 as r2−2r−4=0r^2 - 2r - 4 = 0. What went wrong?

    Answer

    x2y′′x^2y'' contributes r(r−1)=r2−rr(r - 1) = r^2 - r, not r2r^2.

    Full solution

    The correct equation is r2−3r−4=0r^2 - 3r - 4 = 0, with roots 44 and −1-1.

Frequently asked questions

What is a Cauchy–Euler equation?

A linear equation x²y″ + axy′ + by = 0 with constants a and b, where each derivative is multiplied by the same power of x as its order.

How do you solve one?

Substitute y = xʳ to get the indicial equation r(r − 1) + ar + b = 0, then build the solution from its roots.

What if the indicial equation has a repeated root?

The solutions are xʳ and xʳ ln x, so y = c₁xʳ + c₂xʳ ln x.

What if the roots are complex?

For r = α ± βi, y = x^α(c₁cos(β ln x) + c₂sin(β ln x)).

Why does ln x appear?

The substitution x = eᵗ, so t = ln x, turns the equation into one with constant coefficients. Its solutions in t, like eʳᵗ, teʳᵗ and cos βt, become xʳ, xʳ ln x and cos(β ln x).

What to learn next