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

Similar matrices and the Jordan form

First, more on positive definite matrices: if A is positive definite so is A⁻¹ (eigenvalues 1/λ), and so is A + B when B is (add xᵀAx > 0 and xᵀBx > 0). For a rectangular m × n matrix A, AᵀA is square and symmetric, and xᵀAᵀAx = (Ax)ᵀ(Ax) = ‖Ax‖² ≥ 0; it is positive definite exactly when Ax = 0 only for x = 0, i.e. rank n (independent columns). Then similar matrices: B is similar to A when B = M⁻¹AM for some invertible M. Diagonalisation, S⁻¹AS = Λ, is the special case M = S. Similar matrices have the same eigenvalues: from Ax = λx, B(M⁻¹x) = λ(M⁻¹x), so the eigenvector moves to M⁻¹x. Strang's example: A = (2 1; 1 2), M = (1 4; 0 1) give B = (−2 −15; 1 6), with trace 4 and determinant 3 like A, eigenvalues 3 and 1. With a repeated eigenvalue the matrices split into families: 4I is similar only to itself, while (4 1; 0 4), (5 1; −1 3), (4 0; 17 4) and every other matrix with eigenvalues 4, 4 that is not 4I form one family, each with only one eigenvector. Counting eigenvectors is not enough: two 4 × 4 matrices with eigenvalue 0 four times and rank 2 can differ in their Jordan blocks (3 + 1 versus 2 + 2). Jordan's theorem: every square matrix is similar to a Jordan matrix J made of blocks with one eigenvalue on the diagonal and ones just above it, one block per eigenvector; with distinct eigenvalues J = Λ. It is hard to compute, since the slightest change in the numbers changes it.

You need this first

Full reading path (25 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)
  15. Eigenvalues and eigenvectors (18.06)
  16. Diagonalisation and powers of A (18.06)
  17. Solving Ax = 0: pivot variables and special solutions (18.06)
  18. Solving Ax = b: the complete solution (18.06)
  19. Independence, basis and dimension (18.06)
  20. The four fundamental subspaces (18.06)
  21. Orthogonal vectors and subspaces (18.06)
  22. Projections onto subspaces (18.06)
  23. Projection matrices and least squares (18.06)
  24. Symmetric matrices and positive definiteness (18.06)
  25. Positive definite matrices and minima (18.06)
On this page · 5 sections
  1. More on positive definite matrices
  2. Similar matrices
  3. Repeated eigenvalues: two families
  4. Jordan's theorem
  5. Summary

This lecture is mostly about similar matrices, but first a little more on positive definite matrices: where they come from (transcript, p. 1). The previous lecture gave their tests and meaning.

More on positive definite matrices#

The inverse (pp. 1–2). If AA is symmetric positive definite, is A−1A^{-1}? The pivots of A−1A^{-1} are no help, but its eigenvalues are 1/λ1/\lambda, positive when the λ\lambda's are. So yes (p. 2).

A sum (pp. 2–3). If AA and BB are positive definite, the eigenvalues and pivots of A+BA + B are unknown, but the quadratic form settles it (p. 2):

Sum of positive definite matrices
xT(A+B)x=xTAx+xTBx>0for x≠0x^T(A + B)x = x^TAx + x^TBx > 0 \quad\text{for } x \neq 0
In words

x^ capital T the quantity capital A plus B, x equals x^ capital T capital A x plus x^ capital T B x greater than 0 for x is not equal to 0

ATAA^TA (pp. 3–5). Now let AA be rectangular, m×nm \times n (Strang apologises for reusing the letter). No such matrix is positive definite, but ATAA^TA, from least squares, is square and symmetric, and like the square of a number it should be positive (p. 3). Put the parentheses in a good way (p. 4):

Why AᵀA is positive
xTATAx=(Ax)T(Ax)=∥Ax∥2≥0x^TA^TAx = (Ax)^T(Ax) = \|Ax\|^2 \geq 0
In words

x^ capital T capital A ^ capital T capital A x equals ( capital A x)^ capital T ( capital A x) equals the norm of capital A x squared is greater than or equal to 0

It is zero only if Ax=0Ax = 0 (p. 5). That cannot happen for x≠0x \neq 0 when the nullspace of AA is only the zero vector, that is when the columns are independent: rank nn. For an 11×511 \times 5 matrix, rank 5 (p. 5). Then ATAA^TA is positive definite, invertible, and the least-squares equations work fine. Numerically such matrices are the best: elimination never needs row exchanges and never meets unsuitably small pivots (p. 5).

Strang notes that positive definiteness brings the course close to the end of "the heart of linear algebra", and that the singular value decomposition, next lecture, has become central enough to be in the course (p. 6).

Similar matrices#

Two n×nn \times n matrices, not necessarily symmetric, are similar if (p. 6)

