LeoMath

Introduction to differential equations · Section 3 of 4

Second-order linear equations

Why the characteristic equation works: it is an eigenvalue problem.

about 8 min

Start from a problem

Problem

A damped oscillator behaves in three sharply different ways: it oscillates forever, it oscillates and decays, or it slides back without oscillating. What decides whether it oscillates?

We need a method that turns a second-order differential equation into an algebra problem, and explains why the answer splits into exactly three cases.

Observe

Choose "Damped oscillator": x′′+2γx′+ω2x=0. With γ=0 the solution is an undying sine wave; for small γ>0 the oscillation decays; once γ exceeds ω it stops oscillating and simply slides back to zero. In the phase portrait these are an ellipse, an inward spiral, and a curve heading straight for the origin.

Interactive experimentNumerical ODE explorer
Equation
x′′+2γx′+ω2x=0
Time series
Phase portrait
Method exactEuler error at end: 3.1775RK4 error at end: 4.10e-4

What did you observe?Play first, then answer. Read the explanation only after you have thought it through.

  1. 1.For “Exponential growth”, halve the step h. By what factor does each method's end-point error shrink?
  2. 2.Push h to its maximum. Does Euler's curve still look exponential? Which step goes wrong?
  3. 3.In “Damped oscillator”, increase γ. What does the phase portrait turn into? And once γ exceeds ω?
Conjecture

The shape of the solution (oscillating or not) depends on how γ compares with ω, like the sign of a discriminant of some quadratic. And solutions are always exponentials or exponentials times trigonometric functions, all relatives of ert. Perhaps substituting y=ert turns the differential equation into an algebraic one.

Definition

Definition 3.1Second-order linear homogeneous equation with constant coefficients
y′′+py′+qy=0,p,q∈ℝ.

Derivation: the characteristic equation

Substitute y=ert: y′=rert, y′′=r2ert, so

(r2+pr+q)ert=0⟺r2+pr+q=0.
Definition 3.2Characteristic equation

r2+pr+q=0 is the characteristic equation of the ODE.

Why "characteristic"? Let v=(yy′). Then v′=(y′y′′)=(01−q−p)v=:Av. The characteristic polynomial of A is

det⁡(A−λI)=λ2+pλ+q.

The characteristic equation of the ODE is literally the characteristic equation of A. And the eigenvector v=(1,λ) of Av=λv corresponds exactly to the solution y=eλt (for which y′=λy). Solving a second-order linear ODE is finding the eigenvalues of a 2×2 matrix.

Try it in the matrix calculator →

Theorems and proofs

Theorem 3.1The solution space is a 2-dimensional vector space

The solutions of y′′+py′+qy=0 form a two-dimensional real vector space.

Proof

Linearity: if y1,y2 are solutions, (ay1+by2)′′+p(ay1+by2)′+q(ay1+by2)=a(⋯)+b(⋯)=0, so the solution set is a subspace of the space of functions.

Dimension: by existence and uniqueness (for the system v′=Av), the map y↦(y(0),y′(0))∈ℝ2 is a linear bijection from the solution space onto ℝ2: injective because equal initial data give equal solutions, surjective because every initial datum has a solution. So the solution space is isomorphic to ℝ2.

Hence it suffices to find two independent solutions y1,y2; the general solution is C1y1+C2y2.

Theorem 3.2General solution in three cases

Let the characteristic roots be r1,r2 and Δ=p2−4q.

  1. Δ>0, distinct real r1≠r2: y=C1er1t+C2er2t.
  2. Δ=0, r1=r2=r: y=(C1+C2t)ert.
  3. Δ<0, r=α±iβ: y=eαt(C1cos⁡βt+C2sin⁡βt).
Proof

Case 1. er1t,er2t are solutions. Independence: if aer1t+ber2t≡0, divide by er1t to get a+be(r2−r1)t≡0; differentiating gives b(r2−r1)e(r2−r1)t≡0, so b=0 and then a=0.

Case 2. r=−p/2 and q=r2. Check tert: (tert)′=(1+rt)ert, (tert)′′=(2r+r2t)ert; substituting, ert[(2r+p)+(r2+pr+q)t]=0 since 2r+p=0 and r is a root. ert and tert are clearly independent. This is the case where A has only one eigen-direction (like a shear): the missing second solution is supplied by the factor t.

Case 3. e(α+iβ)t=eαt(cos⁡βt+isin⁡βt) (Euler's formula, see Taylor expansion) is a complex solution. The coefficients are real, so its real and imaginary parts are real solutions: eαtcos⁡βt and eαtsin⁡βt. They are independent since cos⁡βt,sin⁡βt are (β≠0).

For the damped oscillator p=2γ, q=ω2, Δ=4(γ2−ω2): γ<ω underdamped (decaying oscillation), γ=ω critical, γ>ω overdamped. Exactly the three behaviours in the experiment.

Example 3.1

y′′+4y=0: r2+4=0, r=±2i, y=C1cos⁡2t+C2sin⁡2t.

y′′−3y′+2y=0: r2−3r+2=(r−1)(r−2), y=C1et+C2e2t.

Common mistake

For a double root r the second solution is tert, not another ert: two proportional solutions span only one dimension and cannot fill a two-dimensional solution space. For complex roots the general solution is eαt(C1cos⁡βt+C2sin⁡βt) with β the imaginary part, not some combination like α2+β2.

Applications

ApplicationInhomogeneous equations

The general solution of y′′+py′+qy=g(t) is the homogeneous general solution plus one particular solution; the proof is identical to the first-order case. For forced vibration x′′+ω2x=Fcos⁡Ωt the particular solution's amplitude blows up as Ω→ω: resonance.

ApplicationWhy linear algebra reaches so far

An n-th order constant-coefficient linear ODE ⟺ an eigenvalue problem for an n×n matrix; the solution space is an n-dimensional vector space; inhomogeneous solutions form its translate. Vibration modes in mechanics and RLC responses in circuits are diagonalisation in disguise.

Remark

Textbooks usually give the name "characteristic equation" first and then ask you to memorise three cases. Here the order is reversed: first see the three behaviours, then guess ert, then discover that the "characteristic equation" really is the characteristic equation of a matrix. The name is no coincidence; it is one mathematical object seen from two fields.

Exercises

0 of 2 done

1
What is the larger root of the characteristic equation of y′′−3y′+2y=0?

Enter the exact value; a fraction such as 1/3 is fine.

2
The general solution of y′′+4y=0 is
Answer to exercise 2

Discussion

Found a mistake, have a question or a suggestion? You can also write to 620026600@qq.com

No comments yet. Share your understanding, ask a question, or point out an error on this page.

Log in to join the discussion