Skip to content
Mathematics

Eigenvectors and Eigenvalues

The special directions a matrix can stretch but never turn.

10 min read·July 15, 2026

λ=2.1λ=1.1
On this page

Most vectors get knocked off their line#

Pick a matrix — say

A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}

and pick a vector. Almost any vector. Multiply, and two things happen: the vector changes length, and it changes direction. It gets knocked off the line it was sitting on.

Now try v=(1,1)\mathbf{v} = (1, 1). Multiply: Av=(3,3)A\mathbf{v} = (3, 3). Same direction, three times as long. Try v=(1,1)\mathbf{v} = (1, -1): Av=(1,1)A\mathbf{v} = (1, -1) — unchanged entirely.

These two directions are special. The matrix does not turn them; it only scales them. They are the eigenvectors of AA, and the scale factors — 33 and 11 — are its eigenvalues. Every matrix has such directions (once you allow complex numbers), and finding them is the single most useful thing you can do to a matrix. It tells you what the transformation is really doing, stripped of the coordinate system you happened to write it in.

The defining equation#

A nonzero vector v\mathbf{v} is an eigenvector of a square matrix AA with eigenvalue λ\lambda when

Av=λvA\mathbf{v} = \lambda\mathbf{v}

Read this as a sentence: applying the matrix does the same thing as multiplying by a single number. The whole apparatus of the matrix — all n2n^2 entries, all the mixing of coordinates — collapses, on this one direction, into a single scalar.

A few immediate consequences worth internalizing:

  • Eigenvectors come in lines, not points. If Av=λvA\mathbf{v} = \lambda\mathbf{v} then A(5v)=λ(5v)A(5\mathbf{v}) = \lambda(5\mathbf{v}) too. The eigenvector is really the whole span — the invariant line — and we usually normalize to length 1 just to have a representative.
  • v=0\mathbf{v} = \mathbf{0} is excluded by fiat. It satisfies the equation for every λ\lambda, which would make the definition useless.
  • Eigenvalues can be negative or zero. λ=1\lambda = -1 flips the vector to point backward along the same line — still the same span, so still an eigenvector. λ=0\lambda = 0 means Av=0A\mathbf{v} = \mathbf{0}: the matrix crushes that direction to nothing, which happens exactly when AA is singular.

Watching the invariant lines light up#

The clearest way to feel this is to apply a matrix to a whole circle of vectors at once and see which ones refuse to turn.

Every violet arrow starts on the unit circle and morphs into its image AvA\mathbf{v}. Watch what happens: most arrows swing off their starting line as they grow. But a few slide straight out (or straight in) along the line they began on — those light up gold, and the dashed lines mark their spans. Those are the eigenvectors.

Things worth trying:

  • Start with the default [2 1; 1 2][2\ 1;\ 1\ 2]. Two gold directions appear at 45°45° and 135°135°, with λ=3\lambda = 3 and λ=1\lambda = 1 in the readout. Note that the λ=1\lambda = 1 direction doesn't move at all.
  • Switch to Pure rotation 90° ([0 1; 1 0][0\ {-1};\ 1\ 0]). Nothing lights up, and the readout goes pink: λ=0±1i\lambda = 0 \pm 1i. A rotation has no invariant line in the real plane, because it turns every direction. We will come back to this.
  • Switch to Shear ([1 1; 0 1][1\ 1;\ 0\ 1]). Only one gold line survives, along the horizontal axis. A shear slides everything sideways; the only direction it leaves alone is the one it slides along. This is a defective matrix — a repeated eigenvalue with only one eigenvector.
  • Set dd so that detA=0\det A = 0 (e.g. a=2,b=1,c=2,d=1a=2, b=1, c=2, d=1). One eigenvalue drops to zero and that whole gold direction collapses to the origin.

Computing them: the characteristic polynomial#

How do you find these directions without hunting? Rearrange the defining equation:

