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

Eigenvalues and eigenvectors

An eigenvector of a square matrix A is a nonzero vector that comes out of A in its own direction: Ax = λx, and the number λ is its eigenvalue. Eigenvalue 0 means x is in the nullspace, so A is singular. A projection has eigenvalues 1 (vectors in the plane) and 0 (vectors perpendicular to it); the 2 × 2 swap permutation has 1 for (1, 1) and −1 for (−1, 1). To find them, write (A − λI)x = 0: a nonzero x exists only when A − λI is singular, so det(A − λI) = 0, the characteristic equation, gives the n eigenvalues first, and then each x comes from the nullspace of A − λI. The eigenvalues add up to the trace and multiply to the determinant; for 2 × 2 the equation is λ² − (trace)λ + det = 0. Adding 3I adds 3 to every eigenvalue and keeps the eigenvectors, but the eigenvalues of A + B or AB are not found from those of A and B. A 90° rotation has eigenvalues i and −i, a complex conjugate pair, and a triangular matrix such as (3 1; 0 3) has a repeated eigenvalue with only one independent eigenvector.

You need this first

Full reading path (14 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. The geometry of linear equations (18.06)
  7. Elimination with matrices (18.06)
  8. Matrix multiplication and inverse matrices (18.06)
  9. Factorization into A = LU (18.06)
  10. Transposes, permutations and vector spaces (18.06)
  11. Properties of determinants (18.06)
  12. Determinant formulas and cofactors (18.06)
  13. Cramer's rule, the inverse matrix and volume (18.06)
  14. Column space and nullspace (18.06)
On this page · 9 sections
  1. Vectors that keep their direction
  2. Two examples you can see
  3. Trace: the sum of the eigenvalues
  4. The characteristic equation
  5. A symmetric example
  6. Adding a multiple of I, and what does not work
  7. A rotation: complex eigenvalues
  8. A repeated eigenvalue and too few eigenvectors
  9. Summary

This is the first lecture on eigenvalues and eigenvectors, the subject of most of the rest of the course (transcript, p. 1). The matrices are square. This lecture is about what these special numbers and vectors are; the following lectures show what they are for. Determinants, from the last three lectures, are the tool for finding them.

Vectors that keep their direction#

A matrix acts on vectors like a function: in goes xx, out comes AxAx (transcript, p. 1). Most vectors come out pointing in a new direction. A few come out parallel to where they went in, and those are the eigenvectors (pp. 1–2):

Eigenvalue equation
Ax=λxAx = \lambda x
In words

capital A x equals lambda x

The multiplier λ\lambda is the eigenvalue. "Parallel" allows the very opposite direction too: λ\lambda may be negative, zero, or even an imaginary number (p. 2). The eigenvector must not be the zero vector.

Eigenvalue 00 is nothing special from this point of view. It means Ax=0x=0Ax = 0x = 0: the eigenvectors for λ=0\lambda = 0 are the nonzero vectors in the nullspace. So if AA is singular, λ=0\lambda = 0 is one of its eigenvalues (pp. 2–3).

Two examples you can see#

Before any formulas, Strang takes matrices whose action we already know (p. 3).

A projection PP onto a plane (pp. 3–5). A typical vector bb is not an eigenvector: its projection PbPb points elsewhere. But a vector xx already in the plane is projected onto itself, Px=xPx = x: every vector in the plane is an eigenvector with λ=1\lambda = 1, a whole plane of them (p. 4). A vector perpendicular to the plane is projected to zero, Px=0xPx = 0x, so λ=0\lambda = 0 (p. 5). In three dimensions that gives three independent eigenvectors, two in the plane and one across it, with eigenvalues 11, 11 and 00. All of this follows from the picture, without writing P=A(ATA)−1ATP = A(A^TA)^{-1}A^T (p. 5).

A permutation (pp. 6–7). The matrix

The swap permutation
A=(0110)A = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}
In words

capital A equals 0 1; 1 0

