1. Home
  2. Explore
  3. Mathematics
  4. Advanced Linear Algebra

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Advanced Linear Algebra

Eigenvalues and Eigenvectors

Linear algebra as a connected structure

Linear algebra can be approached from several complementary perspectives:

  • Numerical methods focus on practical ways to compute solutions.

  • Algebraic methods focus on solving equations and understanding their structure.

  • Geometric methods explain how vectors and spaces are transformed.

  • Applications such as linear regression show how these ideas work with data.

These perspectives fit together: each provides a different way to understand the same underlying mathematics. Eigenvalue decomposition is an advanced topic that connects these views and is useful in mathematics, physical sciences, computer science, and algorithms.

Eigenvalue methods appear in applications such as:

  • The modes of vibration in physical systems, including musical instruments.

  • The behavior of structures under repeated or resonant forces.

  • Quantum mechanics.

  • Computer science and advanced algorithms, including methods used in machine learning.


Matrices as mappings from a space to itself

A matrix with mmm rows and nnn columns, written A∈Rm×nA \in \mathbb{R}^{m \times n}A∈Rm×n, maps an input vector in Rn\mathbb{R}^nRn to an output vector in Rm\mathbb{R}^mRm:

A:Rn⟶RmA:\mathbb{R}^n \longrightarrow \mathbb{R}^mA:Rn⟶Rm

For a vector x∈Rnx \in \mathbb{R}^nx∈Rn, the output is b=Ax∈Rmb = Ax \in \mathbb{R}^mb=Ax∈Rm. If AAA is square, so that A∈Rn×nA \in \mathbb{R}^{n \times n}A∈Rn×n, the input and output belong to spaces with the same dimension. The matrix can then be viewed as transforming a space into itself:

A:Rn⟶RnA:\mathbb{R}^n \longrightarrow \mathbb{R}^nA:Rn⟶Rn

This setting makes it possible to ask whether any vectors retain their direction under the transformation.


The eigenvalue equation

A nonzero vector sss is an eigenvector of a square matrix AAA if applying AAA to it changes only its scale, not its direction:

As=λsAs = \lambda sAs=λs

Here:

  • sss is an eigenvector.

  • λ\lambdaλ is the corresponding eigenvalue, a scalar describing the scaling.

  • sss must be nonzero. The zero vector is excluded because it would satisfy the equation for every matrix and every scalar, and therefore provides no useful information.

An eigenvalue may be positive, negative, or zero. A negative eigenvalue reverses the vector’s direction as it scales it; a zero eigenvalue sends the eigenvector to the zero vector.

An eigenvector identifies a direction that a matrix preserves, while its eigenvalue tells how the matrix scales that direction.

Eigenvectors represent directions

If sss is an eigenvector with eigenvalue λ\lambdaλ, then any nonzero scalar multiple rsrsrs is also an eigenvector with the same eigenvalue:

A(rs)=r(As)=r(λs)=λ(rs)A(rs) = r(As) = r(\lambda s) = \lambda(rs)A(rs)=r(As)=r(λs)=λ(rs)

Thus, a particular eigenvalue is associated with a direction or eigenspace, not just one vector. Applications often use a normalized eigenvector, such as one with length 111, to represent that direction.

An n×nn \times nn×n matrix has at most nnn eigenvalues when roots are counted with multiplicity, and at most nnn linearly independent eigenvectors. A matrix may have fewer than nnn distinct eigenvalues, or fewer than nnn linearly independent eigenvectors.

Real matrices can have complex eigenvalues

Even if every entry of AAA is real, its eigenvalues and eigenvectors are not necessarily real. They may be complex, so the eigenvalue equation may need to be considered over the complex numbers.


Geometric examples of eigenvectors

Permutation matrix: shuffling coordinates

A permutation matrix rearranges the coordinates of a vector. In two dimensions, the matrix

A=[0110]A = \begin{bmatrix} 0 & 1\\ 1 & 0 \end{bmatrix}A=[01​10​]

swaps the two coordinates:

A[xy]=[yx]A \begin{bmatrix} x\\ y \end{bmatrix} = \begin{bmatrix} y\\ x \end{bmatrix}A[xy​]=[yx​]

If the coordinates are equal, swapping them leaves the vector unchanged. Therefore,

s1=[11],λ1=1s_1 = \begin{bmatrix} 1\\ 1 \end{bmatrix}, \qquad \lambda_1 = 1s1​=[11​],λ1​=1

is an eigenvector–eigenvalue pair.

If the coordinates are opposites, swapping them reverses the vector’s direction:

s2=[1−1],λ2=−1s_2 = \begin{bmatrix} 1\\ -1 \end{bmatrix}, \qquad \lambda_2 = -1s2​=[1−1​],λ2​=−1