Av=λv(AλI)v=0A\mathbf{v} = \lambda\mathbf{v} \quad\Longrightarrow\quad (A - \lambda I)\mathbf{v} = \mathbf{0}

We want a nonzero v\mathbf{v} in the null space of AλIA - \lambda I. A matrix has a nonzero null vector precisely when it is singular, and a matrix is singular precisely when its determinant vanishes. So the eigenvalues are the solutions of the characteristic equation:

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

For a 2×22\times 2 matrix A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, expand it:

det(aλbcdλ)=(aλ)(dλ)bc=0\det\begin{pmatrix} a - \lambda & b \\ c & d - \lambda \end{pmatrix} = (a-\lambda)(d-\lambda) - bc = 0 λ2(a+d)λ+(adbc)=0\lambda^2 - (a + d)\lambda + (ad - bc) = 0

The coefficients are exactly the trace and the determinant:

λ2(trA)λ+detA=0λ=trA±(trA)24detA2\lambda^2 - (\operatorname{tr}A)\,\lambda + \det A = 0 \quad\Longrightarrow\quad \lambda = \frac{\operatorname{tr}A \pm \sqrt{(\operatorname{tr}A)^2 - 4\det A}}{2}

which gives the two identities you should keep in your pocket: λ1+λ2=trA\lambda_1 + \lambda_2 = \operatorname{tr}A and λ1λ2=detA\lambda_1\lambda_2 = \det A. The determinant is the product of the eigenvalues — which is why a zero eigenvalue and a singular matrix are the same statement.

Run it on our example: tr=4\operatorname{tr} = 4, det=3\det = 3, so λ24λ+3=0\lambda^2 - 4\lambda + 3 = 0, giving λ=3,1\lambda = 3, 1. To get the eigenvector for λ=3\lambda = 3, solve (A3I)v=0(A - 3I)\mathbf{v} = \mathbf{0}:

(1111)(xy)=(00)x=y\begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \quad\Longrightarrow\quad x = y

The solution set is the whole line span{(1,1)}\operatorname{span}\{(1,1)\} — as promised, a line rather than a point. That the rows came out proportional is not luck: we chose λ\lambda to make this matrix singular, so a redundant row is guaranteed. If you solve for an eigenvector and get only v=0\mathbf{v} = \mathbf{0}, you made an arithmetic error somewhere.

Real versus complex#

The discriminant (trA)24detA(\operatorname{tr}A)^2 - 4\det A decides everything:

  • Positive — two distinct real eigenvalues, two distinct invariant lines.
  • Zero — a repeated real eigenvalue. There may be two independent eigenvectors (as for 2I2I, where every direction is an eigenvector) or only one (the shear).
  • Negative — a complex conjugate pair λ=p±qi\lambda = p \pm qi, and no real eigenvector at all.

The 90°90° rotation is the cleanest case: tr=0\operatorname{tr} = 0, det=1\det = 1, so λ2+1=0\lambda^2 + 1 = 0 and λ=±i\lambda = \pm i. There is genuinely no line in the plane that a rotation maps to itself, so the honest answer has to leave the real numbers. The complex eigenvalue is not a bookkeeping artifact — writing it as λ=reiθ\lambda = re^{i\theta} hands you the rotation angle θ\theta and the per-step growth factor rr directly. Complex eigenvalues are the algebra's way of saying "this transformation spirals."

Diagonalization: the matrix in its own coordinates#

Suppose AA (n×nn \times n) has nn linearly independent eigenvectors. Stack them as the columns of a matrix PP, and put the eigenvalues down the diagonal of DD. Then AP=PDAP = PD, and since the independent columns make PP invertible:

A=PDP1equivalentlyD=P1APA = PDP^{-1} \qquad\text{equivalently}\qquad D = P^{-1}AP

This says: in the coordinate system built from its own eigenvectors, the matrix is just a list of scale factors. All the apparent complexity of AA was an artifact of describing it in the standard basis.

The payoff is that powers become trivial. The middle terms telescope:

