What is an idempotent matrix, what are its possible eigenvalues, and how do you construct the orthogonal projection matrix onto the column space of a full-column-rank matrix and show that ?
Linear algebra and optimisation, Projections and idempotent matrices
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you connect idempotence () to projections, eigenvalue constraints, and the trace–rank identity used in regression degrees of freedom.
Key idea
Projecting twice changes nothing, so , forcing every eigenvalue to satisfy (hence ); for , the cyclic property of trace collapses with to give .
Steps
- Define idempotence: a square matrix is idempotent if . If with , then , so and every eigenvalue is either or .
- Derive the orthogonal projection onto : for any , the closest point makes the residual orthogonal to every column of , meaning .
- Solve for (invertible because has full column rank ), giving with .
- Verify that is symmetric () and idempotent ().
- Compute the trace via the cyclic property : , which also equals since all non-zero eigenvalues equal .
Common mistakes
- Assuming every idempotent matrix is an orthogonal projection: an oblique projection satisfies without (for example ).
- Confusing the hat matrix with , or applying cyclic permutation inside a three-matrix product without keeping the cyclic order.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: Using the Gram–Schmidt process, how do you turn the columns of into an orthonormal basis, and how do you write the resulting factorisation?
Next in Linear algebra and optimisation: For which values of is the symmetric matrix positive definite by Sylvester's criterion, and what is its Cholesky factorisation when ?