Survey of Mathematics

2.8 Eigenvalues and eigenvectors

Some directions are only stretched by a linear map, never turned. Finding them (the eigenvectors) turns a hard-looking map into a list of stretch factors, and turns "apply it 100 times" into powers of ordinary numbers.

Taught in 375/376Apostol, not taughtBeyond the courseApostol 4.1 to 4.10Spagnolie, Lectures 16 to 18MATH 375 HW9 and HW10

In 2.5 a matrix moved the whole plane: most directions got turned and stretched at the same time, which is hard to read. But a few directions are special. The map sends them along their own line and only stretches, shrinks or flips them. Those directions are the eigenvectors (“eigen” is German for “own”). This chapter finds them, shows when they are enough to rebuild the whole map, and uses them to compute A100A^{100} in one line.

Before you start

You need four earlier ideas: the null space of a linear map, linear independence, the matrix of a map with change of basis and similar matrices (2.5), and the determinant (2.7). Three quick checks:

Quick checkA linear map TT sends a non-zero vector xx to OO. Which statement is true?
Quick checkAre (1,2)(1, 2) and (3,6)(3, 6) linearly independent in R2\mathbb R^2?
Quick checkA square matrix has determinant 00. Which statement is true?

The picture

This is the map with matrix A=[3102]A = \begin{bmatrix}3 & 1\\ 0 & 2\end{bmatrix}. Its first column (3,0)(3, 0) is where ı^\hat\imath lands and its second column (1,2)(1, 2) is where ȷ^\hat\jmath lands. Press “Apply the map”. The two dashed orange lines are the special directions. Every point on the horizontal line moves along that line to three times its distance from the origin. Every point on the other line, the one through (1,−1)(1, -1), moves along that line to twice its distance. A point anywhere else leaves the line it started on.

Try the presets. “Stretch” has two dashed lines (the axes). “Shear” has exactly one. “Rotate 90°” has none, because a quarter turn sends every direction to a different direction. Those three behaviours (two special lines, one, none) are the whole story of this chapter. Counting the special lines is how we decide whether a map can be understood by stretching alone.

Where this came from· From spinning bodies to the word 'eigen'

Eigenvectors first appeared in mechanics, before matrix theory existed. By the 1760s Euler had shown that every rigid body has three perpendicular axes (its principal axes) about which it can spin steadily. Lagrange later recognised those axes as the eigenvectors of the body’s inertia matrix. He and Laplace met the same kind of equation for the small vibrations of coupled systems and for the slow drifts of the planets’ orbits. Changes that build up over centuries are called “secular”, so the equation was long known as the secular equation. In 1829 Cauchy proved that for a symmetric array of numbers all the roots of that equation are real, and he introduced the name “characteristic root”, which survives in “characteristic equation”. The word “eigen” came last: in 1904 Hilbert became the first to use the German “eigen” (own) for the special values in his work on integral equations.

The idea, in words

Let TT be a linear map from a space to itself. We ask for vectors xx that TT does not turn: T(x)T(x) lies on the same line as xx, so T(x)=λxT(x) = \lambda x for some number λ\lambda. If we find nn independent such vectors in an nn-dimensional space, they form a basis. In that basis every vector is a combination of directions that TT merely stretches, so the matrix of TT is diagonal. The hard map has become a list of nn stretch factors.

Why· Why this is worth the trouble

Applying the same map again and again is what recurrences, population models, Markov chains and differential equations all do. If T(x)=3xT(x) = 3x then T(T(x))=9xT(T(x)) = 9x and T100(x)=3100xT^{100}(x) = 3^{100}x. No matrix is multiplied 100 times. So if a basis of such vectors exists, every vector is a sum of pieces, and each piece is multiplied by a power of its own number. Spagnolie opens Lecture 16 with exactly this: “A x = b” and “A x = λ x” are the two most important equations of linear algebra, and the second one controls repeated application.

Definitions and theorems

Eigenvectors and eigenvalues

Definition T

Eigenvector

Let T:V→VT: V \to V be a linear map from a vector space to itself. (The input and output space must be the same, otherwise “stays on its own line” has no meaning.) A scalar is an ordinary number, real unless we say complex. A vector xx in VV is an eigenvector of TT if

x≠OandT(x)=λxfor some scalar λ.x \ne O \quad\text{and}\quad T(x) = \lambda x \quad\text{for some scalar } \lambda.

For a square matrix AA this reads Ax=λxAx = \lambda x.

In one lineA non-zero vector xx that a map TT from a space to itself only stretches: T(x)=λxT(x) = \lambda x for some scalar λ\lambda.

Why it existsIt is a direction on which the map is as plain as it can be: multiplication by a number.

Definition T

Eigenvalue

A scalar λ\lambda is an eigenvalue of TT if there is an eigenvector xx with T(x)=λxT(x) = \lambda x. We say xx belongs to λ\lambda. A negative λ\lambda flips the direction. λ=0\lambda = 0 means the vector is sent to OO. λ=1\lambda = 1 means the vector does not move.

In one lineThe scalar λ\lambda in T(x)=λxT(x) = \lambda x: the stretch factor along an eigenvector.

Why it existsThe eigenvalues are the numbers that describe the map once the directions are chosen well.

The condition x≠Ox \ne O is not a technicality. Since T(O)=O=λOT(O) = O = \lambda O for every λ\lambda, the zero vector would satisfy the equation for all λ\lambda and every number would be an “eigenvalue”. Excluding OO is what makes the question meaningful. The eigenvalue itself may be 00, and that happens exactly when the map destroys something: T(x)=0x=OT(x) = 0x = O for a non-zero xx means xx is a non-zero vector in the null space.

Worked example Spagnolie Lecture 16, new numbers
Is (1, -1) an eigenvector of the matrix with rows (3, 1) and (0, 2)? Is (1, 1)?

Solution.

  1. Apply the matrix to the vector. A[1−1]=[3⋅1+1⋅(−1)0⋅1+2⋅(−1)]=[2−2]A\begin{bmatrix}1\\-1\end{bmatrix} = \begin{bmatrix}3\cdot 1 + 1\cdot(-1)\\ 0\cdot 1 + 2\cdot(-1)\end{bmatrix} = \begin{bmatrix}2\\-2\end{bmatrix}. An eigenvector test is: apply the map and see whether the output lies on the input’s line.
  2. Compare output with input. (2,−2)=2 (1,−1)(2, -2) = 2\,(1, -1). This is Ax=λxAx = \lambda x with λ=2\lambda = 2, and (1,−1)≠O(1,-1) \ne O, so both conditions of the definition hold.
  3. Repeat for (1,1)(1, 1). A[11]=[42]A\begin{bmatrix}1\\1\end{bmatrix} = \begin{bmatrix}4\\2\end{bmatrix}. If this were c (1,1)c\,(1, 1), the first coordinate would force c=4c = 4 and the second c=2c = 2. One single number cc must work for every coordinate at once.

Answer. (1,−1)(1, -1) is an eigenvector with eigenvalue 22. (1,1)(1, 1) is not an eigenvector.

Three more examples, each checked by multiplying.

  • The swap matrix [0110]\begin{bmatrix}0&1\\1&0\end{bmatrix} (Spagnolie’s Lecture 16) sends (x,y)(x, y) to (y,x)(y, x), a mirror in the line y=xy = x. Then (1,1)(1, 1) is fixed, so λ=1\lambda = 1, and (−1,1)↦(1,−1)=−1⋅(−1,1)(-1, 1) \mapsto (1, -1) = -1\cdot(-1, 1), so λ=−1\lambda = -1.
  • Differentiation D(f)=f′D(f) = f' on the infinitely differentiable functions (so that f′f' is again in the space): D(eλt)=λeλtD(e^{\lambda t}) = \lambda e^{\lambda t}. So every real number λ\lambda is an eigenvalue, and eλte^{\lambda t} is an eigenfunction (an eigenvector that is a function).
  • The identity map: I(x)=1⋅xI(x) = 1\cdot x, so every non-zero vector is an eigenvector with eigenvalue 11.
Quick checkWhich is true of the zero vector OO and the number 00 in the definition of an eigenvector?
Fact T Spagnolie Lecture 16

An eigenvector has only one eigenvalue

If x≠Ox \ne O, T(x)=λxT(x) = \lambda x and T(x)=μxT(x) = \mu x, then λ=μ\lambda = \mu.

In one lineIf T(x)=λxT(x) = \lambda x and T(x)=μxT(x) = \mu x with x≠Ox \ne O, then λ=μ\lambda = \mu.

Why it is trueSubtract the two equations. What is left is a scalar times a non-zero vector equal to OO.

ProofSpagnolie Lecture 16
The idea: Both equations give the same T(x). Set them equal, move everything to one side, and use that a non-zero vector times a scalar is zero only for the scalar zero.
λx=μx\lambda x = \mu x.
Both right-hand sides equal T(x)T(x).
(λ−μ)x=O(\lambda - \mu)x = O.
Axiom 9 of 2.1 (distributivity over scalars) gives λx−μx=(λ−μ)x\lambda x - \mu x = (\lambda - \mu)x.
So λ−μ=0\lambda - \mu = 0.
If λ−μ≠0\lambda - \mu \ne 0, multiply by 1/(λ−μ)1/(\lambda - \mu) to get x=Ox = O, which was excluded.

The reverse statement is false: an eigenvalue does not have only one eigenvector. One eigenvalue has many eigenvectors: if xx belongs to λ\lambda then so does 2x2x, since T(2x)=2T(x)=2λx=λ(2x)T(2x) = 2T(x) = 2\lambda x = \lambda(2x). The next definition collects all of them.

Definition T

Eigenspace

For an eigenvalue λ\lambda of TT, the eigenspace is

E(λ)={x∈V:T(x)=λx}=N(T−λI).E(\lambda) = \{x \in V : T(x) = \lambda x\} = N(T - \lambda I).

(Here N(⋅)N(\cdot) is the null space from 2.3, and T−λIT - \lambda I is the map x↦T(x)−λxx \mapsto T(x) - \lambda x.) The zero vector is put in by hand, because it is not an eigenvector but must be in any subspace.

In one lineAll vectors xx with T(x)=λxT(x) = \lambda x, together with OO: the eigenvectors of λ\lambda plus the zero vector. It equals the null space of T−λIT - \lambda I.

Why it existsIt turns 'the eigenvectors of λ\lambda' into a subspace, so dimension and bases make sense for it.

Theorem T Spagnolie Lecture 16

Eigenspaces are subspaces

For every scalar λ\lambda, E(λ)E(\lambda) is a subspace of VV. Its dimension is at least 11 exactly when λ\lambda is an eigenvalue.

In one lineE(λ)E(\lambda) is a subspace, because it is the null space of the linear map T−λIT - \lambda I.

Why it is trueBeing a null space is the whole proof. The work is checking that T−λIT - \lambda I is linear.

In the picture above, E(3)E(3) is the whole horizontal dashed line and E(2)E(2) is the other dashed line. Each is a line through the origin, which is what a one-dimensional subspace of the plane looks like. The proof says this is no accident.

ProofSpagnolie Lecture 16; Apostol 4.2
The idea: Show that T − λI is a linear map and that its null space is E(λ). Then the null space theorem from 2.3 finishes.
S=T−λIS = T - \lambda I, that is S(x)=T(x)−λxS(x) = T(x) - \lambda x, is linear. Check: S(x+y)=T(x)+T(y)−λx−λy=S(x)+S(y)S(x + y) = T(x) + T(y) - \lambda x - \lambda y = S(x) + S(y) and S(cx)=cT(x)−λcx=cS(x)S(cx) = cT(x) - \lambda c x = cS(x).
Linearity of TT, and c(λx)=λ(cx)c(\lambda x) = \lambda(cx) from the vector-space axioms.
S(x)=OS(x) = O exactly when T(x)=λxT(x) = \lambda x. So N(S)=E(λ)N(S) = E(\lambda).
Add λx\lambda x to both sides of T(x)−λx=OT(x) - \lambda x = O, and back.In the picture: the dashed line for 3 is exactly the set of points the map A−3IA - 3I sends to the origin.
So E(λ)E(\lambda) is a subspace.
The null space of a linear map is a subspace (2.3).
dim⁡E(λ)≥1\dim E(\lambda) \ge 1 exactly when λ\lambda is an eigenvalue.
λ\lambda is an eigenvalue exactly when some non-zero xx has T(x)=λxT(x) = \lambda x, that is, when N(S)N(S) contains a non-zero vector.

For the eigenvalue 00 the eigenspace is the null space of TT itself. For the identity map on Rn\mathbb R^n, E(1)=RnE(1) = \mathbb R^n.

Quick checkTake the set of all eigenvectors that belong to one eigenvalue λ\lambda, without adding OO. Is it a subspace?

Eigenvectors for different eigenvalues are independent

Two eigenvectors on different lines are certainly independent. The theorem says the same holds for any number of them, as long as their eigenvalues are all different. It is the reason eigenvectors can form a basis at all.

Theorem T Apostol Thm 4.2; Spagnolie Lecture 16

Eigenvectors of distinct eigenvalues are independent

Let u1,…,uku_1, \dots, u_k be eigenvectors of a linear map TT with eigenvalues λ1,…,λk\lambda_1, \dots, \lambda_k, where λi≠λj\lambda_i \ne \lambda_j whenever i≠ji \ne j. Then u1,…,uku_1, \dots, u_k are linearly independent.

In one lineEigenvectors that belong to different eigenvalues are linearly independent.

Why it is trueApply TT to a supposed dependence and subtract λk\lambda_k times the original. The last vector disappears, and induction handles the rest.

Why· The picture behind the proof

For k=2k = 2 look at the two dashed lines in the picture. If u1u_1 and u2u_2 were dependent they would lie on one line, and a vector on that single line would be stretched by 33 and by 22 at the same time. We showed an eigenvector has only one eigenvalue, so that is impossible. The written proof below does the same job for any number of vectors. Its trick (apply TT, then subtract λk\lambda_k times the original) is a way to separate the pieces by how much each is stretched.

The theorem needs eigenvectors to be non-zero: the set {O}\{O\} is dependent. The proof is Spagnolie’s induction, and it echoes the elimination from the k+1k + 1 theorem of 2.2: use one equation to cancel one unknown and reduce to a smaller case.