Indeed, As2=−s2A s_2 = -s_2As2​=−s2​.

Projection matrix: retaining a subspace and removing its complement

Projection onto the xyxyxy-plane in three dimensions is represented by

P=[100010000]P = \begin{bmatrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 0 \end{bmatrix}P=​100​010​000​​

It maps a vector to

P[xyz]=[xy0]P \begin{bmatrix} x\\ y\\ z \end{bmatrix} = \begin{bmatrix} x\\ y\\ 0 \end{bmatrix}P​xyz​​=​xy0​​

Vectors already in the xyxyxy-plane are unchanged, so every vector of the form

[xy0]\begin{bmatrix} x\\ y\\ 0 \end{bmatrix}​xy0​​

is an eigenvector with eigenvalue 111, provided it is nonzero. These vectors form a two-dimensional eigenspace. A convenient basis is

[100],[010]\begin{bmatrix} 1\\ 0\\ 0 \end{bmatrix}, \qquad \begin{bmatrix} 0\\ 1\\ 0 \end{bmatrix}​100​​,​010​​

Vectors along the zzz-axis are sent to zero. For example,

P[001]=[000]P \begin{bmatrix} 0\\ 0\\ 1 \end{bmatrix} = \begin{bmatrix} 0\\ 0\\ 0 \end{bmatrix}P​001​​=​000​​

so any nonzero vector along the zzz-axis is an eigenvector with eigenvalue 000.

Shear matrix: shifting one coordinate in proportion to another

A two-dimensional shear can be represented by

A=[10.501]A = \begin{bmatrix} 1 & 0.5\\ 0 & 1 \end{bmatrix}A=[10​0.51​]

It transforms a vector as follows:

A[xy]=[x+0.5yy]A \begin{bmatrix} x\\ y \end{bmatrix} = \begin{bmatrix} x + 0.5y\\ y \end{bmatrix}A[xy​]=[x+0.5yy​]

The first coordinate changes by an amount proportional to the second coordinate, while the second coordinate stays the same.

The vector along the xxx-axis is unchanged:

A[10]=[10]A \begin{bmatrix} 1\\ 0 \end{bmatrix} = \begin{bmatrix} 1\\ 0 \end{bmatrix}A[10​]=[10​]

Thus, [10]T\begin{bmatrix}1 & 0\end{bmatrix}^{\mathsf T}[1​0​]T is an eigenvector with eigenvalue 111. It is the only independent eigenvector direction for this matrix.

A matrix’s columns are the transformed coordinate basis vectors. In this example, the first basis vector stays fixed, while the second maps to [0.51]T\begin{bmatrix}0.5 & 1\end{bmatrix}^{\mathsf T}[0.5​1​]T. Consequently, a square aligned with the coordinate axes is transformed into a parallelogram.

Rotation matrix: turning vectors

A rotation by angle θ\thetaθ in two dimensions is represented by

Qθ=[cos⁡θ−sin⁡θsin⁡θcos⁡θ]Q_\theta = \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}Qθ​=[cosθsinθ​−sinθcosθ​]

Its columns show where the two coordinate basis vectors move. For a rotation by 90∘90^\circ90∘, or θ=π2\theta = \frac{\pi}{2}θ=2π​,

Qπ/2=[0−110]Q_{\pi/2} = \begin{bmatrix} 0 & -1\\ 1 & 0 \end{bmatrix}Qπ/2​=[01​−10​]

In the real plane, no nonzero vector keeps the same direction under a 90∘90^\circ90∘ rotation. This matrix therefore has no real eigenvectors. It does have complex eigenvalues and eigenvectors, as shown later.


Eigenvectors of operations on functions

The idea of an eigenvector applies to linear operations beyond ordinary finite-dimensional matrix multiplication. Functions can serve as vectors, and an operator acting on functions can have eigenfunctions.

For differentiation,

ddxeax=aeax\frac{d}{dx}e^{ax} = a e^{ax}dxd​eax=aeax

The function eaxe^{ax}eax is an eigenfunction of the differentiation operator, with eigenvalue aaa.

For second differentiation,

d2dx2sin⁡(x)=−sin⁡(x)\frac{d^2}{dx^2}\sin(x) = -\sin(x)dx2d2​sin(x)=−sin(x)

Thus, sin⁡(x)\sin(x)sin(x) is an eigenfunction of the second-derivative operator with eigenvalue −1-1−1.

A function can be understood as a vector of its values across a domain. If the domain contains infinitely many points, this representation has infinitely many entries. This viewpoint connects eigenfunction ideas with topics such as Fourier transforms and quantum mechanics.


Finding eigenvalues and eigenvectors

The eigenvalue equation can be rearranged to reveal how eigenvalues are computed:

As=λsAs = \lambda sAs=λs

Move the right-hand side to the left:

As−λs=0As - \lambda s = 0As−λs=0