Ak=(PDP1)(PDP1)(PDP1)=PDkP1A^k = (PDP^{-1})(PDP^{-1})\cdots(PDP^{-1}) = PD^kP^{-1}

and DkD^k is just each λi\lambda_i raised to the kk. Computing A100A^{100} by repeated multiplication is brutal; via diagonalization it costs one change of basis, nn exponentiations, and one change back. The same trick defines matrix functions in general — eAt=PeDtP1e^{At} = Pe^{Dt}P^{-1}, which is how you solve a linear system of differential equations x˙=Ax\dot{\mathbf{x}} = A\mathbf{x} in closed form.

Not every matrix diagonalizes. The shear [1 1; 0 1][1\ 1;\ 0\ 1] has λ=1\lambda = 1 twice but only a one-dimensional eigenspace, so there is no basis of eigenvectors and no PP. Such matrices are called defective, and they are why the Jordan normal form exists. But two big families are always safe: any matrix with nn distinct eigenvalues, and — by the spectral theorem — any real symmetric matrix, which is even better behaved, since its eigenvalues are all real and its eigenvectors can be chosen mutually orthogonal. That guarantee is precisely what makes PCA work.

Finding the dominant direction by brute force#

The characteristic polynomial is a fine tool for 2×22 \times 2 matrices and a terrible one for 2000×20002000 \times 2000 matrices — root-finding on a degree-2000 polynomial is numerically hopeless. So how does anyone compute eigenvectors at scale?

The oldest answer is embarrassingly simple: pick a vector and keep multiplying.

Each step applies AA and rescales back to unit length: vk+1=Avk/Avk\mathbf{v}_{k+1} = A\mathbf{v}_k / \|A\mathbf{v}_k\|. The gold arrow is the current iterate, the blue arrow is where AA sends it, and the green dashed line is the true dominant eigenvector. On the right, the Rayleigh quotient

ρ(v)=vTAvvTv\rho(\mathbf{v}) = \frac{\mathbf{v}^{\mathsf{T}}A\mathbf{v}}{\mathbf{v}^{\mathsf{T}}\mathbf{v}}

is plotted at each step, climbing toward λ1\lambda_1.

Try dragging the starting angle anywhere on the circle and stepping through: the iterate snaps onto the same green line almost regardless of where it starts. Then switch matrices and watch the rate change. That rate is the whole story. Decompose the start vector in the eigenbasis, v0=c1v1+c2v2\mathbf{v}_0 = c_1\mathbf{v}_1 + c_2\mathbf{v}_2, and apply AA repeatedly:

Akv0=c1λ1kv1+c2λ2kv2=λ1k(c1v1+c2(λ2λ1)kv2)A^k\mathbf{v}_0 = c_1\lambda_1^k\mathbf{v}_1 + c_2\lambda_2^k\mathbf{v}_2 = \lambda_1^k\left(c_1\mathbf{v}_1 + c_2\left(\tfrac{\lambda_2}{\lambda_1}\right)^k\mathbf{v}_2\right)

Since λ2/λ1<1|\lambda_2/\lambda_1| < 1, the second term dies geometrically and the dominant eigenvector is all that survives. Convergence is linear with ratio λ2/λ1|\lambda_2/\lambda_1|: for [4 1; 2 3][4\ 1;\ 2\ 3] (λ=5,2\lambda = 5, 2) the error falls by a factor of 2/52/5 each step, while for [2 1; 1 3][2\ 1;\ 1\ 3] the eigenvalues are closer together and the error creeps down instead. And note the one way it can fail: if c1=0c_1 = 0 — if you start exactly perpendicular to the dominant eigenvector — the term you need was never there. In exact arithmetic you would stay stuck; in floating point, rounding error quietly supplies a nonzero c1c_1 and the iteration converges anyway.

Where this shows up#

Eigen-analysis is not one technique. It is the same technique wearing four disguises.

