11 Eigenvectors/values

11.1 Definitions

Eigenvalues and eigenvector apply only to square matrices.

11.1.0.1 Eigenvector

An eigenvector of an n×nn \times n matrix AA is a nonzero vector 𝒙\mathbf{x} such that the equation A𝒙=λ𝒙A\mathbf{x}=\lambda \mathbf{x} holds true for some scalar λ\lambda, called the eigenvalue.
By definition, an eigenvector must be nonzero to avoid the trivial and unimportant case where A𝟎=λ𝟎A\mathbf{0}=\lambda\mathbf{0}, which is always true for any matrix and scalar.
The valid vector 𝒙\mathbf{x} is referred to as the eigenvector corresponding to that specific λ\lambda.
Geoemetrically, when an eigenvector is multiplied by matrix AA, its direction remains completely unchanged. It can be stretched or compressed.

11.2 Eigenvalue can be 0

If λ=0\lambda = 0, the core equation becomes A𝒙=0𝒙A\mathbf{x} = 0\mathbf{x}, which simplifies to A𝒙=𝟎A\mathbf{x} = \mathbf{0}.
Because eigenvectors must be nonzero, this means A𝒙=𝟎A\mathbf{x} = \mathbf{0} has a nontrivial solution.
Therefore, an n×nn \times n matrix AA having an eigenvalue of 0 means AA is not invertible.

Geometrically, there is at least one non-zero direction in space (the eigenvector) that gets completely crushed down to the origin during the transformation. So the matrix AA represents transformation that crushes space and loses a dimension.
An invertible matrix represents a transformation that can be perfectly reversed or undone. For matrix with eigenvalue of 0, we cannot reverse the operation of crushing the eigenvectors down to 𝟎\mathbf{0}, because the unique starting points are lost. Hence it ties in with matrix being singular.

The eigenspace for an eigenvalue of 00 is the same thing as the null space of the matrix.

11.3 Finding eigenvectors from known eigenvalue

Solving for nontrivial 𝒙\mathbf{x} to A𝒙=λ𝒙A\mathbf{x} = \lambda\mathbf{x}, rewrite it as (A−λI)𝒙=𝟎(A-\lambda I)\mathbf{x}=\mathbf{0} The set of all possible solutions to (A−λI)𝒙=𝟎(A-\lambda I)\mathbf{x}=\mathbf{0} forms the null space of the matrix (A−λI)(A-\lambda I). This set is a subspace of ℝn\mathbb{R}^n and is formally called the eigenspace of AA corresponding to λ\lambda. The eigenspace contains the zero vector and all the eigenvectors tied to that specific eigenvalue.

11.3.0.1 Example

Given a 3×33 \times 3 matrix A=[4−162162−18]A = \begin{bmatrix}4 & -1 & 6 \\ 2 & 1 & 6 \\ 2 & -1 & 8\end{bmatrix} with an eigenvalue of λ=2\lambda=2, A−2I=[4−2−1621−262−18−2]=[2−162−162−16]A - 2I = \begin{bmatrix} 4-2 & -1 & 6 \\ 2 & 1-2 & 6 \\ 2 & -1 & 8-2 \end{bmatrix} = \begin{bmatrix} 2 & -1 & 6 \\ 2 & -1 & 6 \\ 2 & -1 & 6 \end{bmatrix} [2−1602−1602−160]∼[2−16000000000]\left[ \begin{array}{ccc|c} 2 & -1 & 6 & 0 \\ 2 & -1 & 6 & 0 \\ 2 & -1 & 6 & 0 \end{array} \right] \sim \left[ \begin{array}{ccc|c} 2 & -1 & 6 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{array} \right] 2x1−x2+6x3=0⟹x1=12x2−3x32x_1 - x_2 + 6x_3 = 0 \implies x_1 = \frac{1}{2}x_2 - 3x_3 Hence the general solution for the eigenvector 𝒙\mathbf{x} is: 𝒙=[x1x2x3]=[12x2−3x3x2x3]=x2[1/210]+x3[−301]\mathbf{x} = \begin{bmatrix} x_1 \ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} \frac{1}{2}x_2 - 3x_3 \\ x_2 \\ x_3 \end{bmatrix} = x_2 \begin{bmatrix} 1/2 \\ 1 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} -3 \\ 0 \\ 1 \end{bmatrix} The eigenspace is a two-dimensional subspace (a plane) of ℝ3\mathbb{R}^3. A basis is {[1/210],[−301]}\left\{\begin{bmatrix} 1/2 \\ 1 \\ 0 \end{bmatrix}, \quad \begin{bmatrix} -3 \\ 0 \\ 1 \end{bmatrix}\right\}

11.4 Finding eigenvalues