Similar matrices
B=M−1AMfor some invertible MB = M^{-1}AM \qquad\text{for some invertible } M
In words

B equals capital M to the power minus 1 capital A capital M for some invertible capital M

We have done this already: with a full set of eigenvectors in SS, S−1AS=ΛS^{-1}AS = \Lambda, so AA is similar to Λ\Lambda (p. 7). Any other invertible MM gives another similar matrix, not diagonal. Similarity sorts matrices into families, and Λ\Lambda is the outstanding member of AA's family, the simplest and neatest (p. 7).

Strang's example (pp. 7–9). A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} has eigenvalues 3 and 1, so it is similar to Λ=(3001)\Lambda = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix} (pp. 7–8). With a triangular MM made up on the spot (p. 8; the transcript's "one four one zero" is M=(1401)M = \begin{pmatrix} 1 & 4 \\ 0 & 1 \end{pmatrix}, as the inverse he writes and the result show):

Another member of the family
M−1AM=(1−401)(2112)(1401)=(−2−1516)=BM^{-1}AM = \begin{pmatrix} 1 & -4 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}\begin{pmatrix} 1 & 4 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} -2 & -15 \\ 1 & 6 \end{pmatrix} = B
In words

capital M to the power minus 1 capital A capital M equals 1 minus 4; 0 1 2 1; 1 2 1 4; 0 1 equals minus 2 minus 15; 1 6 equals B

BB does not look special, but its trace is −2+6=4-2 + 6 = 4 and its determinant −12+15=3-12 + 15 = 3: the same as AA's, so its eigenvalues are also 3 and 1 (p. 9). The main fact (p. 9):

Main fact
similar matrices have the same eigenvalues\text{similar matrices have the same eigenvalues}
In words

similar matrices have the same eigenvalues

The family of AA is all matrices with eigenvalues 3 and 1, for example a triangular one with 3 and 1 on the diagonal (p. 10). Why (pp. 10–11): start from Ax=λxAx = \lambda x, insert MM−1MM^{-1}, and multiply on the left by M−1M^{-1}:

Proof
AMM−1x=λx⇒M−1AM (M−1x)=λ (M−1x)⇒B(M−1x)=λ(M−1x)AMM^{-1}x = \lambda x \quad\Rightarrow\quad M^{-1}AM\,(M^{-1}x) = \lambda\,(M^{-1}x) \quad\Rightarrow\quad B(M^{-1}x) = \lambda(M^{-1}x)
In words

capital A capital M capital M to the power minus 1 x equals lambda x which gives capital M to the power minus 1 capital A capital M ( capital M to the power minus 1 x) equals lambda ( capital M to the power minus 1 x) which gives B( capital M to the power minus 1 x) equals lambda ( capital M to the power minus 1 x)

So λ\lambda is an eigenvalue of BB, with eigenvector M−1xM^{-1}x: the eigenvalues stay and the eigenvectors are "moved around" (pp. 11–12). Diagonalisation is the most important case: it moves the eigenvectors to (1,0)(1, 0) and (0,1)(0, 1) (p. 12).

Repeated eigenvalues: two families#

With λ1=λ2\lambda_1 = \lambda_2 the matrix might not be diagonalisable (p. 13). Take eigenvalues 44 and 44. The matrices with these eigenvalues form two families (p. 13). One is a loner: 4I4I, because for any MM (p. 14)

The loner
M−1(4I)M=4M−1M=4IM^{-1}(4I)M = 4M^{-1}M = 4I
In words

capital M to the power minus 1 (4 capital I ) capital M equals 4 capital M to the power minus 1 capital M equals 4 capital I

All the others form the second family, whose best member is (pp. 14–15)

Jordan block
J=(4104)J = \begin{pmatrix} 4 & 1 \\ 0 & 4 \end{pmatrix}
In words

J equals 4 1; 0 4

It is not diagonalisable (otherwise it would be similar to 4I4I) and has only one eigenvector (p. 14). Replacing the 1 by 10 or a million stays in the family (p. 15). Other members are found from trace 8 and determinant 16, such as (p. 16)

More members
(51−13),(40174)\begin{pmatrix} 5 & 1 \\ -1 & 3 \end{pmatrix}, \qquad \begin{pmatrix} 4 & 0 \\ 17 & 4 \end{pmatrix}
In words

5 1; minus 1 3, 4 0; 17 4

In general aa and 8−a8 - a on the diagonal, with the off-diagonal entries chosen to make the determinant 16, except 4I4I itself (pp. 16–17). Similar matrices also have the same number of independent eigenvectors, here one each (p. 17).