Principal component analysis. Take a data set, center it, and form the covariance matrix C=1n1XTXC = \frac{1}{n-1}X^{\mathsf{T}}X. It is symmetric, so the spectral theorem gives real eigenvalues and orthogonal eigenvectors. Those eigenvectors are the principal components — the directions of greatest variance — and each eigenvalue is the variance along its component. Keeping the top few and discarding the rest is dimensionality reduction: you are rewriting the data in the coordinate system where the matrix is diagonal, then throwing away the coordinates that barely move.

PageRank. Model a web surfer clicking links at random. The transition matrix MM has MijM_{ij} = probability of moving from page jj to page ii. The long-run fraction of time spent on each page is the vector r\mathbf{r} with Mr=rM\mathbf{r} = \mathbf{r} — the eigenvector for λ=1\lambda = 1. Google's original algorithm computed it by power iteration, on a matrix with billions of rows, exactly as in the widget above. The Perron–Frobenius theorem is what guarantees such a dominant eigenvector exists and is unique for this kind of matrix.

Vibrational modes. A structure's small oscillations obey Mx¨=KxM\ddot{\mathbf{x}} = -K\mathbf{x}. The eigenvectors of M1KM^{-1}K are the normal modes — patterns of motion that oscillate coherently without exciting each other — and the eigenvalues give ω2\omega^2 for each. Every complicated vibration is a superposition of modes. This is why bridge and aircraft engineers compute eigenvalues before building anything: a resonant mode whose frequency matches an external driving force is how structures shake themselves apart.

Stability of dynamical systems. For xk+1=Axk\mathbf{x}_{k+1} = A\mathbf{x}_k, write the state in the eigenbasis and every component evolves independently as λik\lambda_i^k. All trajectories decay to the origin exactly when every λi<1|\lambda_i| < 1; a single eigenvalue outside the unit circle means some initial condition blows up. In continuous time, x˙=Ax\dot{\mathbf{x}} = A\mathbf{x}, the condition becomes Re(λi)<0\operatorname{Re}(\lambda_i) < 0, and the imaginary part sets the oscillation frequency of the approach. Control engineers design feedback precisely to move a system's eigenvalues into the stable region.

The thread through all four: a matrix acting repeatedly is hard to think about, but a number raised to a power is easy. Eigenvectors are the directions along which a matrix is just a number.

Key takeaways
  • An eigenvector is a direction the matrix stretches but never turns: Av=λvA\mathbf{v} = \lambda\mathbf{v}, with the eigenvalue λ\lambda as the stretch factor. Eigenvectors are really invariant lines, not single vectors.
  • You find eigenvalues by forcing AλIA - \lambda I to be singular, i.e. solving det(AλI)=0\det(A - \lambda I) = 0; for 2×22\times2 this is λ2(trA)λ+detA=0\lambda^2 - (\operatorname{tr}A)\lambda + \det A = 0, so the eigenvalues sum to the trace and multiply to the determinant.
  • Complex eigenvalues are not a failure — they mean the transformation rotates, and a rotation genuinely has no real invariant line.
  • Diagonalizing, A=PDP1A = PDP^{-1}, rewrites the matrix in its own eigenvector coordinates where it is just a list of scale factors, making AkA^k and eAte^{At} easy. It needs a full basis of eigenvectors, which defective matrices like a shear lack.
  • At scale nobody uses the characteristic polynomial: power iteration converges to the dominant eigenvector at rate λ2/λ1|\lambda_2/\lambda_1|, and it is how PCA, PageRank, vibrational modes, and stability analysis are all actually computed.
Check your understanding
1. A 2x2 matrix has characteristic polynomial with a negative discriminant, so both eigenvalues are complex. What does this tell you about the transformation's action on the real plane?
2. Why does a matrix with a repeated eigenvalue sometimes fail to be diagonalizable?
3. In a discrete dynamical system x_{k+1} = A x_k, what determines whether trajectories decay to the origin, and why?
0 / 3 answered

Share this article

Share on X