Differential Equations • Second-Order Linear ODEs

Characteristic Equation

Turn a second-order differential equation into a simple algebra problem you already know how to solve.

A changing curve with sigma and variable symbols for differential equations
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

For centuries, mathematicians and scientists encountered equations that described how things change — how a vibrating string moves, how heat flows through a metal rod, or how a bridge sways in the wind. These equations, called differential equations, involve derivatives (rates of change) and are often much harder to solve than regular algebraic equations. The breakthrough came when mathematicians realized that certain differential equations could be converted into polynomial equations — turning calculus back into algebra.

The characteristic equation is that algebraic shortcut. Instead of guessing and checking solutions to a differential equation, you translate the problem into a quadratic equation, solve it using techniques you learned in Algebra 2, and then write down the solution. This idea grew out of work by Euler, d'Alembert, and other mathematicians who studied vibrations, waves, and mechanics.

1739 • Euler's Exponential Insight

Leonhard Euler proposed that solutions to linear ODEs could take the form erx, where r is a constant. This guess transforms a differential equation into a polynomial equation.

1743 • D'Alembert's Contributions

Jean le Rond d'Alembert systematically applied exponential trial solutions to second-order equations, laying groundwork for the characteristic equation method used today.

1750s • Complex Roots & Oscillations

Euler connected complex-number roots of the characteristic equation to sine and cosine functions, explaining why springs and pendulums oscillate.

1800s • Engineering Applications

Engineers applied the characteristic equation to design suspension bridges, electrical circuits, and shock absorbers — any system that vibrates, damps, or resonates.

The central question this lesson addresses is: given a second-order linear ODE with constant coefficients, how do we find its general solution without trial-and-error? The characteristic equation gives us a reliable, step-by-step method to do exactly that.

SECTION 2

Core Principles & Definitions

Before diving into the method, let's establish the key ideas. A second-order linear ODE with constant coefficients is an equation of the form ay″ + by′ + cy = 0, where a, b, and c are constants and y is a function of x (or t). The word "homogeneous" means the right side equals zero. The entire characteristic equation technique rests on one clever guess: suppose the solution looks like y = erx.

1

The Trial Solution

We guess that y = erx is a solution. Because the derivative of erx is just r × erx, exponentials play nicely with derivatives.
2

Substitution & Cancellation

When you plug y = erx into ay″ + by′ + cy = 0, every term contains erx. Since erx is never zero, you can divide it out, leaving a polynomial in r.
3

The Characteristic Equation

After cancelling erx, you get ar² + br + c = 0, a standard quadratic. This is the characteristic equation (also called the auxiliary equation).
4

Three Cases for Roots

The discriminant b² − 4ac determines whether the roots are two distinct real numbers, one repeated real number, or two complex conjugates — each case gives a different form of the solution.
5

General Solution

The general solution is a linear combination of the independent solutions you find from the roots. The constants C₁ and C₂ are determined by initial conditions.
✦

KEY TAKEAWAY

Think of the characteristic equation like a language translator. You have a differential equation written in the "language of calculus" — derivatives, rates of change. The characteristic equation translates it into the "language of algebra" — a quadratic you already know how to solve. Once you solve the quadratic, you translate the answer back into a function that satisfies the original differential equation.

SECTION 3

Visual Explanation — From ODE to Quadratic

The diagram below shows the entire characteristic equation workflow. Follow the arrows from the original differential equation through the trial solution, substitution, and simplification to arrive at the characteristic quadratic, then see how the three types of roots lead to three different solution forms.

