TExcelTAD
Home › Linear Algebra & Matrix Theory › Properties of Eigenvectors and Eigenvalues

Properties of Eigenvectors and Eigenvalues

Eigenvalues follow a handful of rules that save a lot of computation: they add up to the trace, multiply to the determinant, survive transposes and changes of basis, and move in simple ways when you take powers, inverses or shifts of a matrix. And eigenvectors that belong to different eigenvalues are always linearly independent.

Trace and determinant

Over the complex numbers the characteristic polynomial of an n×nn \times n matrix factors completely (The Fundamental Theorem of Algebra), with roots λ1,…,λn\lambda_1, \ldots, \lambda_n listed with multiplicity:

det⁡(A−λI)=(λ1−λ)(λ2−λ)⋯(λn−λ)\det(A - \lambda I) = (\lambda_1 - \lambda)(\lambda_2 - \lambda) \cdots (\lambda_n - \lambda)

Set λ=0\lambda = 0: det⁡(A)=λ1λ2⋯λn\det(A) = \lambda_1\lambda_2 \cdots \lambda_n. Comparing the coefficients of λn−1\lambda^{n-1} on both sides gives the other half:

λ1+λ2+⋯+λn=tr⁡(A)=a11+a22+⋯+annλ1⋅λ2⋅…⋅λn=det⁡(A)\begin{aligned} \lambda_1 + \lambda_2 + \cdots + \lambda_n &= \operatorname{tr}(A) = a_{11} + a_{22} + \cdots + a_{nn} \\ \lambda_1 \cdot \lambda_2 \cdot \ldots \cdot \lambda_n &= \det(A) \end{aligned}

Two consequences: AA is invertible exactly when 0 is not an eigenvalue, and for a 2×22 \times 2 matrix the trace and determinant determine the eigenvalues completely.

How eigenvalues transform

Suppose Av=λvA\mathbf{v} = \lambda\mathbf{v}. Then the same v\mathbf{v} is an eigenvector of each of these related matrices:

Matrix Eigenvalue for v\mathbf{v} Reason
AkA^k λk\lambda^k apply AA kk times
A−1A^{-1} (AA invertible) 1/λ1/\lambda v=A−1Av=λA−1v\mathbf{v} = A^{-1}A\mathbf{v} = \lambda A^{-1}\mathbf{v}
A+cIA + cI λ+c\lambda + c Av+cv=(λ+c)vA\mathbf{v} + c\mathbf{v} = (\lambda + c)\mathbf{v}
cAcA cλc\lambda scale both sides
p(A)p(A) for a polynomial pp p(λ)p(\lambda) combine the rows above
ATA^T λ\lambda (but usually a different eigenvector) det⁡(AT−λI)=det⁡(A−λI)\det(A^T - \lambda I) = \det(A - \lambda I)
P−1APP^{-1}AP (similar) λ\lambda, with eigenvector P−1vP^{-1}\mathbf{v} same characteristic polynomial

The shift rule A+cIA + cI is used constantly in numerical code: it moves all eigenvalues by cc while keeping the eigenvectors, which is how "shifted" and "inverse" power iterations find eigenvalues other than the largest.

Be careful with sums and products of two different matrices: in general the eigenvalues of A+BA + B or ABAB are not sums or products of eigenvalues of AA and BB (unless AA and BB share eigenvectors).

python · try it yourself
from sympy import Matrix, eye

A = Matrix([[2, 1, 0], [0, 3, 1], [0, 0, 5]])
print("eigenvalues of A:     ", sorted(A.eigenvals()))
print("trace, det:           ", A.trace(), A.det())
print("eigenvalues of A^2:   ", sorted((A**2).eigenvals()))
print("eigenvalues of A^-1:  ", sorted(A.inv().eigenvals()))
print("eigenvalues of A^2-3A+I:", sorted((A**2 - 3 * A + eye(3)).eigenvals()))
print("eigenvalues of A^T:   ", sorted(A.T.eigenvals()))
eigenvalues of A:      [2, 3, 5]
trace, det:            10 30
eigenvalues of A^2:    [4, 9, 25]
eigenvalues of A^-1:   [1/5, 1/3, 1/2]
eigenvalues of A^2-3A+I: [-1, 1, 11]
eigenvalues of A^T:    [2, 3, 5]

For λ=2,3,5\lambda = 2, 3, 5 the polynomial p(λ)=λ2−3λ+1p(\lambda) = \lambda^2 - 3\lambda + 1 gives −1, 1 and 11, which is exactly what SymPy found for A2−3A+IA^2 - 3A + I.