exchanges the two components of a vector. The vector (1,1)(1, 1) is unchanged, so it is an eigenvector with λ=1\lambda = 1 (p. 6). The vector (−1,1)(-1, 1) comes out as (1,−1)(1, -1), minus itself, so λ=−1\lambda = -1 (p. 7). A matrix with no negative entries can have a negative eigenvalue.

Trace: the sum of the eigenvalues#

An n×nn \times n matrix has nn eigenvalues, and for n=3n = 3 or more they are not easy to find: they are the roots of an equation of degree nn (p. 8). One fact helps at once (p. 8):

Sum of the eigenvalues
λ1+λ2+⋯+λn=a11+a22+⋯+ann\lambda_1 + \lambda_2 + \cdots + \lambda_n = a_{11} + a_{22} + \cdots + a_{nn}
In words

lambda one plus lambda two plus and so on plus lambda n equals a one one plus a two two plus and so on plus a n n

The sum down the diagonal is the trace. For the permutation it is 00, so once λ=1\lambda = 1 was found, the other eigenvalue had to be −1-1: in the 2×22 \times 2 case one eigenvalue and the trace give the other (p. 8).

The characteristic equation#

Both λ\lambda and xx are unknown, and they are multiplied together, so elimination cannot be used directly (p. 3). The trick is to bring λx\lambda x to the left (p. 9):

Shifted equation
(A−λI) x=0(A - \lambda I)\,x = 0
In words

the quantity capital A minus lambda capital I, x equals 0

A nonzero xx solves this only if A−λIA - \lambda I is singular, and singular matrices have determinant zero (pp. 9–10):

Characteristic equation
det⁡(A−λI)=0\det(A - \lambda I) = 0
In words

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

This is the characteristic (or eigenvalue) equation. It no longer contains xx, so the eigenvalues are found first (p. 10). There are nn of them, though some may be repeated, and "a repeated lambda is the source of all trouble" in 18.06, as Strang puts it (p. 10). Then for each λ\lambda, A−λIA - \lambda I is a singular matrix and xx is in its nullspace, found by elimination with the free variable set to 1 (pp. 10–11).

A symmetric example#

Strang makes the example easy: 2×22 \times 2, symmetric and constant down the diagonal (p. 11),

Lecture example
A=(3113)A = \begin{pmatrix} 3 & 1 \\ 1 & 3 \end{pmatrix}
In words

capital A equals 3 1; 1 3

Subtracting λ\lambda from the diagonal only, not from every entry (p. 13):

Its characteristic equation
det⁡(3−λ113−λ)=(3−λ)2−1=λ2−6λ+8=0\det\begin{pmatrix} 3 - \lambda & 1 \\ 1 & 3 - \lambda \end{pmatrix} = (3 - \lambda)^2 - 1 = \lambda^2 - 6\lambda + 8 = 0
In words

the determinant of 3 minus lambda 1; 1 3 minus lambda equals the quantity 3 minus lambda, all squared minus 1 equals lambda squared minus 6 lambda plus 8 equals 0

The 66 is the trace, 3+33 + 3, and the 88 is the determinant (pp. 13–14). For every 2×22 \times 2 matrix the equation reads

Two by two
λ2−(trace⁡) λ+det⁡A=0\lambda^2 - (\operatorname{trace})\,\lambda + \det A = 0
In words

lambda squared minus ( t r a c e ) lambda plus the determinant of capital A equals 0

It factors as (λ−4)(λ−2)=0(\lambda - 4)(\lambda - 2) = 0, so λ1=4\lambda_1 = 4 and λ2=2\lambda_2 = 2 (p. 14). The product of the eigenvalues is the determinant, 4⋅2=84 \cdot 2 = 8, in general as well as here (pp. 16, 20):

Product of the eigenvalues
λ1λ2⋯λn=det⁡A\lambda_1 \lambda_2 \cdots \lambda_n = \det A
In words

lambda one lambda two and so on lambda n equals the determinant of capital A

