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

Linear systems with constant coefficients: eigenvalues and eigenvectors

The egg system x′ = −2x + 2y, y′ = 2x − 5y becomes, in matrix form, x′ = Ax with A = [−2 2; 2 −5], and its solution c₁(1, ½)e^(−t) + c₂(1, −2)e^(−6t) is a sum of constant vectors times a single exponential each. So try x = αe^(λt) with the same λ in every component. Substituting cancels the exponential and leaves the algebraic system (A − λI)α = 0, which has a nonzero solution exactly when det(A − λI) = 0. For a 2 × 2 matrix this characteristic equation is λ² − (tr A)λ + det A = 0; its roots are the eigenvalues, and for each the nonzero solutions α are the eigenvectors. For the egg, λ = −1 with α = (2, 1) and λ = −6 with α = (1, −2), and superposition gives the general solution, the same as by elimination.

You need this first

Full reading path (37 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)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
  26. Inhomogeneous equations, particular solutions and stability (18.03)
  27. Particular solutions: the exponential input theorem (18.03)
  28. Resonance and beats (18.03)
  29. Introduction to Fourier series (18.03)
  30. Fourier series: even and odd functions, convergence and other periods (18.03)
  31. Particular solutions via Fourier series, and how we hear (18.03)
  32. Introduction to the Laplace transform (18.03)
  33. Laplace transforms of derivatives and solving initial value problems (18.03)
  34. The convolution formula (18.03)
  35. The unit step and discontinuous inputs (18.03)
  36. Impulse inputs, the delta function and the weight function (18.03)
  37. Introduction to first-order systems (18.03)
On this page · 5 sections
  1. Matrix form
  2. The trial solution
  3. The characteristic equation
  4. The general method
  5. Summary

This lecture solves the egg system again, by the method normally used in practice; elimination is mostly for people who have forgotten any other (transcript, p. 1). It uses matrices, which are a prerequisite; 2×22 \times 2 and 3×33 \times 3 are enough (pp. 1–2).

Matrix form#

With x=T1x = T_1 and y=T2y = T_2, the egg system and its solution by elimination were (transcript, p. 1)

The egg system again
x′=−2x+2y,y′=2x−5y;x=c1e−t+c2e−6t,y=c12e−t−2c2e−6tx' = -2x + 2y, \quad y' = 2x - 5y; \qquad x = c_1e^{-t} + c_2e^{-6t}, \quad y = \frac{c_1}{2}e^{-t} - 2c_2e^{-6t}
In words

x prime equals minus 2 x plus 2 y, y prime equals 2 x minus 5 y; x equals c one e to the power minus t plus c two e to the power minus 6 t, y equals c one over 2, times e to the power minus t minus 2 c two e to the power minus 6 t

Differentiate a column vector by differentiating each entry; then the system is one matrix equation (p. 2):

Matrix form
(xy)′=(−222−5)(xy)\begin{pmatrix} x \\ y \end{pmatrix}' = \begin{pmatrix} -2 & 2 \\ 2 & -5 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix}
In words

x; y prime equals minus 2 2; 2 minus 5 x; y

The solution is a sum of two column vectors. Pull out of each everything scalar, constants in front and functions behind, the standard order for readability (pp. 2–3):

Solution in vector form
(xy)=c1(11/2)e−t+c2(1−2)e−6t\begin{pmatrix} x \\ y \end{pmatrix} = c_1\begin{pmatrix} 1 \\ 1/2 \end{pmatrix}e^{-t} + c_2\begin{pmatrix} 1 \\ -2 \end{pmatrix}e^{-6t}
In words

x; y equals c one 1; 1 over 2 e to the power minus t plus c two 1; minus 2 e to the power minus 6 t

The trial solution#

Matrices were only used to solve systems of differential equations from about the 1950s (transcript, p. 4). The natural guess, a different exponential in each component, does not work. The solution above shows why: each piece is a constant vector times one exponential, the same in both components (p. 4). So try

Trial solution
(xy)=(a1a2)eλt\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} a_1 \\ a_2 \end{pmatrix}e^{\lambda t}
In words

x; y equals a one; a two e to the power lambda t

Substituting, the derivative brings down λ\lambda, and the exponential cancels: the calculus has been reduced to algebra, as with the Laplace transform (p. 5). Written out (p. 6):

Algebraic equations
λa1=−2a1+2a2,λa2=2a1−5a2\lambda a_1 = -2a_1 + 2a_2, \qquad \lambda a_2 = 2a_1 - 5a_2
In words

lambda a one equals minus 2 a one plus 2 a two, lambda a two equals 2 a one minus 5 a two