Since λs=λIs\lambda s = \lambda I sλs=λIs, where III is the identity matrix, the equation becomes

(A−λI)s=0(A - \lambda I)s = 0(A−λI)s=0

This is a homogeneous linear system. For sss to be a nonzero solution, the matrix A−λIA - \lambda IA−λI must have a nontrivial null space. Equivalently, its columns must be linearly dependent, so A−λIA - \lambda IA−λI must be singular.

A square matrix is singular exactly when its determinant is zero. Therefore, the eigenvalues satisfy

det⁡(A−λI)=0\det(A - \lambda I) = 0det(A−λI)=0

Characteristic polynomial and characteristic equation

The expression det⁡(A−λI)\det(A - \lambda I)det(A−λI) is a polynomial in λ\lambdaλ called the characteristic polynomial. For an n×nn \times nn×n matrix, it has degree nnn. Setting it equal to zero gives the characteristic equation:

det⁡(A−λI)=0\det(A - \lambda I) = 0det(A−λI)=0

The roots of this polynomial are the matrix’s eigenvalues. Once an eigenvalue λ\lambdaλ is known, its eigenvectors are found by solving

(A−λI)s=0(A - \lambda I)s = 0(A−λI)s=0

That is, the eigenvectors for λ\lambdaλ are the nonzero vectors in the null space of A−λIA - \lambda IA−λI.

The computation therefore has two main steps:

  1. Find the roots of det⁡(A−λI)\det(A - \lambda I)det(A−λI) to obtain the eigenvalues.

  2. For each eigenvalue, find the null space of A−λIA - \lambda IA−λI to obtain its eigenvectors.


Worked characteristic-polynomial examples

Permutation matrix

For

A=[0110]A = \begin{bmatrix} 0 & 1\\ 1 & 0 \end{bmatrix}A=[01​10​]

the shifted matrix is

A−λI=[−λ11−λ]A - \lambda I = \begin{bmatrix} -\lambda & 1\\ 1 & -\lambda \end{bmatrix}A−λI=[−λ1​1−λ​]

Its determinant gives

det⁡(A−λI)=λ2−1\det(A - \lambda I) = \lambda^2 - 1det(A−λI)=λ2−1

The characteristic equation is λ2−1=0\lambda^2 - 1 = 0λ2−1=0, so the eigenvalues are λ=1\lambda = 1λ=1 and λ=−1\lambda = -1λ=−1.

  • For λ=1\lambda = 1λ=1, the null-space equation gives eigenvectors proportional to [11]T\begin{bmatrix}1 & 1\end{bmatrix}^{\mathsf T}[1​1​]T.

  • For λ=−1\lambda = -1λ=−1, it gives eigenvectors proportional to [1−1]T\begin{bmatrix}1 & -1\end{bmatrix}^{\mathsf T}[1​−1​]T.

The two eigenvectors are orthogonal because their dot product is

1(1)+1(−1)=01(1) + 1(-1) = 01(1)+1(−1)=0

Projection onto the xyxyxy-plane

For