Counting eigenvectors is not enough (pp. 17–20). Strang's "nightmare" 4×44 \times 4 matrices have eigenvalue 0 four times. The transcript does not give the positions of the ones; the block structures he describes fix them. With ones at positions (1, 2) and (2, 3) above the diagonal, the rank is 2, so the nullspace, which holds the eigenvectors, has dimension 4−2=24 - 2 = 2: two eigenvectors, two missing (pp. 17–18). (Strang then changes a zero to 7 and notes that the eigenvalues are all still zero and the rank still 2; the transcript does not say which zero. A 7 above the diagonal at position (1, 3), say, does exactly that and gives a similar matrix, but Jordan's choice is the one with ones: a one above the diagonal for every missing eigenvector; p. 18.) Now move a one: ones at (1, 2) and (3, 4) (p. 19). Again eigenvalue 0 four times, rank 2 and two eigenvectors, yet the two matrices are not similar. The first is made of a 3×33 \times 3 block and a 1×11 \times 1 block, the second of two 2×22 \times 2 blocks (pp. 19–20):

Two Jordan structures
(0100001000000000)versus(0100000000010000)\begin{pmatrix} 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{pmatrix} \quad\text{versus}\quad \begin{pmatrix} 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 \end{pmatrix}
In words

0 1 0 0; 0 0 1 0; 0 0 0 0; 0 0 0 0 versus 0 1 0 0; 0 0 0 0; 0 0 0 1; 0 0 0 0

Jordan's theorem#

A Jordan block has one repeated eigenvalue λi\lambda_i on the diagonal, ones just above it and zeros elsewhere; it has exactly one eigenvector (p. 19):

Jordan block
Ji=(λi1λi⋱⋱1λi)J_i = \begin{pmatrix} \lambda_i & 1 & & \\ & \lambda_i & \ddots & \\ & & \ddots & 1 \\ & & & \lambda_i \end{pmatrix}
In words

J sub i equals lambda i 1; lambda i and so on down the diagonal; and so on down the diagonal 1; lambda i

Jordan's theorem (p. 20): every square matrix AA is similar to a Jordan matrix, with Jordan blocks J1,…,JdJ_1, \dots, J_d down the diagonal:

Jordan form
A=MJM−1,J=(J1⋱Jd),d=number of independent eigenvectorsA = MJM^{-1}, \qquad J = \begin{pmatrix} J_1 & & \\ & \ddots & \\ & & J_d \end{pmatrix}, \qquad d = \text{number of independent eigenvectors}
In words

capital A equals capital M J capital M to the power minus 1, J equals J one; and so on down the diagonal; J sub d, d equals number of independent eigenvectors

In the good case, nn distinct eigenvalues, every block is 1×11 \times 1, d=nd = n and J=ΛJ = \Lambda (p. 20). Jordan completed diagonalisation by coming as near to diagonal as possible, so every matrix is covered (p. 15). When Strang took 18.06 this was the climax of the course; it is no longer, because the Jordan form depends on eigenvalues being exactly equal and on exact ranks, and the slightest change in the numbers changes it, so it is numerically not a good thing, though right for algebra (pp. 15, 20–21). How to compute JJ is not covered (p. 20).

Worked example

Families of your own

(a) Let A=(5214)A = \begin{pmatrix} 5 & 2 \\ 1 & 4 \end{pmatrix} and M=(1101)M = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}. Find B=M−1AMB = M^{-1}AM, check that the eigenvalues agree, and move an eigenvector of AA to one of BB. (b) Is C=(61−14)C = \begin{pmatrix} 6 & 1 \\ -1 & 4 \end{pmatrix} similar to (5105)\begin{pmatrix} 5 & 1 \\ 0 & 5 \end{pmatrix}? (c) Is ATAA^TA positive definite for the 3×23 \times 2 matrix with columns (1,2,3)(1, 2, 3) and (2,4,1)(2, 4, 1)?

(a) The similar matrix

M−1=(1−101)M^{-1} = \begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix}, AM=(5715)AM = \begin{pmatrix} 5 & 7 \\ 1 & 5 \end{pmatrix}, so B=(4215)B = \begin{pmatrix} 4 & 2 \\ 1 & 5 \end{pmatrix}. Both have trace 9 and determinant 18 (20−220 - 2 for AA and for BB), so eigenvalues 6 and 3. A−6I=(−121−2)A - 6I = \begin{pmatrix} -1 & 2 \\ 1 & -2 \end{pmatrix} gives x=(2,1)x = (2, 1); then M−1x=(1,1)M^{-1}x = (1, 1), and indeed B(1,1)=(6,6)B(1, 1) = (6, 6).

(b) A repeated eigenvalue

CC has trace 10 and determinant 24+1=2524 + 1 = 25, so eigenvalues 5 and 5. It is not 5I5I, so it is in the big family with the Jordan block: yes, similar. (C−5I=(11−1−1)C - 5I = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix} has rank 1: one eigenvector, (1,−1)(1, -1).)

