DIFFERENTIAL EQUATIONS • SECOND-ORDER LINEAR ODES

Complex Roots & Oscillations — Complex Roots and Oscillations

Discover how imaginary numbers in a characteristic equation produce the sine and cosine waves that model springs, circuits, and sound.

Historical Context & Motivation

Humans have always been fascinated by things that repeat — the swing of a pendulum, the vibrations of a guitar string, and the ebb and flow of ocean tides. By the 1700s, mathematicians began writing equations that described these oscillatory motions. They found that when they solved certain equations, something strange happened: the square root of a negative number appeared. Rather than throwing the answer away, they discovered that these complex numbers actually held the key to understanding waves, vibrations, and oscillations in the physical world.

1572
Bombelli Embraces Imaginary Numbers
Italian mathematician Rafael Bombelli published rules for manipulating √(−1), showing that these 'impossible' numbers followed consistent algebra and could solve cubic equations.
1748
Euler's Formula
Leonhard Euler proved the landmark identity e = cos θ + i sin θ, connecting exponentials to sines and cosines and giving complex roots a geometric meaning.
1822
Fourier & Vibration Theory
Joseph Fourier showed that any vibration can be broken into sine and cosine components, reinforcing why oscillatory solutions to differential equations matter in physics and engineering.
1880s
Electrical Oscillations
Heinrich Hertz confirmed electromagnetic waves, and engineers began modeling AC circuits with the same second-order ODEs whose complex roots produce sine–cosine solutions.

The central question this lesson addresses is: what happens when the characteristic equation of a second-order ODE has no real roots? As you will see, the answer is oscillation — the very phenomenon that underlies springs, pendulums, sound, and alternating current.

Core Principles & Definitions

Before diving into examples, let's pin down the vocabulary and the big ideas. A second-order linear ODE with constant coefficients has the form ay″ + by′ + cy = 0, where a, b, and c are constants. Solving it starts with a trick: guess that y = ert and substitute, which gives you a quadratic in r called the characteristic equation. The nature of the roots of that quadratic — real vs. complex — determines the shape of the solution.

1

Characteristic Equation

Replace y″ with r², y′ with r, and y with 1 in the ODE. The resulting quadratic ar² + br + c = 0 is the characteristic equation.
2

Discriminant Test

The discriminant Δ = b² − 4ac tells you the root type. When Δ < 0, no real roots exist; instead you get a conjugate pair r = α ± βi, where i = √(−1).
3

Euler's Formula Bridge

Euler's formula e = cos θ + i sin θ converts complex exponentials into real-valued sines and cosines — the language of oscillation.
4

General Solution Form

When the roots are α ± βi, the general solution is y = eαt(C₁ cos βt + C₂ sin βt). The exponential controls growth or decay; the trig functions produce waves.
5

Undamped vs. Damped

If α = 0, oscillations continue forever (undamped). If α < 0, the amplitude shrinks over time — the system is damped.
KEY TAKEAWAY
Think of a playground swing. Give it one push and it swings back and forth — that repeating motion is an oscillation. In our math, sines and cosines are the language that describes that swing. When the characteristic equation's discriminant is negative, imaginary roots appear, and they are nature's way of telling us: this system oscillates.

Visualizing Oscillatory Solutions

The diagram below plots two solutions side by side. On the left you see the undamped case (α = 0) where the wave oscillates at constant amplitude. On the right you see the damped case (α < 0) where an exponential envelope squeezes the wave toward zero. Both arise from complex roots of the characteristic equation.

Left: when the real part α = 0, the solution is a pure sine–cosine wave that repeats forever. Right: when α < 0, the exponential envelope (dashed amber curves) causes the oscillation to die out over time, modeling friction or resistance.

Notice that in both cases the solution passes through zero at regular intervals — this periodic behavior is the hallmark of complex roots. The imaginary part β determines how fast the wave oscillates (its frequency), while the real part α determines whether the amplitude stays constant, grows, or decays.

Mathematical Framework

Let's walk through the algebra step by step. Start with a general homogeneous second-order ODE with constant coefficients.

STANDARD FORM
ay″ + by′ + cy = 0
a, b, c are real constants with a ≠ 0. The prime notation (′) means derivative with respect to t.

We guess a solution of the form y = ert. Substituting into the ODE and factoring out ert (which is never zero) gives the characteristic equation.

CHARACTERISTIC EQUATION
ar² + br + c = 0
Use the quadratic formula: r = (−b ± √(b² − 4ac)) / (2a). The discriminant Δ = b² − 4ac decides the root type.

