Advanced Linear Algebra
Eigenvalues and Eigenvectors: Directions a Matrix Preserves
Linear algebra can be understood from several connected viewpoints. Numerical methods focus on computation, algebra focuses on solving equations, and geometry reveals how transformations move vectors and reshape space. Eigenvalues and eigenvectors bring these viewpoints together: they describe directions that a transformation treats in a particularly simple way.
That simplicity is useful in many areas. Eigenvalue methods appear in physical sciences, in the study of vibration modes, in computer science and algorithms, and in mathematical methods used in fields such as quantum mechanics. The central question is geometric, but the answer can be found using algebra.
From a matrix to a transformation
An m×n matrix A takes an input vector from Rn and produces an output vector in Rm:
A:Rn⟶Rm.When the matrix is square, with size n×n, the input and output have the same number of components. The transformation takes vectors in Rn to other vectors in Rn. It can therefore be viewed as a transformation from a space back into itself.
A matrix may rotate, reflect, project, permute, or shear vectors. Most vectors change both length and direction under such a transformation. An eigenvector is a special nonzero vector whose direction is preserved: after the transformation, it lies along the same line as before. Its length may change, and its direction may reverse.
The formal definition is
As=λs,where A is a square matrix, s is a nonzero vector, and λ is a scalar. The vector s is an eigenvector of A, and λ is its eigenvalue. A positive eigenvalue preserves the vector’s orientation along its line; a negative eigenvalue reverses it; and an eigenvalue of zero sends it to the zero vector.
An eigenvector identifies a direction that a matrix does not turn away from. The eigenvalue tells how the matrix scales that direction.
Although A may have only real entries, its eigenvalues and eigenvectors need not be real. Some transformations have eigenvectors only when vectors with complex components are allowed.
Eigenvectors represent directions
If s is an eigenvector with eigenvalue λ, then any nonzero multiple of s is also an eigenvector with the same eigenvalue. For a scalar r,
A(rs)=r(As)=r(λs)=λ(rs).Thus, an eigenvector is not a single uniquely determined vector; it represents an eigendirection. Applications often choose a normalized eigenvector, one whose length is 1, to give that direction a standard representative.
An n×n matrix has at most n eigenvalues when counted with multiplicity, and at most n linearly independent eigenvectors. There may be infinitely many vectors in an eigendirection or eigenspace, but only a limited number can be linearly independent.
The zero vector is excluded from the definition of eigenvector. If it were allowed, it would satisfy A0=λ0 for every matrix and every scalar, making the definition uninformative. The eigenvalue itself, however, may be zero.
Think About It
If a matrix changes a vector’s length but leaves it on the same line, which part of the eigenvalue equation describes the direction, and which part describes the change in scale?
Familiar transformations and their eigenvectors
The idea becomes clearer by examining transformations that act in different ways.
Permuting coordinates
A permutation matrix rearranges vector components. In two dimensions, the matrix that swaps the coordinates is
A=[0110].For a vector with components x and y,
A[xy]=[yx].If the components are equal, swapping them makes no change:
A[11]=[11].So [11] is an eigenvector with eigenvalue 1. More generally, any nonzero vector along the line y=x is unchanged.
There is another preserved direction. If the components are opposites, swapping them reverses the vector:
A[1−1]=[−11]=−1[1−1].This vector is an eigenvector with eigenvalue −1. The transformation reverses its orientation but keeps it on the same line.
Projecting onto a plane
Consider projection in three dimensions onto the xy-plane. This projection leaves the first two coordinates unchanged and sets the third coordinate to zero:
P=100010000,Pxyz=xy0.Any vector already in the xy-plane has z=0, so the projection leaves it unchanged. Every nonzero vector in that plane is therefore an eigenvector with eigenvalue 1.
Vectors along the z-axis behave differently. Projection sends them to the zero vector:
P00z=000.For any nonzero z, this is the eigenvector equation with eigenvalue 0. This illustrates why an eigenvalue can be zero even though an eigenvector cannot.
There are infinitely many eigenvectors in the xy-plane, but only two can be linearly independent. For example, the vectors along the x- and y-axes form a basis for that plane. The plane is the eigenspace associated with eigenvalue 1‘;itsdimensionis2.
Shearing a plane
A shear changes one coordinate in proportion to another. Consider the matrix
S=[100.51].Its action on a general vector is
S[xy]=[x+0.5yy].The y-coordinate stays the same, while the x-coordinate gains an amount proportional to y. A vector along the x-axis has y=0, so it is unchanged:
S[10]=[10].Thus, the x-axis gives an eigendirection with eigenvalue 1. In this example, it is the only eigendirection: there is only one linearly independent eigenvector.
The matrix’s columns show how it transforms the coordinate basis vectors. The first basis vector is unchanged, while the second becomes
[0.51].Geometrically, a square built from the coordinate directions is slanted into a parallelogram. That slanting effect is the shear.
Rotating a plane
A rotation through angle θ in two dimensions is represented by
Qθ=[cosθsinθ−sinθcosθ].The columns describe where the two coordinate basis vectors are sent. For a rotation by 90∘, or 2π radians,
Qπ/2=[01−10].Every nonzero real vector is turned to a different direction by this rotation, so there is no real eigenvector. Complex vectors are needed to find eigenvectors for this matrix, as discussed later.
Think About It
A projection has eigenvalue 0 for vectors in a direction it removes. How does that differ from the eigenvalue 1 for vectors it leaves unchanged?
Eigenvectors beyond ordinary vectors
The eigenvalue idea also applies to operations that act on functions. A function can be treated as a vector with one value for every input position. For example, recording the values of a function across an interval creates a vector of sampled values; if every point in the interval is included, the vector has infinitely many components.
Differentiation provides a useful example. For the exponential function eax,
dxdeax=aeax.Differentiation returns the same function multiplied by the scalar a. In this sense, eax is an eigenfunction of differentiation, and a is its eigenvalue.
A second derivative gives another example:
dx2d2sin(x)=−sin(x).The function sin(x) is an eigenfunction of the second-derivative operation, with eigenvalue −1. The output has the same shape as the input but is scaled by −1.
This viewpoint connects the finite-dimensional idea of eigenvectors to transformations of functions. It underlies mathematical tools such as Fourier transforms and is also relevant to the mathematical ideas used in quantum mechanics.
Computing eigenvalues and eigenvectors
The definition of an eigenvector gives a systematic way to calculate eigenvalues. Begin with
As=λs.Move the right-hand side to the left:
As−λs=0.Because λs=λIs, where I is the identity matrix, the equation can be factored as
(A−λI)s=0.The vector s is required to be nonzero. Therefore, the matrix A−λI must have a nontrivial nullspace: it must send at least one nonzero vector to zero. That means its columns are linearly dependent, so the matrix is singular. A square matrix is singular exactly when its determinant is zero, giving the equation
det(A−λI)=0.The expression det(A−λI) is a polynomial in λ, called the characteristic polynomial. Setting it equal to zero gives the characteristic equation. For an n×n matrix, this polynomial has degree $n`; its roots give the eigenvalues, including complex roots when necessary.
Once an eigenvalue λ is known, the corresponding eigenvectors are found by solving
(A−λI)s=0.In other words, the eigenvectors for λ are the nonzero vectors in the nullspace of A−λI. A basis for that nullspace gives a basis for the associated eigenspace.
Worked example: the coordinate swap
For the permutation matrix
A=[0110],subtracting λI gives
A−λI=[−λ11−λ].Its determinant is
det(A−λI)=λ2−1.The characteristic equation is λ2−1=0, so the eigenvalues are λ=1 and λ=−1.
For λ=1, solving (A−I)s=0 gives the eigendirection spanned by
s1=[11].For λ=−1, solving (A+I)s=0 gives the eigendirection spanned by
s2=[1−1].These eigenvectors are orthogonal because their dot product is
[11][1−1]=0.Eigenspaces and multiplicity
An eigenvalue may occur more than once as a root of the characteristic polynomial. Its algebraic multiplicity is the number of times it appears as a root. The dimension of its eigenspace—the number of linearly independent eigenvectors associated with it—is its geometric multiplicity.
Projection example
For projection onto the xy-plane,
P=100010000,the characteristic polynomial can be written as
det(P−λI)=(1−λ)2(−λ).The eigenvalues are 0, 1, and 1. Thus, eigenvalue 1 has algebraic multiplicity 2, while eigenvalue 0 has algebraic multiplicity 1.
The eigenspace for λ=1 is the xy-plane, which has dimension 2. Its geometric multiplicity is therefore 2. The eigenspace for λ=0 is the z-axis, which has dimension 1. In both cases, the geometric and algebraic multiplicities agree.
Shear example
For the shear matrix
S=[100.51],the characteristic polynomial is
det(S−λI)=(1−λ)2.The only eigenvalue is λ=1, with algebraic multiplicity 2. But its eigenspace is only the x-axis, so it has geometric multiplicity 1. This is a case where there are not enough linearly independent eigenvectors to match the repeated root.
In general, the geometric multiplicity of an eigenvalue cannot exceed its algebraic multiplicity, but it can be smaller. The shear illustrates why both multiplicities matter: knowing the eigenvalues alone does not reveal how many independent eigenvector directions are available.
Symmetric and skew-symmetric matrices
A real symmetric matrix is a real matrix equal to its transpose. Such matrices have a full set of orthogonal eigenvectors: an n×n real symmetric matrix has n linearly independent eigenvectors that can be chosen to be orthogonal. This makes them especially useful when a transformation needs to be understood through independent directions.
A key example in data analysis is the Gram matrix ATA. It is square and symmetric, since
(ATA)T=ATA.When the columns of A are linearly independent, this matrix is also full rank. Its symmetry is important in data science and machine learning because it guarantees a full set of orthogonal eigenvectors.
A skew-symmetric matrix is the opposite kind of matrix: its transpose is its negative. The 90∘ rotation matrix is skew-symmetric. For this matrix, the characteristic equation is
λ2+1=0,so its eigenvalues are i and −i, where i2=−1. Corresponding eigenvectors can be chosen as
[1−i]for λ=i,[1i]for λ=−i.These vectors belong to C2, not R2. The rotation has no real eigendirection, but it does have eigenvectors when complex components are allowed. Real skew-symmetric matrices have purely imaginary eigenvalues.
Think About It
The shear and projection examples both have repeated eigenvalues, but their eigenspaces have different dimensions. Why is the dimension of the eigenspace important in addition to the list of eigenvalues?
Visualizing the eigenvalue equation
A useful geometric test begins with a candidate vector s and compares it with its transformed vector As. If the two vectors lie along the same line, then the candidate is an eigenvector. The scale relating them is the eigenvalue.
For the coordinate-swap matrix, vectors along the line y=x are unchanged, giving eigenvalue 1. Vectors along y=−x reverse direction, giving eigenvalue −1. For projection, vectors in the target plane are unchanged, while vectors in a direction removed by the projection are sent to zero. For a shear, only the horizontal eigendirection remains fixed in the example considered. For a 90∘ rotation, no real vector lines up with its rotated image.
These examples show how the eigenvalue equation links geometry and computation. The geometry suggests what an eigenvector should do; the characteristic polynomial finds the eigenvalues algebraically; and a nullspace calculation finds the eigenspaces.
Comprehensive review
Eigenvalues and eigenvectors describe how a square matrix acts on special directions in a space. The defining equation is
As=λs,where s must be nonzero. The matrix may stretch or shrink that direction, reverse it, or send it to zero. Any nonzero multiple of an eigenvector remains an eigenvector with the same eigenvalue, so the key object is the direction or eigenspace rather than one particular vector.
The calculation proceeds in two stages. First, solve the characteristic equation
det(A−λI)=0to find the eigenvalues. Then, for each eigenvalue, solve
(A−λI)s=0to find its eigenspace. The dimension of that eigenspace is the geometric multiplicity, while the number of repetitions of the eigenvalue in the characteristic polynomial is its algebraic multiplicity.
Permutations, projections, shears, and rotations illustrate different possibilities. Symmetric matrices have a full set of orthogonal eigenvectors; a shear can have fewer independent eigenvectors than its repeated eigenvalue might suggest; and a real rotation can require complex eigenvectors. Together, these ideas make eigenvalues and eigenvectors a way to reveal the internal structure of a transformation rather than merely compute its output.

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