Distinct eigenvalues give independent eigenvectors

Theorem. If v1,…,vk\mathbf{v}_1, \ldots, \mathbf{v}_k are eigenvectors of AA for distinct eigenvalues λ1,…,λk\lambda_1, \ldots, \lambda_k, then v1,…,vk\mathbf{v}_1, \ldots, \mathbf{v}_k are linearly independent.

Proof sketch (for two vectors, the general case is induction). Suppose c1v1+c2v2=0c_1\mathbf{v}_1 + c_2\mathbf{v}_2 = \mathbf{0}. Apply AA: c1λ1v1+c2λ2v2=0c_1\lambda_1\mathbf{v}_1 + c_2\lambda_2\mathbf{v}_2 = \mathbf{0}. Subtract λ2\lambda_2 times the first equation: c1(λ1−λ2)v1=0c_1(\lambda_1 - \lambda_2)\mathbf{v}_1 = \mathbf{0}. Since λ1≠λ2\lambda_1 \ne \lambda_2 and v1≠0\mathbf{v}_1 \ne \mathbf{0}, c1=0c_1 = 0, and then c2v2=0c_2\mathbf{v}_2 = \mathbf{0} gives c2=0c_2 = 0. ∎

This is why nn distinct eigenvalues guarantee that an n×nn \times n matrix is diagonalizable. More generally, if you take a basis of each eigenspace and put them together, the combined list is still independent.

Symmetric matrices are special

For a real symmetric matrix (A=ATA = A^T):

  • all eigenvalues are real, even though the characteristic polynomial could in principle have complex roots;
  • eigenvectors for distinct eigenvalues are orthogonal, not just independent.

The second fact has a two-line proof: if Av=λvA\mathbf{v} = \lambda\mathbf{v} and Aw=μwA\mathbf{w} = \mu\mathbf{w}, then λ(v⋅w)=(Av)⋅w=v⋅(Aw)=μ(v⋅w)\lambda(\mathbf{v} \cdot \mathbf{w}) = (A\mathbf{v}) \cdot \mathbf{w} = \mathbf{v} \cdot (A\mathbf{w}) = \mu(\mathbf{v} \cdot \mathbf{w}), so (λ−μ)(v⋅w)=0(\lambda - \mu)(\mathbf{v} \cdot \mathbf{w}) = 0 and v⋅w=0\mathbf{v} \cdot \mathbf{w} = 0 when λ≠μ\lambda \ne \mu. These facts lead to the spectral theorem in Diagonalization of Real Symmetric Matrices.

python · try it yourself
import numpy as np

rng = np.random.default_rng(7)
B = rng.integers(-3, 4, size=(4, 4)).astype(float)
S = B + B.T                                   # a random symmetric matrix
values, vectors = np.linalg.eigh(S)
print("eigenvalues:", [round(float(v), 4) for v in values])
print("sum =", round(float(values.sum()), 6), " trace =", float(np.trace(S)))
print("product =", round(float(values.prod()), 4), " det =", round(float(np.linalg.det(S)), 4))
print("eigenvectors orthonormal:", np.allclose(vectors.T @ vectors, np.eye(4)))
eigenvalues: [-7.7715, -0.6394, 6.7854, 11.6255]
sum = 10.0  trace = 10.0
product = 392.0  det = 392.0
eigenvectors orthonormal: True

In software

  • Sanity checks: after computing eigenvalues numerically, compare their sum with the trace and their product with the determinant. A mismatch means a bug or a badly conditioned matrix.
  • Regularisation: adding λI\lambda I to XTXX^TX in ridge regression shifts every eigenvalue up by λ\lambda, so none is close to 0 and the matrix is safely invertible.
  • Learning rates: for gradient descent on a quadratic loss, the step size must be below 2/λmax⁡2/\lambda_{\max} of the Hessian; the shift and scale rules tell you how preconditioning changes this.

Exercises

Exercise 1: From eigenvalues to everything else

A 3×33 \times 3 matrix AA has eigenvalues 1, 2 and 4. Find det⁡(A)\det(A), tr⁡(A)\operatorname{tr}(A), the eigenvalues of A−1A^{-1} and of A2−3IA^2 - 3I.

Answer

det⁡A=8\det A = 8, tr⁡A=7\operatorname{tr} A = 7; A−1A^{-1} has 1,12,141, \frac{1}{2}, \frac{1}{4}; A2−3IA^2 - 3I has −2, 1, 13.

