Sections 5.2 & 9.2 · Differential Equations

Constant Coefficient
Homogeneous Equations

A first-principles field guide. We build everything from one simple question: what function looks the same after you differentiate it?

5.2.1The auxiliary equation
5.2.2Real, complex & repeated solutions
5.2.3General solution & IVPs
§0

What kind of equation are we solving?

Before we do any algebra, let's understand what we're looking at. We have a second-order (or higher) ODE that looks like this:

The general form
$$a y'' + b y' + c y = 0$$

Let's decode the vocabulary word by word.

🔑 Vocabulary
Constant coefficients means the numbers \(a\), \(b\), \(c\) are just plain numbers — not functions of \(x\). Compare \(2y'' + 3y' + y = 0\) (constant) vs \(x^2 y'' + xy' = 0\) (not constant — coefficients depend on \(x\)).
🔑 Vocabulary
Homogeneous here means the right-hand side is zero. Nothing is "driving" the system from outside. The equation describes the system's natural behavior when left alone — like a pendulum swinging freely with no push.

So we are asking: what function \(y(x)\) naturally satisfies this equation? In other words — what shape of function, when you mix it with its own derivatives in this proportion, gives you zero?

🧠 Physical intuition
Think of a spring-mass system. The equation \(my'' + by' + ky = 0\) says: mass × acceleration + damping × velocity + stiffness × position = 0. This is just Newton's law with everything on the left. Solving the ODE tells you how the mass moves in time.
§1

5.2.1 — The Auxiliary (Characteristic) Equation

Here is the key insight that unlocks everything. Ask yourself: is there any function whose derivatives look exactly like itself (just scaled)?

💡 The big idea
Yes — and there's only one family of functions with this property: exponentials. If \(y = e^{rx}\), then \(y' = re^{rx}\) and \(y'' = r^2 e^{rx}\). Each derivative just multiplies by \(r\). The shape doesn't change — it just gets scaled.

This is the "guess" (mathematicians call it an ansatz — a German word for "starting point"). Let's plug it in and see what happens.