The eigenvectors (pp. 15–16). A−4IA - 4I has −1-1 on the diagonal and 11 off it; it is singular, as it must be (if it were not, 4 would be wrong), and its nullspace holds x1=(1,1)x_1 = (1, 1). A−2IA - 2I has all four entries 1, and its nullspace holds x2=(−1,1)x_2 = (-1, 1). Each nullspace is a whole line of eigenvectors; "the" eigenvector means one reasonable basis vector for that line (p. 16).

Two things to notice, which Strang points out before computing anything. The eigenvalues are real, as he announces they will be for every symmetric matrix, and the eigenvectors (1,1)(1, 1) and (−1,1)(-1, 1) are perpendicular: their dot product is zero (pp. 11–12). The swap permutation, also symmetric, had the same eigenvectors.

Adding a multiple of I, and what does not work#

This AA is the permutation plus 3I3I (p. 16). Its eigenvalues 44 and 22 are the permutation's 11 and −1-1 plus 3, and the eigenvectors did not change at all (p. 17). The reason is one line: if Ax=λxAx = \lambda x, then

Shift by 3I
(A+3I) x=λx+3x=(λ+3) x(A + 3I)\,x = \lambda x + 3x = (\lambda + 3)\,x
In words

the quantity capital A plus 3 capital I, x equals lambda x plus 3 x equals the quantity lambda plus 3, x

It is tempting to go further (pp. 18–19): if Ax=λxAx = \lambda x and BB has eigenvalue α\alpha, then "(A+B)x=(λ+α)x(A + B)x = (\lambda + \alpha)x". That argument is wrong. It assumes that xx is also an eigenvector of BB, and normally BB has different eigenvectors. In general the eigenvalues of A+BA + B are not sums of eigenvalues of AA and BB, and those of ABAB are not products: eigenvalues are not linear (p. 19). B=3IB = 3I worked only because every vector is an eigenvector of II.

A rotation: complex eigenvalues#

The 90°90° rotation, called QQ because rotations are orthogonal matrices, is (p. 20)

Ninety-degree rotation
Q=(cos⁡90°−sin⁡90°sin⁡90°cos⁡90°)=(0−110)Q = \begin{pmatrix} \cos 90° & -\sin 90° \\ \sin 90° & \cos 90° \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}
In words

Q equals cos 90° minus sine 90°; sine 90° cos 90° equals 0 minus 1; 1 0

Trouble is coming (pp. 20–21). Every vector is turned through 90°90°, so no real vector comes out parallel to itself. And the two facts above clash: the trace is 00, so the eigenvalues have opposite signs, but the determinant is +1+1, so their product is positive. The characteristic equation settles it (p. 22):

Rotation eigenvalues
det⁡(−λ−11−λ)=λ2+1=0,λ1=i, λ2=−i\det\begin{pmatrix} -\lambda & -1 \\ 1 & -\lambda \end{pmatrix} = \lambda^2 + 1 = 0, \qquad \lambda_1 = i,\ \lambda_2 = -i
In words

the determinant of minus lambda minus 1; 1 minus lambda equals lambda squared plus 1 equals 0, lambda one equals i, lambda two equals minus i

A perfectly real matrix can have complex eigenvalues, and complex numbers enter the course here (p. 22). They come as a complex conjugate pair: switch the sign of the imaginary part of one and you get the other (pp. 22–23). Symmetric matrices never do this. QQ is the opposite extreme, antisymmetric (QT=−QQ^T = -Q), and antisymmetric matrices have purely imaginary eigenvalues. Matrices close to symmetric keep real eigenvalues; the ones in between have a symmetric part and an antisymmetric part (p. 23).

A repeated eigenvalue and too few eigenvectors#

One more bad case (p. 24). Change one entry of the earlier example to zero:

Triangular example
A=(3103),det⁡(A−λI)=(3−λ)2A = \begin{pmatrix} 3 & 1 \\ 0 & 3 \end{pmatrix}, \qquad \det(A - \lambda I) = (3 - \lambda)^2
In words

capital A equals 3 1; 0 3, the determinant of the quantity capital A minus lambda capital I, equals the quantity 3 minus lambda, all squared