Solution
det⁡=1⋅2⋅4=8,tr⁡=1+2+4=7A−1: 1/λ → 1,12,14A2−3I: λ2−3 → 1−3, 4−3, 16−3=−2,1,13\begin{aligned} &\det = 1 \cdot 2 \cdot 4 = 8, \quad \operatorname{tr} = 1 + 2 + 4 = 7 \\ &A^{-1}: \ 1/\lambda \ \to\ 1, \tfrac{1}{2}, \tfrac{1}{4} \\ &A^2 - 3I: \ \lambda^2 - 3 \ \to\ 1 - 3,\ 4 - 3,\ 16 - 3 = -2, 1, 13 \end{aligned}

Exercise 2: The missing eigenvalue

A=[211121003]A = \begin{bmatrix} 2 & 1 & 1 \\ 1 & 2 & 1 \\ 0 & 0 & 3 \end{bmatrix} has 1 and 3 among its eigenvalues. Find the third one from the trace alone, then check it against the determinant.

Answer

The third eigenvalue is 3 (so 3 is a double eigenvalue); det⁡A=9=1⋅3⋅3\det A = 9 = 1 \cdot 3 \cdot 3.

Solution
trace=2+2+3=7=1+3+λ3 → λ3=3det⁡ (expand along the last row)=3⋅det⁡[2112]=3⋅3=9product of eigenvalues=1⋅3⋅3=9 ✓\begin{aligned} &\text{trace} = 2 + 2 + 3 = 7 = 1 + 3 + \lambda_3 \ \to\ \lambda_3 = 3 \\ &\det \text{ (expand along the last row)} = 3 \cdot \det\begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} = 3 \cdot 3 = 9 \\ &\text{product of eigenvalues} = 1 \cdot 3 \cdot 3 = 9 \ \checkmark \end{aligned}
python · try it yourself
from sympy import Matrix

A = Matrix([[2, 1, 1], [1, 2, 1], [0, 0, 3]])
print("det:", A.det(), " trace:", A.trace())
print("eigenvalues {value: multiplicity}:", A.eigenvals())
det: 9  trace: 7
eigenvalues {value: multiplicity}: {3: 2, 1: 1}

Exercise 3: Singular means zero

Explain why every matrix with two equal rows has 0 as an eigenvalue, and find an eigenvector of [1212]\begin{bmatrix} 1 & 2 \\ 1 & 2 \end{bmatrix} for λ=0\lambda = 0.

Answer

Equal rows give det⁡=0\det = 0, so 0 is an eigenvalue; (2,−1)(2, -1) is an eigenvector.

Solution

A matrix with two equal rows has determinant 0, and det⁡(A)\det(A) is the product of the eigenvalues, so one of them is 0. The eigenvectors for 0 are the null vectors: x+2y=0x + 2y = 0, for example (2,−1)(2, -1). The other eigenvalue is tr⁡−0=3\operatorname{tr} - 0 = 3.

Exercise 4: Shift and invert

BB has eigenvalues 0.9, 2 and 5. Which eigenvalue does power iteration on (B−2.1I)−1(B - 2.1I)^{-1} find, and why?

Answer

It finds λ=2\lambda = 2, the eigenvalue closest to the shift 2.1.

Solution

(B−2.1I)−1(B - 2.1I)^{-1} has eigenvalues 1/(λ−2.1)1/(\lambda - 2.1):

λ=0.9: 1/(−1.2)≈−0.833λ=2: 1/(−0.1)=−10←largest in absolute valueλ=5: 1/2.9≈0.345\begin{aligned} \lambda = 0.9&: \ 1/(-1.2) \approx -0.833 \\ \lambda = 2&: \ 1/(-0.1) = -10 && \leftarrow \text{largest in absolute value} \\ \lambda = 5&: \ 1/2.9 \approx 0.345 \end{aligned}

Power iteration converges to the eigenvector for −10, which is the eigenvector of BB for λ=2\lambda = 2. This is inverse iteration with a shift.

Test yourself

The eigenvalues of a 3×33 \times 3 matrix are 2, −1 and 3. What is its determinant?

  1. 4
  2. −6
  3. 6
  4. 0

If Av=4vA\mathbf{v} = 4\mathbf{v}, what is (A+2I)−1v(A + 2I)^{-1}\mathbf{v}?

  1. 6v6\mathbf{v}
  2. v/6\mathbf{v}/6
  3. v/4+v/2\mathbf{v}/4 + \mathbf{v}/2
  4. 14v+2v\frac{1}{4}\mathbf{v} + 2\mathbf{v}

Which matrix always has the same eigenvalues as AA?

  1. A+ATA + A^T
  2. ATA^T
  3. A2A^2
  4. 2A2A