We have the foundational equation A𝒙=λ𝒙A\mathbf{x} = \lambda\mathbf{x} And we want a nontrivial solution 𝒙\mathbf{x} to (A−λI)𝒙=𝟎(A - \lambda I)\mathbf{x} = \mathbf{0} By Invertible Matrix Theorem, the matrix equation has nontrivial solutions only if det⁡(A−λI)=0\det(A - \lambda I) = 0 We can then derive the characteristic polynomial where the only unknown is λ\lambda. The roots of this polynomial are the eigenvalues.

11.4.0.1 Example

Find eigenvalues for matrix A=[233−6]A = \begin{bmatrix} 2 & 3 \\ 3 & -6 \end{bmatrix}.
A−λI=[2−λ33−6−λ]A - \lambda I = \begin{bmatrix} 2-\lambda & 3 \\ 3 & -6-\lambda \end{bmatrix} For 2×22\times 2 matrix, determinant is ad−bcad-bc. det⁡(A−λI)=(2−λ)(−6−λ)−(3)(3)=λ2+4λ−21=(λ−3)(λ+7)\begin{align*} \det(A - \lambda I) &= (2-\lambda)(-6-\lambda) - (3)(3)\\ &= \lambda^2 + 4\lambda - 21\\ &= (\lambda - 3)(\lambda + 7) \end{align*} Setting the characteristic polynomial to zero, we get the eigenvalues λ=3\lambda = 3 and λ=−7\lambda = -7.

11.4.1 Special case - triangular matrices

The eigenvalues of a triangular matrix (upper, lower or pure diagonal) are simply the entries on its main diagonal.
Example For lower triangular matrix, B=[𝟐004𝟐0−16𝟗]B = \begin{bmatrix} \mathbf{2} & 0 & 0 \\ 4 & \mathbf{2} & 0 \\ -1 & 6 & \mathbf{9} \end{bmatrix} The eigenvalues are λ1=2\lambda_1 = 2 and λ2=9\lambda_2 = 9.
Proof det⁡[2−λ0042−λ0−169−λ]=(2−λ)2(9−λ)=0\det \begin{bmatrix} 2-\lambda & 0 & 0 \\ 4 & 2-\lambda & 0 \\ -1 & 6 & 9-\lambda \end{bmatrix} = (2-\lambda)^2\:(9-\lambda) = 0 Note that λ=2\lambda = 2 has an algebraic multiplicity of 2. To find the actual number of independent eigenvectors (geometric multiplicity), you would still need to row reduce (B−2I)𝒙=𝟎(B - 2I)\mathbf{x} = \mathbf{0}.

Example For pure diagonal matrix, C=[𝟒00−𝟏]C = \begin{bmatrix} \mathbf{4} & 0 \\ 0 & \mathbf{-1} \end{bmatrix} The eigenvalues are λ1=4\lambda_1 = 4 and λ2=−1\lambda_2 = -1.
In addition for pure diagonal matrices, the standard basis vectors are automatically their eigenvectors.
For λ=4\lambda = 4, the eigenvector is 𝒗𝟏=[10]\mathbf{v_1} = \begin{bmatrix} 1 \\ 0 \end{bmatrix} and For λ=−1\lambda = -1, the eigenvector is 𝒗𝟐=[01]\mathbf{v_2} = \begin{bmatrix} 0 \\ 1 \end{bmatrix}.

11.5 Diagonalisation

Two n×nn \times n matrices AA and BB are similar if there exists some invertible matrix PP such that B=P−1APB = P^{-1}AP.
Similar matrices represent the same linear transformation, just viewed from different coordinate systems (bases).
Importantly, similar matrices share the same

  1. Determinant

  2. Invertibility

  3. Rank (dimension of column space)

  4. Nullity (dimension of null space)

  5. Trace

  6. Characteristic polynomial

  7. Eigenvalues

  8. Eigenspace dimension. The eigenspace of AA corresponding to λ\lambda and the eigenspace of P−1APP^{-1}AP corresponding to λ\lambda have the same dimension.

In the context of eigenvectors, we want to find a PP that transforms AA into a diagonal matrix DD (all non-zero elements are on the main diagonal).
Why diagonalise?

  1. Eigenvalues of DD = the diagonal elements = Eigenvalues of AA (by similarity).

  2. det⁡(D)\det(D) = product of diagonal entries.

  3. Rank of DD = number of non-zero entries on the main diagonal.

  4. Easy multiplication:

    1. DADA: rows of AA are multiplied by diagonal elements of DD.

    2. ADAD: columns of AA are multiplied by diagonal elements of DD.

  5. DkD^k just raises each diagonal entry to kk-th power.

  6. Inverse of DD is reciprocal of diagonal elements, i.e. for A=[a00b]A = \begin{bmatrix}a & 0 \\ 0 & b\end{bmatrix}, A−1=[1a001b]A^{-1} = \begin{bmatrix}\frac{1}{a} & 0 \\ 0 & \frac{1}{b}\end{bmatrix}.