Characteristic Equation Workfloway″ + by′ + cy = 0Original Differential EquationGuess: y = e^(rx)Trial (Exponential) Solutionar²e^(rx) + bre^(rx) + ce^(rx) = 0Substitute y, y′, y″ — factor out e^(rx)ar² + br + c = 0Characteristic (Auxiliary) EquationCase 1: Two Real Rootsb² − 4ac > 0y = C₁e^(r₁x) + C₂e^(r₂x)Case 2: Repeated Rootb² − 4ac = 0y = (C₁ + C₂x)e^(rx)Case 3: Complex Rootsb² − 4ac < 0y = e^(αx)(C₁cos βx + C₂sin βx)
The workflow starts with the original ODE at the top. By substituting the exponential trial solution and dividing out erx, we obtain the characteristic quadratic in the gold box. The three branches at the bottom correspond to the three cases determined by the discriminant.

Notice that the entire process hinges on the fact that erx is never zero. Because of this, the only way the substituted equation can equal zero is if the polynomial ar² + br + c itself equals zero. That single observation is what converts a calculus problem into an algebra problem.

SECTION 4

Mathematical Framework

Let's walk through the algebra carefully. We start with the general second-order linear homogeneous ODE with constant coefficients and derive the characteristic equation step by step.

STARTING EQUATION

ay″+by′+cy=0ay″ + by′ + cy = 0

Here a, b, and c are real-number constants (with a ≠ 0), and y is a function of x. The primes (′ and ″) denote first and second derivatives.

TRIAL SOLUTION

y=e(rx)→y′=re(rx)→y″=r2e(rx)y = e^(rx) → y′ = re^(rx) → y″ = r²e^(rx)

The exponential function erx has the special property that its derivatives bring down powers of r. This is why exponentials are the natural candidate for trial solutions.

SUBSTITUTION RESULT

a(r2e(rx))+b(re(rx))+c(e(rx))=0→e(rx)(ar2+br+c)=0a(r²e^(rx)) + b(re^(rx)) + c(e^(rx)) = 0 → e^(rx)(ar² + br + c) = 0

After substituting, every term contains erx as a common factor. Since erx > 0 for all x, we can safely divide both sides by it.

CHARACTERISTIC EQUATION

ar2+br+c=0ar² + br + c = 0

Solve using the quadratic formula: r = (−b ± √(b² − 4ac)) / (2a). The discriminant Δ = b² − 4ac determines which of the three cases applies.

⚠

Watch the Notation

The a, b, c in the characteristic equation ar² + br + c = 0 are the same coefficients from the original ODE ay″ + by′ + cy = 0. Don't confuse the r in the characteristic equation with the x in the ODE — r is the unknown you're solving for, while x is the independent variable of the original function.

SECTION 5

The Three Cases — Classified by the Discriminant

The nature of the solution depends entirely on the discriminant Δ = b² − 4ac. You already know from Algebra 2 that the discriminant tells you whether a quadratic has two real roots, one repeated root, or complex roots. The same idea applies here, and each case produces a different type of function as the solution to the ODE.

CaseDiscriminantRootsGeneral SolutionBehavior
1 — Distinct RealΔ > 0r₁ ≠ r₂, both realy = C₁er1xe^{r₁x} + C₂er2xe^{r₂x}Exponential growth/decay
2 — Repeated RealΔ = 0r₁ = r₂ = ry = (C₁ + C₂x)erxe^{rx}Critically damped
3 — Complex ConjugatesΔ < 0r = α ± βiy = eαxe^{αx}(C₁cos βx + C₂sin βx)Oscillation (damped or growing)

The three cases of the characteristic equation and their corresponding solution forms.

Solution Shapes for Each CaseCase 1: Distinct Real Rootsy = C₁e^(2x) + C₂e^(−x)yxe^(2x)e^(−x)Case 2: Repeated Rooty = (C₁ + C₂x)e^(−x)yxcriticallydampedCase 3: Complex Rootsy = e^(−0.3x)(C₁cos 2x + C₂sin 2x)yxdampedoscillationExponential Growth/DecayTwo independent exponentialscombine — no oscillation.Example: overdamped door closerthat swings shut slowlyΔ = b² − 4ac > 0Critical DampingReturns to equilibrium asfast as possible — no bounce.Example: car shock absorbertuned just rightΔ = b² − 4ac = 0OscillationSine/cosine waves appear,possibly with exponential decay.Example: guitar string vibratingand slowly fadingΔ = b² − 4ac < 0
Three graphs showing the qualitative behavior of solutions in each case. Case 1 (green) shows pure exponential growth or decay. Case 2 (cyan) shows critically damped behavior — approaching zero as quickly as possible without oscillating. Case 3 (pink) shows damped oscillation, where the dashed envelope curves show the exponential decay that constrains the oscillation.

In Case 1, the two distinct exponentials act independently — one might grow while the other decays, and their sum creates the overall behavior. In Case 2, having a repeated root means we only get one exponential function from the quadratic, so we need to multiply by x to get a second independent solution. In Case 3, the imaginary part β of the complex roots produces oscillation through sine and cosine, while the real part α controls whether those oscillations grow (α > 0), decay (α < 0), or remain constant (α = 0).

SECTION 6

Worked Example — All Three Cases

Example A: Distinct Real Roots

Solve the differential equation y″ − 3y′ + 2y = 0.

Case 1 — Two Distinct Real Roots

  1. 1

    Step 1 — Identify Coefficients

    Comparing y″ − 3y′ + 2y = 0 with the general form ay″ + by′ + cy = 0, we identify a = 1, b = −3, and c = 2.
  2. 2

    Step 2 — Write the Characteristic Equation

    Replace y″ with r², y′ with r, and y with 1 to get the characteristic equation: r² − 3r + 2 = 0.
    r² − 3r + 2 = 0
  3. 3

    Step 3 — Solve the Quadratic

    Factor: (r − 1)(r − 2) = 0. This gives r₁ = 1 and r₂ = 2. Since these are two distinct real roots, we are in Case 1.
    r₁ = 1, r₂ = 2
  4. 4

    Step 4 — Write the General Solution

    Using the Case 1 formula y = C₁er1xe^{r₁x} + C₂er2xe^{r₂x}, substitute the values of r₁ and r₂.
    y = C₁eˣ + C₂e²ˣ

Example B: Repeated Root

Solve the differential equation y″ − 4y′ + 4y = 0.

Case 2 — Repeated Root

  1. 1

    Step 1 — Write the Characteristic Equation

    Here a = 1, b = −4, c = 4. The characteristic equation is r² − 4r + 4 = 0.
  2. 2

    Step 2 — Solve the Quadratic

    Factor: (r − 2)² = 0, so r = 2 is a repeated root. The discriminant is (−4)² − 4(1)(4) = 16 − 16 = 0, confirming Case 2.
    r = 2 (repeated)
  3. 3

    Step 3 — Write the General Solution

    For a repeated root r, the general solution is y = (C₁ + C₂x)erxe^{rx}. The extra factor of x is needed because we need two linearly independent solutions, and erxe^{rx} alone only gives us one.
    y = (C₁ + C₂x)e²ˣ

Example C: Complex Conjugate Roots

Solve the differential equation y″ + 2y′ + 5y = 0.

Case 3 — Complex Conjugate Roots

  1. 1

    Step 1 — Write the Characteristic Equation

    With a = 1, b = 2, c = 5, the characteristic equation is r² + 2r + 5 = 0.
  2. 2

    Step 2 — Compute the Discriminant

    Δ = b² − 4ac = (2)² − 4(1)(5) = 4 − 20 = −16. Since Δ < 0, the roots are complex conjugates.
    Δ = −16 < 0
  3. 3

    Step 3 — Find the Roots

    Using the quadratic formula: r = (−2 ± √(−16)) / 2 = (−2 ± 4i) / 2 = −1 ± 2i. So α = −1 (real part) and β = 2 (imaginary part).
    r = −1 ± 2i → α = −1, β = 2
  4. 4

    Step 4 — Write the General Solution

    For complex roots r = α ± βi, the solution is y = eαxe^{αx}(C₁cos βx + C₂sin βx). Substituting α = −1 and β = 2 gives us our answer.
    y = e−xe^{−x}(C₁cos 2x + C₂sin 2x)

SECTION 7

Strengths, Limitations & When It Applies

The characteristic equation method is powerful, but it doesn't work for every differential equation. Understanding when it applies — and when it doesn't — is just as important as knowing how to use it.

StrengthsLimitations
Converts a calculus problem into straightforward algebra — just solve a quadratic.Only works for linear ODEs with constant coefficients. If the coefficients depend on x (e.g., xy″ + y = 0), this method fails.
Gives an exact, closed-form general solution — no approximation needed.Only handles the homogeneous case (right side = 0). For ay″ + by′ + cy = g(x), additional techniques like undetermined coefficients or variation of parameters are required.
The discriminant immediately tells you the qualitative behavior of the solution (growth, decay, oscillation).Does not directly extend to nonlinear equations like y″ + y² = 0, which require entirely different approaches.
Extends naturally to higher-order ODEs — you get a cubic, quartic, etc. instead of a quadratic.For higher-order equations, solving the resulting polynomial (cubic, quartic) can become difficult by hand.

When the characteristic equation method shines — and where it has boundaries.

✦

KEY TAKEAWAY

Think of the characteristic equation method like a universal remote control — it works perfectly for a specific brand of TV (constant-coefficient, homogeneous, linear ODEs). If you have a different brand (variable coefficients, nonlinear terms, or a non-zero right-hand side), you'll need a different remote. But for the equations it does handle, it's the fastest and most elegant tool available.

SECTION 8

Connection to Advanced Theory

The characteristic equation method you've learned for second-order ODEs is actually a special case of a broader framework. As you continue in mathematics and science, you'll see this same idea appear in more advanced settings.

What You Learned HereWhere It Goes Next
Second-order ODE → quadratic characteristic equationnth-order ODE → degree-n polynomial characteristic equation
Solve ar² + br + c = 0 with the quadratic formulaEigenvalue problems in linear algebra use a similar "characteristic polynomial" det(A − λI) = 0
Homogeneous equation ay″ + by′ + cy = 0Non-homogeneous ay″ + by′ + cy = g(x) solved by first finding the homogeneous solution, then adding a particular solution
Constant coefficients (a, b, c are numbers)Variable coefficients require power series methods, Frobenius method, or numerical techniques

How the characteristic equation connects to more advanced topics.

In a college-level linear algebra course, you'll discover that the "characteristic equation" of a matrix is found using exactly the same idea — looking for special values (called eigenvalues) that make a system behave predictably. The deep connection between differential equations and linear algebra is one of the most beautiful results in all of mathematics. For now, mastering the second-order case gives you a solid foundation for everything that follows.

💡

Looking Ahead

If you study physics or engineering, you'll use the characteristic equation to analyze electrical circuits (RLC circuits), mechanical vibrations (mass-spring-damper systems), and even quantum mechanics. The same three cases — overdamped, critically damped, and underdamped — appear everywhere in the physical world.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words why we guess y = erx as a trial solution for a second-order linear ODE with constant coefficients. Why not guess y = x² or y = sin x instead?
Show answer
The key reason is that the exponential function erx reproduces itself under differentiation — its first derivative is rerx and its second derivative is r²erx. This means when you substitute into ay″ + by′ + cy = 0, every term shares the same factor erx, which you can factor out and cancel. If you tried y = x², the derivatives (2x, 2) would produce terms of different powers that cannot combine into a clean polynomial in a single unknown. Sine and cosine actually do work for Case 3 — they emerge naturally from complex exponential roots via Euler's formula.

Question 2: BASIC CALCULATION