When Δ < 0, the square root of a negative number appears. We write √(Δ) = √(−|Δ|) = i√|Δ|, so the two roots are:

COMPLEX CONJUGATE ROOTS
r = α ± βi where α = −b/(2a), β = √(4ac − b²)/(2a)
α is the real part (controls decay/growth). β is the imaginary part (controls oscillation frequency). The two roots always come as a conjugate pair.

Plugging the complex roots into y = ert and applying Euler's formula converts the complex exponentials into real-valued functions.

GENERAL SOLUTION — COMPLEX ROOTS
y(t) = eᵅᵗ (C₁ cos βt + C₂ sin βt)
C₁ and C₂ are arbitrary constants determined by initial conditions. The factor eᵅᵗ scales the amplitude; cos βt and sin βt produce the oscillation.

Classifying Roots & Their Solutions

The discriminant Δ = b² − 4ac acts like a traffic signal: it directs you to one of three different solution types. The table below summarizes all three cases so you can see how complex roots fit into the bigger picture.

Three cases for the roots of ar² + br + c = 0
DiscriminantRoot TypeGeneral SolutionBehavior
Δ > 0Two distinct real roots r₁, r₂y = C₁e^(r₁t) + C₂e^(r₂t)Exponential growth or decay — no oscillation
Δ = 0One repeated real root ry = (C₁ + C₂t)e^(rt)Critically damped — fastest return without oscillating
Δ < 0Complex conjugate pair α ± βiy = eᵅᵗ(C₁cos βt + C₂sin βt)Oscillation — damped, undamped, or growing
The complex plane shows three conjugate root pairs. Roots on the imaginary axis give pure oscillation. Roots in the left half-plane give damped oscillation. Roots in the right half-plane give growing oscillation.

The position of the roots on the complex plane tells the whole story. The farther a root sits from the real axis (larger β), the faster the system oscillates. The farther a root sits to the left (more negative α), the more rapidly the oscillation dies out. If the root sits exactly on the imaginary axis, the oscillation neither grows nor decays — it persists forever, like a frictionless pendulum.

Worked Example

Let's solve a complete problem from start to finish. We will find the general solution to the ODE y″ + 2y′ + 5y = 0 and then apply initial conditions y(0) = 3 and y′(0) = −1.

Solve y″ + 2y′ + 5y = 0, y(0) = 3, y′(0) = −1
1
Step 1 — Write the Characteristic EquationReplace y″ → r², y′ → r, y → 1 to get: r² + 2r + 5 = 0. Here a = 1, b = 2, c = 5.
Characteristic equation: r² + 2r + 5 = 0
2
Step 2 — Compute the DiscriminantΔ = b² − 4ac = (2)² − 4(1)(5) = 4 − 20 = −16. Since Δ < 0, the roots are complex.
Δ = −16 → complex roots
3
Step 3 — Find the Rootsr = (−2 ± √(−16)) / (2×1) = (−2 ± 4i) / 2 = −1 ± 2i. So α = −1 and β = 2.
r = −1 ± 2i
4
Step 4 — Write the General SolutionUsing the formula y = eᵅᵗ(C₁ cos βt + C₂ sin βt) with α = −1 and β = 2:
y(t) = e^(−t)(C₁ cos 2t + C₂ sin 2t)
5
Step 5 — Apply Initial Condition y(0) = 3Plug in t = 0: y(0) = e⁰(C₁ cos 0 + C₂ sin 0) = C₁ × 1 + C₂ × 0 = C₁. So C₁ = 3.
C₁ = 3
6
Step 6 — Apply Initial Condition y′(0) = −1First, find y′(t) using the product rule: y′(t) = −e^(−t)(C₁ cos 2t + C₂ sin 2t) + e^(−t)(−2C₁ sin 2t + 2C₂ cos 2t). At t = 0: y′(0) = −C₁ + 2C₂. Set equal to −1: −3 + 2C₂ = −1, so 2C₂ = 2, giving C₂ = 1.
C₂ = 1
7
Step 7 — State the Particular SolutionSubstitute C₁ = 3 and C₂ = 1 back into the general solution.
y(t) = e^(−t)(3 cos 2t + sin 2t)
💡 Interpretation
Because α = −1 < 0, this solution describes a damped oscillation. The amplitude shrinks by a factor of e each second. The oscillation frequency is β = 2 rad/s, meaning one full cycle takes π ≈ 3.14 seconds. Think of a car's shock absorber: the bouncing fades out quickly while still oscillating.

