Form A − λI, expand the characteristic polynomial, find its roots, and read an eigenvector from each null space.
Preset?An eigenvector of A is a non-zero vector that A merely scales: A v = λ v. The scale factor λ is the eigenvalue. Rewriting as (A − λI) v = 0, a non-zero v exists exactly when det(A − λI) = 0, so the eigenvalues are the roots of the characteristic polynomial det(A − λI), and each eigenvector is a null-space vector of A − λI for its λ. The roots may be complex; symmetric matrices always have real ones.
Size (square)
A3× 3
Entries of A
A3×3
2
0
0
0
3
4
0
4
9
Step 1 / 8
Step explanations
1Eigenvalues and eigenvectors of a 3×3 matrix
An eigenvector is a direction A does not turn: A v = λ v, with the eigenvalue λ as the scale factor. Rewritten as (A − λI) v = 0, a non-zero v exists only when A − λI is singular, so the plan is: subtract λ from the diagonal, expand the determinant into a polynomial in λ, find its roots, and for each root read an eigenvector from the null space of A − λI.
Eigenvector — a non-zero vector v with Av=λv: a direction that A scales but does not turn.
Eigenvalue — the scale factor λ in Av=λv.
Characteristic polynomial — p(λ)=det(A−λI), whose roots are the eigenvalues; shown monic in the tool.
Characteristic equation — det(A−λI)=0.
Eigenspace — the null space of A−λI, all eigenvectors for λ together with 0.
Algebraic multiplicity — how many times λ is a root of p.
Geometric multiplicity — the dimension of the eigenspace, the number of free columns of A−λI; never exceeds the algebraic multiplicity.
Defective — a matrix with some eigenvalue whose geometric multiplicity is smaller than its algebraic one; such a matrix cannot be diagonalized.
Trace and determinant — the eigenvalues sum to trA and multiply to detA, counting multiplicity.
Getting Started with the Visualizer
Choose a matrix, then watch its eigenvalues and eigenvectors emerge the way they are found by hand.
• Use the Preset pills for six matrices: three distinct eigenvalues, a symmetric 2×2, a repeated eigenvalue with a plane of eigenvectors, a defective matrix, a triangular one, and a rotation with complex eigenvalues • Use the Size stepper for 2×2 or 3×3 • Edit any entry directly, or press Shuffle for a random matrix built to have small integer eigenvalues • Hover the ? icon for a reminder of the definition and why the eigenvalues are roots of a polynomial • Press play or step manually; the step log on the right keeps every stage
The run is always the same four moves: form A−λI, expand its determinant, find the roots, and row reduce once per real eigenvalue. If the roots are complex the run stops after finding them, with an explanation, since there are then no real eigenvectors to show.
The Four Moves
The visualizer follows the textbook procedure exactly.
• Shift — A−λI is written with λ subtracted from each diagonal entry; the eigenvalues are the λ that make it singular • Expand — det(A−λI) is expanded into the characteristic polynomial and its coefficients are laid out in a row; for a 2×2 they are 1, −trA, detA; for a 3×3, the tool multiplies by −1 so the polynomial is monic • Roots — the eigenvalues, found by the quadratic formula or, for a cubic, by spotting a rational root or numerically; the caption shows the factored form and checks the trace and determinant • Eigenvectors — for each real eigenvalue, A−λI is row reduced, the free columns are counted, and one eigenvector per free column is read off with the free variable set to 1, then scaled to small integers • Done — the eigenvalues and eigenvectors side by side, each checked by multiplying, and a verdict on whether A is diagonalizable
When an eigenvalue is repeated, the eigenvector scene reports both multiplicities. A full set of eigenvectors means A can be diagonalized; a shortfall means it cannot.
Forming A Minus Lambda I
The first move subtracts the unknown λ from each diagonal entry, leaving the rest of A as it is. The frozen picture below shows the default preset's A−λI between determinant bars, its diagonal reading 2−λ, 3−λ, 9−λ.
This matrix is singular for exactly the right values of λ, and nothing else about it matters yet.
A − λI, frozen
The default preset with λ subtracted from each diagonal entry and nothing else touched. The eigenvalues are the values of λ that make this matrix singular.
The shift is where the definition becomes computation. Av=λv has an unknown on both sides; moving everything to the left gives (A−λI)v=0, a homogeneous system with a parameter in it. A homogeneous system has a non-zero solution exactly when its matrix is singular, so the eigenvalues are the values of λ at which A−λI loses rank.
Only the diagonal carries λ because λI is diagonal. This is the entry-level mistake most worth avoiding: the off-diagonal entries of A−λI are those of A, unchanged.
The Characteristic Polynomial
Expanding det(A−λI) produces a polynomial in λ of degree n. The frozen picture below shows the default preset's coefficients laid out beside the shifted matrix: 1, −14, 35, −22, for λ3−14λ2+35λ−22.
The second coefficient is minus the trace and the last is minus the determinant, which are the two checks the tool applies throughout.
Characteristic polynomial, frozen
Coefficients 1, −14, 35, −22: λ³ − 14λ² + 35λ − 22. Minus the trace in second place, minus the determinant in last - the two standing checks.
For a 3×3 matrix the raw expansion has leading term −λ3; the tool multiplies through by −1 so the polynomial is monic and its roots are easier to read. The middle coefficient is the sum of the three principal 2×2 minors, a quantity with no common name but a definite meaning: the second elementary symmetric function of the eigenvalues.
The polynomial is the whole eigenvalue problem in one object. Two matrices with the same characteristic polynomial share their eigenvalues, trace and determinant; similar matrices always do, which is what makes eigenvalues a property of the transformation rather than of the particular matrix representing it.
Finding the Roots
The eigenvalues are the roots of the characteristic polynomial. The frozen picture below shows the default preset's three roots, 11, 2 and 1, beside the coefficient row.
For a 2×2 the quadratic formula does it; for a 3×3 the tool uses the cubic formula, then polishes the roots and snaps them to simple values when they are within rounding error of one.
Eigenvalues, frozen
The roots 11, 2, 1 beside the coefficient row. They sum to 14, the trace, and multiply to 22, the determinant.
By hand the cubic is usually cracked by spotting a rational root among the divisors of the constant term, dividing it out, and solving the remaining quadratic; the factored form in the caption is what that produces. Triangular and block-triangular matrices short-circuit the whole step, since their eigenvalues sit on the diagonal.
The two checks are worth applying every time: the roots must sum to the trace and multiply to the determinant. A slip in the expansion almost always fails one of them.
Reading an Eigenvector
For each real eigenvalue, the tool substitutes it into A−λI, row reduces, and reads a null-space vector by setting the free variable to 1. The frozen picture below is the default preset's λ=11: the shifted matrix, its reduced form with two pivots and one free column, and the eigenvector (0,1,2).
The reduced form must have at least one free column; that is what being singular means, and it is the source of the eigenvector.
Eigenvector for λ = 11, frozen
A − 11I row reduced to two pivots and one free column, and the eigenvector (0, 1, 2) read off with the free variable set to 1 and scaled to integers. A v = 11 v.
An eigenvector is never unique. Any non-zero multiple of (0,1,2) is also an eigenvector for 11, and the whole line through it is the eigenspace. The tool scales to small integers for readability; a unit vector, or the one with free variable 1, would be equally valid.
When the reduced form has more than one free column, the eigenspace is a plane or larger, with one eigenvector per free column. That happens only for repeated eigenvalues, and whether it happens is the question of diagonalizability.
A Repeated Eigenvalue with a Plane of Eigenvectors
On the repeated preset, λ=1 is a double root, and A−I is the all-ones matrix, which reduces to a single non-zero row. Two free columns, so two independent eigenvectors: the eigenspace is a plane.
The frozen picture below shows that scene: one pivot, two free columns, and both eigenvectors read off.
Repeated eigenvalue, frozen
The repeated preset at λ = 1: A − I reduces to a single row, two free columns, two eigenvectors. Geometric multiplicity 2 matches algebraic multiplicity 2 - a full set.
Here the geometric multiplicity, 2, equals the algebraic multiplicity, and the matrix has a full set of three eigenvectors: it is diagonalizable, with the eigenvalue 1 appearing twice on the diagonal. Symmetric matrices, like this one, always achieve this.
The defective preset shows the other possibility. Its λ=1 is also a double root, but A−I has only one free column, one eigenvector, geometric multiplicity 1 against algebraic multiplicity 2. No basis of eigenvectors exists, and the matrix cannot be diagonalized; the closest it comes is the Jordan form.
Complex Eigenvalues
On the rotation preset the characteristic polynomial is λ2+1, with roots ±i. The frozen picture below shows the run stopping there: the eigenvalues are complex, and no real vector keeps its direction under a quarter turn.
The tool stops because there are no real eigenvectors to reduce for; the matrix is not defective, just not real-diagonalizable.
Complex eigenvalues, frozen
The quarter-turn rotation: λ² + 1 = 0, eigenvalues ±i, and the run stops. No real direction survives a rotation; the eigenvectors live in ℂ².
Complex eigenvalues of a real matrix always come in conjugate pairs, and for a 2×2 they mean the map is a rotation combined with a scaling by ∣λ∣. Over the complex numbers the eigenvectors exist, and in the real plane the pair corresponds to a rotation-scaling block rather than to two stretch directions.
This is also the reason symmetric matrices are special. Their eigenvalues are always real, so this case never arises for them, and the spectral theorem guarantees a full orthogonal set of real eigenvectors.
Reading the Scene Player
Each scene shows the matrices for one move with the arithmetic in the caption.
• In the shift and expand scenes, the diagonal of A−λI is highlighted and the diagonal entries read ai,i−λ; the coefficient row is accent • In the roots scene, the eigenvalue row is accent when the roots are real and secondary when they are complex • In an eigenvector scene, the diagonal of A−λI is highlighted, the pivots of its reduced form are accent and the free columns secondary, and the eigenvector column is accent, with an arrow from the free column that generated it • In the done scene, each eigenvector column is accent with its eigenvalue above it • Eigenvectors are scaled to small integers whenever a multiple by 1 to 12 makes every entry integral; otherwise they are shown to three decimals with the first non-zero entry positive
Choosing a Matrix
The six presets each make a different point.
• Three distinct — eigenvalues 1, 2 and 11, each with a one-dimensional eigenspace; the general case, and the default • Symmetric 2×2 — eigenvalues 1 and 3 with perpendicular eigenvectors (1,−1) and (1,1); symmetric matrices always have real eigenvalues and orthogonal eigenvectors • Repeated eigenvalue — λ=1 twice and λ=4; the reduced form of A−I has two free columns, so the eigenspace is a plane and the matrix is still diagonalizable • Defective — the shear with λ=1 twice but a single eigenvector; algebraic multiplicity 2, geometric multiplicity 1, not diagonalizable • Triangular — the eigenvalues are the diagonal entries, because det(A−λI) of a triangular matrix is the product of the diagonal • Rotation — the quarter turn, with characteristic polynomial λ2+1 and eigenvalues ±i; no real vector keeps its direction
Shuffle builds its matrices as PDP−1 with an integer unimodular P, so the eigenvalues are small integers and the entries stay integers too.
What Eigenvalues and Eigenvectors Are
A non-zero vector v is an eigenvector of A with eigenvalue λ when
Av=λv
Applying A to v does nothing but stretch it, by the factor λ; a negative λ reverses it and λ=0 collapses it. Rewriting as (A−λI)v=0 turns the definition into a solvable problem: a non-zero solution exists exactly when A−λI is singular, that is when
p(λ)=det(A−λI)=0
This is the characteristic equation, and p is a polynomial of degree n whose roots are the eigenvalues. For a 2×2 matrix it is λ2−(trA)λ+detA; in general the coefficient of λn−1 is ±trA and the constant is ±detA, which gives the two standard checks: the eigenvalues sum to the trace and multiply to the determinant.
Each eigenvalue then has an eigenspace, the null space of A−λI, found by row reduction. Its dimension, the geometric multiplicity, is at least 1 and at most the algebraic multiplicity. When every eigenvalue has a full set, the eigenvectors form a basis and A is diagonalizable: A=PDP−1 with the eigenvectors as the columns of P.
Real matrices can have complex eigenvalues, in conjugate pairs; a 2×2 rotation is the standard example. Symmetric matrices never do: their eigenvalues are real and their eigenvectors can be chosen orthogonal. For the full theory, see the characteristic equation theory page and the eigenvalue properties page.
Key Properties
Facts that hold for every square matrix.
• Trace and determinant: ∑λi=trA and ∏λi=detA, with multiplicity • Singular matrices: λ=0 is an eigenvalue exactly when detA=0 • Triangular matrices: the eigenvalues are the diagonal entries • Powers and inverses: Ak has eigenvalues λk with the same eigenvectors; A−1 has 1/λ • Transpose: AT has the same eigenvalues as A, though not the same eigenvectors • Multiplicities: 1≤ geometric ≤ algebraic for every eigenvalue • Distinct eigenvalues: their eigenvectors are automatically linearly independent • Symmetric matrices: real eigenvalues, orthogonal eigenvectors, always diagonalizable • Complex eigenvalues of a real matrix come in conjugate pairs • Similar matrices: P−1AP has the same characteristic polynomial as A
Why It Matters
Eigenvectors are the directions in which a linear map is simplest, and most of applied linear algebra is about finding them.
• Diagonalization: in the eigenvector basis A is diagonal, and powers, exponentials and functions of A become trivial • Dynamical systems: xt+1=Axt grows, decays or oscillates along each eigenvector according to its eigenvalue; the dominant eigenvalue decides the long-run behaviour • Differential equations: x˙=Ax has solutions eλtv, one per eigenpair • Vibrations and stability: natural frequencies are eigenvalues; a system is stable when every eigenvalue has negative real part • Principal components: the eigenvectors of a covariance matrix are the directions of greatest variance • Graphs and networks: PageRank is the dominant eigenvector of a link matrix, and spectral clustering uses eigenvectors of the graph Laplacian • Quantum mechanics: observables are operators whose eigenvalues are the possible measurements
Worked Example
Take the default preset,
A=200034049
Characteristic polynomial. Expanding det(A−λI) along the first row, (2−λ)[(3−λ)(9−λ)−16]=(2−λ)(λ2−12λ+11). Made monic: p(λ)=λ3−14λ2+35λ−22. Check: the trace is 14 and the determinant is 2⋅11=22.
Roots.λ2−12λ+11=(λ−1)(λ−11), so p(λ)=(λ−1)(λ−2)(λ−11) and the eigenvalues are 1, 2 and 11. They sum to 14 and multiply to 22.
Eigenvector for λ=11.A−11I has rows (−9,0,0), (0,−8,4), (0,4,−2). Row reducing: x1=0 and x2=21x3, with x3 free. Set x3=2: v=(0,1,2). Check: Av=(0,3+8,4+18)=(0,11,22)=11v.
Eigenvector for λ=2.A−2I has rows (0,0,0), (0,1,4), (0,4,7); the last two rows force x2=x3=0 and x1 is free: v=(1,0,0).
Eigenvector for λ=1.A−I has rows (1,0,0), (0,2,4), (0,4,8): x1=0, x2=−2x3. Set x3=−1: v=(0,2,−1). Check: Av=(0,6−4,8−9)=(0,2,−1).
Three eigenvalues, three independent eigenvectors: A is diagonalizable. Note that the two eigenvectors of the symmetric 2×2 block, (1,2) and (2,−1), are perpendicular.
Common Mistakes
A few mistakes recur.
• Subtracting λ from every entry — only the diagonal changes in A−λI; the off-diagonal entries are untouched • Solving Av=λv with v=0 — the zero vector satisfies it for every λ and is excluded by definition; eigenvectors are non-zero • Expecting A−λI to reduce to the identity — it must be singular, so its reduced form has at least one zero row; a full pivot set means the λ is wrong • Reading a repeated root as a repeated eigenvector — the multiplicity of the root says nothing by itself; the free columns of A−λI decide how many eigenvectors there are • Assuming real eigenvalues — a real matrix can have complex eigenvalues; only symmetric matrices are guaranteed real ones • Treating the eigenvector as unique — any non-zero multiple is also an eigenvector; the tool scales to small integers for readability, not because that scale is special • Forgetting the checks — the eigenvalues must sum to the trace and multiply to the determinant, and Av must come out as λv
Related Concepts
Determinant — the characteristic polynomial is one, expanded symbolically in λ.