11.5.1 Diagonalisation Theorem

11.5.1.1 Theorem

An n×nn \times n matrix AA is diagonalizable if and only if it has nn linearly independent eigenvectors 𝒗\mathbf{v}. If it does, you have enough eigenvectors to form a complete basis for ℝn\mathbb{R}^n. AA can then be rewriten as A=PDP−1A = PDP^{-1}.

  1. PP is constructed using the nn linearly independent eigenvectors 𝒗\mathbf{v} as the columns of the matrix.

  2. DD is the diagonal matrix built by placing the corresponding eigenvalues on the main diagonal.

  3. The order matters. If λ1\lambda_1 is in the first column of DD, its corresponding eigenvector 𝒗1\mathbf{v}_1 must be the first column of PP.

11.5.2 nn Distinct Eigenvalues - sufficient condition for diagonalisablility

11.5.2.1 Theorem

An n×nn \times n matrix AA with nn distinct eigenvalues is guaranteed to be diagonalizable.
This is because:
Theorem If 𝒗1,…,𝒗r\mathbf{v}_1,\ldots,\mathbf{v}_r are eigenvectors that correspond to distinct eigenvalues λ1,…,λr\lambda_1,\ldots,\lambda_r of an n×nn\times n matrix AA, then the set {𝒗1,…,𝒗r}\{\mathbf{v}_1,\ldots,\mathbf{v}_r\} is linearly independent.
Therefore, nn unique eigenvalues gives nn linearly independent eigenvectors 𝒗\mathbf{v}, fulfilling the condition for the diagonalisation theorem.

11.5.3 Repeated eigenvalues - algebraic vs geometric multiplicity

A matrix with repeated eigenvalues can still be diagonalisable.
First define terms:

For any eigenvalue, 1≤Geometric multiplicity≤Algebraic multiplicity1 \leq \text{Geometric multiplicity} \leq \text{Algebraic multiplicity} For a matrix to be diagonalisable, its geometric multiplicity must exactly equal its algebraic multiplicity for every single eigenvalue.

11.5.3.1 Example - diagonalisable w/ repeated roots

Given the matrix A=[133−3−5−3331]A = \begin{bmatrix} 1 & 3 & 3 \\ -3 & -5 & -3 \\ 3 & 3 & 1 \end{bmatrix} Skipping the mechanics of finding the determinant, 0=det⁡(A−λI)=−λ3−3λ2+4=−(λ−1)(λ+2)20 = \det(A - \lambda I) = -\lambda^3 - 3\lambda^2 + 4 = -(\lambda - 1)(\lambda + 2)^2 The eigenvalue -2 has multiplicity of 2.
For λ=1\lambda = 1: Solving (A−1I)𝒙=𝟎(A - 1I)\mathbf{x} = \mathbf{0} yields one basis vector: 𝒗𝟏=[1−11]\mathbf{v_1} = \begin{bmatrix} 1 \\ -1 \\ 1 \end{bmatrix}.
For λ=−2\lambda = -2: Solving (A−(−2)I)𝒙=𝟎(A - (-2)I)\mathbf{x} = \mathbf{0} yields two free variables, which allows us to extract two linearly independent basis vectors: 𝒗𝟐=[−110]and𝒗𝟑=[−101]\mathbf{v_2} = \begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix} \quad \text{and} \quad \mathbf{v_3} = \begin{bmatrix} -1 \\ 0 \\ 1 \end{bmatrix}.
So we get 3 indepedent eigenvectors, forming a basis for 𝑹3\mathbf{R}^3. AA is diagonalisable.
To diagonalise AA, P=[𝒗𝟏𝒗𝟐𝒗𝟑]=[1−1−1−110101]P = \begin{bmatrix} \mathbf{v_1} & \mathbf{v_2} & \mathbf{v_3} \end{bmatrix} = \begin{bmatrix} 1 & -1 & -1 \\ -1 & 1 & 0 \\ 1 & 0 & 1 \end{bmatrix} D=[1000−2000−2]D = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & -2 \end{bmatrix}

11.5.3.2 Example - Defective matrix

Given the matrix A=[243−4−6−3331]A = \begin{bmatrix} 2 & 4 & 3 \\ -4 & -6 & -3 \\ 3 & 3 & 1 \end{bmatrix} Again skipping the mechanics, the characteristic equation is: 0=det⁡(A−λI)=−(λ−1)(λ+2)20 = \det(A - \lambda I) = -(\lambda - 1)(\lambda + 2)^2 For λ=1\lambda = 1: The basis yields one vector: 𝒗𝟏=[1−11]\mathbf{v_1} = \begin{bmatrix} 1 \\ -1 \\ 1 \end{bmatrix}.
For λ=−2\lambda = -2: When we solve (A−(−2)I)𝒙=𝟎(A - (-2)I)\mathbf{x} = \mathbf{0} for this new matrix, row reduction only yields one free variable. This means the eigenspace is only one-dimensional, giving us a single basis vector: 𝒗𝟐=[−110]\mathbf{v_2} = \begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix}.
Geometric multiplicity of λ=−2\lambda = -2 is 1 ≤\leq its the algebraic multiplicity of 2.
Hence AA is not diagonalisable (also called a defective matrix).

11.6 Powers of AA - advantage of diagonal matrices

For a diagonal matrix DD and any power kk, Dk=[5k003k]D^k = \begin{bmatrix} 5^k & 0 \\ 0 & 3^k \end{bmatrix} We can derive that for a diagonalisable matrix AA and any power k≥1k \geq 1, Ak=PDkP−1A^k = PD^kP^{-1}

11.6.0.1 Example

Compute A8A^8 for the matrix A=[4−32−1]A = \begin{bmatrix} 4 & -3 \\ 2 & -1 \end{bmatrix}.
Find eigenvalues: det⁡(A−λI)=λ2−3λ+2=(λ−2)(λ−1)=0\det(A - \lambda I) = \lambda^2 - 3\lambda + 2 = (\lambda - 2)(\lambda - 1) = 0 The eigenvalues are λ=2\lambda = 2 and λ=1\lambda = 1.
Then finding the null space for each λ\lambda, we get the basis vectors v1=[32]_1 = \begin{bmatrix} 3 \\ 2 \end{bmatrix} and v2=[11]_2 = \begin{bmatrix} 1 \\ 1 \end{bmatrix}.
Constructing PP and DD: P=[3121],D=[2001]P = \begin{bmatrix} 3 & 1 \\ 2 & 1 \end{bmatrix}, \quad D = \begin{bmatrix} 2 & 0 \\ 0 & 1 \end{bmatrix} Also, P−1=[1−1−23]P^{-1} = \begin{bmatrix} 1 & -1 \\ -2 & 3 \end{bmatrix} So A8=PD8P−1A^8 = PD^8P^{-1}. By simple matrix multiplication we get [766−765510−509]\begin{bmatrix} 766 & -765 \\ 510 & -509 \end{bmatrix}.

11.7 Linear transformation, Eigenbasis

Applying a linear transformation to a vector 𝒙\mathbf{x} can be represented as 𝒚=A𝒙\mathbf{y} = A\mathbf{x} The problem is that in the standard basis, the matrix AA is a "coupled" system. When you multiply A𝒙A\mathbf{x}, the rows of AA mix the individual x1x_1, x2x_2, and xnx_n components together. If you need to apply this transformation multiple times (like A100A^{100}), this coupled mixing requires an enormous amount of computational operations.
Instead, we can change the basis to the Eigenbasis, i.e. a basis for a vector space consisting entirely of eigenvectors of a linear transformation or matrix.
We use the fact that A=PDP−1A = PDP^{-1} to rewrite the linear transformation: A𝒙=PDP−1𝒙A\mathbf{x} = PDP^{-1}\mathbf{x}

  1. P−1𝒙P^{-1}\mathbf{x} (Change of basis). P−1P^{-1} is the inverse of the matrix containing the eigenvectors.
    This calculates [𝒙]ℬ[\mathbf{x}]_\mathcal{B}, which are the coordinates of the vector relative to the Eigenbasis. (Recall the change of basis formula 𝒙=Pℬ[𝒙]ℬ\mathbf{x} = P_\mathcal{B}[\mathbf{x}]_\mathcal{B}).

  2. D(P−1𝒙)D(P^{-1}\mathbf{x}) (Transformation). Mulitplying the new coordinates by DD, the diagonal matrix of eigenvalues.
    Because the vector is now defined in terms of eigenvectors, this transformation is strictly a scaling operation. By definition, a transformation only scales eigenvectors by their eigenvalues (A𝒗=λ𝒗A\mathbf{v} = \lambda\mathbf{v}). The matrix DD executes this decoupled scaling by multipliying the first coordinate by λ1\lambda_1, the second by λ2\lambda_2 etc.

  3. P(DP−1𝒙)P(DP^{-1}\mathbf{x}) (Change back the basis). After the transformation, convert back to standard basis using PP.

Overall, performing linear algebra operations on a diagonal matrix is supposedly more efficient than operating on a dense, coupled matrix.