ProofSpagnolie Lecture 16; Apostol 4.3
The idea: Induction on k. Suppose a combination of the k eigenvectors is zero. Apply T to it, and also multiply it by λ_k, then subtract: the u_k terms cancel, leaving a zero-combination of the first k−1 eigenvectors. Those are independent by the induction hypothesis, which forces the first k−1 coefficients to be zero, and then the last one is zero too.
For k=1k = 1: {u1}\{u_1\} is independent.
Base case k=1k = 1. u1≠Ou_1 \ne O because it is an eigenvector. If c1u1=Oc_1u_1 = O with c1≠0c_1 \ne 0, multiplying by 1/c11/c_1 would give u1=Ou_1 = O.
Assume the theorem holds for k−1k - 1 vectors. Suppose c1u1+⋯+ckuk=Oc_1u_1 + \dots + c_ku_k = O. Call this equation (E).
The induction hypothesis is the theorem for k−1k - 1 eigenvectors with distinct eigenvalues. We prove it for kk.
Apply TT to (E): c1λ1u1+⋯+ckλkuk=Oc_1\lambda_1u_1 + \dots + c_k\lambda_ku_k = O.
Linearity passes TT through the combination. T(ui)=λiuiT(u_i) = \lambda_i u_i, and T(O)=OT(O) = O (2.3).
Multiply (E) by λk\lambda_k: c1λku1+⋯+ckλkuk=Oc_1\lambda_ku_1 + \dots + c_k\lambda_ku_k = O.
Scaling the zero vector gives the zero vector. We choose to multiply by λk\lambda_k because it makes the last coefficient match the line above.
c1(λ1−λk)u1+⋯+ck−1(λk−1−λk)uk−1=Oc_1(\lambda_1 - \lambda_k)u_1 + \dots + c_{k-1}(\lambda_{k-1} - \lambda_k)u_{k-1} = O.
Subtract the second line from the first, vector by vector. The uku_k terms are ckλkuk−ckλkuk=Oc_k\lambda_ku_k - c_k\lambda_ku_k = O, which is why we multiplied by λk\lambda_k.
ci(λi−λk)=0c_i(\lambda_i - \lambda_k) = 0 for every i<ki < k.
This is a zero-combination of u1,…,uk−1u_1, \dots, u_{k-1}, which are independent by the induction hypothesis. So each coefficient is 00.
c1=⋯=ck−1=0c_1 = \dots = c_{k-1} = 0.
The eigenvalues are distinct, so λi−λk≠0\lambda_i - \lambda_k \ne 0. Divide by it.
ckuk=Oc_ku_k = O, so ck=0c_k = 0. All coefficients are zero, so u1,…,uku_1, \dots, u_k are independent.
Put these into (E). Only the last term remains, and uk≠Ou_k \ne O forces ck=0c_k = 0 as in the base case.
Proof workshopRebuild the proof that eigenvectors of distinct eigenvalues are independent

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Quick checkIn the proof above, where is it used that the eigenvalues are different from each other?
    Theorem T Apostol Thms 4.3 and 4.10; Spagnolie Lecture 16

    Distinct eigenvalues give an eigenbasis

    Let dim⁡V=n\dim V = n and let T:V→VT: V \to V be linear. Then TT has at most nn distinct eigenvalues. If it has exactly nn, then one eigenvector for each of them gives a basis of VV.

    In one lineOn an nn-dimensional space a linear map has at most nn distinct eigenvalues, and if it has nn, their eigenvectors are a basis.

    Why it is trueIndependent vectors cannot outnumber the dimension, and nn independent vectors in an nn-dimensional space are a basis.

    ProofApostol 4.2
    The idea: Pick one eigenvector per eigenvalue. They are independent by the last theorem. The dimension count from 2.2 does the rest.
    If TT had mm distinct eigenvalues, there would be mm independent vectors in VV.
    Choose one eigenvector for each distinct eigenvalue. They are independent by the previous theorem.
    So m≤nm \le n.
    The k+1k + 1 theorem of 2.2: more than nn vectors in an nn-dimensional space are dependent.
    If m=nm = n, the nn chosen eigenvectors are a basis.
    2.2: nn independent vectors in an nn-dimensional space form a basis.

    Finding eigenvalues: the characteristic polynomial

    So far we had to guess the eigenvalues. Here is a method. From now on AA is an nn by nn matrix and T(x)=AxT(x) = Ax. The equation Ax=λxAx = \lambda x is the same as λx−Ax=O\lambda x - Ax = O, and since λx=(λI)x\lambda x = (\lambda I)x it is the same as

    (λI−A)x=O.(\lambda I - A)x = O.

    We want a non-zero solution xx, which means the null space of λI−A\lambda I - A must contain more than OO. Spagnolie’s shortcut: that happens exactly when λI−A\lambda I - A is not invertible, and a matrix is not invertible exactly when its determinant is 00.

    Definition T

    Characteristic polynomial

    For an nn by nn matrix AA, the characteristic polynomial is pA(λ)=det⁡(λI−A)p_A(\lambda) = \det(\lambda I - A), regarded as a function of the number λ\lambda (the shape theorem below shows it is a polynomial of degree nn). The equation pA(λ)=0p_A(\lambda) = 0 is the characteristic equation. (Apostol and Spagnolie use det⁡(λI−A)\det(\lambda I - A). Many other books use det⁡(A−λI)\det(A - \lambda I). The two differ by the factor (−1)n(-1)^n and have the same roots.)

    In one lineThe polynomial pA(λ)=det⁡(λI−A)p_A(\lambda) = \det(\lambda I - A). Its roots are exactly the eigenvalues of AA.

    Why it existsIt converts the search for the right λ\lambda into solving one polynomial equation, with no vectors involved.

    For n=2n = 2, A=[abcd]A = \begin{bmatrix}a&b\\c&d\end{bmatrix}:

    det⁡[λ−a−b−cλ−d]=(λ−a)(λ−d)−bc=λ2−(a+d)λ+(ad−bc).\det\begin{bmatrix}\lambda - a & -b\\ -c & \lambda - d\end{bmatrix} = (\lambda - a)(\lambda - d) - bc = \lambda^2 - (a + d)\lambda + (ad - bc).

    For the matrix in the picture: λ2−5λ+6=(λ−3)(λ−2)\lambda^2 - 5\lambda + 6 = (\lambda - 3)(\lambda - 2). The roots 33 and 22 are the stretch factors we saw.

    Theorem T Apostol Thm 4.5; Spagnolie Lecture 16

    Eigenvalues are roots of the characteristic polynomial

    A number λ\lambda is an eigenvalue of the square matrix AA if and only if det⁡(λI−A)=0\det(\lambda I - A) = 0.

    In one lineλ\lambda is an eigenvalue of AA exactly when det⁡(λI−A)=0\det(\lambda I - A) = 0.

    Why it is trueAn eigenvector is a non-zero vector in the null space of λI−A\lambda I - A, and such a vector exists exactly when that matrix is not invertible.

    ProofSpagnolie Lecture 16; Apostol 4.5
    The idea: Each statement is equivalent to the next: eigenvalue, non-zero null vector, not one-to-one, not invertible, determinant zero.
    λ\lambda is an eigenvalue   ⟺  \iff there is x≠Ox \ne O with Ax=λxAx = \lambda x.
    The definition of eigenvalue.
      ⟺  \iff there is x≠Ox \ne O with (λI−A)x=O(\lambda I - A)x = O.
    Move λx=(λI)x\lambda x = (\lambda I)x to the left. Matrix multiplication distributes (2.5).
      ⟺  N(λI−A)≠{O}\iff N(\lambda I - A) \ne \{O\}.
    That is what it means for the null space to contain a non-zero vector.In the picture: λI−A\lambda I - A squashes the plane onto a line exactly when λ\lambda is 3 or 2, and the squashed-away line is the dashed eigenline.
      ⟺  \iff λI−A\lambda I - A is not invertible.
    A linear map is one-to-one exactly when its null space is {O}\{O\}, and a one-to-one linear map from Rn\mathbb R^n to Rn\mathbb R^n is also onto, by rank–nullity (2.3). One-to-one and onto together mean invertible.
      ⟺  det⁡(λI−A)=0\iff \det(\lambda I - A) = 0.
    A square matrix is invertible exactly when its determinant is not zero (2.7).
    Worked example Spagnolie Lecture 16
    Find the eigenvalues and eigenvectors of the matrix with rows (3, 4, 2), (0, 1, 2), (0, 0, 0).

    Solution.

    1. Write λI−A\lambda I - A. λI−A=[λ−3−4−20λ−1−200λ]\lambda I - A = \begin{bmatrix}\lambda-3 & -4 & -2\\ 0 & \lambda-1 & -2\\ 0 & 0 & \lambda\end{bmatrix}. The eigenvalues are the roots of det⁡(λI−A)\det(\lambda I - A).
    2. Take the determinant. The matrix is upper triangular, so the determinant is the product of the diagonal entries: pA(λ)=(λ−3)(λ−1)λp_A(\lambda) = (\lambda - 3)(\lambda - 1)\lambda. Expanding along the first column leaves one term, and the same happens for the smaller matrix that remains, again and again.
    3. Read off the eigenvalues. λ=3,1,0\lambda = 3, 1, 0. They are the roots. A check we prove below: the eigenvalues add up to the sum of the diagonal entries of AA (3+1+0=43 + 1 + 0 = 4) and multiply to det⁡A=0\det A = 0 (the matrix has a zero row).
    4. Eigenvector for λ=3\lambda = 3. Solve (3I−A)x=O(3I - A)x = O, rows (0,−4,−2)(0,-4,-2), (0,2,−2)(0,2,-2), (0,0,3)(0,0,3). The last row gives z=0z = 0, then the middle row gives y=0y = 0. The first coordinate is free: take x=(1,0,0)x = (1, 0, 0). A free variable means a whole line of solutions, so we pick one non-zero member.
    5. Eigenvector for λ=1\lambda = 1. Solve (I−A)x=O(I - A)x = O, rows (−2,−4,−2)(-2,-4,-2), (0,0,−2)(0,0,-2), (0,0,1)(0,0,1). So z=0z = 0 and −2x−4y=0-2x - 4y = 0, which gives x=−2yx = -2y. Take y=1y = 1: (−2,1,0)(-2, 1, 0). Same method, a different matrix for each eigenvalue.
    6. Eigenvector for λ=0\lambda = 0. Solve −Ax=O-Ax = O, rows (−3,−4,−2)(-3,-4,-2), (0,−1,−2)(0,-1,-2), (0,0,0)(0,0,0). The middle row gives y=−2zy = -2z, and then −3x+8z−2z=0-3x + 8z - 2z = 0 gives x=2zx = 2z. Take z=1z = 1: (2,−2,1)(2, -2, 1). The eigenvalue 00 gets no special treatment, but its eigenspace is the null space of AA.
    7. Check each. A(1,0,0)=(3,0,0)A(1,0,0) = (3,0,0). A(−2,1,0)=(−6+4,1,0)=(−2,1,0)A(-2,1,0) = (-6+4, 1, 0) = (-2,1,0). A(2,−2,1)=(6−8+2,−2+2,0)=(0,0,0)A(2,-2,1) = (6-8+2, -2+2, 0) = (0,0,0). Multiplying back is the only reliable check, because a sign slip in elimination is easy to make.

    Answer. Eigenvalues 3,1,03, 1, 0 with eigenvectors (1,0,0)(1,0,0), (−2,1,0)(-2,1,0), (2,−2,1)(2,-2,1). The eigenvalues are distinct, so these three vectors are a basis of R3\mathbb R^3.

    Trace, and the shape of the characteristic polynomial

    Definition T

    Trace

    The trace of an nn by nn matrix AA is tr⁡A=a11+a22+⋯+ann\operatorname{tr} A = a_{11} + a_{22} + \dots + a_{nn}.

    In one lineThe sum of the diagonal entries of a square matrix, tr⁡A=a11+a22+⋯+ann\operatorname{tr} A = a_{11} + a_{22} + \dots + a_{nn}.

    Why it existsIt is a quick number that, as the next theorems show, equals the sum of the eigenvalues and does not change when the basis changes.

    The trace of [3102]\begin{bmatrix}3&1\\0&2\end{bmatrix} is 55, which is 3+23 + 2. The determinant is 6=3×26 = 3 \times 2. This is no accident, and the proof also tells us what the characteristic polynomial looks like in general. For n=2n = 2 we computed it: λ2−(tr⁡A)λ+det⁡A\lambda^2 - (\operatorname{tr} A)\lambda + \det A. Spagnolie’s Lecture 17 does the general case.

    Theorem T Apostol Thm 4.4 and section 4.7; Spagnolie Lecture 17

    Shape of the characteristic polynomial

    For an nn by nn matrix AA, the characteristic polynomial has degree nn, and

    pA(λ)=λn−(tr⁡A) λn−1+(terms of degree at most n−2).p_A(\lambda) = \lambda^n - (\operatorname{tr} A)\,\lambda^{n-1} + (\text{terms of degree at most } n - 2).

    Its constant term is pA(0)=(−1)ndet⁡Ap_A(0) = (-1)^n\det A.

    In one linedet⁡(λI−A)=λn−(tr⁡A)λn−1+⋯+(−1)ndet⁡A\det(\lambda I - A) = \lambda^n - (\operatorname{tr} A)\lambda^{n-1} + \dots + (-1)^n\det A.

    Why it is trueEach time we expand the determinant, only the diagonal can contribute high powers of λ\lambda.

    ProofSpagnolie Lecture 17; Apostol 4.4
    The idea: Induction on n. Expand the determinant along the first row. The (1,1) term is (λ − a₁₁) times the same kind of determinant for a smaller matrix, which supplies the top two coefficients. Every other term loses two λ's from the diagonal, so its degree drops by at least two.
    Claim: det⁡(λI−A)=λn−(a11+⋯+ann)λn−1+(degree≤n−2)\det(\lambda I - A) = \lambda^n - (a_{11} + \dots + a_{nn})\lambda^{n-1} + (\text{degree} \le n-2). For n=1n = 1 this is λ−a11\lambda - a_{11}.
    The first claim, proved for all nn by induction. The determinant is λ−a11\lambda - a_{11} when n=1n = 1, which has the claimed form: λ1−(tr⁡A)λ0\lambda^1 - (\operatorname{tr}A)\lambda^0.
    Assume the claim for size n−1n - 1. Expanding along row 1: det⁡(λI−A)=(λ−a11)det⁡M11+∑j≥2±(−a1j)det⁡M1j\det(\lambda I - A) = (\lambda - a_{11})\det M_{11} + \sum_{j \ge 2}\pm(-a_{1j})\det M_{1j}.
    Cofactor expansion along row 1 (2.7). M1jM_{1j} is λI−A\lambda I - A with row 1 and column jj deleted. The entry in position (1,j)(1, j) of λI−A\lambda I - A is −a1j-a_{1j} when j≥2j \ge 2.
    det⁡M11=λn−1−(a22+⋯+ann)λn−2+(degree≤n−3)\det M_{11} = \lambda^{n-1} - (a_{22} + \dots + a_{nn})\lambda^{n-2} + (\text{degree} \le n - 3).
    M11=λIn−1−A′M_{11} = \lambda I_{n-1} - A', where A′A' is AA with row 1 and column 1 deleted. This is the same kind of matrix one size smaller, so the induction hypothesis applies to it.
    (λ−a11)det⁡M11=λn−(a11+a22+⋯+ann)λn−1+(degree≤n−2)(\lambda - a_{11})\det M_{11} = \lambda^n - (a_{11} + a_{22} + \dots + a_{nn})\lambda^{n-1} + (\text{degree} \le n - 2).
    Multiply (λ−a11)(\lambda - a_{11}) by the line above. λ\lambda times λn−1\lambda^{n-1} gives λn\lambda^n. λ\lambda times the λn−2\lambda^{n-2} term and −a11-a_{11} times the λn−1\lambda^{n-1} term both give λn−1\lambda^{n-1} terms. Everything else has degree at most n−2n - 2. (For n=2n = 2 the part of degree at most n−3n - 3 is 00.)
    In M1jM_{1j}, only n−2n - 2 entries contain λ\lambda (each to the first power).
    The matrix M1jM_{1j} for j≥2j \ge 2 has had row 1 and column jj removed. The only entries containing λ\lambda are the diagonal entries λ−aii\lambda - a_{ii} of the original matrix. The ones at positions (1,1)(1,1) and (j,j)(j,j) are gone, so at most n−2n - 2 entries of M1jM_{1j} contain λ\lambda.
    So det⁡M1j\det M_{1j} has degree at most n−2n - 2, and so does ∓a1jdet⁡M1j\mp a_{1j}\det M_{1j}.
    The determinant is a sum of products of n−1n - 1 entries, one from each row and column (2.7). A product contains at most n−2n - 2 of the λ\lambda-entries.
    The claim holds for size nn.
    Add the first term and the others. The extra terms do not touch degrees nn and n−1n - 1.
    pA(0)=det⁡(−A)=(−1)ndet⁡Ap_A(0) = \det(-A) = (-1)^n\det A.
    Put λ=0\lambda = 0 in det⁡(λI−A)\det(\lambda I - A) to get det⁡(−A)\det(-A). Multiplying one row by −1-1 multiplies the determinant by −1-1, and −A-A has all nn rows multiplied by −1-1.

    Over the real numbers a polynomial may have no roots (for example λ2+1\lambda^2 + 1). Over the complex numbers it always has: this is the fundamental theorem of algebra, which we quote without proof (it belongs to complex analysis). It says that a polynomial of degree nn with leading coefficient 11 factors as (λ−λ1)(λ−λ2)⋯(λ−λn)(\lambda - \lambda_1)(\lambda - \lambda_2)\cdots(\lambda - \lambda_n), where the λi\lambda_i are complex numbers, listed with repeats. We call the λi\lambda_i the eigenvalues of AA counted with multiplicity.

    Theorem T Spagnolie Lecture 17

    Trace and determinant from the eigenvalues

    Let λ1,…,λn\lambda_1, \dots, \lambda_n be the eigenvalues of AA (complex numbers, counted with multiplicity). Then

    tr⁡A=λ1+⋯+λn,det⁡A=λ1λ2⋯λn.\operatorname{tr}A = \lambda_1 + \dots + \lambda_n, \qquad \det A = \lambda_1\lambda_2\cdots\lambda_n.

    In one lineThe trace is the sum of the eigenvalues and the determinant is their product, each counted with multiplicity.

    Why it is trueMultiply out (λ−λ1)⋯(λ−λn)(\lambda - \lambda_1)\cdots(\lambda - \lambda_n) and compare it with the shape theorem. The coefficient of λn−1\lambda^{n-1} and the constant term are the two matching places.

    ProofSpagnolie Lecture 17
    The idea: The characteristic polynomial has two descriptions: one from the matrix entries, one as a product of (λ − λᵢ). Two polynomials that are equal as functions have equal coefficients, so compare the λⁿ⁻¹ coefficients and the constant terms.
    pA(λ)=(λ−λ1)⋯(λ−λn)p_A(\lambda) = (\lambda - \lambda_1)\cdots(\lambda - \lambda_n).
    The fundamental theorem of algebra, quoted above.
    Multiplying out: pA(λ)=λn−(λ1+⋯+λn)λn−1+⋯+(−1)nλ1⋯λnp_A(\lambda) = \lambda^n - (\lambda_1 + \dots + \lambda_n)\lambda^{n-1} + \dots + (-1)^n\lambda_1\cdots\lambda_n.
    Choosing −λi-\lambda_i from n−1n - 1 of the factors and λ\lambda from the last one gives a λn−1\lambda^{n-1} term, in nn ways. Choosing −λi-\lambda_i from all factors gives the constant term.
    Compare λn−1\lambda^{n-1}: tr⁡A=λ1+⋯+λn\operatorname{tr}A = \lambda_1 + \dots + \lambda_n.
    The shape theorem gives −tr⁡A-\operatorname{tr}A as the coefficient of λn−1\lambda^{n-1}.
    Compare constants: (−1)ndet⁡A=(−1)nλ1⋯λn(-1)^n\det A = (-1)^n\lambda_1\cdots\lambda_n, so det⁡A=λ1⋯λn\det A = \lambda_1\cdots\lambda_n.
    The shape theorem gives (−1)ndet⁡A(-1)^n\det A as the constant term.

    Spagnolie’s 3×33 \times 3 example: 3+1+0=4=tr⁡A3 + 1 + 0 = 4 = \operatorname{tr}A, and 3⋅1⋅0=0=det⁡A3 \cdot 1 \cdot 0 = 0 = \det A. The characteristic polynomial is λ3−4λ2+3λ−0\lambda^3 - 4\lambda^2 + 3\lambda - 0. Spagnolie left the middle coefficient as a blank box in class. It is 33, because the roots 3,1,03, 1, 0 give (λ−3)(λ−1)λ=λ3−4λ2+3λ(\lambda - 3)(\lambda - 1)\lambda = \lambda^3 - 4\lambda^2 + 3\lambda. A useful consequence: a matrix is invertible if and only if 00 is not an eigenvalue, because det⁡A=λ1⋯λn\det A = \lambda_1\cdots\lambda_n is non-zero exactly when no λi\lambda_i is 00.

    Worked example
    A 2 by 2 matrix has trace 6 and determinant 8. What are its eigenvalues?

    Solution.

    1. Write the characteristic polynomial from trace and determinant. For n=2n = 2 the shape theorem says pA(λ)=λ2−(tr⁡A)λ+det⁡A=λ2−6λ+8p_A(\lambda) = \lambda^2 - (\operatorname{tr}A)\lambda + \det A = \lambda^2 - 6\lambda + 8. We do not know the entries of the matrix, but the polynomial only needs these two numbers.
    2. Solve pA(λ)=0p_A(\lambda) = 0. λ2−6λ+8=(λ−2)(λ−4)\lambda^2 - 6\lambda + 8 = (\lambda - 2)(\lambda - 4), so λ=2\lambda = 2 or 44. Two numbers that add to the trace 66 and multiply to the determinant 88 are exactly the eigenvalues, by the trace and determinant theorem.

    Answer. The eigenvalues are 22 and 44. (Many different matrices have these, for example diag⁡(2,4)\operatorname{diag}(2, 4) and [3113]\begin{bmatrix}3&1\\1&3\end{bmatrix}, so the eigenvalues do not determine the matrix.)

    Your answerA 2×22\times2 matrix has trace 77 and determinant 1010. What is its larger eigenvalue?
    Same idea elsewhere· JEE: the characteristic equation you already know

    In JEE you met the rule that a 2×22 \times 2 matrix satisfies A2−(tr⁡A)A+(det⁡A)I=OA^2 - (\operatorname{tr}A)A + (\det A)I = O (the Cayley–Hamilton theorem). That is the characteristic polynomial λ2−(tr⁡A)λ+det⁡A\lambda^2 - (\operatorname{tr}A)\lambda + \det A with the matrix AA put in place of the number λ\lambda. You will prove it in the problems below for matrices that have a basis of eigenvectors (called diagonalizable, defined shortly). The reason it holds: on each eigenvector AA acts as the number λi\lambda_i, and p(λi)=0p(\lambda_i) = 0.

    Same map, different basis

    The matrix of a map depends on the basis (2.5). If AA and BB are matrices of the same map in two bases, then B=C−1ACB = C^{-1}AC for the change-of-basis matrix CC; this is what it means for AA and BB to be similar matrices. The eigenvalues belong to the map, so they must not depend on the basis. This is Apostol’s Theorem 4.9.

    Theorem T Apostol Thm 4.9; Spagnolie Lecture 17

    Similar matrices share a characteristic polynomial

    If AA and BB are nn by nn and B=C−1ACB = C^{-1}AC for some invertible CC, then pB(λ)=pA(λ)p_B(\lambda) = p_A(\lambda).

    In one lineIf B=C−1ACB = C^{-1}AC then BB and AA have the same characteristic polynomial, hence the same eigenvalues, trace and determinant.

    Why it is trueFactor C−1C^{-1} and CC out of λI−B\lambda I - B. The determinants of C−1C^{-1} and CC multiply to 11.

    ProofSpagnolie Lecture 17 ('Behold!')
    The idea: Rewrite λI as C⁻¹(λI)C so that C⁻¹ and C can be pulled out of the whole expression. Then the determinant of a product is a product of determinants, and det C⁻¹ · det C = 1.
    λI−B=C−1(λI)C−C−1AC\lambda I - B = C^{-1}(\lambda I)C - C^{-1}AC.
    C−1(λI)C=λC−1C=λIC^{-1}(\lambda I)C = \lambda C^{-1}C = \lambda I. The scalar λ\lambda slides past matrices.
    =C−1(λI−A)C= C^{-1}(\lambda I - A)C.
    Distributivity of matrix multiplication (2.5).
    det⁡(λI−B)=det⁡(C−1)det⁡(λI−A)det⁡(C)\det(\lambda I - B) = \det(C^{-1})\det(\lambda I - A)\det(C).
    The determinant of a product is the product of the determinants (2.7).
    =det⁡(λI−A)= \det(\lambda I - A).
    det⁡(C−1)det⁡(C)=det⁡(C−1C)=det⁡I=1\det(C^{-1})\det(C) = \det(C^{-1}C) = \det I = 1. These are numbers, so they can be reordered.

    So the characteristic polynomial of a linear map TT on a finite-dimensional space is well defined: compute it from the matrix of TT in any basis. The same goes for the trace and the determinant of TT. This answers a question you may have had: why would anyone care about the sum of diagonal entries? Because that sum does not depend on the basis.

    Worked example Apostol 4.8 #10; MATH 375 HW9
    Prove that A and its transpose have the same characteristic polynomial. Do they have the same eigenvectors?

    Solution.

    1. Transpose the matrix λI−A\lambda I - A. (λI−A)T=λIT−AT=λI−AT(\lambda I - A)^{\mathsf T} = \lambda I^{\mathsf T} - A^{\mathsf T} = \lambda I - A^{\mathsf T}. The transpose of a difference is the difference of the transposes, and IT=II^{\mathsf T} = I.
    2. Use the determinant of a transpose. det⁡(λI−AT)=det⁡((λI−A)T)=det⁡(λI−A)\det(\lambda I - A^{\mathsf T}) = \det\big((\lambda I - A)^{\mathsf T}\big) = \det(\lambda I - A). A matrix and its transpose have the same determinant (2.7).
    3. Conclude for eigenvalues. pAT=pAp_{A^{\mathsf T}} = p_A, so the eigenvalues, with multiplicity, agree. Eigenvalues are the roots of the characteristic polynomial.
    4. Test eigenvectors on an example. For A=[3102]A = \begin{bmatrix}3&1\\0&2\end{bmatrix} the eigenvector for 33 is (1,0)(1, 0). For AT=[3012]A^{\mathsf T} = \begin{bmatrix}3&0\\1&2\end{bmatrix} we get AT(1,0)=(3,1)A^{\mathsf T}(1, 0) = (3, 1), which is not a multiple of (1,0)(1, 0), while AT(1,1)=(3,3)=3(1,1)A^{\mathsf T}(1, 1) = (3, 3) = 3(1, 1). One example is enough to show that “same eigenvectors” is false in general. Only the eigenvalues carry over.

    Answer. The characteristic polynomials are equal. The eigenvectors can differ.

    Worked example supports Apostol 4.9
    Prove that tr(AB) = tr(BA) for n by n matrices, and deduce that tr(C⁻¹AC) = tr A.

    Solution.

    1. Write the diagonal entry of ABAB. (AB)ii=∑jaijbji(AB)_{ii} = \sum_{j}a_{ij}b_{ji}. Entry (i,i)(i, i) of a product is row ii of AA times column ii of BB.
    2. Sum over the diagonal. tr⁡(AB)=∑i∑jaijbji\operatorname{tr}(AB) = \sum_i\sum_ja_{ij}b_{ji}. The trace is the sum of the diagonal entries.
    3. Do the same for BABA. tr⁡(BA)=∑j∑ibjiaij\operatorname{tr}(BA) = \sum_j\sum_ib_{ji}a_{ij}. Now the roles are swapped: (BA)jj=∑ibjiaij(BA)_{jj} = \sum_ib_{ji}a_{ij}, summed over jj.
    4. Compare. The two are the same finite double sum, in a different order, with each product’s two factors written in the other order. A finite sum can be added in any order, and real numbers commute.
    5. Deduce the second claim. Apply the first part to the matrices C−1C^{-1} and ACAC: tr⁡(C−1(AC))=tr⁡((AC)C−1)=tr⁡A\operatorname{tr}\big(C^{-1}(AC)\big) = \operatorname{tr}\big((AC)C^{-1}\big) = \operatorname{tr}A. (AC)C−1=A(CC−1)=A(AC)C^{-1} = A(CC^{-1}) = A.

    Answer. tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA), so similar matrices have the same trace. (Note that AB≠BAAB \ne BA in general. Only the traces agree.)

    Diagonalization

    Definition T

    Diagonalizable

    A diagonal matrix has zeros everywhere except possibly on the diagonal. We write diag⁡(d1,…,dn)\operatorname{diag}(d_1, \dots, d_n) for the one with d1,…,dnd_1, \dots, d_n down the diagonal. A linear map T:V→VT: V \to V on a finite-dimensional space is diagonalizable if VV has a basis in which the matrix of TT is diagonal. A square matrix AA is diagonalizable if the map x↦Axx \mapsto Ax is, equivalently if AA is similar to a diagonal matrix.

    In one lineA map or matrix is diagonalizable if some basis makes its matrix diagonal; equivalently, if there is a basis of eigenvectors.

    Why it existsDiagonalizable maps are exactly the ones that can be understood as independent stretches along nn directions.

    Here is the same picture again, because the next theorem is about it. The two dashed lines are the two basis vectors we would choose. In that basis the grid is not the square grid but a grid made of lines parallel to the dashed lines, and the map only stretches that grid, by 33 in one direction and 22 in the other.

    Theorem T Apostol Thm 4.1

    Diagonal form means an eigenbasis

    Let e1,…,ene_1, \dots, e_n be a basis of VV. The matrix of TT in this basis is diag⁡(d1,…,dn)\operatorname{diag}(d_1, \dots, d_n) if and only if T(ek)=dkekT(e_k) = d_ke_k for every kk. So TT is diagonalizable if and only if VV has a basis of eigenvectors of TT.

    In one lineA map has a diagonal matrix in a basis exactly when every vector of that basis is an eigenvector. The diagonal entries are the eigenvalues.

    Why it is trueColumn kk of the matrix is the coordinates of T(ek)T(e_k). It is a multiple of the kk-th basis vector exactly when eke_k is an eigenvector.

    ProofApostol 4.1; Spagnolie Lecture 18
    The idea: Recall how the matrix is built: column k holds the coordinates of T(e_k). Then compare.
    The matrix (aik)(a_{ik}) of TT satisfies T(ek)=a1ke1+⋯+ankenT(e_k) = a_{1k}e_1 + \dots + a_{nk}e_n.
    Definition of the matrix of a map in a basis (2.5): T(ek)=∑iaikeiT(e_k) = \sum_i a_{ik}e_i, and column kk of the matrix is (a1k,…,ank)(a_{1k}, \dots, a_{nk}).
    The matrix is diag⁡(d1,…,dn)\operatorname{diag}(d_1, \dots, d_n)   ⟺  \iff T(ek)=dkekT(e_k) = d_ke_k for every kk.
    Coordinates in a basis are unique (2.2), so the equation below says aik=0a_{ik} = 0 for i≠ki \ne k and akk=dka_{kk} = d_k.In the picture: eke_k is a point on a dashed line, and T(ek)T(e_k) stays on that same line.
    That says each eke_k is an eigenvector of TT with eigenvalue dkd_k.
    ek≠Oe_k \ne O because it is a basis vector. The equation T(ek)=dkekT(e_k) = d_ke_k is the definition of an eigenvector.

    In matrix language: put the eigenvectors in as the columns of a matrix CC, and the eigenvalues down the diagonal of DD.

    Theorem T Apostol Thm 4.10; Spagnolie Lecture 18

    Diagonalization as a factorization

    Let AA be an nn by nn matrix with independent eigenvectors u1,…,unu_1, \dots, u_n and eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n. Let CC be the matrix whose kk-th column is uku_k and let D=diag⁡(λ1,…,λn)D = \operatorname{diag}(\lambda_1, \dots, \lambda_n). Then CC is invertible and

    A=CDC−1,equivalentlyD=C−1AC,equivalentlyAC=CD.A = CDC^{-1}, \qquad\text{equivalently}\qquad D = C^{-1}AC, \qquad\text{equivalently}\qquad AC = CD.

    In one lineIf AA has nn independent eigenvectors, then A=CDC−1A = CDC^{-1}, where the columns of CC are those eigenvectors and DD is diagonal with the matching eigenvalues.

    Why it is trueMultiplying by CC turns the kk-th standard basis vector into the kk-th eigenvector, and AA then multiplies that vector by its eigenvalue.

    ProofSpagnolie Lecture 18 ('because...' note); Apostol 4.10
    The idea: Compare the two matrices AC and CD column by column. Both have column k equal to λₖuₖ. Then use that C is invertible, because its columns are independent.
    Column kk of ACAC is AukAu_k, which is λkuk\lambda_ku_k.
    Column kk of a product ACAC is AA times column kk of CC (matrix multiplication, 2.5).
    Column kk of CDCD is λkuk\lambda_ku_k.
    Column kk of CDCD is CC times column kk of DD, and column kk of DD is λk\lambda_k in position kk and 00 elsewhere. So it is λk\lambda_k times column kk of CC.
    AC=CDAC = CD.
    Two matrices with the same columns are equal.
    CC is invertible.
    Cx=OCx = O means a combination of the columns of CC is OO. The columns are independent, so x=Ox = O. So N(C)={O}N(C) = \{O\}, hence CC is one-to-one, hence onto by rank–nullity, hence invertible (2.3, 2.4).
    A=CDC−1A = CDC^{-1}.
    Multiply AC=CDAC = CD on the right by C−1C^{-1}.
    Why· Reading A = C D C⁻¹: change to the eigenbasis

    Read it from right to left, applied to a vector xx. First C−1xC^{-1}x gives the coordinates of xx in the eigenbasis (this is the change of basis of 2.5). Then DD stretches each coordinate by its own eigenvalue, the easy step. Then CC turns those coordinates back into ordinary ones. So AA does the same thing as DD, seen in the right coordinates. This is exactly what “similar matrices represent the same map” meant. And for powers, the middle pairs C−1CC^{-1}C cancel:

    Ak=(CDC−1)(CDC−1)⋯(CDC−1)=CDkC−1,Dk=diag⁡(λ1k,…,λnk).A^k = (CDC^{-1})(CDC^{-1})\cdots(CDC^{-1}) = CD^kC^{-1}, \qquad D^k = \operatorname{diag}(\lambda_1^k, \dots, \lambda_n^k).
    Worked example Spagnolie Lecture 18 method; this matrix is the picture above
    Diagonalize the matrix with rows (3, 1) and (0, 2), then compute A^5.

    Solution.

    1. Find the eigenvalues. det⁡(λI−A)=(λ−3)(λ−2)\det(\lambda I - A) = (\lambda - 3)(\lambda - 2), so λ1=3\lambda_1 = 3 and λ2=2\lambda_2 = 2. The roots of the characteristic polynomial are the eigenvalues. Check with the trace theorem: 3+2=5=tr⁡A3 + 2 = 5 = \operatorname{tr}A and 3⋅2=6=det⁡A3\cdot2 = 6 = \det A.
    2. Find an eigenvector for 33. Solve (A−3I)x=O(A - 3I)x = O: the rows are (0,1)(0, 1) and (0,−1)(0, -1), so y=0y = 0 and xx is free. Take u1=(1,0)u_1 = (1, 0). A free variable gives a whole line of solutions, so we choose one non-zero member.
    3. Find an eigenvector for 22. Solve (A−2I)x=O(A - 2I)x = O: the rows are (1,1)(1, 1) and (0,0)(0, 0), so y=−xy = -x. Take u2=(1,−1)u_2 = (1, -1). The same method with the other eigenvalue. The two eigenvalues differ, so u1,u2u_1, u_2 are independent and are a basis of R2\mathbb R^2.
    4. Build CC and DD. C=[110−1]C = \begin{bmatrix}1&1\\0&-1\end{bmatrix} has the eigenvectors as columns, and D=diag⁡(3,2)D = \operatorname{diag}(3, 2) has the eigenvalues in the same order. Column 1 of CC must go with the first diagonal entry of DD.
    5. Find C−1C^{-1} and verify. C⋅C=IC\cdot C = I, so C−1=CC^{-1} = C, and CDC−1=[320−2][110−1]=[3102]=ACDC^{-1} = \begin{bmatrix}3&2\\0&-2\end{bmatrix}\begin{bmatrix}1&1\\0&-1\end{bmatrix} = \begin{bmatrix}3&1\\0&2\end{bmatrix} = A. Multiplying back is the only reliable check on a sign slip.
    6. Take the power. A5=CD5C−1A^5 = CD^5C^{-1} with D5=diag⁡(243,32)D^5 = \operatorname{diag}(243, 32), so A5=[243320−32][110−1]=[243211032]A^5 = \begin{bmatrix}243&32\\0&-32\end{bmatrix}\begin{bmatrix}1&1\\0&-1\end{bmatrix} = \begin{bmatrix}243&211\\0&32\end{bmatrix}. In (CDC−1)⋯(CDC−1)(CDC^{-1})\cdots(CDC^{-1}) every inner C−1CC^{-1}C cancels, so only the diagonal matrix is raised to the power.

    The step-through below shows the same computation with every product written out.

    Answer. A=CDC−1A = CDC^{-1} with C=[110−1]C = \begin{bmatrix}1&1\\0&-1\end{bmatrix}, D=diag⁡(3,2)D = \operatorname{diag}(3, 2), and A5=[243211032]A^5 = \begin{bmatrix}243&211\\0&32\end{bmatrix}. In general Ak=[3k3k−2k02k]A^k = \begin{bmatrix}3^k&3^k - 2^k\\0&2^k\end{bmatrix}.

    Your answerFor the same A=[3102]A = \begin{bmatrix}3&1\\0&2\end{bmatrix}, the top right entry of AkA^k is 3k−2k3^k - 2^k. What is the top right entry of A10A^{10}?
    Worked example Apostol 4.4 #2
    Prove: if Ax = λx with x non-zero, then A^k x = λ^k x for every k ≥ 1.

    Solution.

    1. Base case. For k=1k = 1 this is the hypothesis Ax=λxAx = \lambda x. Induction needs a first case to start from.
    2. Assume the case k−1k - 1. Suppose Ak−1x=λk−1xA^{k-1}x = \lambda^{k-1}x. This is the induction hypothesis.
    3. Apply AA once more. Akx=A(Ak−1x)=A(λk−1x)=λk−1Ax=λk−1λx=λkxA^kx = A(A^{k-1}x) = A(\lambda^{k-1}x) = \lambda^{k-1}Ax = \lambda^{k-1}\lambda x = \lambda^kx. Linearity of AA lets the scalar λk−1\lambda^{k-1} come out, then Ax=λxAx = \lambda x is used again.

    Answer. By induction the statement holds for all k≥1k \ge 1. So xx is an eigenvector of AkA^k with eigenvalue λk\lambda^k. This one line is why A=CDC−1A = CDC^{-1} gives Ak=CDkC−1A^k = CD^kC^{-1}.

    Your answerAA has the eigenvector xx with eigenvalue −2-2. What is the eigenvalue of A5A^5 for the same xx?
    Quick checkxx is an eigenvector of AA with eigenvalue 33. What does A+2IA + 2I do to xx?
    Worked example Apostol 4.4 #2; MATH 375 HW9
    Prove: if A is invertible and Ax = λx with x non-zero, then λ is not 0 and A⁻¹x = λ⁻¹x.

    Solution.

    1. Show λ≠0\lambda \ne 0. Suppose λ=0\lambda = 0. Then Ax=OAx = O with x≠Ox \ne O. We argue by contradiction, using what an invertible matrix cannot do.
    2. Reach the contradiction. A non-zero vector sent to OO means AA is not one-to-one, so AA is not invertible. An invertible map has null space {O}\{O\} (2.4). This contradicts the hypothesis, so λ≠0\lambda \ne 0.
    3. Apply A−1A^{-1} to the equation. A−1(Ax)=A−1(λx)A^{-1}(Ax) = A^{-1}(\lambda x) gives x=λA−1xx = \lambda A^{-1}x. A−1A=IA^{-1}A = I on the left, and linearity pulls the scalar λ\lambda out on the right.
    4. Divide by λ\lambda. A−1x=λ−1xA^{-1}x = \lambda^{-1}x. This division is allowed only because step 2 showed λ≠0\lambda \ne 0.

    Answer. xx is an eigenvector of A−1A^{-1} with eigenvalue 1/λ1/\lambda. For example A=[3102]A = \begin{bmatrix}3&1\\0&2\end{bmatrix} has E(2)E(2) spanned by (1,−1)(1, -1), and A−1(1,−1)=12(1,−1)A^{-1}(1, -1) = \tfrac12(1, -1).

    Worked example Apostol 4.4 #4; MATH 375 HW9
    Prove: if λ² is an eigenvalue of T² = T∘T for a real number λ, then λ or −λ is an eigenvalue of T.

    Solution.

    1. Start from the hypothesis. Take x≠Ox \ne O with T2x=λ2xT^2x = \lambda^2x. This is what ”λ2\lambda^2 is an eigenvalue of T2T^2” means.
    2. Factor. T2−λ2I=(T−λI)(T+λI)T^2 - \lambda^2I = (T - \lambda I)(T + \lambda I). The usual difference of squares. It is valid for maps because TT commutes with II, so the cross terms λT\lambda T and −λT-\lambda T cancel.
    3. Apply the factorisation to xx. Let y=(T+λI)xy = (T + \lambda I)x. Then (T−λI)y=T2x−λ2x=O(T - \lambda I)y = T^2x - \lambda^2x = O. The right side is zero by step 1.
    4. Case y=Oy = O. Then Tx+λx=OTx + \lambda x = O, so Tx=−λxTx = -\lambda x with x≠Ox \ne O. That is the definition of −λ-\lambda being an eigenvalue.
    5. Case y≠Oy \ne O. Then (T−λI)y=O(T - \lambda I)y = O says Ty=λyTy = \lambda y with y≠Oy \ne O. That is the definition of λ\lambda being an eigenvalue, with eigenvector yy.

    Answer. In either case one of λ\lambda, −λ-\lambda is an eigenvalue of TT. ■\blacksquare

    Theorem T Apostol Thm 4.10; Spagnolie Lecture 17

    Distinct roots give a diagonalizable matrix

    If AA is nn by nn and pAp_A has nn distinct roots (in the scalars being used), then AA is diagonalizable.

    In one lineIf the characteristic polynomial has nn different roots, the matrix is diagonalizable.

    Why it is trueEach root is an eigenvalue, the eigenvectors are independent because the roots differ, and nn independent vectors in nn dimensions are a basis.

    This is a corollary of two theorems already proved: the roots are eigenvalues (so each has an eigenvector), and eigenvectors for distinct eigenvalues are independent. By the “distinct eigenvalues give an eigenbasis” theorem they form a basis, and the factorization theorem gives A=CDC−1A = CDC^{-1}. In practice this settles most matrices you will meet.

    Beyond the course: for understanding· Complex scalars

    Everything above (null spaces, independence, determinants, every proof in this chapter) works unchanged if the scalars are complex numbers instead of real ones. Vectors then have complex entries. Spagnolie switches to complex scalars in Lecture 18 for exactly this reason: a real matrix can have complex eigenvalues (the rotation below), and over the complex numbers the fundamental theorem of algebra guarantees nn eigenvalues with multiplicity. When we say a real matrix is diagonalizable “over R\mathbb R” we also require the roots to be real. “Over C\mathbb C” only requires enough eigenvectors.

    When diagonalization fails: multiplicities

    A repeated root can go either way. Both I=[1001]I = \begin{bmatrix}1&0\\0&1\end{bmatrix} and the shear [1101]\begin{bmatrix}1&1\\0&1\end{bmatrix} have characteristic polynomial (λ−1)2(\lambda - 1)^2. The identity is already diagonal; the shear is not diagonalizable (details in the examples). To tell them apart we need two counts for each eigenvalue λ0\lambda_0 of an nn by nn matrix AA.

    • The algebraic multiplicity m(λ0)m(\lambda_0) is the number of times λ0\lambda_0 appears as a root of pAp_A, that is, the exponent of (λ−λ0)(\lambda - \lambda_0) in the factorization of pAp_A. It is found from the polynomial. Example: if pA=(λ−3)2(λ−1)p_A = (\lambda - 3)^2(\lambda - 1) then m(3)=2m(3) = 2 and m(1)=1m(1) = 1.
    • The geometric multiplicity g(λ0)g(\lambda_0) is the dimension of the eigenspace E(λ0)E(\lambda_0): how many independent eigenvectors λ0\lambda_0 has. It is found from the matrix, by solving (λ0I−A)x=O(\lambda_0 I - A)x = O.

    For II these are m=2m = 2 and g=2g = 2. For the shear they are m=2m = 2 and g=1g = 1. Spagnolie states the general relation without proof ("1≤dim⁡E(λ)≤m(λ)1 \le \dim E(\lambda) \le m(\lambda)"). Here it is with a proof.

    Theorem T Spagnolie Lecture 16 (stated); proof added here

    Geometric multiplicity is at most algebraic multiplicity

    If λ0\lambda_0 is an eigenvalue of the nn by nn matrix AA and g=dim⁡E(λ0)g = \dim E(\lambda_0), then (λ−λ0)g(\lambda - \lambda_0)^g divides pA(λ)p_A(\lambda). So 1≤g≤m(λ0)1 \le g \le m(\lambda_0).

    In one lineAn eigenvalue never has more independent eigenvectors than its multiplicity as a root: 1≤g(λ0)≤m(λ0)1 \le g(\lambda_0) \le m(\lambda_0).

    Why it is trueUse the eigenvectors of λ0\lambda_0 as the first columns of a new basis. In that basis the matrix has λ0\lambda_0 on the diagonal gg times, which puts (λ−λ0)g(\lambda - \lambda_0)^g in the characteristic polynomial.

    Proofadded here; Spagnolie states it in Lecture 16
    The idea: Build a basis whose first g vectors are eigenvectors of λ₀. The matrix in that basis has a block shape with λ₀ down the first g diagonal places and zeros below them. Expanding the determinant of λI − (that matrix) along the first column g times pulls out (λ − λ₀)^g. Similar matrices share the characteristic polynomial.
    Let u1,…,ugu_1, \dots, u_g be a basis of E(λ0)E(\lambda_0).
    E(λ0)E(\lambda_0) is a subspace of dimension gg (the eigenspace theorem), so it has a basis. g≥1g \ge 1 because λ0\lambda_0 is an eigenvalue.
    Extend it to a basis u1,…,unu_1, \dots, u_n of Rn\mathbb R^n and let CC have these as columns.
    Any independent set extends to a basis (2.2).
    B=C−1AC=[λ0IgXOY]B = C^{-1}AC = \begin{bmatrix}\lambda_0I_g & X\\ O & Y\end{bmatrix} for some matrices XX and YY.
    B=C−1ACB = C^{-1}AC is the matrix of the same map in the new basis (2.5). For k≤gk \le g, Auk=λ0ukAu_k = \lambda_0u_k, so column kk of BB is λ0\lambda_0 in position kk and 00 elsewhere.
    λI−B=[(λ−λ0)Ig−XOλI−Y]\lambda I - B = \begin{bmatrix}(\lambda - \lambda_0)I_g & -X\\ O & \lambda I - Y\end{bmatrix}.
    Subtract BB from λI\lambda I block by block.
    Expand along column 1, then repeat gg times: det⁡(λI−B)=(λ−λ0)gdet⁡(λI−Y)\det(\lambda I - B) = (\lambda - \lambda_0)^g\det(\lambda I - Y).
    Column 1 has only one non-zero entry, λ−λ0\lambda - \lambda_0 in the top place, so cofactor expansion along column 1 gives (λ−λ0)(\lambda - \lambda_0) times the determinant of what is left. What is left has the same shape with g−1g - 1 in place of gg.
    pA(λ)=(λ−λ0)gdet⁡(λI−Y)p_A(\lambda) = (\lambda - \lambda_0)^g\det(\lambda I - Y). So λ0\lambda_0 is a root at least gg times: g≤m(λ0)g \le m(\lambda_0).
    Similar matrices share a characteristic polynomial (previous theorem).
    Theorem B Apostol Thm 4.10 and Spagnolie Lecture 18; the iff is added here

    Diagonalizable exactly when the eigenspaces fill the space

    Let AA be nn by nn and suppose all nn roots of pAp_A lie in the scalars (always true over C\mathbb C). Let λ1,…,λr\lambda_1, \dots, \lambda_r be the distinct eigenvalues, with multiplicities mim_i and gig_i. Then AA is diagonalizable if and only if gi=mig_i = m_i for every ii.

    In one lineWith all roots among the scalars, AA is diagonalizable if and only if g(λ)=m(λ)g(\lambda) = m(\lambda) for every eigenvalue, that is, if and only if the dimensions of the eigenspaces add up to nn.

    Why it is trueEigenspaces for different eigenvalues are independent of each other, and g≤mg \le m with ∑m=n\sum m = n. So the eigenspace dimensions reach nn only if each one reaches its mm.

    Proofadded here
    The idea: Join bases of all the eigenspaces into one list. That list is independent (by the independence theorem), and it has g₁ + … + g_r vectors, which is at most m₁ + … + m_r = n. It is a basis exactly when it has n vectors, which needs every g to equal its m.
    Claim: the joined list is linearly independent.
    Choose a basis of each E(λi)E(\lambda_i) and join the lists. Suppose a combination of the whole list is OO. Group it as v1+⋯+vr=Ov_1 + \dots + v_r = O, where viv_i is the part from the basis of E(λi)E(\lambda_i), so vi∈E(λi)v_i \in E(\lambda_i).
    If some viv_i were non-zero, the non-zero ones would be independent, contradicting v1+⋯+vr=Ov_1 + \dots + v_r = O. So every vi=Ov_i = O.
    Each non-zero viv_i is an eigenvector for λi\lambda_i. Eigenvectors with distinct eigenvalues are independent, so a combination of them with every coefficient equal to 11 cannot be OO.
    So all coefficients are zero and the claim holds. The list has g1+⋯+grg_1 + \dots + g_r vectors.
    viv_i is a combination of an independent list (the basis of E(λi)E(\lambda_i)) and equals OO, so all its coefficients are 00.
    g1+⋯+gr≤m1+⋯+mr=ng_1 + \dots + g_r \le m_1 + \dots + m_r = n, with equality exactly when every gi=mig_i = m_i.
    gi≤mig_i \le m_i by the previous theorem, and the multiplicities of all roots add up to the degree nn.
    (⇐\Leftarrow) If gi=mig_i = m_i for all ii, we have an eigenbasis.
    If every gi=mig_i = m_i the joined list has nn independent vectors, a basis of eigenvectors. AA is diagonalizable.
    (⇒\Rightarrow) If an eigenbasis exists, then gi=mig_i = m_i for all ii.
    Sort an eigenbasis by eigenvalue. The nin_i basis vectors with eigenvalue λi\lambda_i are independent and lie in E(λi)E(\lambda_i), so ni≤gin_i \le g_i. Then n=∑ni≤∑gi≤∑mi=nn = \sum n_i \le \sum g_i \le \sum m_i = n, so all the inequalities are equalities.
    Quick checkOver R\mathbb R, which of these matrices is NOT diagonalizable?

    Examples and non-examples

    A recurrence in closed form. Fibonacci’s numbers 0,1,1,2,3,5,8,…0, 1, 1, 2, 3, 5, 8, \dots come from “add the last two”. That rule does not look like a matrix, yet it becomes one, and then the machinery of this chapter gives a formula for the kk-th term with no recursion at all.

    Where this came from· Rabbits, and a formula with several owners

    The sequence first appears in Fibonacci’s Liber Abaci (1202), where it counts pairs of rabbits month by month under a simple breeding rule. The closed formula below carries the name of Jacques Binet (1843), but Euler, de Moivre and Daniel Bernoulli knew it about a century earlier. The matrix method gives the formula without any guessing. The golden ratio shows up because it is the larger root of the characteristic polynomial of the “add the last two” matrix. So a rule that repeats (“add the last two, again and again”) is controlled by the eigenvalues of one matrix.

    Worked example the method of Spagnolie Lecture 18 applied to a recurrence (Binet's formula)
    Find a closed formula for the Fibonacci numbers F_k, where F_0 = 0, F_1 = 1 and F_(k+1) = F_k + F_(k-1).

    Solution.

    1. Turn the rule into a matrix. Put two consecutive terms in a vector uk=(Fk+1,Fk)u_k = (F_{k+1}, F_k). Then uk+1=Auku_{k+1} = Au_k with A=[1110]A = \begin{bmatrix}1&1\\1&0\end{bmatrix}, so uk=Aku0u_k = A^ku_0 and u0=(1,0)u_0 = (1, 0). The new top entry is Fk+2=Fk+1+FkF_{k+2} = F_{k+1} + F_k and the new bottom entry is Fk+1F_{k+1}. A rule that needs the last two terms becomes a rule on one vector.
    2. Find the eigenvalues. pA(λ)=λ2−λ−1p_A(\lambda) = \lambda^2 - \lambda - 1, with roots φ=1+52\varphi = \frac{1 + \sqrt5}{2} and ψ=1−52\psi = \frac{1 - \sqrt5}{2}. The trace is 11 and the determinant is −1-1. The roots add to 11 and multiply to −1-1, as the trace and determinant theorem says. They differ, so AA is diagonalizable.
    3. Find the eigenvectors. vφ=(φ,1)v_\varphi = (\varphi, 1) and vψ=(ψ,1)v_\psi = (\psi, 1). The second row of (A−λI)x=O(A - \lambda I)x = O is x−λy=0x - \lambda y = 0, so x=λyx = \lambda y. The first row then reads λ2=λ+1\lambda^2 = \lambda + 1, which both roots satisfy.
    4. Write u0u_0 in the eigenbasis. (1,0)=15(vφ−vψ)(1, 0) = \frac1{\sqrt5}(v_\varphi - v_\psi). Solving c1vφ+c2vψ=(1,0)c_1v_\varphi + c_2v_\psi = (1, 0): the second coordinate gives c1+c2=0c_1 + c_2 = 0 and the first gives c1(φ−ψ)=1c_1(\varphi - \psi) = 1, with φ−ψ=5\varphi - \psi = \sqrt5.
    5. Apply AkA^k piece by piece. uk=15(φkvφ−ψkvψ)u_k = \frac1{\sqrt5}(\varphi^kv_\varphi - \psi^kv_\psi). AA multiplies vφv_\varphi by φ\varphi and vψv_\psi by ψ\psi, so AkA^k multiplies them by φk\varphi^k and ψk\psi^k. No matrix power is computed.
    6. Read off the bottom entry. Fk=φk−ψk5F_k = \dfrac{\varphi^k - \psi^k}{\sqrt5}. The bottom entry of uk=(Fk+1,Fk)u_k = (F_{k+1}, F_k) is FkF_k, and both eigenvectors have bottom entry 11.
    7. Check. For k=10k = 10: φ10≈122.99187\varphi^{10} \approx 122.99187 and ψ10≈0.00813\psi^{10} \approx 0.00813, so F10=122.983742.23607=55F_{10} = \frac{122.98374}{2.23607} = 55. That is the tenth Fibonacci number. Since ∣ψ∣<1|\psi| < 1, ψk\psi^k dies away and FkF_k is the whole number nearest to φk/5\varphi^k/\sqrt5.

    The step-through below shows the same argument with every line written out.

    Answer. Fk=φk−ψk5F_k = \dfrac{\varphi^k - \psi^k}{\sqrt5} with φ=1+52\varphi = \tfrac{1+\sqrt5}{2} and ψ=1−52\psi = \tfrac{1-\sqrt5}{2}.

    Your answerUse Fk≈φk/5F_k \approx \varphi^k/\sqrt5 with φ≈1.618034\varphi \approx 1.618034 to estimate F15F_{15}, then give the exact whole number it rounds to.

    Non-example 1: the shear has too few eigenvectors. In the picture, “Shear” shows a single dashed line.

    Worked example Spagnolie Lectures 16 and 18; Apostol 4.10 #1
    Is the shear with rows (1, 1) and (0, 1) diagonalizable?

    Solution.

    1. Find the characteristic polynomial. det⁡[λ−1−10λ−1]=(λ−1)2\det\begin{bmatrix}\lambda-1&-1\\0&\lambda-1\end{bmatrix} = (\lambda-1)^2. The matrix is triangular, so the determinant is the product of the diagonal entries. So λ=1\lambda = 1 is the only eigenvalue, with algebraic multiplicity m=2m = 2.
    2. Find the eigenspace. (I−A)x=[0−100][xy]=[−y0]=O(I - A)x = \begin{bmatrix}0&-1\\0&0\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix}-y\\0\end{bmatrix} = O forces y=0y = 0. So E(1)={(x,0)}E(1) = \{(x, 0)\}, the horizontal line, and g=1g = 1. The geometric multiplicity is the dimension of this null space.
    3. Compare. g=1<2=mg = 1 < 2 = m. By the iff theorem, a matrix is diagonalizable only if g=mg = m for every eigenvalue. Equivalently, we need 2 independent eigenvectors in R2\mathbb R^2 and there is only one line of them.
    4. Second argument (Spagnolie). If A=CDC−1A = CDC^{-1}, DD would have both eigenvalues equal to 11, so D=ID = I and A=CIC−1=IA = CIC^{-1} = I. But A≠IA \ne I. The only diagonalizable matrix whose eigenvalues are all equal to aa is aIaI.

    Answer. No. The shear is not diagonalizable. It has the same characteristic polynomial as II, yet II is diagonalizable, so the characteristic polynomial alone does not decide it.

    Your answerLet A=[210020002]A = \begin{bmatrix}2&1&0\\0&2&0\\0&0&2\end{bmatrix}. Its only eigenvalue is 22. What is dim⁡E(2)\dim E(2), the number of independent eigenvectors?

    Non-example 2: rotation has no real eigenvectors, but has complex ones.

    Worked example Spagnolie Lecture 18
    Find the eigenvalues and eigenvectors of the quarter turn with rows (0, -1) and (1, 0).

    Solution.

    1. Characteristic polynomial. det⁡[λ1−1λ]=λ2+1\det\begin{bmatrix}\lambda&1\\-1&\lambda\end{bmatrix} = \lambda^2 + 1. Expand the 2×22\times2 determinant: λ⋅λ−(1)(−1)\lambda\cdot\lambda - (1)(-1).
    2. Real roots? λ2+1=0\lambda^2 + 1 = 0 has none, so over R\mathbb R there is no eigenvalue and no eigenvector. This matches the preset “Rotate 90°”: no dashed line, because every direction is turned.
    3. Allow complex numbers. The roots are λ=i\lambda = i and λ=−i\lambda = -i, where ii is the number with i2=−1i^2 = -1. Over C\mathbb C (the complex numbers) every polynomial has its roots. We now let the vector entries be complex too.
    4. Eigenvector for ii. (iI−A)x=[i1−1i]x=O(iI - A)x = \begin{bmatrix}i&1\\-1&i\end{bmatrix}x = O. The first row says ix+y=0ix + y = 0, so y=−ixy = -ix. Take x=1x = 1: u1=(1,−i)u_1 = (1, -i). Check: Au1=(0⋅1+(−1)(−i), 1⋅1+0)=(i,1)=i (1,−i)Au_1 = (0\cdot1 + (-1)(-i),\ 1\cdot 1 + 0) = (i, 1) = i\,(1, -i). Spagnolie writes (−1,i)(-1, i), which is −1-1 times this vector and lies on the same line.
    5. Eigenvector for −i-i. Similarly u2=(1,i)u_2 = (1, i). Check: Au2=(−i,1)=−i (1,i)Au_2 = (-i, 1) = -i\,(1, i). Same method with −i-i in place of ii.
    6. Cross-check. i+(−i)=0=tr⁡Ai + (-i) = 0 = \operatorname{tr}A and i⋅(−i)=1=det⁡Ai\cdot(-i) = 1 = \det A. The trace and determinant theorem holds with complex eigenvalues.

    Answer. No real eigenvalues. Over C\mathbb C: ii with (1,−i)(1, -i) and −i-i with (1,i)(1, i). So A=CDC−1A = CDC^{-1} with D=diag⁡(i,−i)D = \operatorname{diag}(i, -i), and A2=CD2C−1=−IA^2 = CD^2C^{-1} = -I: two quarter turns make a half turn, which is −I-I.

    A rotation by an angle θ\theta has eigenvalues cos⁡θ±isin⁡θ\cos\theta \pm i\sin\theta. A complex diagonal matrix is how a rotation is written once the right complex basis is chosen.

    Eigenfunctions: the same idea in a function space. Here VV is infinite-dimensional, so there is no characteristic polynomial and no determinant, but the definition of eigenvector still works.

    Worked example Apostol 4.4 #5, MATH 375 HW9
    Find all eigenvalues and eigenfunctions of T(f)(t) = t f'(t) on the infinitely differentiable functions on (0, 1).

    Solution.

    1. Write the eigen-equation. T(f)=λfT(f) = \lambda f means tf′(t)=λf(t)t f'(t) = \lambda f(t) for all tt in (0,1)(0, 1). This is the definition, with a non-zero function ff.
    2. Find a quantity with derivative zero. ddt(t−λf(t))=t−λf′−λt−λ−1f=t−λ−1(tf′−λf)=0\dfrac{d}{dt}\big(t^{-\lambda}f(t)\big) = t^{-\lambda}f' - \lambda t^{-\lambda-1}f = t^{-\lambda-1}\big(tf' - \lambda f\big) = 0. The product rule. We multiply by t−λt^{-\lambda} because it turns the equation into “something has zero derivative”. (Dividing by ff instead would fail where ff is zero.)
    3. Conclude it is constant. A function with zero derivative on an interval is constant, so t−λf(t)=Kt^{-\lambda}f(t) = K and f(t)=Ktλf(t) = Kt^\lambda. Mean value theorem from calculus. f≠Of \ne O means K≠0K \ne 0.
    4. Check the converse. T(tλ)=t⋅λtλ−1=λtλT(t^\lambda) = t\cdot\lambda t^{\lambda-1} = \lambda t^\lambda, and tλt^\lambda is differentiable on (0,1)(0, 1) for every real λ\lambda. We must make sure our answers are really in the space and really satisfy the equation.

    Answer. Every real number λ\lambda is an eigenvalue, and E(λ)={Ktλ}E(\lambda) = \{Kt^\lambda\}, a one-dimensional space.

    Where it is used

    Used inside maths· Inside maths: differential equations y' = Ay

    In MATH 376 you solve one equation y′=ayy' = ay by y=y(0) eaty = y(0)\,e^{at}. A system y′=Ayy' = Ay, with AA a matrix and y(t)y(t) a vector, can be solved the same way. Try a solution that keeps its direction: y(t)=eλtvy(t) = e^{\lambda t}v for a fixed vector vv. Then y′=λeλtvy' = \lambda e^{\lambda t}v and Ay=eλtAvAy = e^{\lambda t}Av, and the two are equal exactly when Av=λvAv = \lambda v. So eigenvectors are exactly the solutions that keep their shape. Because the equation is linear, sums of such solutions are also solutions.

    Take A=[2−40−2]A = \begin{bmatrix}2&-4\\0&-2\end{bmatrix} (MATH 375 HW10). Its eigenvalues are 22 with v=(1,0)v = (1, 0) and −2-2 with v=(1,1)v = (1, 1). The solution with y(0)=(p,q)y(0) = (p, q) is

    y(t)=(p−q) e2t[10]+q e−2t[11]=[(p−q)e2t+qe−2tqe−2t].y(t) = (p - q)\,e^{2t}\begin{bmatrix}1\\0\end{bmatrix} + q\,e^{-2t}\begin{bmatrix}1\\1\end{bmatrix} = \begin{bmatrix}(p - q)e^{2t} + qe^{-2t}\\ qe^{-2t}\end{bmatrix}.

    (We found the two weights by writing (p,q)=(p−q)(1,0)+q(1,1)(p, q) = (p - q)(1, 0) + q(1, 1), which is coordinates in the eigenbasis.) Check: at t=0t = 0 it gives (p,q)(p, q), and differentiating the second coordinate gives −2qe−2t=−2⋅(second coordinate)-2qe^{-2t} = -2\cdot(\text{second coordinate}), as y′=Ayy' = Ay requires, because the second row of AA is (0,−2)(0, -2). Start at (3,1)(3, 1) and you get (2e2t+e−2t, e−2t)(2e^{2t} + e^{-2t},\ e^{-2t}). One piece grows like e2te^{2t}, the other dies like e−2te^{-2t}. The eigenvalue signs predict the long-term behaviour at once. In general y(t)=CetDC−1y(0)y(t) = Ce^{tD}C^{-1}y(0), where etDe^{tD} is diag⁡(eλ1t,…,eλnt)\operatorname{diag}(e^{\lambda_1t}, \dots, e^{\lambda_nt}).

    Used in the real world· Engineering: vibration modes of two coupled carts

    Two carts of mass 11 kg sit on a track. A spring of stiffness 100100 N/m joins the left cart to a wall, another joins the carts, and a third joins the right cart to a wall. If x1,x2x_1, x_2 are the displacements from rest, Newton’s law gives x1′′=−200x1+100x2x_1'' = -200x_1 + 100x_2 and x2′′=100x1−200x2x_2'' = 100x_1 - 200x_2, that is, x′′=−Kxx'' = -Kx with K=[200−100−100200]K = \begin{bmatrix}200&-100\\-100&200\end{bmatrix}. Try a motion where both carts oscillate at the same frequency: x(t)=vcos⁡ωtx(t) = v\cos\omega t. Then x′′=−ω2vcos⁡ωtx'' = -\omega^2v\cos\omega t, and the equation becomes Kv=ω2vKv = \omega^2v. This is an eigenvalue problem.

    The characteristic polynomial is (λ−200)2−1002(\lambda - 200)^2 - 100^2, with roots λ=100\lambda = 100 and 300300. The eigenvector for 100100 is (1,1)(1, 1): the carts move together, ω=100=10\omega = \sqrt{100} = 10 rad/s (1.59 Hz). The eigenvector for 300300 is (1,−1)(1, -1): the carts move in opposite directions, ω=300≈17.32\omega = \sqrt{300} \approx 17.32 rad/s (2.76 Hz). These two are the normal modes. Every motion is a combination of them. Pull the left cart 11 cm and release both from rest: (1,0)=12(1,1)+12(1,−1)(1, 0) = \tfrac12(1, 1) + \tfrac12(1, -1), so

    x1(t)=12(cos⁡10t+cos⁡17.32t),x2(t)=12(cos⁡10t−cos⁡17.32t) cm.x_1(t) = \tfrac12\big(\cos 10t + \cos 17.32t\big), \qquad x_2(t) = \tfrac12\big(\cos 10t - \cos 17.32t\big)\ \text{cm}.

    By the product formula for cosines, x1=cos⁡(13.66 t)cos⁡(3.66 t)x_1 = \cos(13.66\,t)\cos(3.66\,t) and x2=sin⁡(13.66 t)sin⁡(3.66 t)x_2 = \sin(13.66\,t)\sin(3.66\,t). The slow factor cos⁡(3.66t)\cos(3.66t) is zero at t=π/(2⋅3.66)≈0.43t = \pi/(2\cdot 3.66) \approx 0.43 s, when the left cart’s swing has died down and the right cart is moving with almost full amplitude. The energy sloshes from one cart to the other. Engineers compute these eigenvalues for bridges and buildings to keep the natural frequencies away from the frequency of wind or footsteps.

    Used in the real world· Biology: a population model (Leslie matrix)

    A fish population has three age groups: young, adult and old, counted once a year. Each adult produces 1.51.5 young per year and each old fish produces 11. Of the young, 60%60\% survive to become adults. Of the adults, 50%50\% survive to become old, and old fish die within the year. With x=(young,adult,old)x = (\text{young}, \text{adult}, \text{old}), next year’s population is LxLx with

    L=[01.510.60000.50],pL(λ)=λ3−0.9λ−0.3.L = \begin{bmatrix}0 & 1.5 & 1\\ 0.6 & 0 & 0\\ 0 & 0.5 & 0\end{bmatrix}, \qquad p_L(\lambda) = \lambda^3 - 0.9\lambda - 0.3.

    The roots are 1.08471.0847, −0.6749-0.6749 and −0.4098-0.4098. Check with the trace theorem: they add to 0=tr⁡L0 = \operatorname{tr}L and multiply to 0.3=det⁡L0.3 = \det L. Write the starting population in the eigenbasis: after kk years each piece has been multiplied by λik\lambda_i^k. The two negative eigenvalues have size less than 1.08471.0847, so their pieces fade relative to the first. Start with 100100 young fish. After 1212 years the population is (119.6, 64.9, 30.8)(119.6,\ 64.9,\ 30.8), total 215.3215.3. In year 1313 the total grows by a factor 1.0791.079, already near 1.08471.0847, and the factor settles at 1.08471.0847: the population grows about 8.5%8.5\% a year in the long run. The eigenvector for 1.08471.0847 is proportional to (1, 0.6/λ, 0.3/λ2)(1,\ 0.6/\lambda,\ 0.3/\lambda^2), which as fractions of the total is (0.553, 0.306, 0.141)(0.553,\ 0.306,\ 0.141). The simulated year-12 fractions are (0.555,0.301,0.143)(0.555, 0.301, 0.143). So the dominant eigenvalue gives the long-run growth rate and the dominant eigenvector gives the stable age mix. (For matrices with no negative entries this behaviour is guaranteed by the Perron–Frobenius theorem; here we saw it by computing.)

    Used in the real world· The web: PageRank is an eigenvector (preview of 2.11)

    Take a web of three pages. Page 1 links to pages 2 and 3, page 2 links to page 3, and page 3 links to page 1. Let each page split one unit of “importance” equally among the pages it links to. The vector rr of importances must be reproduced by this sharing: r=Mrr = Mr, where column jj of MM shows how page jj shares its vote,

    M=[00112001210].M = \begin{bmatrix}0&0&1\\ \tfrac12&0&0\\ \tfrac12&1&0\end{bmatrix}.

    So rr is an eigenvector of MM with eigenvalue 11. Solving gives r=(0.4,0.2,0.4)r = (0.4, 0.2, 0.4). Check: Mr=(0.4, 0.2, 0.2+0.2)=rMr = (0.4,\ 0.2,\ 0.2 + 0.2) = r. Pages 1 and 3 are twice as important as page 2, because page 3 receives all of page 2’s vote and half of page 1’s. The other two eigenvalues of MM are (−1±i)/2(-1 \pm i)/2, of size 0.7070.707, which is less than 11. So repeated multiplication MkxM^kx shrinks everything except the eigenvalue-11 part: starting from (1,0,0)(1, 0, 0), forty multiplications give (0.4000,0.2000,0.4000)(0.4000, 0.2000, 0.4000). That is how a real search engine finds the ranking of billions of pages, without diagonalizing anything. The original Google method also mixes in a 15%15\% chance of jumping to a random page, so that the process cannot get stuck. Chapter 2.11 builds this properly.

    Used in the real world· Data and geometry: principal axes (preview of 3.2 and PCA)

    The set of points with 5x2+4xy+5y2=15x^2 + 4xy + 5y^2 = 1 is an ellipse tilted at 45°45°. The matrix of this quadratic expression is S=[5225]S = \begin{bmatrix}5&2\\2&5\end{bmatrix}, with pS=λ2−10λ+21=(λ−7)(λ−3)p_S = \lambda^2 - 10\lambda + 21 = (\lambda - 7)(\lambda - 3). The eigenvectors are (1,1)(1, 1) for 77 and (1,−1)(1, -1) for 33, and they are perpendicular. In the coordinates u=(x+y)/2u = (x + y)/\sqrt2 and v=(x−y)/2v = (x - y)/\sqrt2 along these directions, the equation becomes 7u2+3v2=17u^2 + 3v^2 = 1, because 5x2+4xy+5y2=3.5(x+y)2+1.5(x−y)25x^2 + 4xy + 5y^2 = 3.5(x+y)^2 + 1.5(x-y)^2. The semi-axes are 1/7≈0.3781/\sqrt7 \approx 0.378 along (1,1)(1, 1) and 1/3≈0.5771/\sqrt3 \approx 0.577 along (1,−1)(1, -1). These are the principal axes, and the eigenvalues say how steeply the expression grows in each direction (a bigger eigenvalue gives a shorter axis). If SS were the covariance matrix of two correlated measurements, the same eigenvectors would be the directions of greatest and least spread, with variances 77 and 33. That is principal component analysis (PCA), which keeps the directions with the largest eigenvalues. The fact that the two eigenvectors are perpendicular is not luck: it holds for every symmetric matrix (you can prove it in 2.9, and the spectral theorem in 3.1 makes it complete).

    Used in the real world· Physics (B): quantum energy levels are eigenvalues

    In quantum mechanics a particle is described by a function ψ\psi, and its possible energies are the eigenvalues of an operator HH (the Hamiltonian): Hψ=EψH\psi = E\psi. For a particle trapped in a box [0,L][0, L] with ψ(0)=ψ(L)=0\psi(0) = \psi(L) = 0, H=−ℏ22md2dx2H = -\dfrac{\hbar^2}{2m}\dfrac{d^2}{dx^2}. This is the second-derivative operator from Apostol 4.4 #9 (see the stretch problem below). Its eigenfunctions are ψn=sin⁡(nπx/L)\psi_n = \sin(n\pi x/L), because ψn′′=−(nπ/L)2ψn\psi_n'' = -(n\pi/L)^2\psi_n, and its eigenvalues are

    En=n2π2ℏ22mL2,n=1,2,3,…E_n = \frac{n^2\pi^2\hbar^2}{2mL^2}, \qquad n = 1, 2, 3, \dots

    Only these energies are allowed. For an electron (m=9.109×10−31m = 9.109\times10^{-31} kg) in a box 11 nm wide, E1=6.02×10−20E_1 = 6.02\times10^{-20} J =0.376= 0.376 eV, E2=4E1=1.50E_2 = 4E_1 = 1.50 eV, E3=9E1=3.38E_3 = 9E_1 = 3.38 eV. A jump from level 22 to level 11 releases 3E1=1.1283E_1 = 1.128 eV, a photon of wavelength about 1240/1.128≈11001240/1.128 \approx 1100 nm (infrared). A quantum dot is a tiny box of this kind, and shrinking it increases EnE_n (it grows like 1/L21/L^2), which is why its colour depends on its size.

    A preview· Preview: what the later chapters do with this

    Three failures happened above: a repeated eigenvalue with too few eigenvectors (the shear), complex eigenvalues (the rotation), and in general a basis of eigenvectors that is not perpendicular. Chapter 3.6 (Jordan form) repairs the first: every matrix over C\mathbb C is similar to a matrix that is diagonal except for a few 11s directly above the diagonal, and the shear is the smallest example. Chapter 3.1 (the spectral theorem) says that a real symmetric matrix always has real eigenvalues and a perpendicular eigenbasis, as in the ellipse above. Spagnolie also stated the Schur decomposition: every square matrix is A=QTQHA = QTQ^{\mathsf H} with QQ having perpendicular unit columns (unitary, so QHQ^{\mathsf H}, its conjugate transpose, is its inverse) and TT upper triangular, with the eigenvalues on its diagonal. It is a weaker form of diagonalization that always works. A defective matrix such as [12−121232]\begin{bmatrix}\tfrac12&-\tfrac12\\ \tfrac12&\tfrac32\end{bmatrix} (repeated eigenvalue 11, one eigenvector) has A99=12[−97−9999101]A^{99} = \tfrac12\begin{bmatrix}-97&-99\\99&101\end{bmatrix}, found from A=I+NA = I + N with N2=ON^2 = O. The Cayley–Hamilton theorem (pA(A)=Op_A(A) = O for every square matrix) is proved in the problems below for diagonalizable matrices only. And chapter 2.11 uses the eigenvalue 11 of a Markov matrix to find where a random process settles.

    Traps

    Watch out· The zero vector is never an eigenvector, but 0 can be an eigenvalue

    If you solve (A−λI)x=O(A - \lambda I)x = O and get only x=Ox = O, then λ\lambda is not an eigenvalue. If the eigenvalue λ=0\lambda = 0 appears, it is a real eigenvalue and it means AA is not invertible (its eigenvectors are the non-zero null space vectors).

    Watch out· 'The' eigenvector is a whole line, so answers differ and both are right

    If you get (1,−1)(1, -1) and a classmate gets (−2,2)(-2, 2), you may both be right. Multiples of an eigenvector are eigenvectors. To check your own answer, never compare with someone else’s: multiply AA times your vector and see whether you get λ\lambda times it. As Spagnolie wrote on Piazza (@92), if your steps were sound and your arithmetic correct, you are guaranteed the right form, but it is always worth the check if you have time.

    Watch out· Order matters in C D C⁻¹

    The kk-th column of CC must be the eigenvector for the kk-th diagonal entry of DD. Swap two eigenvalues in DD and you must swap the same two columns of CC. The inverse goes on the right in A=CDC−1A = CDC^{-1}. Apostol writes the same thing as B=C−1ACB = C^{-1}AC (so his BB is our DD). Spagnolie writes UΛU−1U\Lambda U^{-1}. They are all the same statement.

    Watch out· A repeated eigenvalue does not decide anything

    Repeated eigenvalue does not mean “not diagonalizable” (the identity is diagonal) and it does not mean “diagonalizable” (the shear is not). Count eigenvectors: the geometric multiplicity must equal the algebraic multiplicity for every eigenvalue. Distinct eigenvalues, on the other hand, are a guarantee that the matrix is diagonalizable.

    Watch out· Same eigenvalues does not mean similar

    The identity and the shear both have only the eigenvalue 11 (twice), but they are not similar: if A=CIC−1A = CIC^{-1} then A=IA = I. Similar matrices must share their characteristic polynomial (so trace, determinant and eigenvalues), but sharing them is not enough. To show two matrices are not similar, Spagnolie’s method (Piazza @87, @90, HW10) is to assume AC=CBAC = CB for an unknown CC and show CC must be singular.

    Watch out· Eigenvalues of A + B and AB are not sums and products

    The trace theorem is about one matrix. For A=[1101]A = \begin{bmatrix}1&1\\0&1\end{bmatrix} and B=[1011]B = \begin{bmatrix}1&0\\1&1\end{bmatrix} both eigenvalues are 11 and 11. But AB=[2111]AB = \begin{bmatrix}2&1\\1&1\end{bmatrix} has trace 33, not 1+1=21 + 1 = 2, and eigenvalues 3±52\tfrac{3 \pm \sqrt5}{2}. Eigenvalues combine nicely only when the matrices share eigenvectors.

    Watch out· Real matrix, complex eigenvalues

    ‘No real eigenvalue’ does not mean ‘no eigenvalue’. A rotation by 90°90° has the eigenvalues ±i\pm i. When the question says ‘over R\mathbb R’ and the characteristic polynomial has no real roots, the answer is that no real eigenvector exists, and you should not force one.

    Watch out· Two characteristic polynomials in the books

    Apostol and Spagnolie use det⁡(λI−A)\det(\lambda I - A), which starts with +λn+\lambda^n. Other books (and some calculators) use det⁡(A−λI)\det(A - \lambda I), which starts with (−1)nλn(-1)^n\lambda^n. The roots are identical, so eigenvalues are unaffected, but the constant term has the opposite sign when nn is odd.

    Problems

    check

    Which of (2,−2)(2, -2), (0,0)(0, 0), (1,1)(1, 1) are eigenvectors of A=[3102]A = \begin{bmatrix}3&1\\0&2\end{bmatrix}? Give the eigenvalue where there is one.

    Solution

    A(2,−2)=(6−2,−4)=(4,−4)=2 (2,−2)A(2, -2) = (6 - 2, -4) = (4, -4) = 2\,(2, -2): yes, with λ=2\lambda = 2. (0,0)(0, 0) is never an eigenvector, by definition. A(1,1)=(4,2)A(1, 1) = (4, 2) is not a multiple of (1,1)(1, 1): no.

    checkLecture 16

    Find the eigenvalues of [25703100−1]\begin{bmatrix}2&5&7\\0&3&1\\0&0&-1\end{bmatrix} without expanding anything. What are its trace and determinant?

    Solution

    The matrix is upper triangular, so det⁡(λI−A)=(λ−2)(λ−3)(λ+1)\det(\lambda I - A) = (\lambda - 2)(\lambda - 3)(\lambda + 1) and the eigenvalues are the diagonal entries 2,3,−12, 3, -1. The trace is 2+3−1=42 + 3 - 1 = 4 and the determinant is 2⋅3⋅(−1)=−62\cdot3\cdot(-1) = -6, which are the sum and product of the eigenvalues.

    checkMATH 375 HW9 (Apostol 3.17 #3a)

    The matrix A=[032−1]A = \begin{bmatrix}0&3\\2&-1\end{bmatrix} has trace −1-1 and determinant −6-6. Write down its characteristic polynomial and its eigenvalues without computing det⁡(λI−A)\det(\lambda I - A) directly.

    Solution

    For a 2×22\times2 matrix, pA(λ)=λ2−(tr⁡A)λ+det⁡A=λ2+λ−6=(λ+3)(λ−2)p_A(\lambda) = \lambda^2 - (\operatorname{tr}A)\lambda + \det A = \lambda^2 + \lambda - 6 = (\lambda + 3)(\lambda - 2). The eigenvalues are −3-3 and 22. Direct check: det⁡[λ−3−2λ+1]=λ(λ+1)−6\det\begin{bmatrix}\lambda&-3\\-2&\lambda+1\end{bmatrix} = \lambda(\lambda + 1) - 6, the same.

    check

    Does the rotation by 90°90°, [0−110]\begin{bmatrix}0&-1\\1&0\end{bmatrix}, have an eigenvector in R2\mathbb R^2? Explain in one sentence using the picture.

    Solution

    No. Its characteristic polynomial λ2+1\lambda^2 + 1 has no real root. In the picture, a quarter turn sends every direction to a different direction, so no line stays on itself.

    useApostol 4.10 #2(b), MATH 375 HW10

    Diagonalize A=[1254]A = \begin{bmatrix}1&2\\5&4\end{bmatrix}: find CC and DD with A=CDC−1A = CDC^{-1}.

    Solution

    Trace 55, determinant 4−10=−64 - 10 = -6, so pA=λ2−5λ−6=(λ−6)(λ+1)p_A = \lambda^2 - 5\lambda - 6 = (\lambda - 6)(\lambda + 1). For λ=6\lambda = 6: A−6I=[−525−2]A - 6I = \begin{bmatrix}-5&2\\5&-2\end{bmatrix}, so 5x=2y5x = 2y and u1=(2,5)u_1 = (2, 5). For λ=−1\lambda = -1: A+I=[2255]A + I = \begin{bmatrix}2&2\\5&5\end{bmatrix}, so x=−yx = -y and u2=(−1,1)u_2 = (-1, 1). Then C=[2−151]C = \begin{bmatrix}2&-1\\5&1\end{bmatrix} (determinant 77), D=diag⁡(6,−1)D = \operatorname{diag}(6, -1) and C−1=17[11−52]C^{-1} = \tfrac17\begin{bmatrix}1&1\\-5&2\end{bmatrix}. Check: CD=[12130−1]CD = \begin{bmatrix}12&1\\30&-1\end{bmatrix} and CDC−1=17[7143528]=[1254]CDC^{-1} = \tfrac17\begin{bmatrix}7&14\\35&28\end{bmatrix} = \begin{bmatrix}1&2\\5&4\end{bmatrix}.

    useApostol 4.10 #2(d), MATH 375 HW10

    Is A=[21−10]A = \begin{bmatrix}2&1\\-1&0\end{bmatrix} diagonalizable?

    Solution

    Trace 22, determinant 11, so pA=λ2−2λ+1=(λ−1)2p_A = \lambda^2 - 2\lambda + 1 = (\lambda - 1)^2 and m(1)=2m(1) = 2. A−I=[11−1−1]A - I = \begin{bmatrix}1&1\\-1&-1\end{bmatrix} gives x+y=0x + y = 0, so E(1)E(1) is spanned by (1,−1)(1, -1) and g(1)=1g(1) = 1. Since g<mg < m, AA is not diagonalizable.

    useMATH 375 Lecture 18

    For A=[7−84−5]A = \begin{bmatrix}7&-8\\4&-5\end{bmatrix} find a formula for AkA^k, and then A100A^{100}.

    Solution

    Trace 22, determinant −35+32=−3-35 + 32 = -3, so pA=λ2−2λ−3=(λ−3)(λ+1)p_A = \lambda^2 - 2\lambda - 3 = (\lambda - 3)(\lambda + 1). For 33: 3I−A=[−48−48]3I - A = \begin{bmatrix}-4&8\\-4&8\end{bmatrix} gives u1=(2,1)u_1 = (2, 1). For −1-1: −I−A=[−88−44]-I - A = \begin{bmatrix}-8&8\\-4&4\end{bmatrix} gives u2=(1,1)u_2 = (1, 1). With C=[2111]C = \begin{bmatrix}2&1\\1&1\end{bmatrix}, C−1=[1−1−12]C^{-1} = \begin{bmatrix}1&-1\\-1&2\end{bmatrix}, and Dk=diag⁡(3k,(−1)k)D^k = \operatorname{diag}(3^k, (-1)^k):

    Ak=CDkC−1=[2⋅3k−(−1)k−2⋅3k+2(−1)k3k−(−1)k−3k+2(−1)k].A^k = CD^kC^{-1} = \begin{bmatrix}2\cdot3^k - (-1)^k & -2\cdot3^k + 2(-1)^k\\ 3^k - (-1)^k & -3^k + 2(-1)^k\end{bmatrix}.

    Check k=1k = 1: [7−84−5]\begin{bmatrix}7&-8\\4&-5\end{bmatrix}. Check k=2k = 2: [17−168−7]\begin{bmatrix}17&-16\\8&-7\end{bmatrix}, which equals A⋅AA\cdot A. For k=100k = 100, (−1)100=1(-1)^{100} = 1: A100=[2⋅3100−12−2⋅31003100−12−3100]A^{100} = \begin{bmatrix}2\cdot3^{100} - 1 & 2 - 2\cdot3^{100}\\ 3^{100} - 1 & 2 - 3^{100}\end{bmatrix}.

    useApostol 4.4 #7, MATH 375 HW9

    Let VV be the continuous functions on R\mathbb R for which ∫−∞xf(t) dt\int_{-\infty}^x f(t)\,dt exists for every xx, and let T(f)(x)=∫−∞xf(t) dtT(f)(x) = \int_{-\infty}^x f(t)\,dt. Show that every positive λ\lambda is an eigenvalue of TT, meaning there is a non-zero ff in VV with T(f)=λfT(f) = \lambda f.

    Solution

    Fix λ>0\lambda > 0 and let f(x)=ex/λf(x) = e^{x/\lambda}. It is continuous. Then ∫−∞xet/λ dt=λex/λ\int_{-\infty}^x e^{t/\lambda}\,dt = \lambda e^{x/\lambda}, which exists because 1/λ>01/\lambda > 0 makes et/λ→0e^{t/\lambda} \to 0 as t→−∞t \to -\infty. So f∈Vf \in V and T(f)=λfT(f) = \lambda f, with f≠Of \ne O. (Conversely, if Tf=λfTf = \lambda f then f=λ−1∫ff = \lambda^{-1}\int f is differentiable with λf′=f\lambda f' = f, so f=Kex/λf = Ke^{x/\lambda}, and for λ<0\lambda < 0 this blows up at −∞-\infty so the integral does not exist. So only positive λ\lambda occur.)

    proveApostol 4.8 #10, MATH 375 HW9

    Prove that AA and ATA^{\mathsf T} have the same characteristic polynomial. Do they have the same eigenvectors?

    Solution

    (λI−A)T=λIT−AT=λI−AT(\lambda I - A)^{\mathsf T} = \lambda I^{\mathsf T} - A^{\mathsf T} = \lambda I - A^{\mathsf T}, because IT=II^{\mathsf T} = I and the transpose of a difference is the difference of transposes. A matrix and its transpose have the same determinant (2.7). So det⁡(λI−AT)=det⁡((λI−A)T)=det⁡(λI−A)\det(\lambda I - A^{\mathsf T}) = \det((\lambda I - A)^{\mathsf T}) = \det(\lambda I - A). The eigenvectors can differ: for A=[3102]A = \begin{bmatrix}3&1\\0&2\end{bmatrix} the eigenvector for 33 is (1,0)(1, 0), but AT=[3012]A^{\mathsf T} = \begin{bmatrix}3&0\\1&2\end{bmatrix} has (1,1)(1, 1) for 33, since AT(1,1)=(3,3)A^{\mathsf T}(1,1) = (3, 3).

    proveApostol 4.4 #2, MATH 375 HW9

    Let Ax=λxAx = \lambda x with x≠Ox \ne O. (a) For a polynomial q(t)=c0+c1t+⋯+cmtmq(t) = c_0 + c_1t + \dots + c_mt^m, prove q(A)x=q(λ)xq(A)x = q(\lambda)x, where q(A)=c0I+c1A+⋯+cmAmq(A) = c_0I + c_1A + \dots + c_mA^m. (b) If AA is invertible, prove λ≠0\lambda \ne 0 and A−1x=λ−1xA^{-1}x = \lambda^{-1}x.

    Solution

    (a) By the worked example above, Ajx=λjxA^jx = \lambda^jx for j≥1j \ge 1, and A0x=Ix=x=λ0xA^0x = Ix = x = \lambda^0x. Then q(A)x=c0x+c1λx+⋯+cmλmx=q(λ)xq(A)x = c_0x + c_1\lambda x + \dots + c_m\lambda^mx = q(\lambda)x by linearity.

    (b) If λ=0\lambda = 0 then Ax=OAx = O with x≠Ox \ne O, so AA is not one-to-one, contradicting invertibility. So λ≠0\lambda \ne 0. Apply A−1A^{-1} to Ax=λxAx = \lambda x: x=λA−1xx = \lambda A^{-1}x. Divide by λ\lambda: A−1x=λ−1xA^{-1}x = \lambda^{-1}x.

    proveApostol 4.10 #1, MATH 375 HW10

    Prove that A=[1101]A = \begin{bmatrix}1&1\\0&1\end{bmatrix} and II have the same eigenvalues but are not similar.

    Solution

    Both have characteristic polynomial (λ−1)2(\lambda - 1)^2, so the eigenvalues coincide (11, twice). Suppose A=CIC−1A = CIC^{-1} for some invertible CC. Then A=CC−1=IA = CC^{-1} = I, which is false. So no such CC exists, and AA is not similar to II. (In general the identity is similar only to itself.)

    provesupports Apostol 4.9

    Prove that tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA) for n×nn\times n matrices, and deduce tr⁡(C−1AC)=tr⁡A\operatorname{tr}(C^{-1}AC) = \operatorname{tr}A.

    Solution

    The (i,i)(i, i) entry of ABAB is ∑jaijbji\sum_j a_{ij}b_{ji}, so tr⁡(AB)=∑i∑jaijbji\operatorname{tr}(AB) = \sum_i\sum_j a_{ij}b_{ji}. Likewise tr⁡(BA)=∑j∑ibjiaij\operatorname{tr}(BA) = \sum_j\sum_i b_{ji}a_{ij}. These are the same double sum with the order of summation exchanged and the factors in the other order, so they are equal. Then tr⁡(C−1(AC))=tr⁡((AC)C−1)=tr⁡A\operatorname{tr}\big(C^{-1}(AC)\big) = \operatorname{tr}\big((AC)C^{-1}\big) = \operatorname{tr}A, applying the first part with the matrices C−1C^{-1} and ACAC.

    proveApostol 4.4 #4, MATH 375 HW9

    Let TT be a linear map from VV to VV. If λ2\lambda^2 is an eigenvalue of T2=T∘TT^2 = T\circ T (for a real number λ\lambda), prove that λ\lambda or −λ-\lambda is an eigenvalue of TT.

    Solution

    Let x≠Ox \ne O with T2x=λ2xT^2x = \lambda^2x. Since TT commutes with II, (T−λI)(T+λI)=T2−λ2I(T - \lambda I)(T + \lambda I) = T^2 - \lambda^2I, so (T−λI)((T+λI)x)=O(T - \lambda I)\big((T + \lambda I)x\big) = O. Let y=(T+λI)xy = (T + \lambda I)x. If y=Oy = O, then Tx=−λxTx = -\lambda x with x≠Ox \ne O, so −λ-\lambda is an eigenvalue. If y≠Oy \ne O, then (T−λI)y=O(T - \lambda I)y = O says Ty=λyTy = \lambda y with y≠Oy \ne O, so λ\lambda is an eigenvalue. Either way one of them is.

    stretchApostol 4.4 #9, MATH 375 HW9 (the answer key shows only one half of the argument)

    Let V={f∈C2[0,π]:f(0)=f(π)=0}V = \{f \in C^2[0, \pi] : f(0) = f(\pi) = 0\} (twice continuously differentiable functions that vanish at both ends) and T(f)=f′′T(f) = f''. Here f′′f'' is only continuous and need not vanish at the ends, so T(f)T(f) may leave VV. An eigenfunction here means a non-zero ff in VV with f′′=λff'' = \lambda f. Prove that the eigenvalues of TT are exactly −n2-n^2 for n=1,2,3,…n = 1, 2, 3, \dots, with eigenfunctions csin⁡ntc\sin nt.

    Solution

    Each sin⁡nt\sin nt is in VV (it vanishes at 00 and π\pi) and (sin⁡nt)′′=−n2sin⁡nt(\sin nt)'' = -n^2\sin nt, so −n2-n^2 is an eigenvalue. (The key’s printed pair (n2,sin⁡nt)(n^2, \sin nt) has the wrong sign.) Now suppose f≠Of \ne O, f∈Vf \in V, f′′=λff'' = \lambda f. The solutions of this equation are known from MATH 376.

    • λ>0\lambda > 0, w=λw = \sqrt\lambda: f=Aewt+Be−wtf = Ae^{wt} + Be^{-wt}. f(0)=0f(0) = 0 gives B=−AB = -A. f(π)=A(ewπ−e−wπ)=0f(\pi) = A(e^{w\pi} - e^{-w\pi}) = 0 and ewπ≠e−wπe^{w\pi} \ne e^{-w\pi} force A=0A = 0, so f=Of = O. No eigenvalue.
    • λ=0\lambda = 0: f=a+btf = a + bt. f(0)=0f(0) = 0 gives a=0a = 0 and f(π)=bπ=0f(\pi) = b\pi = 0 gives b=0b = 0. No eigenvalue.
    • λ=−w2\lambda = -w^2, w>0w > 0: f=c1cos⁡wt+c2sin⁡wtf = c_1\cos wt + c_2\sin wt. f(0)=0f(0) = 0 gives c1=0c_1 = 0. Then f(π)=c2sin⁡wπ=0f(\pi) = c_2\sin w\pi = 0 with c2≠0c_2 \ne 0 (else f=Of = O) forces sin⁡wπ=0\sin w\pi = 0, so ww is a positive integer nn.

    So the eigenvalues are exactly −n2-n^2, and E(−n2)E(-n^2) is spanned by sin⁡nt\sin nt. This same computation gives the quantum energy levels En∝n2E_n \propto n^2 above.

    stretchMATH 375 Lecture 17 (Cayley–Hamilton bonus)

    Let AA be a diagonalizable n×nn\times n matrix with characteristic polynomial pp. Prove p(A)=Op(A) = O. Then check it for A=[1254]A = \begin{bmatrix}1&2\\5&4\end{bmatrix}.

    Solution

    Let u1,…,unu_1, \dots, u_n be an eigenbasis with eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n. By part (a) of the problem on polynomials, p(A)uk=p(λk)uk=0⋅uk=Op(A)u_k = p(\lambda_k)u_k = 0\cdot u_k = O, because each λk\lambda_k is a root of pp. So p(A)p(A) sends every basis vector to OO. Every xx is ∑ckuk\sum c_ku_k, and p(A)p(A) is linear, so p(A)x=∑ckp(A)uk=Op(A)x = \sum c_kp(A)u_k = O. Hence p(A)=Op(A) = O. (The theorem is true for every square matrix, but the general proof needs more. Spagnolie said it was “harder, later in the book”; Apostol proves it in section 7.)

    For A=[1254]A = \begin{bmatrix}1&2\\5&4\end{bmatrix} we have p=λ2−5λ−6p = \lambda^2 - 5\lambda - 6 and A2=[11102526]A^2 = \begin{bmatrix}11&10\\25&26\end{bmatrix}. So A2−5A−6I=[11−5−610−1025−2526−20−6]=OA^2 - 5A - 6I = \begin{bmatrix}11-5-6&10-10\\25-25&26-20-6\end{bmatrix} = O.

    Summary

    • An eigenvector of TT is a non-zero xx with T(x)=λxT(x) = \lambda x, a direction that is only stretched. λ\lambda is its eigenvalue. The vectors for one λ\lambda, plus OO, form the eigenspace E(λ)=N(T−λI)E(\lambda) = N(T - \lambda I), a subspace.
    • Eigenvectors for different eigenvalues are independent (proof: apply TT, subtract λk\lambda_k times the original, induct). So nn distinct eigenvalues give a basis.
    • Eigenvalues are the roots of the characteristic polynomial det⁡(λI−A)\det(\lambda I - A), because λI−A\lambda I - A must have a non-zero null vector, so be non-invertible. Its form is λn−(tr⁡A)λn−1+⋯+(−1)ndet⁡A\lambda^n - (\operatorname{tr}A)\lambda^{n-1} + \dots + (-1)^n\det A.
    • With multiplicity, the trace is the sum of the eigenvalues and the determinant is the product. Similar matrices share all of these, so they belong to the map and not to the basis.
    • AA is diagonalizable iff there is a basis of eigenvectors, iff A=CDC−1A = CDC^{-1}. Then Ak=CDkC−1A^k = CD^kC^{-1}: powers are easy, which gives Fibonacci’s closed form, population growth rates and solutions of y′=Ayy' = Ay.
    • It fails when an eigenvalue has fewer independent eigenvectors than its multiplicity as a root (g<mg < m, the shear), and over R\mathbb R when the roots are complex (the rotation). Diagonalizable iff g=mg = m for every eigenvalue.
    • The same idea works on function spaces: eλte^{\lambda t} for d/dtd/dt, sin⁡nt\sin nt for d2/dt2d^2/dt^2 with fixed ends (quantum energy levels).
    • Coming later: Jordan form (3.6) repairs the shear, and the spectral theorem (3.1) says symmetric matrices have a perpendicular eigenbasis.

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    2.3 Linear maps, null space, range, rank–nullity
    2.5 Matrices as maps, multiplication, change of basis
    2.7 Determinants
    Leads to
    2.11 Markov chains and PageRank
    3.1 Symmetric matrices and the spectral theorem
    3.6 Cayley–Hamilton, Schur, and the Jordan form
    Same idea elsewhere
    MATH 376: The system y' = Ay is solved by finding eigenvectors: a solution that keeps its direction is e^(λt) times an eigenvector, and every solution is a sum of these. The sign of each eigenvalue says whether that part grows or dies.
    CS 240: A recurrence such as Fibonacci is a matrix applied again and again. Its closed form (Binet's formula) is the eigenvalue computation below.
    MATH 541: Eigenvalues over any field, the minimal polynomial, and Jordan form, which repairs the matrices that cannot be diagonalized.
    CS 532 / AI: PCA keeps the top eigenvectors of a covariance matrix. PageRank is an eigenvector. In a recurrent network, whether the largest eigenvalue of the weight matrix is above or below 1 decides if signals explode or fade.