Chapter 2: Second-Order Differential Equations

The gateway to modeling oscillations, damping, and dynamic systems

Chapter Overview

Chapter 2 introduces the general second-order linear differential equation and teaches you three complementary methods to solve it. By the end of this chapter, you will be able to solve any non-homogeneous linear second-order DE with constant coefficients, and understand how to model real-world systems like springs, dampers, and electrical circuits.

Why Study Second-Order Differential Equations?

While first-order DEs model systems with a single rate of change (like exponential growth or radioactive decay), second-order DEs model systems with two interacting effects: inertia and restoring forces. These are ubiquitous in engineering:

The General Non-Homogeneous Equation

All problems in this chapter boil down to solving:

$$a\,y'' + b\,y' + c\,y = g(t)$$

where \(a, b, c\) are constants (with \(a \neq 0\)), \(g(t)\) is the external forcing function, and \(y\) is the unknown solution we seek.

The Key Insight: Decomposition

The brilliant feature of linear differential equations is that the general solution decomposes into two independent pieces:

Fundamental Decomposition
$$y(t) = y_c(t) + y_p(t)$$
where:
  • \(y_c(t)\) — the complementary (homogeneous) solution: This is the natural dynamics of the system, determined entirely by the structure of the system itself (the coefficients \(a, b, c\)). It tells you what the system does on its own, without any external forcing. Does it oscillate? Does it decay? Does it grow? The answer lies in \(y_c\).
  • \(y_p(t)\) — the particular (forced) solution: This is the response to the external input \(g(t)\). It describes how the system reacts to the forcing function. The same system can produce different responses depending on what we force it with.

Three Analogies

Guitar String Analogy

\(y_c\): The natural frequency of the string (determined by its length, tension, and material).

\(y_p\): The specific note you hear when you pluck it in a particular way (the input matters).

Car Suspension Analogy

\(y_c\): How the springs and dampers naturally respond to a sudden impulse.

\(y_p\): How the suspension responds to the road bumps you're driving over.

System Independence

Here's the magic: \(y_c\) and \(y_p\) are independent. The natural oscillation of the system (y_c) doesn't interfere with its response to forcing (y_p). This is why linear systems are so easy to work with — you can find each piece separately, then add them together. That's superposition.

Chapter Roadmap: Four Connected Topics

This chapter is organized as a logical progression. Each section builds on the previous one and addresses a different aspect of the problem:

🎯

2.1 Homogeneous
(Constant Coeff.)

Find \(y_c\): the natural dynamics of the system using the characteristic equation.

Go to 2.1

2.2 Undetermined
Coefficients

Find \(y_p\) when \(g(t)\) is "nice" (polynomial, exponential, sinusoid). Fast method for standard inputs.

Go to 2.2
🔄

2.3 Variation of
Parameters

Find \(y_p\) for ANY forcing function \(g(t)\). The general method. Uses the Wronskian.

Go to 2.3
📐

2.4 Euler &
Variable Coeff.

When the system itself changes: coefficients depend on the independent variable.

Go to 2.4

The Logical Flow

How the methods connect:

2.1: Find \(y_c\)
2.2 & 2.3: Find \(y_p\)
Combine: \(y = y_c + y_p\)

2.2 is faster when \(g(t)\) is simple. 2.3 works for any \(g(t)\). 2.4 handles variable coefficients.

The Superposition Principle

The reason we can decompose \(y = y_c + y_p\) is that our equation is linear. This means the system respects the superposition principle:

Superposition Principle

If \(y_1(t)\) and \(y_2(t)\) are solutions to a linear differential equation, then any linear combination \(C_1 y_1(t) + C_2 y_2(t)\) is also a solution.

Applied to our problem: because the equation is linear, we can find \(y_c\) (the solution to the homogeneous equation \(ay'' + by' + cy = 0\)) and \(y_p\) (any particular solution to the non-homogeneous equation) separately, then add them to get the general solution to the full problem.

This is profound: the natural behavior of the system and its forced response are independent. A guitar string's natural vibration doesn't "know about" how you pluck it. A car's suspension has the same natural oscillation whether you drive over a pothole or a brick. The system decomposes cleanly.

This principle applies to all linear systems — mechanical, electrical, thermal, chemical. It's one of the most beautiful and practical ideas in mathematics.

Engineering Connection: The Mass-Spring-Damper System

The quintessential second-order model is the mass-spring-damper system, which appears (in different forms) in virtually every engineering discipline:

$$m\,y'' + c\,y' + k\,y = F(t)$$

where:

What Each Solution Piece Tells Us

\(y_c(t)\) — Natural Response

Describes what happens when \(F(t) = 0\). The solution depends on the discriminant \(\Delta = c^2 - 4mk\):

  • \(\Delta > 0\): Overdamped (sluggish decay)
  • \(\Delta = 0\): Critically damped (fastest decay, no oscillation)
  • \(\Delta < 0\): Underdamped (oscillates while decaying)

\(y_p(t)\) — Forced Response

Describes the system's steady-state response to the specific forcing \(F(t)\). For example:

  • A constant force: constant displacement
  • A sinusoidal force: sinusoidal response (possibly resonance)
  • An impulse: special spike response
Real-World Insight

When you design a car suspension, you choose \(m\), \(c\), and \(k\) so that \(y_c\) decays quickly (you want the oscillation to stop fast). But you also need \(y_p\) to be small (you don't want the car to bounce violently over bumps). This is the engineer's balancing act — two competing goals, both captured by our decomposition!

Constant vs Variable Coefficients: A Preview

Sections 2.1—2.3: Constant Coefficients

The methods in sections 2.1, 2.2, and 2.3 all assume that \(a\), \(b\), and \(c\) are numbers (constants). This means the system itself is fixed — it doesn't change over time. The characteristic equation, the method of undetermined coefficients, and the Wronskian all depend on this simplicity.

Section 2.4: Variable Coefficients

In section 2.4, we'll encounter equations like:

$$x^2 y'' + x\,y' + y = 0$$

Here, the coefficients depend on the independent variable \(x\). The system itself is changing! This is harder because:

But don't worry — the fundamental ideas (finding \(y_c\) and \(y_p\), superposition) still apply.

وَقُل رَّبِّ زِدْنِي عِلْمًا
"And say: My Lord, increase me in knowledge."
— Quran, Surah Taha 20:114

"The study of differential equations is the study of the universe itself, for every natural phenomenon can be expressed through the language of change and motion."

— Joseph-Louis Lagrange (1736–1813), pioneer of differential equations and mechanics

Getting Started

To make the most of this chapter, follow these steps in order:

  1. Start with 2.1 (Homogeneous equations): Learn the characteristic equation and the three cases. This is the foundation for everything else.
  2. Move to 2.2 (Undetermined Coefficients): Practice finding particular solutions for common forcing functions. This method is fast and intuitive.
  3. Study 2.3 (Variation of Parameters): Understand the Wronskian method, which works for ANY forcing function. This is more general but also more computational.
  4. Explore 2.4 (Euler Equations & Variable Coefficients): See how these ideas extend when the coefficients change.
  5. Tie it together: Return to this overview and see how all four pieces fit into the big picture.

Each section is self-contained but builds on the previous one. Don't skip 2.1 — the characteristic equation is absolutely essential.

Start with Section 2.1