Two nonlinear equations in three unknowns look hopeless. The one idea needed: demote λ\lambda to a parameter. Then the equations are linear and homogeneous in a1a_1, a2a_2 (p. 6):

Homogeneous linear system
(−2−λ) a1+2a2=0,2a1+(−5−λ) a2=0(-2 - \lambda)\,a_1 + 2a_2 = 0, \qquad 2a_1 + (-5 - \lambda)\,a_2 = 0
In words

the quantity minus 2 minus lambda, a one plus 2 a two equals 0, 2 a one plus the quantity minus 5 minus lambda, a two equals 0

The characteristic equation#

A square homogeneous system always has the trivial solution a1=a2=0a_1 = a_2 = 0, which here means the egg stays at 0 for ever: no interest (transcript, p. 7). It has a nontrivial solution exactly when the determinant of coefficients is zero (p. 7):

Characteristic equation of the egg
∣−2−λ22−5−λ∣=(λ+2)(λ+5)−4=λ2+7λ+6=0\begin{vmatrix} -2 - \lambda & 2 \\ 2 & -5 - \lambda \end{vmatrix} = (\lambda + 2)(\lambda + 5) - 4 = \lambda^2 + 7\lambda + 6 = 0
In words

minus 2 minus lambda 2; 2 minus 5 minus lambda equals the quantity lambda plus 2, the quantity lambda plus 5, all minus 4 equals lambda squared plus 7 lambda plus 6 equals 0

the same characteristic equation that elimination produced, with λ\lambda for rr (p. 7). Its roots are λ=−1\lambda = -1 and λ=−6\lambda = -6 (p. 8).

For each root, find (a1,a2)(a_1, a_2) (pp. 8–10).

  • λ=−1\lambda = -1: the equations become −a1+2a2=0-a_1 + 2a_2 = 0 and 2a1−4a2=02a_1 - 4a_2 = 0. The second is twice the first, as it must be: if not, the only solution would be zero. This is a built-in check; if the equations are not multiples, recheck the substitution first, then λ\lambda (pp. 8–9). Taking a2=1a_2 = 1 gives (2,1)(2, 1), and the solution (21)e−t\begin{pmatrix} 2 \\ 1 \end{pmatrix}e^{-t} (p. 9).
  • λ=−6\lambda = -6: 4a1+2a2=04a_1 + 2a_2 = 0 and 2a1+a2=02a_1 + a_2 = 0; with a1=1a_1 = 1, a2=−2a_2 = -2, giving (1−2)e−6t\begin{pmatrix} 1 \\ -2 \end{pmatrix}e^{-6t} (pp. 9–10).

By superposition, since the two solutions are not multiples of each other (p. 10):

General solution
(xy)=c~1(21)e−t+c~2(1−2)e−6t\begin{pmatrix} x \\ y \end{pmatrix} = \tilde c_1\begin{pmatrix} 2 \\ 1 \end{pmatrix}e^{-t} + \tilde c_2\begin{pmatrix} 1 \\ -2 \end{pmatrix}e^{-6t}
In words

x; y equals c one tilde 2; 1 e to the power minus t plus c two tilde 1; minus 2 e to the power minus 6 t

the same as before, with c~1=c1/2\tilde c_1 = c_1/2 and c~2=c2\tilde c_2 = c_2 (p. 10). The two methods meet only at the characteristic equation: its roots are intrinsic to the problem (pp. 10–11).

The egg's temperatures as a curve in the (x, y) plane, computed from the solution with the starting values used in Lecture 24, x(0)=40x(0) = 40, y(0)=45y(0) = 45: the fast e−6te^{-6t} part along the direction (1, −2) dies first, and the curve then approaches the origin along the slow eigenvector (2, 1).

The general method#

For a general 2×22 \times 2 system (xy)′=(abcd)(xy)\begin{pmatrix} x \\ y \end{pmatrix}' = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} the same steps give (transcript, pp. 11–12)

Characteristic equation of a 2 × 2 matrix
∣a−λbcd−λ∣=λ2−(a+d) λ+(ad−bc)=λ2−(tr A) λ+det⁡A=0\begin{vmatrix} a - \lambda & b \\ c & d - \lambda \end{vmatrix} = \lambda^2 - (a + d)\,\lambda + (ad - bc) = \lambda^2 - (\mathrm{tr}\,A)\,\lambda + \det A = 0
In words

a minus lambda b; c d minus lambda equals lambda squared minus the quantity a plus d, lambda plus the quantity a d minus b c, equals lambda squared minus ( tr capital A ) lambda plus the determinant of capital A equals 0