For a triangular matrix the eigenvalues sit on the diagonal, because the determinant of a triangular matrix is the product of its diagonal entries (pp. 24–25). Here λ=3\lambda = 3 twice. The trouble is in the eigenvectors: A−3IA - 3I has a single nonzero entry, 11, in the corner, and its nullspace is the line through (1,0)(1, 0) (p. 25). The second λ=3\lambda = 3 should bring a second independent eigenvector, and there is none (p. 26). The matrix is degenerate: a repeated eigenvalue opens the door to a shortage of eigenvectors. For all other matrices the next lecture gives "the complete story" (p. 26).

Worked example

Eigenvalues of your own

(a) Find the eigenvalues and eigenvectors of A=(5222)A = \begin{pmatrix} 5 & 2 \\ 2 & 2 \end{pmatrix}, and check the trace, the determinant and the angle between the eigenvectors. (b) Do the same for the triangular B=(1403)B = \begin{pmatrix} 1 & 4 \\ 0 & 3 \end{pmatrix}.

(a) Eigenvalues

Trace 77, determinant 10−4=610 - 4 = 6, so λ2−7λ+6=(λ−6)(λ−1)=0\lambda^2 - 7\lambda + 6 = (\lambda - 6)(\lambda - 1) = 0: λ1=6\lambda_1 = 6, λ2=1\lambda_2 = 1. Sum 77, product 66.

(a) Eigenvectors

A−6I=(−122−4)A - 6I = \begin{pmatrix} -1 & 2 \\ 2 & -4 \end{pmatrix} is singular; its nullspace holds x1=(2,1)x_1 = (2, 1). Check: Ax1=(12,6)=6x1Ax_1 = (12, 6) = 6x_1. A−I=(4221)A - I = \begin{pmatrix} 4 & 2 \\ 2 & 1 \end{pmatrix} gives x2=(1,−2)x_2 = (1, -2), and Ax2=(1,−2)Ax_2 = (1, -2). The dot product 2⋅1+1⋅(−2)=02 \cdot 1 + 1 \cdot (-2) = 0: perpendicular, as for every symmetric matrix.

(b) Triangular

The eigenvalues are the diagonal entries, 11 and 33 (sum 44 = trace, product 33 = det). B−I=(0402)B - I = \begin{pmatrix} 0 & 4 \\ 0 & 2 \end{pmatrix} gives x1=(1,0)x_1 = (1, 0); B−3I=(−2400)B - 3I = \begin{pmatrix} -2 & 4 \\ 0 & 0 \end{pmatrix} gives x2=(2,1)x_2 = (2, 1). Check: Bx2=(6,3)=3x2Bx_2 = (6, 3) = 3x_2. The eigenvalues are different, so there is no shortage, but BB is not symmetric and x1⋅x2=2x_1 \cdot x_2 = 2: the eigenvectors are not perpendicular.

Summary#

  • Ax=λxAx = \lambda x with x≠0x \neq 0: eigenvectors keep their direction, and λ\lambda is the stretch factor. λ=0\lambda = 0 means AA is singular.
  • Find λ\lambda first from det⁡(A−λI)=0\det(A - \lambda I) = 0, then each xx from the nullspace of A−λIA - \lambda I.
  • The eigenvalues add up to the trace and multiply to the determinant; for 2×22 \times 2, λ2−(trace)λ+det⁡=0\lambda^2 - (\text{trace})\lambda + \det = 0.
  • Adding cIcI adds cc to each eigenvalue and keeps the eigenvectors; A+BA + B and ABAB have no such rule.
  • Symmetric matrices have real eigenvalues and perpendicular eigenvectors (announced here, shown later); a rotation has complex ones (±i\pm i), and a repeated eigenvalue can leave too few eigenvectors.

Symbols on this page

