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 m rows and n columns, written A∈Rm×n, maps an input vector in Rn to an output vector in Rm:
For a vector x∈Rn, the output is b=Ax∈Rm. If A is square, so that 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:
This setting makes it possible to ask whether any vectors retain their direction under the transformation.
The eigenvalue equation
A nonzero vector s is an eigenvector of a square matrix A if applying A to it changes only its scale, not its direction:
Here:
s is an eigenvector.
λ is the corresponding eigenvalue, a scalar describing the scaling.
s 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 s is an eigenvector with eigenvalue λ, then any nonzero scalar multiple rs is also an eigenvector with the same eigenvalue:
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 1, to represent that direction.
An n×n matrix has at most n eigenvalues when roots are counted with multiplicity, and at most n linearly independent eigenvectors. A matrix may have fewer than n distinct eigenvalues, or fewer than n linearly independent eigenvectors.
Real matrices can have complex eigenvalues
Even if every entry of A 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
swaps the two coordinates:
If the coordinates are equal, swapping them leaves the vector unchanged. Therefore,
is an eigenvector–eigenvalue pair.
If the coordinates are opposites, swapping them reverses the vector’s direction:
Indeed, As2=−s2.
Projection matrix: retaining a subspace and removing its complement
Projection onto the xy-plane in three dimensions is represented by
It maps a vector to
Vectors already in the xy-plane are unchanged, so every vector of the form
is an eigenvector with eigenvalue 1, provided it is nonzero. These vectors form a two-dimensional eigenspace. A convenient basis is
Vectors along the z-axis are sent to zero. For example,
so any nonzero vector along the z-axis is an eigenvector with eigenvalue 0.
Shear matrix: shifting one coordinate in proportion to another
A two-dimensional shear can be represented by
It transforms a vector as follows:
The first coordinate changes by an amount proportional to the second coordinate, while the second coordinate stays the same.
The vector along the x-axis is unchanged:
Thus, [10]T is an eigenvector with eigenvalue 1. 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. Consequently, a square aligned with the coordinate axes is transformed into a parallelogram.
Rotation matrix: turning vectors
A rotation by angle θ in two dimensions is represented by
Its columns show where the two coordinate basis vectors move. For a rotation by 90∘, or θ=2π,
In the real plane, no nonzero vector keeps the same direction under a 90∘ 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,
The function eax is an eigenfunction of the differentiation operator, with eigenvalue a.
For second differentiation,
Thus, sin(x) is an eigenfunction of the second-derivative operator with eigenvalue −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:
Move the right-hand side to the left:
Since λs=λIs, where I is the identity matrix, the equation becomes
This is a homogeneous linear system. For s to be a nonzero solution, the matrix A−λI must have a nontrivial null space. Equivalently, its columns must be linearly dependent, so A−λI must be singular.
A square matrix is singular exactly when its determinant is zero. Therefore, the eigenvalues satisfy
Characteristic polynomial and characteristic equation
The expression det(A−λI) is a polynomial in λ called the characteristic polynomial. For an n×n matrix, it has degree n. Setting it equal to zero gives the characteristic equation:
The roots of this polynomial are the matrix’s eigenvalues. Once an eigenvalue λ is known, its eigenvectors are found by solving
That is, the eigenvectors for λ are the nonzero vectors in the null space of A−λI.
The computation therefore has two main steps:
Find the roots of det(A−λI) to obtain the eigenvalues.
For each eigenvalue, find the null space of A−λI to obtain its eigenvectors.
Worked characteristic-polynomial examples
Permutation matrix
For
the shifted matrix is
Its determinant gives
The characteristic equation is λ2−1=0, so the eigenvalues are λ=1 and λ=−1.
For λ=1, the null-space equation gives eigenvectors proportional to [11]T.
For λ=−1, it gives eigenvectors proportional to [1−1]T.
The two eigenvectors are orthogonal because their dot product is
Projection onto the xy-plane
For
the characteristic polynomial is
Its roots are λ=1 twice and λ=0 once. The eigenvalue 1 corresponds to the xy-plane; the eigenvalue 0 corresponds to the z-axis.
Shear matrix
For
the characteristic polynomial is
Thus, λ=1 is a repeated eigenvalue. Solving (A−I)s=0 gives only vectors proportional to [10]T. Although the eigenvalue is repeated, there is only one independent eigenvector direction.
Rotation by 90∘
For
the characteristic polynomial is
The roots are λ=i and λ=−i, where i2=−1. The corresponding eigenvectors can be chosen as
The rotation has no real eigenvectors, but it has eigenvectors in the complex vector space C2.
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−λI.
Projection matrix multiplicities
For projection onto the xy-plane, the characteristic polynomial has the roots 0,1,1.
Eigenvalue 1: Algebraic multiplicity 2. Its eigenspace is the xy-plane, which has dimension 2, so its geometric multiplicity is also $2.
Eigenvalue 0: Algebraic multiplicity 1. Its eigenspace is the z-axis, which has dimension 1,soitsgeometricmultiplicityisalso1.
The two independent eigenvectors for λ=1 can be chosen along the x- and y-axes. Together with the z-axis eigenvector for λ=0, they form a full orthogonal set.
Shear matrix multiplicities
For the shear matrix, λ=1 has algebraic multiplicity 2, but its eigenspace has dimension 1. Therefore, its geometric multiplicity is 1.
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=A. Such a matrix has a full set of n mutually orthogonal eigenvectors in Rn. These can be normalized to form an orthonormal basis.
For the permutation matrix, the eigenvectors [11]T and [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 ATA. It is symmetric and positive semidefinite. It is full rank when A 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=−A. A real skew-symmetric matrix has purely imaginary eigenvalues, with zero also possible.
The 90∘ rotation matrix is skew-symmetric:
Its eigenvalues i and −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 s and its image As lie on the same line through the origin, then s 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∘ 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 1 means the eigenvector is unchanged; an eigenvalue of −1 means it is reversed; and an eigenvalue of 0 means it is mapped to zero.

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