Strengths, Limitations & Comparisons

The complex-root method is powerful, but understanding where it excels and where its limits lie will help you choose the right approach for different problems.

Strengths and limitations of the complex-root approach
AspectStrengthsLimitations
ApplicabilityWorks for any constant-coefficient homogeneous 2nd-order ODE. One formula covers all complex-root cases.Only applies when coefficients are constants. Variable-coefficient ODEs need other methods (e.g., series solutions).
Physical insightDirectly reveals frequency (β) and damping rate (α) — two quantities engineers need instantly.Doesn't handle forced oscillations (nonhomogeneous equations) on its own; needs undetermined coefficients or variation of parameters.
ComplexityBoils down to the quadratic formula — a tool you already know from Algebra 1.Higher-order ODEs (3rd, 4th order) require factoring higher-degree polynomials, which can be much harder.
Real-world modelingAccurately models springs, pendulums, RLC circuits, and many vibration problems.Assumes linearity — nonlinear oscillators (like a large-angle pendulum) need numerical methods.
KEY TAKEAWAY
Think of this method as a Swiss Army knife that's perfect for a specific category of problems: constant-coefficient, linear, homogeneous second-order ODEs. Outside that category you'll need other tools — but inside it, this approach is unbeatable because it instantly converts abstract algebra into concrete physical behavior (frequency and damping).

Connection to Advanced Theory

The ideas you've learned here are the stepping stones to some of the most important topics in higher mathematics and engineering. The table below previews how the complex-root concept extends.

From this lesson to advanced topics
This LessonAdvanced Extension
Homogeneous equation (right side = 0)Nonhomogeneous equations (forced oscillations) — solved via undetermined coefficients or variation of parameters
Constant coefficientsVariable-coefficient ODEs (Cauchy–Euler, Bessel) — solved via power series or special functions
α ± βi gives one frequencyFourier analysis decomposes any signal into many frequencies — a superposition of the solutions you already know
Single ODESystems of ODEs use eigenvalues (complex eigenvalues produce oscillatory modes), connecting to linear algebra
Time-domain solution y(t)Laplace transforms convert the ODE into algebra in the s-domain, making complex roots even easier to spot

Every time you encounter a vibrating bridge, an electric guitar, or noise-canceling headphones, the math behind the scenes involves complex roots and their oscillatory solutions. Mastering this concept now gives you a serious head start for college-level engineering, physics, and applied mathematics.

Practice Problems

PROBLEM 1CONCEPTUAL
A second-order ODE has characteristic equation r² + 9 = 0. Without solving for y(t), describe the type of motion this equation predicts and explain your reasoning.
PROBLEM 2BASIC CALCULATION
Find the general solution to y″ + 4y′ + 13y = 0.
PROBLEM 3INTERMEDIATE
Solve the initial value problem: y″ + 6y′ + 25y = 0, y(0) = 0, y′(0) = 8.
PROBLEM 4APPLIED
A spring-mass system obeys mẍ + bẋ + kx = 0 with m = 1 kg, b = 2 N·s/m, and k = 10 N/m. The mass is pulled 0.5 m from equilibrium and released from rest. Find x(t) and determine how many seconds until the amplitude drops below 0.05 m.
PROBLEM 5CRITICAL THINKING
Consider the family of ODEs y″ + by′ + 4y = 0, where b is a non-negative parameter. For what value of b does the transition from oscillatory to non-oscillatory behavior occur? Explain what happens physically as b increases from 0, passes through this critical value, and continues beyond it.

Lesson Summary

A second-order linear ODE with constant coefficients of the form ay″ + by′ + cy = 0 is solved by forming its characteristic equation ar² + br + c = 0. When the discriminant b² − 4ac is negative, the roots form a complex conjugate pair r = α ± βi. Through Euler's formula, the complex exponentials convert into the real-valued general solution y(t) = eᵅᵗ(C₁ cos βt + C₂ sin βt), where C₁ and C₂ are determined by initial conditions.

The real part α controls whether the oscillation is damped (α < 0), undamped (α = 0), or growing (α > 0), while the imaginary part β sets the angular frequency of the oscillation. This framework models real-world systems such as springs, pendulums, and electrical circuits, and lays the foundation for advanced topics like forced oscillations, Fourier analysis, and Laplace transforms.

Varsity Tutors • Differential Equations • Complex Roots & Oscillations