P=[100010000]P = \begin{bmatrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 0 \end{bmatrix}P=​100​010​000​​

the characteristic polynomial is

det⁡(P−λI)=(1−λ)2(−λ)\det(P - \lambda I) = (1-\lambda)^2(-\lambda)det(P−λI)=(1−λ)2(−λ)

Its roots are λ=1\lambda = 1λ=1 twice and λ=0\lambda = 0λ=0 once. The eigenvalue 111 corresponds to the xyxyxy-plane; the eigenvalue 000 corresponds to the zzz-axis.

Shear matrix

For

A=[10.501]A = \begin{bmatrix} 1 & 0.5\\ 0 & 1 \end{bmatrix}A=[10​0.51​]

the characteristic polynomial is

det⁡(A−λI)=(1−λ)2\det(A - \lambda I) = (1-\lambda)^2det(A−λI)=(1−λ)2

Thus, λ=1\lambda = 1λ=1 is a repeated eigenvalue. Solving (A−I)s=0(A-I)s=0(A−I)s=0 gives only vectors proportional to [10]T\begin{bmatrix}1 & 0\end{bmatrix}^{\mathsf T}[1​0​]T. Although the eigenvalue is repeated, there is only one independent eigenvector direction.

Rotation by 90∘90^\circ90∘

For

A=[0−110]A = \begin{bmatrix} 0 & -1\\ 1 & 0 \end{bmatrix}A=[01​−10​]

the characteristic polynomial is

det⁡(A−λI)=λ2+1\det(A - \lambda I) = \lambda^2 + 1det(A−λI)=λ2+1

The roots are λ=i\lambda = iλ=i and λ=−i\lambda = -iλ=−i, where i2=−1i^2=-1i2=−1. The corresponding eigenvectors can be chosen as

λ=i:s=[1−i]λ=−i:s=[1i]\lambda = i: \quad s = \begin{bmatrix} 1\\ -i \end{bmatrix} \qquad \lambda = -i: \quad s = \begin{bmatrix} 1\\ i \end{bmatrix}λ=i:s=[1−i​]λ=−i:s=[1i​]

The rotation has no real eigenvectors, but it has eigenvectors in the complex vector space C2\mathbb{C}^2C2.


Algebraic and geometric multiplicity

A repeated root of the characteristic polynomial is an eigenvalue with algebraic multiplicity greater than one. The algebraic multiplicity is the number of times that eigenvalue appears as a root, counting repetitions.

The geometric multiplicity of an eigenvalue is the number of linearly independent eigenvectors associated with it. Equivalently, it is the dimension of the null space of A−λIA-\lambda IA−λI.

Projection matrix multiplicities

For projection onto the xyxyxy-plane, the characteristic polynomial has the roots 0,1,10,1,10,1,1.

  • Eigenvalue 111: Algebraic multiplicity 222. Its eigenspace is the xyxyxy-plane, which has dimension 222, so its geometric multiplicity is also $2.

  • Eigenvalue 000: Algebraic multiplicity 111. Its eigenspace is the zzz-axis, which has dimension 1,soitsgeometricmultiplicityisalso1, so its geometric multiplicity is also1,soitsgeometricmultiplicityisalso1.

The two independent eigenvectors for λ=1\lambda=1λ=1 can be chosen along the xxx- and yyy-axes. Together with the zzz-axis eigenvector for λ=0\lambda=0λ=0, they form a full orthogonal set.

Shear matrix multiplicities

For the shear matrix, λ=1\lambda=1λ=1 has algebraic multiplicity 222, but its eigenspace has dimension 111. Therefore, its geometric multiplicity is 111.

In general, geometric multiplicity cannot exceed algebraic multiplicity. It can be smaller, as in the shear example. When the two multiplicities differ, there are fewer independent eigenvector directions than the number of times the eigenvalue appears in the characteristic polynomial.


Symmetric matrices and orthogonal eigenvectors

A real symmetric matrix satisfies AT=AA^{\mathsf T}=AAT=A. Such a matrix has a full set of nnn mutually orthogonal eigenvectors in Rn\mathbb{R}^nRn. These can be normalized to form an orthonormal basis.

For the permutation matrix, the eigenvectors [11]T\begin{bmatrix}1 & 1\end{bmatrix}^{\mathsf T}[1​1​]T and [1−1]T\begin{bmatrix}1 & -1\end{bmatrix}^{\mathsf T}[1​−1​]T are orthogonal, illustrating this property. The projection matrix is also real and symmetric; its eigenspaces allow a full orthogonal set of eigenvectors to be selected.

A frequently encountered symmetric matrix in data analysis is the Gram matrix ATAA^{\mathsf T}AATA. It is symmetric and positive semidefinite. It is full rank when AAA has full column rank; otherwise, it may be singular. Its symmetry ensures that it has a full set of orthogonal eigenvectors, making it important in data science and machine learning.


Skew-symmetric matrices and complex eigenvalues

A real matrix is skew-symmetric if AT=−AA^{\mathsf T}=-AAT=−A. A real skew-symmetric matrix has purely imaginary eigenvalues, with zero also possible.

The 90∘90^\circ90∘ rotation matrix is skew-symmetric:

A=[0−110],AT=−AA = \begin{bmatrix} 0 & -1\\ 1 & 0 \end{bmatrix}, \qquad A^{\mathsf T}=-AA=[01​−10​],AT=−A

Its eigenvalues iii and −i-i−i are purely imaginary. This contrasts with real symmetric matrices, which have real eigenvalues and a full set of orthogonal real eigenvectors.


Geometric interpretation of eigenvalue visualization

An eigenvector can be identified visually by comparing an input vector with its transformed output. If a candidate vector sss and its image AsAsAs lie on the same line through the origin, then sss is an eigenvector. The output may point in the same direction or the opposite direction, corresponding to a positive or negative eigenvalue.

Examples include:

  • A permutation transformation has directions that stay fixed and directions that reverse.

  • A projection leaves vectors in the projected subspace unchanged and sends vectors in its null space to zero.

  • A shear preserves its eigenvector direction but generally moves other vectors off their original lines.

  • A rotation by 90∘90^\circ90∘ turns every nonzero real vector away from its original line, so it has no real eigenvector.

  • A symmetric transformation can have multiple independent eigenvector directions, each scaled by its corresponding eigenvalue.

An eigenvalue of 111 means the eigenvector is unchanged; an eigenvalue of −1-1−1 means it is reversed; and an eigenvalue of 000 means it is mapped to zero.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent