Eigenvalues and Eigenvectors
Eigenvalues and Eigenvectors: Transformations, Algorithms, and Long-Term Behavior
1. Matrices as Transformations
A matrix is more than a rectangular grid of numbers. It can represent an action or transformation applied to an input vector.
If A is a matrix and v is an input vector, the transformed output vector is
Depending on the matrix, the transformation may involve:
Rotation: turning vectors around the origin.
Scaling: stretching or shrinking vectors.
Shearing: changing the direction of vectors by sliding one coordinate direction relative to another.
A combination of rotation, scaling, and shearing.
The central eigenvalue question is:
Are there any nonzero vectors whose directions remain unchanged when a matrix transforms them?
Eigenvectors and eigenvalues answer this question.
2. Example: A Shear Transformation
Consider the matrix
and the vector
Applying the transformation gives
Matrix multiplication is performed row by row:
Thus,
The vector’s direction changes because the transformation moves it away from its original line. This is characteristic of a shear transformation.
In Python, the same calculation can be represented with NumPy:
import numpy as np
A = np.array([[1, 1],
[0, 1]])
v = np.array([2, 3])
v_prime = A @ vThe result is the vector [53]T.
3. Eigenvectors: Directions That Do Not Turn
Although most vectors change direction under a transformation, some special nonzero vectors remain on their original lines.
For the shear matrix
consider the vertical vector
Applying A gives
The original vector points vertically, while the result points diagonally. Its direction changes, so it is not an eigenvector.
Now consider the horizontal vector
Then
The vector is transformed into itself. Its direction does not change.
An eigenvector of a matrix is a nonzero vector whose direction remains unchanged when the matrix is applied to it.
The vector may become longer, shorter, or point in the opposite direction, but it remains on the same line through the origin.
For the shear matrix, every nonzero vector on the x-axis has the same property. Examples include
These vectors all lie in the same eigenspace.
An eigenspace is the set of all eigenvectors associated with a particular eigenvalue, together with the zero vector. Geometrically, it is often a line or plane of special directions.
For the shear matrix, the eigenspace associated with its eigenvalue is the x-axis.
4. Eigenvalues: Stretch Factors
An eigenvector’s direction remains unchanged, but its magnitude can change. The amount of scaling is determined by the corresponding eigenvalue.
The formal eigenvalue equation is
where:
A is the matrix.
v is a nonzero eigenvector.
λ is the eigenvalue associated with v.
The equation states that applying A to v has exactly the same effect as multiplying v by the scalar λ.
For the shear matrix,
Therefore:
The eigenvector is v=[10]T.
The corresponding eigenvalue is λ=1.
Meaning of the eigenvalue
If ∣λ∣>1, the eigenvector is stretched.
If 0<∣λ∣<1, the eigenvector is shrunk.
If λ=1, the vector is unchanged.
If λ=0, the vector is collapsed to the zero vector.
If λ<0, the vector is reversed by 180∘ and scaled by ∣λ∣.
A negative eigenvalue does not mean that the vector leaves its eigenline. It remains on the same line but points in the opposite direction.
5. Converting the Eigenvalue Equation into a Solvable Form
The equation
contains two unknowns:
The scalar eigenvalue λ.
The eigenvector v.
The equation can be rearranged to separate the process of finding eigenvalues from the process of finding eigenvectors.
Starting with
subtract λv from both sides:
Factoring out v appears to give
However, this expression is not mathematically valid because A is a matrix while λ is a scalar. A scalar cannot be directly subtracted from a matrix.
The identity matrix
The identity matrix I is the matrix equivalent of the scalar 1. It satisfies
Therefore,
Replacing λv with λIv produces a matrix-compatible expression:
Now both A and λI are matrices, so factoring out v is valid:
This is the standard form used to find eigenvalues and eigenvectors.
The central eigenvalue equation is
(A−λI)v=0.
6. Why the Determinant Finds Eigenvalues
Let
The eigenvalue equation becomes
The zero vector is always a solution, because
This is called the trivial solution, but it is not useful because eigenvectors must be nonzero.
The goal is to determine when the equation has a nonzero solution.
A homogeneous system
has a nonzero solution only when M is singular.
A singular matrix is a matrix that does not preserve the full dimensionality of space. For example, a two-dimensional transformation may collapse an entire plane onto a single line. In that situation, many nonzero vectors can be mapped to the zero vector.
The determinant provides the test for singularity:
Since M=A−λI, the condition becomes
The equation
det(A−λI)=0is called the characteristic equation. Its roots are the eigenvalues of A.
The determinant condition eliminates the eigenvector temporarily and allows the eigenvalues to be found first.
7. General Algorithm for Finding Eigenvalues and Eigenvectors
For a square matrix A, the process is as follows.
Step 1: Find the eigenvalues
Construct the matrix
Then form and solve the characteristic equation:
The roots of the resulting polynomial are the eigenvalues.
Step 2: Find the eigenvectors
For each eigenvalue λi, substitute it into
This creates a homogeneous system of linear equations. Solve that system to obtain the corresponding nonzero eigenvectors.
The complete result consists of eigenvalue–eigenvector pairs:
Each pair satisfies
The eigenvector is not unique in magnitude. If v is an eigenvector, then any nonzero scalar multiple cv is also an eigenvector associated with the same eigenvalue.
8. Worked Example
Consider the symmetric matrix
The matrix is symmetric because it equals its transpose:
8.1 Finding the eigenvalues
The identity matrix is
Therefore,
The characteristic equation is
For a 2×2 matrix
the determinant is
Thus,
Expanding gives
which simplifies to
Factoring:
Therefore, the two eigenvalues are
The transformation has two special directions, stretched by factors of 4 and 2.
8.2 Finding the eigenvector for λ1=4
Substitute λ=4 into
Let
Then
The system is
This produces the equations
and
Both equations reduce to
Choosing x=1 gives y=1, so one eigenvector is
Every nonzero multiple of this vector is also an eigenvector. Its eigenspace is the line
8.3 Finding the eigenvector for λ2=2
Substitute λ=2:
The system becomes
The equation is
or equivalently,
Choosing x=1 gives y=−1, producing the eigenvector
Its eigenspace is the line
8.4 Verification
For λ1=4 and
direct multiplication gives
Multiplying the vector by its eigenvalue gives
Therefore,
The eigenpair is correct.
9. Symmetric Matrices and Orthogonal Eigenvectors
The example matrix is symmetric:
Symmetric matrices have two important properties:
Real eigenvalues
All eigenvalues of a real symmetric matrix are real numbers. Complex or imaginary eigenvalues do not occur.
For the example, both eigenvalues are real:
Orthogonal eigenvectors
Eigenvectors associated with distinct eigenvalues of a symmetric matrix are orthogonal.
Their dot product is
A zero dot product means that the vectors meet at a right angle.
Thus,
The two eigenvector directions are:
v1=[11]T, along y=x.
v2=[1−1]T, along y=−x.
These directions form clean, perpendicular axes for the transformation. Symmetric matrices are especially useful in data science because they provide stable geometric directions without shearing or skewing between the principal axes.
10. Eigenvectors as a Natural Coordinate System
For many matrices, the eigenvectors form a basis. A basis is a set of vectors that can represent every vector in the relevant space through a linear combination.
If v1 and v2 form a basis, then any starting vector v0 can be written as
where c1 and c2 are scalar coefficients.
This representation changes the way repeated matrix multiplication is understood. Instead of repeatedly applying A to an arbitrary vector, the vector is separated into eigenvector components. Each component then evolves independently according to its eigenvalue.
If
then repeated application produces
and
Consequently,
This formula is much more informative than directly calculating the matrix power Ak.
11. Population Model and Long-Term Behavior
Eigenvalues are especially valuable for studying systems that evolve repeatedly over time.
Suppose a population is divided between:
A city.
Its suburbs.
The state at year k is represented by
A transition matrix describes how the population changes from one year to the next:
The population after one year is
After k years,
To predict the population after 50 years, the direct expression is
Computing A50 directly can be tedious and does not clearly explain the system’s behavior. Eigenvectors provide a more useful interpretation.
12. Decomposing the Population into Eigenvector Components
Suppose the population matrix has the following eigenpairs:
A stable eigenvalue λ1=1.0 with eigenvector v1.
A decaying eigenvalue λ2=0.85 with eigenvector v2.
Because the eigenvectors form a basis, the initial population can be expressed as
Applying A50 gives
By linearity,
Using the eigenvalue relationship,
and
Therefore,
Substituting the eigenvalues gives
Since
and
the expression becomes approximately
The second component is extremely small compared with the first. Therefore,
The component in the direction of v2 has almost disappeared.
13. The Dominant Eigenvalue and System Destiny
The dominant eigenvalue is the eigenvalue with the greatest absolute value.
For the population system:
Because
is very small, the second eigenvector component decays over time. The component associated with λ1=1 remains constant.
More generally:
If ∣λ∣>1, the associated component grows.
If ∣λ∣<1, the associated component decays.
If ∣λ∣=1, the associated component remains constant in magnitude, subject to possible directional effects.
If λ<0, the component alternates direction while its magnitude is controlled by ∣λ∣.
When one eigenvalue has a strictly larger absolute value than the others, its eigenvector eventually dominates the system’s behavior, provided the starting vector has a nonzero component in that direction.
The dominant eigenvector describes the long-term direction or stable trend of a repeated linear system.
In the population model, the system eventually becomes almost aligned with the eigenvector associated with λ=1. The initial population distribution influences the coefficient c1, but the transient component associated with λ=0.85 gradually vanishes.
This principle appears in many applications, including:
Population and migration models.
Economic and financial systems.
PageRank and web-page ranking.
Facial recognition.
Repeated dynamical processes.
Stability analysis in engineering and science.
14. Connection to Principal Component Analysis
Eigenvalue and eigenvector ideas also support principal component analysis, commonly called PCA.
Eigenvalue analysis identifies the special axes of a transformation. PCA applies a related idea to a data set by identifying the most important directions within a cloud of data points.
Principal components
PC1, the first principal component, is the direction of maximum variance in the data.
PC2 is the direction of the next-largest variance and is orthogonal to PC1.
Additional principal components continue in orthogonal directions with decreasing variance.
For a covariance matrix, the eigenvectors determine the principal directions, while the eigenvalues indicate the amount of variance associated with those directions.
Thus:
The eigenvector gives a significant axis of the data.
The corresponding eigenvalue measures how much variation occurs along that axis.
The largest eigenvalue identifies the direction containing the greatest variation.
PCA can reduce the dimensionality of data by retaining the principal components with the largest eigenvalues and discarding directions that contribute relatively little variation.
Eigenvectors identify the axes of important structure, while eigenvalues measure the strength or importance of those axes.
The same mathematical machinery used to study matrix transformations and long-term systems therefore also powers practical methods in data science and pattern recognition.

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