BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Second-order linear equations with constant coefficients

The homogeneous equation y″ + Ay′ + By = 0 with constant A and B has the general solution c₁y₁ + c₂y₂, built from any two independent solutions; the initial values fix c₁ and c₂. A spring–mass–dashpot system, mx″ + cx′ + kx = 0, is the standard model. Trying y = e^(rt) gives the characteristic equation r² + Ar + B = 0. Distinct real roots give c₁e^(r₁t) + c₂e^(r₂t), the overdamped case. Complex roots a ± bi give a complex solution whose real and imaginary parts are real solutions (because A and B are real): e^(at)(c₁ cos bt + c₂ sin bt), the underdamped case. A double root −a gives only e^(−at); substituting y = e^(−at)u gives u″ = 0, so the second solution is te^(−at): the critically damped case.

You need this first

Full reading path (22 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
On this page · 7 sections
  1. The equation and its general solution
  2. The spring, the mass and the dashpot
  3. The characteristic equation
  4. Case 1: distinct real roots
  5. Case 2: complex roots
  6. Case 3: a double root
  7. Summary

The rest of this part of the course studies the second-order linear equation with constant coefficients (transcript, p. 1). It builds on first-order linear models and on complex exponentials.

The equation and its general solution#

In standard form, with constant coefficients AA and BB and right-hand side zero (transcript, p. 1):

Homogeneous second-order equation
y′′+Ay′+By=0y'' + Ay' + By = 0
In words

y double prime plus capital A y prime plus capital B y equals 0

A zero right-hand side makes the equation homogeneous; a function of tt there makes it inhomogeneous, which comes later (p. 1). The general theory waits two lectures; for now, assume that the general solution has the form (pp. 1–2)

General solution
y=c1y1+c2y2y = c_1y_1 + c_2y_2
In words

y equals c one y one plus c two y two

with two arbitrary constants, as the order is two: roughly, solving means integrating twice (p. 2). Taking c1=1c_1 = 1, c2=0c_2 = 0 shows that y1y_1 is itself a solution, and likewise y2y_2, so solving the equation means finding two solutions. Initial values are then met by choosing c1c_1 and c2c_2 (p. 2). The two must be independent: y2y_2 must not be a constant multiple of y1y_1, otherwise there is really only one (pp. 4–5).

The spring, the mass and the dashpot#

The standard model is a mass mm on a horizontal track, attached to a spring and slowed by a dashpot, a piston in a chamber like the closer at the top of a door (transcript, pp. 2–3). With xx measured from the equilibrium position, the spring pulls back with force −kx-kx (Hooke's law) and the dashpot resists the velocity with force −cx′-cx' (pp. 3–4). Newton's law gives (p. 4)

Spring–mass–dashpot
m x′′+c x′+k x=0,x′′+cm x′+km x=0m\,x'' + c\,x' + k\,x = 0, \qquad x'' + \frac{c}{m}\,x' + \frac{k}{m}\,x = 0
In words

m x double prime plus c x prime plus k x equals 0, x double prime plus c over m, times x prime plus k over m, times x equals 0

cc is the damping constant and kk the spring constant (p. 4). (Here cc and kk are physical constants, not the arbitrary constants c1c_1, c2c_2.)

The characteristic equation#

The basic method, used all term, is to try an exponential, y=erty = e^{rt}, and choose rr (transcript, p. 5). Substituting gives r2ert+Arert+Bert=0r^2e^{rt} + Are^{rt} + Be^{rt} = 0, and since erte^{rt} is never zero it cancels (pp. 5–6):

Characteristic equation
r2+Ar+B=0r^2 + Ar + B = 0
In words

r squared plus capital A r plus capital B equals 0

That is why quadratic equations are taught in school (p. 6). (The transcript reads the coefficients in lower case here; they are the AA and BB of the equation.) In practice, write the characteristic equation down at once without redoing the substitution (p. 7). The roots may be real and distinct, complex conjugates, or real and equal, and each case behaves differently (p. 6).

Case 1: distinct real roots#

Two roots r1≠r2r_1 \ne r_2 give two solutions at once (transcript, p. 6):

Distinct real roots
y=c1er1t+c2er2ty = c_1e^{r_1t} + c_2e^{r_2t}
In words

y equals c one e to the power r one t plus c two e to the power r two t

Example (pp. 7–9). With m=1m = 1, damping 4 and spring constant 3, the characteristic equation is r2+4r+3=(r+3)(r+1)=0r^2 + 4r + 3 = (r + 3)(r + 1) = 0, so y=c1e−3t+c2e−ty = c_1e^{-3t} + c_2e^{-t}. Release the mass from rest one unit from equilibrium: y(0)=1y(0) = 1, y′(0)=0y'(0) = 0. Then c1+c2=1c_1 + c_2 = 1 and −3c1−c2=0-3c_1 - c_2 = 0: two simultaneous linear equations, giving c1=−12c_1 = -\frac12, c2=32c_2 = \frac32 (pp. 8–9):

The example's solution
y=−12 e−3t+32 e−ty = -\tfrac12\,e^{-3t} + \tfrac32\,e^{-t}
In words

y equals minus one half e to the power minus 3 t plus three halves e to the power minus t

Both exponentials decline. With other starting slopes the mass may cross equilibrium once, but it cannot cross back again; in the long run it just returns, without oscillating. This is the overdamped case (p. 10).

Case 2: complex roots#

With little damping we expect oscillation, and the roots are complex, a±bia \pm bi (transcript, p. 10). Formally that gives a complex solution e(a+bi)te^{(a + bi)t}, but a real solution is needed (p. 11). The rescue (pp. 11–12):

Theorem. If u+ivu + iv is a complex solution of y′′+Ay′+By=0y'' + Ay' + By = 0 with real AA and BB, then uu and vv are real solutions.

Proof. Substituting, (u′′+Au′+Bu)+i(v′′+Av′+Bv)=0(u'' + Au' + Bu) + i(v'' + Av' + Bv) = 0. A complex number is zero only if its real and imaginary parts are both zero, so uu and vv each satisfy the equation. Calling the first bracket the real part used that AA and BB are real: with A=1+iA = 1 + i it would fail (p. 12). (The theorem only needs the equation to be linear with real coefficients, p. 11.)

The real and imaginary parts of e(a+bi)t=eat(cos⁡bt+isin⁡bt)e^{(a + bi)t} = e^{at}(\cos bt + i\sin bt) give (pp. 12–13)

Complex roots a ± bi
y=eat (c1cos⁡bt+c2sin⁡bt)y = e^{at}\,(c_1\cos bt + c_2\sin bt)
In words

y equals e to the power a t the quantity c one cos b t plus c two sine b t

The bracket is a combination of a cosine and a sine of the same frequency, so by the sine–cosine identity it is a single oscillation, with the exponential controlling its amplitude (p. 13).

Example (pp. 13–15). Stiffen the spring to 5: r2+4r+5=0r^2 + 4r + 5 = 0 gives r=−4±16−202=−2±ir = \frac{-4 \pm \sqrt{16 - 20}}{2} = -2 \pm i. With the same initial values, c1=1c_1 = 1 and c2=2c_2 = 2 (p. 14):

Underdamped example
y=e−2t(cos⁡t+2sin⁡t)=5 e−2tcos⁡(t−ϕ),tan⁡ϕ=2y = e^{-2t}(\cos t + 2\sin t) = \sqrt5\,e^{-2t}\cos(t - \phi), \qquad \tan\phi = 2
In words

y equals e to the power minus 2 t the quantity cos t plus 2 sine t, equals the square root of 5 e to the power minus 2 t cos of the quantity t minus phi, tan phi equals 2

The triangle has sides 1 and 2, so the amplitude factor is 5\sqrt5 (p. 14). (The lecture estimates ϕ\phi at about 70°, pp. 14–15; in fact arctan⁡2≈63.4°\arctan 2 \approx 63.4°.) The curve is a delayed cosine squeezed between ±5 e−2t\pm\sqrt5\,e^{-2t}, crossing the axis again and again: the underdamped case. In theory the oscillation never stops (pp. 14–15).

Case 3: a double root#

Between the two lies the critically damped case, the one people aim for when damping unwanted motion (transcript, p. 15). The roots are equal; call the root −a-a with a>0a > 0. Then the characteristic polynomial is (r+a)2=r2+2ar+a2(r + a)^2 = r^2 + 2ar + a^2, and the equation (pp. 15–16)

Critically damped equation
y′′+2a y′+a2y=0y'' + 2a\,y' + a^2y = 0
In words

y double prime plus 2 a y prime plus a squared y equals 0

For a given spring constant exactly one damping gives this case (p. 16). The trouble: there is only one exponential solution, e−ate^{-at} (p. 16). One way to find another (the problem set has two, and a third comes later): if y1y_1 solves a linear equation y′′+p(t)y′+q(t)y=0y'' + p(t)y' + q(t)y = 0, there is a second solution of the form y1uy_1u (pp. 16–17). (The transcript states this equation incompletely.)

Try y=e−atuy = e^{-at}u (p. 17). Then y′=−ae−atu+e−atu′y' = -ae^{-at}u + e^{-at}u' and y′′=a2e−atu−2ae−atu′+e−atu′′y'' = a^2e^{-at}u - 2ae^{-at}u' + e^{-at}u''. Multiply the three lines by a2a^2, 2a2a and 1 and add: everything cancels except (pp. 17–18)

Reduction for the double root
e−atu′′=0⟹u=c1t+c2e^{-at}u'' = 0 \quad\Longrightarrow\quad u = c_1t + c_2
In words

e to the power minus a t u double prime equals 0 which gives u equals c one t plus c two

One new solution is enough, so take u=tu = t (p. 18):

Second solution
y=t e−aty = t\,e^{-at}
In words

y equals t e to the power minus a t

and so (combining the two, as in the general form above) the general solution is e−at(c1+c2t)e^{-at}(c_1 + c_2t).

Solutions of y′′+4y′+By=0y'' + 4y' + By = 0 with y(0)=1y(0) = 1, y′(0)=0y'(0) = 0, computed from the formulas above: overdamped (B=3B = 3), critically damped (B=4B = 4, y=e−2t(1+2t)y = e^{-2t}(1 + 2t)) and underdamped (B=5B = 5), which dips just below zero after t≈2.7t \approx 2.7.
Worked example

Three springs

Solve (a) x′′+5x′+6x=0x'' + 5x' + 6x = 0 with x(0)=0x(0) = 0, x′(0)=1x'(0) = 1; (b) x′′+2x′+10x=0x'' + 2x' + 10x = 0 with x(0)=2x(0) = 2, x′(0)=1x'(0) = 1, and write the answer with a single cosine; (c) for x′′+6x′+kx=0x'' + 6x' + kx = 0, find the spring constant that makes the motion critically damped, and the general solution.

(a) Overdamped

r2+5r+6=(r+2)(r+3)r^2 + 5r + 6 = (r + 2)(r + 3), so x=c1e−2t+c2e−3tx = c_1e^{-2t} + c_2e^{-3t}. Then c1+c2=0c_1 + c_2 = 0 and −2c1−3c2=1-2c_1 - 3c_2 = 1, so c1=1c_1 = 1, c2=−1c_2 = -1: x=e−2t−e−3tx = e^{-2t} - e^{-3t}.

(b) Underdamped

r=−2±4−402=−1±3ir = \frac{-2 \pm \sqrt{4 - 40}}{2} = -1 \pm 3i, so x=e−t(c1cos⁡3t+c2sin⁡3t)x = e^{-t}(c_1\cos 3t + c_2\sin 3t). Then c1=2c_1 = 2 and −c1+3c2=1-c_1 + 3c_2 = 1, so c2=1c_2 = 1. The triangle with sides 2 and 1 gives x=5 e−tcos⁡(3t−ϕ)x = \sqrt5\,e^{-t}\cos(3t - \phi) with ϕ=arctan⁡12≈0.464\phi = \arctan\frac12 \approx 0.464 rad (26.6°).

(c) Critically damped

A double root needs r2+6r+k=(r+3)2r^2 + 6r + k = (r + 3)^2, so k=9k = 9, and x=e−3t(c1+c2t)x = e^{-3t}(c_1 + c_2t).

Summary#

  • y′′+Ay′+By=0y'' + Ay' + By = 0: the general solution c1y1+c2y2c_1y_1 + c_2y_2 needs two independent solutions.
  • Try erte^{rt}: the characteristic equation is r2+Ar+B=0r^2 + Ar + B = 0.
  • Distinct real roots: c1er1t+c2er2tc_1e^{r_1t} + c_2e^{r_2t} (overdamped).
  • Complex roots a±bia \pm bi: eat(c1cos⁡bt+c2sin⁡bt)e^{at}(c_1\cos bt + c_2\sin bt) (underdamped), since real and imaginary parts of a complex solution are solutions.
  • Double root −a-a: e−at(c1+c2t)e^{-at}(c_1 + c_2t) (critically damped).

Symbols on this page

Show the 40 symbols used here
ϕ\phi phi.
The phase lag of the oscillation. Unit: rad. Say it: “phi” (sounds like “fye”).
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
aa a.
The real part of complex roots a ± bi; for a double root −a, its size. Say it: “a”.
cc c.
The damping constant of the dashpot. Unit: kg/s. Say it: “c”.
kk k.
The spring constant. Unit: N/m. Say it: “k”.
arctan⁡\arctan arctangent.
The inverse tangent. Say it: “arc tangent”.
xx x.
The displacement of the mass from equilibrium. Unit: m. Say it: “x”.
yy y.
The solution of the second-order equation. Say it: “y”.
tt t.
Time. Say it: “t”.
ii i.
The imaginary unit, i² = −1. Say it: “i”.
ee e.
Euler's number, 2.718… Say it: “e”.
mm m.
The mass on the spring. Unit: kg. Say it: “m”.
vv v.
The imaginary part of a complex solution. Say it: “v”.
rr r.
The exponent in the trial solution e^(rt): a root of the characteristic equation. Say it: “r”.
AA A.
The constant coefficient of y′ in y″ + Ay′ + By = 0. Say it: “capital A”.
BB B.
The constant coefficient of y in y″ + Ay′ + By = 0. Say it: “capital B”.
bb b.
The imaginary part of complex roots a ± bi: the angular frequency of the oscillation. Say it: “b”.
qq q.
A coefficient q(t) of y in a general linear equation. Say it: “q”.
pp p.
A coefficient p(t) of y′ in a general linear equation. Say it: “p”.
y′y' y prime.
The derivative of y with respect to t. Say it: “y prime”.
r1r_{1} r one.
The first root of the characteristic equation. Say it: “r one”.
r2r_{2} r two.
The second root of the characteristic equation. Say it: “r two”.
uu u.
The real part of a complex solution; later the unknown factor in y = e^(−at)u. Say it: “u”.
y1y_{1} y 1.
A first solution. Say it: “y one”.
y2y_{2} y 2.
A second solution, independent of y₁. Say it: “y two”.
x′x' x prime.
The velocity of the mass. Unit: m/s. Say it: “x prime”.
y′′y'' y double prime.
The second derivative of y with respect to t. Say it: “y double prime”.
u′u' u prime.
The derivative of u. Say it: “u prime”.
v′v' v prime.
The derivative of v. Say it: “v prime”.
u′′u'' u double prime.
The second derivative of u. Say it: “u double prime”.
v′′v'' v double prime.
The second derivative of v. Say it: “v double prime”.
c1c_{1} c one.
The first arbitrary constant of the general solution. Say it: “c one”.
c2c_{2} c two.
The second arbitrary constant of the general solution. Say it: “c two”.
x′′x'' x double prime.
The acceleration of the mass, the second derivative of x. Unit: m/s². Say it: “x double prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 36 words used here

New here

dashpot.
A damper, such as a piston moving through oil, that pushes back with a force proportional to its speed.
overdamped.
Damped so strongly that a disturbed system creeps back to rest without oscillating, more slowly than if critically damped.
underdamped.
Damped lightly enough that a disturbed system oscillates, with a size that shrinks steadily as it settles.
critically damped.
Damped just enough that a disturbed system returns to rest as fast as possible without oscillating.
characteristic polynomial.
The polynomial obtained by trying e^(rt) in a linear differential equation with constant coefficients; its roots give the exponents of the solutions.

Also used

linear.
The property that sums and multiples of solutions are again solutions, so the responses to separate inputs simply add. Explained in First-order linear equations and integrating factors.
constant coefficients.
Of a linear differential equation: the numbers multiplying the unknown and its derivatives do not change with time. Explained in Constant coefficients: steady state, superposition and sinusoidal input.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
general solution.
The whole family of solutions of a differential equation, written with free constants that starting values or boundary conditions then fix. Explained in Differential equations and separation of variables.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
initial condition.
The state of a system at the starting time, such as its position and speed, which picks out one solution of its equation. Explained in Introduction to first-order systems.
equilibrium.
A state that does not change by itself, because the influences acting on it balance. Explained in Newton's first law: inertia.
Hooke's law.
A spring pulls or pushes back with a force proportional to how far it is stretched or squeezed: F = −kx. Explained in Springs and Hooke's law.
velocity.
How fast and in which direction something moves: the change in position in each unit of time. Explained in Speed and velocity.
damping constant.
The number setting how strongly a damper resists motion: the resisting force divided by the speed. Explained in Resonance.
spring constant.
The stiffness k of a spring: the force it gives per metre of stretch, in newtons per metre. Explained in Springs and Hooke's law.
characteristic equation.
An algebraic equation whose roots give the basic solutions: the rates r in e^(rt) for a constant-coefficient equation, or a matrix's eigenvalues.
complex conjugate.
The complex number with the sign of its imaginary part reversed: the conjugate of a + ib is a − ib. Explained in Complex numbers and complex exponentials.
damping.
The gradual loss of energy from an oscillation or wave, by friction, resistance or radiation, so that its size dies away. Explained in The pendulum and energy in oscillations.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
real part.
For a complex number a + bi, the ordinary number a. Explained in Differential equations and exp(At).
frequency.
How often something repeats: the number of cycles, turns or waves each second, measured in hertz. Explained in Circular motion.
amplitude.
The size of an oscillation or wave: the largest distance from its middle position, or the number multiplying the sine. Explained in Oscillations and simple harmonic motion.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
model.
A simplified description of a real system, usually in equations, that keeps what matters and leaves out the rest.
homogeneous.
Of a linear equation: with zero on the right-hand side, so that zero is a solution; its solutions form the homogeneous solution.
theory.
An organised body of ideas, laws and methods about a subject: a tested explanation of nature, or a branch or method of mathematics.
assumption.
Something accepted as true, without proof, so that an argument or calculation can proceed; to assume is to accept it so.
arbitrary.
Free to be chosen as one likes; any choice gives a correct result.
likewise.
In the same way; similarly.
in practice.
In reality, as things are actually done or measured, rather than in theory.
formally.
Following the rules or symbols exactly as written, sometimes without checking that each step makes sense.
satisfy.
To make an equation or condition true.
in principle.
According to the rules or theory, even if it would be hard or impossible to do in reality.
problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

32 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. What is the characteristic equation of y′′+6y′+8y=0y'' + 6y' + 8y = 0, and its general solution?
  2. If the characteristic roots are −1±2i-1 \pm 2i, the general real solution is…
  3. For a double root r=−ar = -a, a second solution independent of e−ate^{-at} is…
0 of 3 answered

Flashcards

1 / 3