Find the general solution of y″ − 5y′ + 6y = 0.
Show answer
The characteristic equation is r² − 5r + 6 = 0. Factoring gives (r − 2)(r − 3) = 0, so r₁ = 2 and r₂ = 3. Since these are two distinct real roots (Case 1), the general solution is y = C₁e²ˣ + C₂e³ˣ. The discriminant is (−5)² − 4(1)(6) = 25 − 24 = 1 > 0, confirming two distinct real roots.

Question 3: INTERMEDIATE

Solve the differential equation 2y″ + 8y′ + 8y = 0. Identify which case applies and explain why the solution takes its particular form.
Show answer
The characteristic equation is 2r² + 8r + 8 = 0. Dividing through by 2 gives r² + 4r + 4 = 0, which factors as (r + 2)² = 0. The discriminant is 4² − 4(1)(4) = 0, confirming a repeated root: r = −2. Since we need two linearly independent solutions but only have one root, we multiply the second solution by x. The general solution is y = (C₁ + C₂x)e−2xe^{−2x}. This represents critically damped behavior — the solution decays toward zero without oscillating, and the factor x ensures we have a complete basis of solutions.

Question 4: APPLIED

A mass on a spring satisfies y″ + 6y′ + 25y = 0, where y represents displacement from equilibrium. Find the general solution and describe the physical behavior of the system. Will the mass oscillate? If so, will the oscillations grow, stay constant, or die out?
Show answer
The characteristic equation is r² + 6r + 25 = 0. The discriminant is 6² − 4(1)(25) = 36 − 100 = −64 < 0, so we have complex conjugate roots. Using the quadratic formula: r = (−6 ± √(−64)) / 2 = (−6 ± 8i) / 2 = −3 ± 4i. Thus α = −3 and β = 4. The general solution is y = e−3te^{−3t}(C₁cos 4t + C₂sin 4t). Physically, the mass oscillates with an angular frequency of 4 radians per time unit (the β value). The factor e−3te^{−3t} causes these oscillations to decay exponentially — this is a damped oscillation. Since α = −3 < 0, the oscillations die out over time, and the system is underdamped.

Question 5: CRITICAL THINKING

Consider the family of ODEs y″ + by′ + 9y = 0, where b is a positive constant. (a) For what value of b does the equation transition from Case 3 (complex roots) to Case 2 (repeated root)? (b) For what values of b are the solutions oscillatory? (c) Interpret your answer physically in terms of a mass-spring-damper system.
Show answer
Here a = 1 and c = 9, so the discriminant is Δ = b² − 4(1)(9) = b² − 36. (a) The transition from complex to repeated roots occurs when Δ = 0, so b² = 36, giving b = 6 (since b > 0). (b) Solutions are oscillatory when Δ < 0, which requires b² < 36, so 0 < b < 6. When b > 6, roots are real and distinct (overdamped, no oscillation). (c) In a mass-spring-damper system, b represents the damping coefficient. When b < 6, the system is underdamped — it oscillates while gradually losing energy. At b = 6, the system is critically damped — it returns to rest as fast as possible without oscillating. When b > 6, the system is overdamped — it creeps slowly back to equilibrium. Engineers designing shock absorbers aim for b close to the critical value.

SUMMARY

Lesson Summary

Summary

The characteristic equation transforms a second-order linear homogeneous ODE with constant coefficients into a quadratic equation by substituting the trial solution y = erxe^{rx} and dividing out the common exponential factor. Starting from ay″ + by′ + cy = 0, you obtain ar² + br + c = 0 — an equation you can solve with factoring or the quadratic formula.

The discriminant Δ = b² − 4ac determines the solution type: two distinct real roots (Δ > 0) yield exponential growth/decay, a repeated root (Δ = 0) produces critically damped behavior with an extra factor of x, and complex conjugate roots (Δ < 0) generate oscillatory solutions involving sine and cosine wrapped in an exponential envelope. This single technique converts calculus into algebra and provides exact solutions that describe vibrations, electrical circuits, and countless other physical systems.

Varsity Tutors • Differential Equations • Characteristic Equation