Differential Equations • Second-Order Linear ODEs

Distinct Real Roots

Solving second-order differential equations when the characteristic equation yields two different real solutions.

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 have been fascinated by equations that describe how things change. A differential equation is an equation that involves an unknown function and its derivatives — essentially, it tells you how a quantity and its rate of change are related. Problems involving vibrating strings, swinging pendulums, and the motion of planets all led scientists to develop methods for solving these equations. The story of distinct real roots begins with the idea that certain differential equations can be reduced to simpler algebraic ones.

1676 • Leibniz & Newton Invent Calculus

Gottfried Wilhelm Leibniz and Isaac Newton independently developed calculus, providing the mathematical language needed to write and study differential equations for the first time.

1743 • Euler's Characteristic Equation

Leonhard Euler discovered that solutions to linear ODEs with constant coefficients could be found by solving a polynomial — the characteristic equation. This transformed differential equations into algebra.

1750 • d'Alembert's General Solutions

Jean le Rond d'Alembert formalized the idea that a second-order linear ODE has a general solution built from two independent solutions, laying the groundwork for superposition.

1800s • Engineering Applications Flourish

As the Industrial Revolution progressed, engineers used second-order ODEs to model everything from bridge vibrations to electrical circuits, making solution techniques like distinct real roots essential practical tools.

The key question that Euler's work addressed is this: given a second-order linear ODE with constant coefficients, how do we find its general solution without guessing? The answer lies in converting the problem into a quadratic equation. When that quadratic has two distinct real roots, we get the simplest and most elegant type of solution — a combination of two exponential functions. This is the case we explore in this lesson.

SECTION 2

Core Principles & Definitions

Before diving into the solution method, let's establish the essential ideas. A second-order linear ODE with constant coefficients has the general form ay″ + by′ + cy = 0, where a, b, and c are real constants and a ≠ 0. The word "homogeneous" means the right-hand side is zero. Our goal is to find all functions y(x) that satisfy this equation.

1

Characteristic Equation

Replace y″ with r², y′ with r, and y with 1 to form the quadratic ar² + br + c = 0. The roots of this polynomial determine the structure of the solution.
2

Distinct Real Roots

When the discriminant b² − 4ac > 0, the characteristic equation yields two different real roots r₁ and r₂. This is the case that produces the simplest general solution.
3

General Solution Form

With distinct real roots r₁ and r₂, the general solution is y = C₁er1xe^{r₁x} + C₂er2xe^{r₂x}, where C₁ and C₂ are arbitrary constants determined by initial conditions.
4

Linear Independence

The two functions er1xe^{r₁x} and er2xe^{r₂x} are linearly independent when r₁ ≠ r₂. This means neither is a constant multiple of the other, so together they span all possible solutions.
✦

KEY TAKEAWAY

Think of solving a second-order ODE like tuning a radio to pick up two separate frequencies. When the characteristic equation has distinct real roots, you get two independent "channels" — er₁x and er₂x. The general solution mixes these two channels in any proportion you like (using C₁ and C₂), just like adjusting the volume on each frequency. The initial conditions are what tell you exactly how much of each channel to include.

SECTION 3

Visual Explanation

The diagram below shows how the process works from start to finish. You begin with a second-order ODE, convert it to a characteristic (quadratic) equation, find two distinct real roots, and then write the general solution. The flowchart makes the logical chain clear.

From ODE to General Solution: Distinct Real RootsStart: ODEay″ + by′ + cy = 0Form Characteristic Equationar² + br + c = 0Check Discriminant: b² − 4acb² − 4ac > 0 → Two distinct real rootsFind Roots r₁ and r₂r = (−b ± √(b²−4ac)) / 2ay = C₁e^(r₁x) + C₂e^(r₂x)
The flowchart traces the four key steps: start with the ODE, form the characteristic equation by substituting r for derivatives, check that the discriminant is positive (ensuring distinct real roots), find the roots using the quadratic formula, and write the general solution as a sum of two exponentials.

Notice how each box feeds into the next. The critical decision point is the discriminant check. If b² − 4ac is positive, you have two distinct real roots and can proceed directly to the general solution shown in the pink box at the bottom. If the discriminant were zero or negative, you'd need a different solution technique — but that's a story for another lesson.

SECTION 4

Mathematical Framework

Let's formalize the method. We start with a second-order linear homogeneous ODE with constant coefficients. Our strategy is to guess a solution of the form y = erx and see what value of r makes it work. This guess is motivated by the fact that exponential functions have the special property that their derivatives are proportional to themselves.

SECOND-ORDER LINEAR ODE

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

Here a, b, and c are real constants with a ≠ 0. The function y = y(x) is the unknown, and primes denote derivatives with respect to x.

If y = erx, then y′ = rerx and y″ = r²erx. Substituting into the ODE gives ar²erx + brerx + cerx = 0. Since erx is never zero, we can factor it out, leaving the characteristic equation.

CHARACTERISTIC EQUATION

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

This is a standard quadratic in r. The values of r that satisfy this equation are called the characteristic roots (or eigenvalues) of the ODE.

DISCRIMINANT CONDITION

Δ=b2−4ac>0→twodistinctrealrootsΔ = b² − 4ac > 0 → two distinct real roots

The discriminant Δ = b² − 4ac determines the nature of the roots. When Δ > 0, the quadratic formula yields r₁ = (−b + √Δ) / (2a) and r₂ = (−b − √Δ) / (2a), with r₁ ≠ r₂.

GENERAL SOLUTION — DISTINCT REAL ROOTS

y(x)=C1e(r1x)+C2e(r2x)y(x) = C₁e^(r₁x) + C₂e^(r₂x)

C₁ and C₂ are arbitrary constants. If you are given initial conditions such as y(0) = y₀ and y′(0) = y₀′, you can solve for C₁ and C₂ to obtain a unique particular solution.

SECTION 5

Classifying Characteristic Roots

The discriminant of the characteristic equation acts like a sorting hat: it tells you which category your ODE falls into and, consequently, what form the general solution takes. Understanding all three cases helps you appreciate why the distinct real roots case is the most straightforward.

Three Cases for the Characteristic Equation ar² + br + c = 0CASE 1: Δ > 0Distinct Real Rootsr₁ ≠ r₂, both realSolution:y = C₁e^(r₁x) + C₂e^(r₂x)Example: r = 2, r = −3★ THIS LESSON ★CASE 2: Δ = 0Repeated Real Rootr₁ = r₂ = rSolution:y = (C₁ + C₂x)e^(rx)Example: r = 3 (double)CASE 3: Δ < 0Complex Conjugate Rootsr = α ± βiSolution:y = e^(αx)(C₁cos βx + C₂sin βx)Example: r = 1 ± 2iSolution Behavior ComparisonDistinct Real0xRepeated Real0xComplex Conjugate0x
Top row: the three cases based on the discriminant, with the solution form for each. Bottom row: sketches showing typical solution shapes. Distinct real roots (Case 1) produce exponential curves that grow or decay smoothly. Repeated roots (Case 2) produce similar shapes but multiplied by x. Complex roots (Case 3) produce oscillating behavior.
PropertyDistinct Real Roots (Δ > 0)Repeated Root (Δ = 0)Complex Roots (Δ < 0)
Rootsr₁ ≠ r₂, both realr₁ = r₂ = rr = α ± βi
Solution formC₁er1xe^{r₁x} + C₂er2xe^{r₂x}(C₁ + C₂x)erxe^{rx}eαxe^{αx}(C₁cos βx + C₂sin βx)
BehaviorExponential growth/decayModified exponentialOscillation (damped or growing)

Summary of the three characteristic root cases

SECTION 6

Worked Example

Let's walk through a complete example with initial conditions so you can see every step in action.

Solve y″ − 5y′ + 6y = 0, y(0) = 2, y′(0) = 3

  1. 1

    Step 1 — Write the Characteristic Equation

    Replace y″ with r², y′ with r, and y with 1. The ODE y″ − 5y′ + 6y = 0 becomes the quadratic equation:
    r² − 5r + 6 = 0
  2. 2

    Step 2 — Compute the Discriminant

    Identify a = 1, b = −5, c = 6. Compute the discriminant Δ = b² − 4ac = (−5)² − 4(1)(6) = 25 − 24 = 1. Since Δ = 1 > 0, we have two distinct real roots.
    Δ = 1 > 0 ✓
  3. 3

    Step 3 — Find the Roots

    Factor the quadratic: r² − 5r + 6 = (r − 2)(r − 3) = 0. Alternatively, use the quadratic formula: r = (5 ± √1) / 2. Either way, we get r₁ = 2 and r₂ = 3.
    r₁ = 2, r₂ = 3
  4. 4

    Step 4 — Write the General Solution

    With distinct real roots r₁ = 2 and r₂ = 3, the general solution is:
    y(x) = C₁e2xe^{2x} + C₂e3xe^{3x}
  5. 5

    Step 5 — Apply Initial Condition y(0) = 2

    Substitute x = 0: y(0) = C₁e⁰ + C₂e⁰ = C₁ + C₂ = 2. This gives us equation ①: C₁ + C₂ = 2.
    C₁ + C₂ = 2 …①
  6. 6

    Step 6 — Apply Initial Condition y′(0) = 3

    First, differentiate: y′(x) = 2C₁e2xe^{2x} + 3C₂e3xe^{3x}. Now substitute x = 0: y′(0) = 2C₁ + 3C₂ = 3. This gives equation ②: 2C₁ + 3C₂ = 3.
    2C₁ + 3C₂ = 3 …②
  7. 7

    Step 7 — Solve the System for C₁ and C₂

    From ①: C₁ = 2 − C₂. Substitute into ②: 2(2 − C₂) + 3C₂ = 3 → 4 − 2C₂ + 3C₂ = 3 → C₂ = −1. Then C₁ = 2 − (−1) = 3.
    C₁ = 3, C₂ = −1
  8. 8

    Step 8 — Write the Particular Solution

    Substitute the constants back into the general solution:
    y(x) = 3e2x3e^{2x} − e3xe^{3x}
💡

Verification Tip

You can always check your answer by plugging y = 3e2x − e3x back into the original ODE. Compute y″ − 5y′ + 6y and confirm it equals zero. Also verify that y(0) = 3 − 1 = 2 ✓ and y′(0) = 6 − 3 = 3 ✓.

SECTION 7

Strengths & Limitations

The characteristic equation method is powerful but not universal. Understanding its strengths and limitations will help you know when to use it and when a different approach is needed.

StrengthsLimitations
Converts a differential equation into simple algebra — just solve a quadratic.Only works for linear ODEs with constant coefficients; if a, b, or c are functions of x, this method fails.
Gives an exact, closed-form solution — no approximation needed.Only applies to homogeneous equations (right-hand side equals zero). Non-homogeneous equations require additional techniques.
Initial conditions are easy to apply — just solve a 2×2 system of linear equations.When the discriminant is zero or negative, you need modified techniques (repeated roots or complex roots).
The solution clearly shows exponential growth or decay behavior, making physical interpretation straightforward.For higher-order ODEs, the characteristic equation becomes a higher-degree polynomial that may not factor easily.

Strengths vs. Limitations of the Distinct Real Roots Method

✦

KEY TAKEAWAY

The distinct real roots method is like having a master key that opens a specific type of lock. It works perfectly when the lock is a second-order, linear, constant-coefficient, homogeneous ODE with a positive discriminant. For other lock types — variable coefficients, non-homogeneous terms, or non-positive discriminants — you'll need different keys from your mathematical toolkit.

SECTION 8

Connection to Advanced Theory

The distinct real roots case is your entry point into a much larger landscape. As you advance in differential equations, you'll encounter situations that build directly on this foundation. The table below shows how this lesson connects to more advanced topics.

This LessonAdvanced Extension
Homogeneous equation (right side = 0)Non-homogeneous equations (right side ≠ 0), solved using undetermined coefficients or variation of parameters
Constant coefficients a, b, cVariable coefficients (Cauchy-Euler equations, power series solutions)
Second-order (highest derivative is y″)Higher-order linear ODEs with nth-degree characteristic polynomials
Two arbitrary constants C₁, C₂Systems of ODEs using matrices and eigenvalues — same idea, but in multiple dimensions
Exponential solutions erxe^{rx}Laplace transform methods that handle initial conditions automatically

How distinct real roots connect to advanced differential equations topics

One especially beautiful connection is to linear algebra. When you study systems of differential equations, you'll see that the characteristic equation of an ODE is essentially the same as finding eigenvalues of a matrix. Distinct real roots correspond to distinct eigenvalues, and the exponential solutions correspond to eigenvectors. The ideas you're learning now will reappear in a powerful new form.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words why we assume a solution of the form y = erx when solving a second-order linear ODE with constant coefficients. What property of exponential functions makes this guess work?
Show answer
The exponential function erx has the special property that its derivatives are proportional to itself: the first derivative is rerx and the second derivative is r²erx. When you substitute into the ODE, every term contains the common factor erx, which can be factored out (since it's never zero). This reduces the differential equation to a polynomial equation in r, which is much easier to solve. No other family of functions simplifies the equation so cleanly.

Question 2: BASIC CALCULATION

Find the general solution of y″ − y′ − 6y = 0.
Show answer
Form the characteristic equation: r² − r − 6 = 0. Factor: (r − 3)(r + 2) = 0, so r₁ = 3 and r₂ = −2. Check the discriminant: (−1)² − 4(1)(−6) = 1 + 24 = 25 > 0, confirming distinct real roots. The general solution is y(x) = C₁e3x + C₂e−2x, where C₁ and C₂ are arbitrary constants.

Question 3: INTERMEDIATE

Solve the initial value problem: 2y″ + y′ − 3y = 0, y(0) = 1, y′(0) = 4.
Show answer
Characteristic equation: 2r² + r − 3 = 0. Using the quadratic formula: r = (−1 ± √(1 + 24)) / 4 = (−1 ± 5) / 4. So r₁ = 1 and r₂ = −3/2. General solution: y = C₁ex + C₂e−(3/2)x. Apply y(0) = 1: C₁ + C₂ = 1. Differentiate: y′ = C₁ex − (3/2)C₂e−(3/2)x. Apply y′(0) = 4: C₁ − (3/2)C₂ = 4. Solving: from the first equation C₁ = 1 − C₂, substitute to get 1 − C₂ − (3/2)C₂ = 4, so −(5/2)C₂ = 3, giving C₂ = −6/5. Then C₁ = 1 + 6/5 = 11/5. The particular solution is y = (11/5)ex − (6/5)e−(3/2)x.

Question 4: APPLIED

A certain RC circuit's voltage V(t) satisfies V″ − 7V′ + 10V = 0, where t is in seconds. If V(0) = 5 volts and V′(0) = 1 volt/second, find V(t). Then determine the voltage at t = 0.5 seconds (round to two decimal places).
Show answer
Characteristic equation: r² − 7r + 10 = 0. Factor: (r − 2)(r − 5) = 0, so r₁ = 2 and r₂ = 5. General solution: V(t) = C₁e2t + C₂e5t. Apply V(0) = 5: C₁ + C₂ = 5. Differentiate: V′(t) = 2C₁e2t + 5C₂e5t. Apply V′(0) = 1: 2C₁ + 5C₂ = 1. Solving: C₁ = 8, C₂ = −3. So V(t) = 8e2t − 3e5t. At t = 0.5: V(0.5) = 8e¹ − 3e2.5 ≈ 8(2.718) − 3(12.182) ≈ 21.746 − 36.547 ≈ −14.80 volts. The negative value indicates the voltage has reversed direction due to the fast-growing e5t term dominating.

Question 5: CRITICAL THINKING

Consider the ODE y″ + by′ − 2y = 0. For what values of the constant b will this equation have distinct real roots? Write the general solution in terms of b for those values, and describe qualitatively how the behavior of the solution changes as b increases from 0.
Show answer
The characteristic equation is r² + br − 2 = 0, with discriminant Δ = b² − 4(1)(−2) = b² + 8. Since b² ≥ 0, we always have Δ = b² + 8 ≥ 8 > 0 for any real value of b. Therefore, this equation has distinct real roots for all real values of b. The roots are r = (−b ± √(b² + 8)) / 2. Notice that √(b² + 8) > |b| always, so one root is always positive and one is always negative. This means the general solution y = C₁er₁x + C₂er₂x always contains one growing and one decaying exponential, regardless of b. As b increases from 0, the negative root becomes more negative (faster decay) while the positive root decreases (slower growth), shifting the balance of the solution toward decay.

SUMMARY

Lesson Summary

Summary

When you encounter a second-order linear homogeneous ODE with constant coefficients — ay″ + by′ + cy = 0 — the solution strategy is to form the characteristic equation ar² + br + c = 0 by replacing derivatives with powers of r. When the discriminant b² − 4ac is positive, the quadratic yields two distinct real roots r₁ and r₂, and the general solution is y = C₁er1xe^{r₁x} + C₂er2xe^{r₂x}.

The two exponential functions are linearly independent because r₁ ≠ r₂, which guarantees they form a complete basis for all solutions. To find a particular solution, apply initial conditions to set up and solve a system of two equations for C₁ and C₂. This method works because the exponential function's derivatives are proportional to itself, cleanly converting a calculus problem into an algebra problem.

Varsity Tutors • Differential Equations • Distinct Real Roots