where the trace tr A=a+d\mathrm{tr}\,A = a + d is the sum of the diagonal entries (p. 12). (The transcript says "aa plus bb" here.) Remember this equation and write it down at once, without redoing the derivation, and watch the minus sign (pp. 12–13). Its roots λ1\lambda_1, λ2\lambda_2, here real and distinct, are the eigenvalues of AA: hidden in the entries, but the numbers that control the system (p. 13). The word mixes German and English; some prefer "characteristic values", and older books say "proper values", proper in the sense of belonging to the matrix (pp. 13–14). For each λi\lambda_i, the nonzero solutions α⃗i\vec\alpha_i of (A−λiI)α⃗=0(A - \lambda_iI)\vec\alpha = 0 are the eigenvectors belonging to it (p. 14), and (p. 15)

General solution, distinct eigenvalues
x⃗=c1 α⃗1 eλ1t+c2 α⃗2 eλ2t\vec x = c_1\,\vec\alpha_1\,e^{\lambda_1t} + c_2\,\vec\alpha_2\,e^{\lambda_2t}
In words

vector x equals c one vector alpha one e to the power lambda one t plus c two vector alpha two e to the power lambda two t

Condensed form, valid for n×nn \times n systems too (pp. 15–16). The system is x⃗ ′=Ax⃗\vec x\,' = A\vec x; the trial solution x⃗=α⃗ eλt\vec x = \vec\alpha\,e^{\lambda t} gives Aα⃗=λα⃗A\vec\alpha = \lambda\vec\alpha. Subtracting a scalar from a matrix is not allowed; writing it out shows that λ\lambda comes off the main diagonal, which is what λI\lambda I does (p. 16):

Eigenvalue equation
(A−λI) α⃗=0,det⁡(A−λI)=0(A - \lambda I)\,\vec\alpha = 0, \qquad \det(A - \lambda I) = 0
In words

the quantity capital A minus lambda capital I, vector alpha equals 0, the determinant of the quantity capital A minus lambda capital I, equals 0

Worked example

A system that grows

Solve x′=x+2yx' = x + 2y, y′=2x+yy' = 2x + y, first in general, then with x(0)=3x(0) = 3, y(0)=1y(0) = 1.

Eigenvalues

tr A=2\mathrm{tr}\,A = 2 and det⁡A=1−4=−3\det A = 1 - 4 = -3, so λ2−2λ−3=(λ−3)(λ+1)=0\lambda^2 - 2\lambda - 3 = (\lambda - 3)(\lambda + 1) = 0: λ=3\lambda = 3 and λ=−1\lambda = -1.

Eigenvectors

λ=3\lambda = 3: −2a1+2a2=0-2a_1 + 2a_2 = 0 (and 2a1−2a2=02a_1 - 2a_2 = 0), so (1,1)(1, 1). λ=−1\lambda = -1: 2a1+2a2=02a_1 + 2a_2 = 0, so (1,−1)(1, -1). The general solution is c1(11)e3t+c2(1−1)e−tc_1\begin{pmatrix} 1 \\ 1 \end{pmatrix}e^{3t} + c_2\begin{pmatrix} 1 \\ -1 \end{pmatrix}e^{-t}.

Initial values

c1+c2=3c_1 + c_2 = 3 and c1−c2=1c_1 - c_2 = 1, so c1=2c_1 = 2, c2=1c_2 = 1: x=2e3t+e−tx = 2e^{3t} + e^{-t}, y=2e3t−e−ty = 2e^{3t} - e^{-t}. The positive eigenvalue makes the solution grow.

Summary#

  • Write the system as x⃗ ′=Ax⃗\vec x\,' = A\vec x and try x⃗=α⃗ eλt\vec x = \vec\alpha\,e^{\lambda t}, one exponential for all components.
  • This gives (A−λI)α⃗=0(A - \lambda I)\vec\alpha = 0: nonzero solutions need det⁡(A−λI)=0\det(A - \lambda I) = 0, for 2×22 \times 2 matrices λ2−(tr A)λ+det⁡A=0\lambda^2 - (\mathrm{tr}\,A)\lambda + \det A = 0.
  • The roots are the eigenvalues; for each, an eigenvector (the equations must be redundant, a check).
  • With distinct real eigenvalues, x⃗=c1α⃗1eλ1t+c2α⃗2eλ2t\vec x = c_1\vec\alpha_1e^{\lambda_1t} + c_2\vec\alpha_2e^{\lambda_2t}.

Symbols on this page