1
Start with the guess: $$y = e^{rx}$$
// the only function whose shape survives differentiation
2
Compute the derivatives: $$y' = r e^{rx}, \quad y'' = r^2 e^{rx}$$
// chain rule — each differentiation multiplies by r
3
Substitute into \(ay'' + by' + cy = 0\): $$a(r^2 e^{rx}) + b(r e^{rx}) + c(e^{rx}) = 0$$
// replacing each piece with what we computed
4
Factor out \(e^{rx}\): $$e^{rx}(ar^2 + br + c) = 0$$
// e^{rx} appears in every term, pull it out front
5
Since \(e^{rx}\) is never zero, the bracket must be zero: $$\boxed{ar^2 + br + c = 0}$$
// e^{rx} > 0 always. So the only way the product = 0 is if the bracket = 0.
✅ Result
This is the characteristic equation (also called the auxiliary equation). It's just an algebraic quadratic in \(r\). Solving it gives us the values of \(r\) that make \(y = e^{rx}\) a solution.

Notice what just happened: we turned a differential equation into an algebraic equation. That's a huge win — algebra is much easier than calculus.

Now we solve \(ar^2 + br + c = 0\) using the quadratic formula:

Quadratic formula applied to the characteristic equation
$$r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

The discriminant \(\Delta = b^2 - 4ac\) is the fork in the road. It tells us whether the roots are real and distinct, complex conjugates, or repeated. Each case gives a different family of solutions.

Case I
Distinct Real Roots
Δ > 0

Two different real values \(r_1 \neq r_2\). Solutions oscillate or grow/decay without oscillation.

Case II
Complex Conjugate Roots
Δ < 0

Two complex roots \(r = \alpha \pm \beta i\). Solutions involve oscillations — sines and cosines.

Case III
Repeated Real Root
Δ = 0

One root \(r_1 = r_2\). Need a second independent solution — a special trick required.

§2

5.2.2 — Case I: Distinct Real Roots

If \(\Delta > 0\), the quadratic formula gives two different real numbers \(r_1\) and \(r_2\). Each gives a valid solution:

Two independent solutions
$$y_1 = e^{r_1 x}, \qquad y_2 = e^{r_2 x}$$

By the superposition principle (which holds because our ODE is linear), any linear combination of solutions is also a solution. So the general solution is:

General solution — Case I
$$y(x) = C_1 e^{r_1 x} + C_2 e^{r_2 x}$$
Proof Why is \(C_1 e^{r_1 x} + C_2 e^{r_2 x}\) always a solution?

We need to verify that \(y = C_1 e^{r_1 x} + C_2 e^{r_2 x}\) satisfies \(ay'' + by' + cy = 0\).

Compute the derivatives:

$$y' = C_1 r_1 e^{r_1 x} + C_2 r_2 e^{r_2 x}$$ $$y'' = C_1 r_1^2 e^{r_1 x} + C_2 r_2^2 e^{r_2 x}$$

Substitute into the ODE:

$$a(C_1 r_1^2 e^{r_1 x} + C_2 r_2^2 e^{r_2 x}) + b(C_1 r_1 e^{r_1 x} + C_2 r_2 e^{r_2 x}) + c(C_1 e^{r_1 x} + C_2 e^{r_2 x}) = 0$$

Group by \(C_1\) terms and \(C_2\) terms:

$$C_1 e^{r_1 x}(ar_1^2 + br_1 + c) + C_2 e^{r_2 x}(ar_2^2 + br_2 + c) = 0$$

But \(r_1\) and \(r_2\) are roots of \(ar^2 + br + c = 0\), so both brackets equal zero:

$$C_1 e^{r_1 x} \cdot 0 + C_2 e^{r_2 x} \cdot 0 = 0 \quad \checkmark$$

The verification works exactly because \(r_1, r_2\) were chosen to kill the bracket. This is why the characteristic equation matters.

Proof Why do we need two independent solutions? (Linear independence)

A second-order ODE needs two arbitrary constants to describe all possible solutions (think: one constant to fix the starting position, one to fix the starting velocity). For this to work, our two solutions must be genuinely different — not just scalar multiples of each other.

Two functions \(y_1, y_2\) are linearly independent if the only way to write \(c_1 y_1 + c_2 y_2 = 0\) for all \(x\) is \(c_1 = c_2 = 0\).

We check this using the Wronskian:

$$W(y_1, y_2) = \begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix} = y_1 y_2' - y_2 y_1'$$

For \(y_1 = e^{r_1 x}\) and \(y_2 = e^{r_2 x}\):

$$W = e^{r_1 x} \cdot r_2 e^{r_2 x} - e^{r_2 x} \cdot r_1 e^{r_1 x}$$ $$W = (r_2 - r_1) e^{(r_1 + r_2)x}$$

Since \(r_1 \neq r_2\), we have \(r_2 - r_1 \neq 0\), and \(e^{(r_1+r_2)x} \neq 0\) always. So \(W \neq 0\), which means \(y_1\) and \(y_2\) are linearly independent. ✓

This confirms that together they form a fundamental set of solutions — a basis for the solution space.

📐 Worked Example

Solve \(y'' - 5y' + 6y = 0\)

1
Write the characteristic equation: \(r^2 - 5r + 6 = 0\)
// replace y'' → r², y' → r, y → 1
2
Factor: \((r - 2)(r - 3) = 0\)
// looking for two numbers that multiply to 6 and add to -5
3
Roots: \(r_1 = 2,\; r_2 = 3\). Since \(\Delta = 25 - 24 = 1 > 0\), we have two distinct real roots. ✓
4
Write the general solution: $$y(x) = C_1 e^{2x} + C_2 e^{3x}$$
🌊 Geometric intuition
If both roots are negative, both exponentials decay → the solution goes to zero (think: damped motion settling to rest). If both are positive, both grow → unbounded. If they have opposite signs, you get a "saddle" behavior. The signs of the roots tell you the long-term fate of the system.
§3

5.2.2 — Case II: Complex Conjugate Roots

When \(\Delta < 0\), the quadratic formula gives us a square root of a negative number. We write:

Complex roots from the quadratic formula
$$r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \alpha \pm \beta i$$
$$\text{where } \quad \alpha = -\frac{b}{2a}, \qquad \beta = \frac{\sqrt{4ac - b^2}}{2a}$$

These are always conjugate pairs — one is \(\alpha + \beta i\) and the other is \(\alpha - \beta i\). They come as a pair because when the coefficients \(a,b,c\) are real, complex roots always come in conjugates.

🔧 The mechanism — Euler's formula
We'd technically have \(y = e^{(\alpha + \beta i)x}\), which is complex-valued. We want real solutions. The key is Euler's formula: \(e^{i\theta} = \cos\theta + i\sin\theta\). We use it to rewrite complex exponentials as real trig functions.
Full Derivation How do complex roots become sines and cosines?

We have two complex solutions:

$$u_1 = e^{(\alpha + \beta i)x} = e^{\alpha x} e^{i\beta x}$$ $$u_2 = e^{(\alpha - \beta i)x} = e^{\alpha x} e^{-i\beta x}$$

Apply Euler's formula \(e^{i\theta} = \cos\theta + i\sin\theta\):

$$u_1 = e^{\alpha x}(\cos\beta x + i\sin\beta x)$$ $$u_2 = e^{\alpha x}(\cos\beta x - i\sin\beta x)$$

These are valid solutions but complex-valued. Since our ODE has real coefficients, by the superposition principle, any linear combination of solutions is also a solution — including these combinations:

Add them:

$$y_1 = \frac{u_1 + u_2}{2} = e^{\alpha x} \cos\beta x \qquad \text{(real!)}$$

Subtract them:

$$y_2 = \frac{u_1 - u_2}{2i} = e^{\alpha x} \sin\beta x \qquad \text{(real!)}$$

Both are real-valued solutions. They are linearly independent (check: their Wronskian is \(\beta e^{2\alpha x} \neq 0\) since \(\beta \neq 0\)). So the general real-valued solution is:

$$y = C_1 e^{\alpha x}\cos\beta x + C_2 e^{\alpha x}\sin\beta x$$ $$y = e^{\alpha x}(C_1 \cos\beta x + C_2 \sin\beta x)$$

The \(e^{\alpha x}\) term controls the amplitude envelope — it grows, decays, or stays constant depending on the sign of \(\alpha\). The trig terms oscillate at frequency \(\beta\).

General solution — Case II
$$y(x) = e^{\alpha x}\bigl(C_1 \cos\beta x + C_2 \sin\beta x\bigr)$$ where \(\;r = \alpha \pm \beta i\;\) are the complex roots.
🎵 Physical meaning
The factor \(e^{\alpha x}\) is the envelope — it multiplies the oscillation. If \(\alpha < 0\): damped oscillation (spring with friction, fades away). If \(\alpha = 0\): pure oscillation (perfect spring, no friction, oscillates forever). If \(\alpha > 0\): oscillation with growing amplitude (unstable — energy being added).
📐 Worked Example

Solve \(y'' + 2y' + 5y = 0\)

1
Characteristic equation: \(r^2 + 2r + 5 = 0\)
2
Quadratic formula: \(\displaystyle r = \frac{-2 \pm \sqrt{4 - 20}}{2} = \frac{-2 \pm \sqrt{-16}}{2} = \frac{-2 \pm 4i}{2} = -1 \pm 2i\)
// Δ = 4 - 20 = -16 < 0, so complex roots confirmed
3
Identify \(\alpha = -1\) and \(\beta = 2\).
4
General solution: $$y(x) = e^{-x}(C_1 \cos 2x + C_2 \sin 2x)$$ This is a decaying oscillation — the amplitude shrinks like \(e^{-x}\) while oscillating at frequency 2.
§4

5.2.2 — Case III: Repeated Roots

When \(\Delta = 0\), the quadratic formula gives only one root:

$$r_1 = r_2 = r = -\frac{b}{2a}$$

We have one solution \(y_1 = e^{rx}\). But a second-order ODE needs two independent solutions. Where do we get the second one?

🧩 The problem
If we just try \(y_2 = e^{rx}\) again, that's the same solution — not independent. We need something genuinely different that is still a solution.
Full Derivation Why is the second solution \(xe^{rx}\)? (Reduction of Order)

We use Reduction of Order: assume the second solution has the form \(y_2 = v(x) e^{rx}\) where \(v(x)\) is some unknown function we need to find.

Compute derivatives:

$$y_2' = v' e^{rx} + v r e^{rx} = e^{rx}(v' + rv)$$ $$y_2'' = e^{rx}(v'' + rv') + re^{rx}(v' + rv) = e^{rx}(v'' + 2rv' + r^2 v)$$

Substitute into \(ay'' + by' + cy = 0\):

$$a e^{rx}(v'' + 2rv' + r^2 v) + b e^{rx}(v' + rv) + c e^{rx} v = 0$$

Factor out \(e^{rx}\) (never zero, cancel it):

$$a(v'' + 2rv' + r^2 v) + b(v' + rv) + cv = 0$$

Expand:

$$av'' + 2arv' + ar^2 v + bv' + brv + cv = 0$$

Group by derivative order:

$$av'' + (2ar + b)v' + (ar^2 + br + c)v = 0$$

The last bracket \((ar^2 + br + c) = 0\) because \(r\) is a root of the characteristic equation. Also, for the repeated root case, \(r = -b/(2a)\) means \(2ar + b = 2a(-b/2a) + b = -b + b = 0\). So the equation collapses to:

$$av'' = 0 \implies v'' = 0$$

Integrate twice: \(v' = K_1\), then \(v = K_1 x + K_2\).

So \(y_2 = (K_1 x + K_2)e^{rx}\). The \(K_2 e^{rx}\) part is just a multiple of \(y_1\), so we absorb it into \(C_1 y_1\). We choose the simplest independent part: set \(K_1 = 1, K_2 = 0\) to get:

$$\boxed{y_2 = x e^{rx}}$$

The "x in front" is the fingerprint of repeated roots — it's forced on us by the algebra of reduction of order.

General solution — Case III
$$y(x) = C_1 e^{rx} + C_2 x e^{rx} = (C_1 + C_2 x)\,e^{rx}$$
🔬 Geometric intuition
The repeated root case is a borderline between two behaviors. The \(xe^{rx}\) term grows linearly before the exponential takes over. If \(r < 0\), the solution still decays to zero — but slower than a pure exponential (the \(x\) factor temporarily fights the decay). This is called critical damping in physics — the spring-mass system returns to equilibrium as fast as possible without oscillating.
📐 Worked Example

Solve \(y'' + 4y' + 4y = 0\)

1
Characteristic equation: \(r^2 + 4r + 4 = 0\)
2
Factor: \((r + 2)^2 = 0 \implies r = -2\) (repeated)
// Δ = 16 - 16 = 0 confirms repeated root
3
General solution: $$y(x) = (C_1 + C_2 x)\,e^{-2x}$$
§5

5.2.3 — Identifying the Case

Use the sliders to set the coefficients \(a\), \(b\), \(c\) and watch the characteristic equation's roots update in real time. The discriminant automatically tells you which case you're in.

⚡ Live Characteristic Equation Explorer
Loading...
§6

5.2.3 — Initial Value Problems

The general solution always has two arbitrary constants \(C_1\) and \(C_2\). These represent all possible behaviors of the system. An initial value problem (IVP) gives us two conditions — typically \(y(x_0)\) and \(y'(x_0)\) — and we use them to pin down the specific \(C_1\) and \(C_2\) for that particular situation.

💡 Why two conditions?
Think of throwing a ball. To predict the full trajectory, you need to know: (1) where the ball is when you start watching, and (2) how fast and in what direction it's moving. Position \(y(0)\) and velocity \(y'(0)\). One condition for each constant.
📐 Full IVP Example

Solve \(y'' - 5y' + 6y = 0\),  \(y(0) = 2\),  \(y'(0) = 3\)

1
From §2 we already know: \(y(x) = C_1 e^{2x} + C_2 e^{3x}\)
2
Compute \(y'(x)\): $$y'(x) = 2C_1 e^{2x} + 3C_2 e^{3x}$$
3
Apply \(y(0) = 2\): $$C_1 e^0 + C_2 e^0 = 2 \implies C_1 + C_2 = 2 \quad \text{...(i)}$$
// e⁰ = 1, so this collapses cleanly
4
Apply \(y'(0) = 3\): $$2C_1 e^0 + 3C_2 e^0 = 3 \implies 2C_1 + 3C_2 = 3 \quad \text{...(ii)}$$
5
Solve the system. From (i): \(C_1 = 2 - C_2\). Substitute into (ii): $$2(2 - C_2) + 3C_2 = 3 \implies 4 - 2C_2 + 3C_2 = 3 \implies C_2 = -1$$ Then \(C_1 = 2 - (-1) = 3\).
6
Particular solution: $$\boxed{y(x) = 3e^{2x} - e^{3x}}$$

Let's also do an IVP for the complex root case, since applying initial conditions there is slightly more involved.

📐 Complex Case IVP

Solve \(y'' + 2y' + 5y = 0\),  \(y(0) = 1\),  \(y'(0) = -1\)

1
From §3: \(y(x) = e^{-x}(C_1\cos 2x + C_2\sin 2x)\)
2
Compute \(y'(x)\) using the product rule — \(e^{-x}\) and \((C_1\cos 2x + C_2 \sin 2x)\) are two separate factors: $$y' = -e^{-x}(C_1\cos 2x + C_2\sin 2x) + e^{-x}(-2C_1\sin 2x + 2C_2\cos 2x)$$ $$y' = e^{-x}\bigl[(-C_1 + 2C_2)\cos 2x + (-C_2 - 2C_1)\sin 2x\bigr]$$
3
Apply \(y(0) = 1\): at \(x=0\), \(e^0 = 1\), \(\cos 0 = 1\), \(\sin 0 = 0\): $$C_1 \cdot 1 + C_2 \cdot 0 = 1 \implies C_1 = 1$$
4
Apply \(y'(0) = -1\): $$(-C_1 + 2C_2)(1) + (-C_2 - 2C_1)(0) = -1 \implies -C_1 + 2C_2 = -1$$ Substitute \(C_1 = 1\): \(-1 + 2C_2 = -1 \implies C_2 = 0\)
5
Particular solution: $$\boxed{y(x) = e^{-x}\cos 2x}$$ A pure decaying cosine — no sine component needed for these initial conditions.
🔧 Interactive IVP Solver

Enter \(a, b, c\) and initial conditions. The solver will classify the roots and compute \(C_1, C_2\) for you.

Enter values and click Solve.
§7

Summary — The Three Cases

Case Condition on Δ Roots General Solution Behavior
REAL \(\Delta > 0\) \(r_1 \neq r_2 \in \mathbb{R}\) \(C_1 e^{r_1 x} + C_2 e^{r_2 x}\) Exponential growth/decay — no oscillation
COMPLEX \(\Delta < 0\) \(r = \alpha \pm \beta i\) \(e^{\alpha x}(C_1\cos\beta x + C_2 \sin\beta x)\) Oscillation with envelope \(e^{\alpha x}\)
REPEATED \(\Delta = 0\) \(r_1 = r_2 = r\) \((C_1 + C_2 x)e^{rx}\) Critical case — linear×exponential
🗺 The full roadmap
Step 1: Write the characteristic equation \(ar^2 + br + c = 0\).
Step 2: Compute \(\Delta = b^2 - 4ac\) to identify the case.
Step 3: Find the roots.
Step 4: Write the general solution using the matching form above.
Step 5 (if IVP): Compute \(y'\), apply both initial conditions, solve the \(2\times 2\) linear system for \(C_1, C_2\).
📐 One More Complete Example — Repeated Root IVP

Solve \(y'' + 6y' + 9y = 0\),  \(y(0) = 5\),  \(y'(0) = -3\)

1
Characteristic equation: \(r^2 + 6r + 9 = (r+3)^2 = 0\)
// perfect square — repeated root guaranteed
2
Root: \(r = -3\) (repeated). General solution: \(y = (C_1 + C_2 x)e^{-3x}\)
3
Compute \(y'\) via product rule: $$y' = C_2 e^{-3x} + (C_1 + C_2 x)(-3e^{-3x}) = e^{-3x}(C_2 - 3C_1 - 3C_2 x)$$
4
\(y(0) = 5\): \(C_1 \cdot 1 = 5 \implies C_1 = 5\)
5
\(y'(0) = -3\): \(C_2 - 3C_1 = -3 \implies C_2 - 15 = -3 \implies C_2 = 12\)
6
Particular solution: $$\boxed{y(x) = (5 + 12x)e^{-3x}}$$