Learning goals and preparation
We assume Chapter 4's matrices, transposes, determinants, null spaces, and inverses. We extend those tools to repeated changes and to systems with no exact solution. You will calculate elementary eigenpairs, verify a diagonalization, and derive least-squares equations from orthogonal residuals. Model examples use hypothetical data and transition tables.
5.1 Repeated matrix actions and eigenvectors
A discrete linear model gives . Directly multiplying a matrix many times can hide the pattern.
For a square matrix , an eigenvector for a scalar is a nonzero vector such that . The associated eigenspace is
The eigenspace is a subspace and includes zero; zero itself is not an eigenvector. The scalar is an eigenvalue exactly when this null space is nonzero. By the determinant criterion for invertibility, that occurs exactly when
We use the monic characteristic polynomial throughout. Using instead changes the polynomial by , but not its roots or their multiplicities.
Along an eigenvector , induction gives .
Worked example 1: two simple modes. Let . The characteristic equation gives and . Their eigenspaces are the multiples of and . Thus
because . The decomposition gives every iterate exactly, not merely its limiting direction.
5.2 Diagonalization and its limitation
A real matrix is diagonalizable over if for an invertible real matrix and a real diagonal matrix . This is equivalent to having a basis of real eigenvectors.
For the forward direction, multiply by . In , column says that column of is an eigenvector with eigenvalue . Those columns form a basis because is invertible. Conversely, put any eigenbasis into the columns of , with the corresponding eigenvalues in the same order down . Columnwise multiplication gives , and multiplying by gives the diagonalization.
For independent eigenvectors forming the columns of and their corresponding eigenvalues on the diagonal of , cancellation of adjacent factors gives
For an matrix this method needs independent eigenvectors, not merely roots counted with multiplicity.
For , the only eigenvalue is one and its eigenspace consists of . Two independent eigenvectors cannot be formed, so it is not diagonalizable. Indeed by direct induction: the repeated action can grow linearly even though the only eigenvalue has magnitude one. This counterexample prevents a careless “all eigenvalues at most one implies every iterate converges” rule.
5.3 A proportion-transition model
Worked example 2: proportions with a stable mode. Suppose two nonnegative proportions sum to one and change according to
Every column is nonnegative and sums to one, so the output remains a proportion vector. Direct calculations give eigenvectors for eigenvalue one and for eigenvalue . Thus is a fixed proportion.
For , ,
Equivalently , a convex combination proving nonnegativity and sum one. Since , every such starting vector approaches . This conclusion depends on the transition table remaining fixed.
5.4 Geometry and orthogonal residuals
Let be the columns of . Suppose are an orthonormal basis for the span of the columns processed so far. For the next column , form
Taking its dot product with a previous gives
There are two possibilities. If , append . If , append nothing: the new column is already a combination of previous directions. In particular, never divide a zero residual by its norm. Begin with the empty list, for which the sum is zero.
The procedure preserves the required span by induction. In the nonzero case, is a combination of and old basis vectors, so the new belongs to the enlarged column span. Conversely,
so the new column belongs to the new basis span. In the zero case the displayed projection sum already equals , and the span does not change. The new vectors remain orthonormal by the dot-product calculation and normalization. This proves both the construction and its span claim, rather than inferring either from a picture.
After all columns have been processed, the final list has length . If collects these columns, then and
Indeed every column of lies in the span of and its orthonormal coordinates are its dot products with the . The matrix is . With dependent columns, it need not be square or an ordinary triangular matrix.
If , the rank is zero, has no columns, and the projection onto its column space is the zero matrix. This edge case can be understood directly without performing any empty-matrix multiplication.
For any matrix with orthonormal columns, define
For , the vector belongs to the column space. Its residual satisfies , so it is perpendicular to every vector in that space. If is any other vector in the space, then belongs to it and is orthogonal to . Therefore
The unique nearest vector is . Uniqueness follows because the second term is zero exactly at . This proves the projection formula and its minimum-distance property together.
For the line spanned by nonzero , set ; the orthogonal projection formula becomes
Worked example 3: projection. For , , the coefficient is . Thus and . Their dot-product check gives . The best squared error is .
An orthonormal list has unit lengths and pairwise zero dot products. For such a list, the projection onto its span is . Without orthonormality, these simple coefficients generally fail; solve the appropriate system instead.
5.5 Deriving normal equations
Given and , a least-squares coefficient vector minimizes over all . If is inconsistent, this is an approximation criterion, not a newly discovered exact solution.
A coefficient vector minimizes the error exactly when its residual is perpendicular to the column space. For necessity, fix any . The error at is
If , then . Choosing strictly reduces the error, contradicting minimality. Thus for every . For sufficiency, that condition makes the cross term zero for every , so
In matrix notation, the perpendicularity condition is
These are the normal equations. They are necessary and sufficient regardless of column independence. Independence is needed for uniqueness of the coefficients, not for the characterization itself.
Existence follows from projection. Construct an orthonormal basis of the column space by the rank-aware procedure. The projected vector lies in that column space, so by its definition there is at least one with . That vector is a minimizer. The fitted vector is unique, and if one minimizer is , then all minimizers are exactly
Indeed adding a null vector does not change the fit. Conversely all minimizing coefficients give the same unique nearest fitted vector, so their differences lie in the null space. Coefficients are unique exactly when , equivalently the columns are independent. These statements include the zero matrix: its fitted vector is zero and every coefficient vector minimizes the fixed error .
Proof X-ray
One quadratic read in two directions
The argument restricts the problem to lines: along each direction the error is a quadratic in with constant term . Necessity and sufficiency are two readings of that single quadratic. A nonzero linear coefficient lets a small step lower the error; a zero linear coefficient leaves only the nonnegative square term. No calculus and no column independence enter. Existence is a separate question, and only there does an orthonormal basis of the column space appear.
Worked example 4: fit a line. Fit to points . The design matrix has rows and observed column . The normal equations are
Subtracting gives , then . The residual is , whose dot product with each design column is zero. Squared error is . This line minimizes the specified unweighted squared vertical errors; a different error metric or data scaling could give a different fit.
For larger numerical work, orthogonal-factorization methods are often more reliable than explicitly forming . The normal equations provide a clear hand derivation, not a blanket recommendation of one computational algorithm for all data.
5.6 Graded exercises
Foundation
- Verify the eigenpairs and for the matrix in Worked example 1.
- Find all eigenvalues and eigenspaces of .
- Project onto the span of .
Core
- For , diagonalize and find .
- For in Worked example 2 and , calculate in two ways.
- Prove by induction the displayed formula for . Does converge?
- Fit a least-squares line to and check the residual.
- Explain why a unit-length vector need not be orthogonal to another unit-length vector. Give an explicit counterexample.
Synthesis
-
Let have two linearly independent real eigenvectors with corresponding real eigenvalues satisfying . Prove for every initial vector .
-
Let and . Find all least-squares coefficient vectors. Show the fitted vector is unique despite coefficient nonuniqueness.
5.7 Full solutions
- Multiplying gives and .
- Eigenvalues are . Their eigenspaces are respectively all multiples of and .
- The projection coefficient is , so projection is and residual , perpendicular to the line.
- Eigenvectors are and , with eigenvalues . With these columns in and , . Decompose . Hence .
- Formula gives . Directly and .
- At the formula is . Multiplication of by gives , proving the step. Applied to , it gives , which does not converge.
- The normal equations have right side . Thus , , giving , . Residual is . Its sum and its dot product with are zero, verifying normal equations and optimality.
- Take and . Each has length one, but their dot product is . Unit length is a normalization condition, not a pairwise angle condition.
- Every is because the eigenvectors form a basis. Then . Both scalar powers tend to zero, so each coordinate of the finite sum tends to zero.
- Every fitted vector is with . Minimizing gives . Thus every is a least-squares coefficient vector, but every one gives the same fitted vector .
Summary and onward map
Eigenvectors separate repeated matrix action into scalar modes when an independent eigenbasis exists. Repeated roots alone do not supply such a basis. Proportion models require nonnegativity and normalization checks. Orthogonality characterizes a closest fit; normal equations express that condition, and column independence controls coefficient uniqueness.