Show the 32 symbols used here
α\alpha alpha.
The constant vector in the trial solution: an eigenvector. Say it: “alpha”.
λ\lambda lambda.
The exponent in the trial solution: an eigenvalue of A. Say it: “lambda”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
a~\tilde a tilde.
A modified version of a quantity (ã, k̃); its meaning is given where it is introduced. Say it: “tilde”.
aa a.
The top-left entry of the matrix A. Say it: “a”.
cc c.
The bottom-left entry of A. Say it: “c”.
xx x.
The first unknown (the yolk temperature in the egg); as a vector, the column (x, y). Say it: “x”.
yy y.
The second unknown (the white temperature). Say it: “y”.
tt t.
Time. Say it: “t”.
dd d.
The bottom-right entry of A. Say it: “d”.
nn n.
The size of an n × n system. Say it: “n”.
ee e.
Euler's number, 2.718… Say it: “e”.
rr r.
The root of the characteristic equation in the elimination method. Say it: “r”.
AA A.
The matrix of coefficients of the system. Say it: “capital A”.
bb b.
The top-right entry of A. Say it: “b”.
y′y' y prime.
The derivative of y. Say it: “y prime”.
a1a_{1} a one.
The first entry of the constant vector in the trial solution. Say it: “a one”.
a2a_{2} a two.
The second entry of the constant vector in the trial solution. Say it: “a two”.
T1T_{1} T one.
The yolk temperature (now called x). Say it: “capital T one”.
T2T_{2} T two.
The white temperature (now called y). Say it: “capital T two”.
x′x' x prime.
The derivative of x. Say it: “x prime”.
αi\alpha_{i} Tully–Fisher exponent.
The eigenvector belonging to the eigenvalue λᵢ. Say it: “alpha sub i”.
II I.
The identity matrix. Say it: “capital I”.
c1c_{1} c one.
The first arbitrary constant. Say it: “c one”.
c2c_{2} c two.
The second arbitrary constant. Say it: “c two”.
α1\alpha_{1} alpha one.
The eigenvector belonging to λ₁. Say it: “alpha one”.
α2\alpha_{2} alpha two.
The eigenvector belonging to λ₂. Say it: “alpha two”.
λ1\lambda_{1} lambda one.
The first eigenvalue. Say it: “lambda one”.
λ2\lambda_{2} lambda two.
The second eigenvalue. Say it: “lambda two”.
λi\lambda_{i} lambda i.
Any one of the eigenvalues. Say it: “lambda i”.

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

Words on this page

Show the 29 words used here

New here

trace.
The sum of the numbers on the main diagonal of a square matrix; it equals the sum of the eigenvalues.
eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it.
eigenvector.
A non-zero vector that a matrix only stretches or shrinks without turning: multiplying it by the matrix gives a number times the same vector.

Also used

elimination.
Solving equations by subtracting multiples of one from another until each unknown can be found in turn. Explained in The geometry of linear equations.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
vector.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
scalar.
A quantity that has a size but no direction, such as mass, temperature or energy. Explained in Vectors.
differential equation.
An equation that links an unknown function to its derivatives; solving it means finding the function. Explained in Circular motion dynamics: worked problems.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
Laplace transform.
A way of turning a function of time into a function of a new variable s, which changes differential equations into algebra. Explained in Introduction to the Laplace transform.
nonlinear.
Not linear: containing squares, products or other functions of the unknowns, so effects do not simply add. Explained in Resistive forces: drag and terminal velocity.
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.
trivial solution.
The solution in which every unknown is zero, which always solves a system of linear equations whose right-hand sides are all zero. Explained in Equations of planes and square systems.
determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
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.
superposition.
Adding effects: the total force, field or wave from several sources is the sum of what each would give alone. Explained in Superposition and standing waves.
diagonal.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
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.

Academic

in practice.
In reality, as things are actually done or measured, rather than in theory.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
prerequisite.
Something you need to know or have done before you can start something else.
homogeneous.
Of a linear equation: with zero on the right-hand side, so that zero is a solution; its solutions form the homogeneous solution.
non-trivial.
Not obvious: needing real work or thought; in maths, a solution other than the obvious zero one.
intrinsic.
Belonging to the thing itself, not depending on how it is viewed or where it is placed.
derive.
To obtain a result by reasoning or calculation from other known results.
valid.
True or correctly applicable under the stated conditions.
redundant.
Not needed, because the same information is already given elsewhere.

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

Pages that build on this

Practise

Check your understanding

  1. What is the characteristic equation of A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}?
  2. When does (A−λI)α=0(A - \lambda I)\alpha = 0 have a nonzero solution α\alpha?
  3. If, after substituting an eigenvalue, the two equations for (a1,a2)(a_1, a_2) are NOT multiples of each other, then…
0 of 3 answered

Flashcards

1 / 3