Courses / Computer Science I
Algebra

Eigenvalues and Eigenvectors

Computer Science I 269 words Free to read

Directions That Only Stretch

Most vectors change direction under a linear transformation. But some special vectors are only scaled: the transformation stretches or shrinks them without rotating them. Such a vector is an eigenvector, and its scale factor is the eigenvalue λ\lambda.

The defining equation is: Av=λv,v0A v = \lambda v, \qquad v \neq \mathbf{0}

Applying matrix AA to eigenvector vv gives back vv scaled by λ\lambda. Along an eigenvector, complex matrix action becomes simple multiplication by a number.

Magnitude / SignEffect on DirectionBehavior
λ>1\lvert\lambda\rvert > 1Same or flippedStretched
λ<1\lvert\lambda\rvert < 1Same or flippedShrunk
λ<0\lambda < 0FlippedOpposite direction

Repeatedly applying AA is governed by its eigenvalues; the largest-magnitude eigenvalue eventually dominates systems like Markov chains.

The general matrix-vector product, computed in full, collapsing to a

Finding and Using Eigenvalues

To find eigenvalues, solve the characteristic equation: det(AλI)=0\det(A - \lambda I) = 0

This reuses the determinant's singular test because Av=λvAv = \lambda v means (AλI)v=0(A - \lambda I)v = 0 has a nonzero solution, requiring AλIA - \lambda I to be singular.

Eigenvalues drive major algorithms: PageRank ranks web pages via the dominant eigenvector of a link matrix, and principal component analysis compresses data along top eigenvectors.

Common pitfall: Forgetting that an eigenvector must be nonzero (v0v \neq \mathbf{0}) and must keep its direction. The zero vector trivially satisfies the equation for any λ\lambda, so it is excluded. An eigenvector must map to a scalar multiple of itself, not merely change in size while rotating.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

9practice questions
2interactive scenes

Algebra