Show the 28 symbols used here
α\alpha alpha.
An eigenvalue of the second matrix B. Say it: “alpha”.
λ\lambda lambda.
An eigenvalue of A. Say it: “lambda”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
cc c.
Any number, in A + cI. Say it: “c”.
TT T.
As a superscript: the transpose. Say it: “capital T”.
xx x.
An eigenvector: a nonzero vector with Ax = λx. Say it: “x”.
ii i.
The imaginary unit, i² = −1. Say it: “i”.
nn n.
The size of the matrix. Say it: “n”.
PP P.
A projection matrix onto a plane. Say it: “capital P”.
QQ Q.
The 90° rotation matrix, an orthogonal matrix. Say it: “Q”.
AA A.
A square matrix; in the examples, the swap permutation, the symmetric matrix with rows (3, 1), (1, 3), and the triangular matrix with rows (3, 1), (0, 3). Say it: “capital A”.
BB B.
A second square matrix, added to A or multiplied by it; in the worked example, the triangular matrix with rows (1, 4), (0, 3). Say it: “capital B”.
bb b.
A typical vector, not an eigenvector of the projection: Pb points in another direction. Say it: “b”.
x1x_{1} x 1.
The eigenvector for λ₁. Say it: “x one”.
x2x_{2} x 2.
The eigenvector for λ₂. Say it: “x two”.
II I.
The identity matrix. Say it: “capital I”.
λ1\lambda_{1} lambda one.
The first eigenvalue. Say it: “lambda one”.
λ2\lambda_{2} lambda two.
The second eigenvalue. Say it: “lambda two”.
a11a_{11} a one one.
The entry of A in row 1, column 1. Say it: “a one one”.
a22a_{22} a two two.
The entry of A in row 2, column 2. Say it: “a two two”.
anna_{\text{nn}} a n n.
The last diagonal entry of A. Say it: “a n n”.
λn\lambda_{n} lambda n.
The last of the n eigenvalues. Say it: “lambda n”.

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

Words on this page

Show the 30 words used here

New here

antisymmetric.
Changing sign when two things are swapped, or when a shape or function is reflected; an antisymmetric matrix equals minus its transpose.
degenerate.
Having the same value: of different quantum states, sharing one energy; of a matrix or operator, having a repeated eigenvalue.

Also used

eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
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. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
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.
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.
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.
zero vector.
The vector whose components are all zero; adding it to any vector changes nothing. Explained in Transposes, permutations and vector spaces.
nullspace.
All the vectors x that a matrix sends to zero, that is, all solutions of Ax = 0. Explained in Column space and nullspace.
singular.
Of a square matrix: having no inverse, because its determinant is zero and some nonzero vector is sent to zero. Explained in The geometry of linear equations.
projection.
The shadow of a vector on a line or plane: the nearest point to it there, found by dropping a perpendicular. Explained in Projections onto subspaces.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
dimension.
The number of vectors in any basis of a vector space or subspace. Explained in Independence, basis and dimension.
permutation.
A rearrangement of a list of things into a new order. Explained in Elimination with matrices.
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.
trace.
The sum of the numbers on the main diagonal of a square matrix; it equals the sum of the eigenvalues. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
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.
free variable.
An unknown whose column has no pivot, so it can be given any value; the other unknowns are then fixed by the equations.
symmetric.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
basis.
A set of independent vectors from which every vector in a space can be built, in exactly one way, as a combination. Explained in Independence, basis and dimension.
dot product.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
linear.
Of a map, operator or equation: respecting sums and multiples, so that L(au + bv) = aL(u) + bL(v). Explained in The geometry of linear equations.
orthogonal matrix.
A square matrix whose columns are perpendicular unit vectors; it rotates or reflects without changing lengths, and its inverse is its transpose. Explained in Orthogonal matrices and Gram–Schmidt.
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.
triangular matrix.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
assumption.
Something accepted as true, without proof, so that an argument or calculation can proceed; to assume is to accept it so.

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. A projection matrix PP onto a plane in three dimensions. Which eigenvalues does it have?
  2. A 2×22 \times 2 matrix has trace 7 and determinant 10. What are its eigenvalues?
  3. AA has eigenvector xx with eigenvalue 4. What can you say about A+3IA + 3I?
  4. Why does the 90°90° rotation QQ have no real eigenvector?
0 of 4 answered

Flashcards

1 / 4