(c) AᵀA

The columns are independent, so yes. Directly: ATA=(14131321)A^TA = \begin{pmatrix} 14 & 13 \\ 13 & 21 \end{pmatrix}, with 14>014 > 0 and determinant 294−169=125>0294 - 169 = 125 > 0.

Summary#

Symbols on this page

Show the 25 symbols used here
λ\lambda lambda.
An eigenvalue of A. Say it: “lambda”.
Λ\Lambda capital lambda.
The diagonal matrix of the eigenvalues. Say it: “capital lambda”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
≠\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”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
aa a.
Any number, in a family of matrices with diagonal entries a and 8 − a. Say it: “a”.
TT T.
As a superscript: the transpose. Say it: “capital T”.
xx x.
A vector; in Ax = λx, an eigenvector of A. Say it: “x”.
dd d.
The number of Jordan blocks: the number of independent eigenvectors. Say it: “d”.
nn n.
The size of a square matrix; the number of columns of a rectangular A. Say it: “n”.
mm m.
The number of rows of a rectangular A. Say it: “m”.
AA A.
A square matrix (in the first part, a positive definite or a rectangular m × n matrix); in the example, the matrix with rows (2, 1), (1, 2). Say it: “capital A”.
BB B.
A second matrix: positive definite in A + B; later the matrix similar to A, B = M⁻¹AM. Say it: “B”.
CC C.
The worked example's matrix with rows (6, 1), (−1, 4). Say it: “C”.
MM M.
An invertible matrix that connects similar matrices, B = M⁻¹AM. Say it: “capital M”.
SS S.
The eigenvector matrix, with S⁻¹AS = Λ. Say it: “S”.
JJ J.
A Jordan matrix (or the 2 × 2 Jordan block with 4, 4 on the diagonal and 1 above). Say it: “J”.
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”.
λi\lambda_{i} lambda i.
The repeated eigenvalue on the diagonal of the Jordan block Jᵢ. Say it: “lambda i”.
JiJ_{i} J i.
The i-th Jordan block. Say it: “J sub i”.
J1J_{1} J 1.
The first Jordan block. Say it: “J one”.
JdJ_{d} J d.
The last Jordan block. Say it: “J sub d”.

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

similar.
Of two square matrices: describing the same transformation in two different bases.
rank.
The number of independent columns of a matrix, which always equals the number of independent rows.
Jordan block.
A square matrix with one eigenvalue repeated down its diagonal, ones just above the diagonal and zeros elsewhere; it has only one eigenvector.
Jordan form.
The simplest matrix similar to a given one: Jordan blocks along the diagonal, one block for each independent eigenvector.

Also used

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.
positive definite.
Of a symmetric matrix or quadratic form: always giving a positive value for any nonzero input; equivalently, all its eigenvalues are positive. Explained in Symmetric matrices and positive definiteness.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
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.
pivot.
In elimination, the first nonzero number in a row, used to clear out the entries below it. Explained in Positive definite matrices and minima.
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.
quadratic form.
An expression in which every term has degree two, such as ax² + 2bxy + cy², written xᵀAx with a symmetric matrix A. Explained in Positive definite matrices and minima.
least squares.
A way to fit a model to data by choosing it to make the sum of the squared errors as small as possible. Explained in Projection matrices and least squares.
nullspace.
All the vectors x that a matrix sends to zero, that is, all solutions of Ax = 0. Explained in Column space and nullspace.
zero vector.
The vector whose components are all zero; adding it to any vector changes nothing. Explained in Transposes, permutations and vector spaces.
invertible.
Of a square matrix or operator: having an inverse that undoes it; for a matrix this happens exactly when its determinant is not zero. Explained in The geometry of linear equations.
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.
row exchange.
Swapping two rows of a matrix, needed in elimination when a zero sits where a pivot should be.
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.
singular value decomposition.
Writing any matrix as A = UΣVᵀ: a rotation (perhaps with a reflection), a stretching along perpendicular axes, and another rotation. Explained in Singular value decomposition.
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.
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.
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.
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.
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.
diagonalise.
To rewrite a matrix in a basis of its eigenvectors, where it becomes diagonal, with its eigenvalues down the diagonal. Explained in Diagonalisation and powers of A.
dimension.
The number of vectors in any basis of a vector space or subspace. Explained in Independence, basis and dimension.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.

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. When is ATAA^TA positive definite, for a rectangular m×nm \times n matrix AA?
  2. B=M−1AMB = M^{-1}AM and Ax=λxAx = \lambda x. Which vector is an eigenvector of BB?
  3. Which matrix is similar to (4104)\begin{pmatrix} 4 & 1 \\ 0 & 4 \end{pmatrix}?
  4. How many Jordan blocks does a Jordan matrix have?
0 of 4 answered

Flashcards

1 / 4