Skip to content

Idempotent Matrix

Definition

An idempotent matrix, or projection matrix, is a real square matrix P\boldsymbol{P} satisfying P2=P\boldsymbol{P}^2=\boldsymbol{P}.

Such a matrix projects onto its range: it maps every vector into the subspace range⁡(P)\operatorname{range}(\boldsymbol{P}) and leaves every vector of that subspace unchanged. A projection matrix that is also symmetric, P⊤=P\boldsymbol{P}^{\top}=\boldsymbol{P}, is an orthogonal projection matrix; the others are oblique projections. In statistics and econometrics "projection matrix" usually means the orthogonal case, such as the hat matrix X(X⊤X)−1X⊤\boldsymbol{X}(\boldsymbol{X}^{\top}\boldsymbol{X})^{-1}\boldsymbol{X}^{\top} of least squares, for X\boldsymbol{X} of full column rank.


Interpretation

The square P2\boldsymbol{P}^2 is a matrix product, representing two successive applications of the same linear map. Idempotence says this composition equals one application.

Applying an idempotent matrix twice has the same effect as applying it once: projecting a vector that already lies in the subspace leaves it where it is.

Two lines through the origin, the range and the kernel of a projection; a vector v splits into a part w on the range, which it is mapped to, and a part k on the kernel, which is sent to 0.

In the figure, P2=P\boldsymbol{P}^2=\boldsymbol{P} gives P(Pv)=Pv\boldsymbol{P}(\boldsymbol{P}\boldsymbol{v})=\boldsymbol{P}\boldsymbol{v}, so vectors of range⁡P\operatorname{range}\boldsymbol{P} stay fixed (Pw=w\boldsymbol{P}\boldsymbol{w}=\boldsymbol{w}) and vectors of ker⁡P\ker\boldsymbol{P} are sent to 0\boldsymbol{0} (Pk=0\boldsymbol{P}\boldsymbol{k}=\boldsymbol{0}). Every v\boldsymbol{v} splits as w+k\boldsymbol{w}+\boldsymbol{k} with w∈range⁡P\boldsymbol{w}\in\operatorname{range}\boldsymbol{P} and k∈ker⁡P\boldsymbol{k}\in\ker\boldsymbol{P} (a direct sum), and Pv=w\boldsymbol{P}\boldsymbol{v}=\boldsymbol{w}. The only possible eigenvalues are 00 and 11; the projection need not be orthogonal (here it is oblique).


Key Results

  • The zero square matrix and identity matrix are idempotent.
  • If an idempotent matrix is invertible, then it equals the identity matrix.
  • If P\boldsymbol{P} is idempotent, then every vector splits as v=Pv+(v−Pv)\boldsymbol{v}=\boldsymbol{P}\boldsymbol{v}+(\boldsymbol{v}-\boldsymbol{P}\boldsymbol{v}) with Pv∈range⁡(P)\boldsymbol{P}\boldsymbol{v}\in\operatorname{range}(\boldsymbol{P}) and v−Pv∈ker⁡(P)\boldsymbol{v}-\boldsymbol{P}\boldsymbol{v}\in\ker(\boldsymbol{P}), so the space is the direct sum range⁡(P)⊕ker⁡(P)\operatorname{range}(\boldsymbol{P})\oplus\ker(\boldsymbol{P}): P\boldsymbol{P} projects onto its range along its kernel.
  • If P\boldsymbol{P} is idempotent, so is I−P\boldsymbol{I}-\boldsymbol{P}; it projects onto ker⁡(P)\ker(\boldsymbol{P}) along range⁡(P)\operatorname{range}(\boldsymbol{P}).
  • The only possible eigenvalues of an idempotent matrix are 00 and 11.
  • An orthogonal projection matrix is symmetric and idempotent; then Pv\boldsymbol{P}\boldsymbol{v} is the point of range⁡(P)\operatorname{range}(\boldsymbol{P}) closest to v\boldsymbol{v}, and v−Pv\boldsymbol{v}-\boldsymbol{P}\boldsymbol{v} is orthogonal to range⁡(P)\operatorname{range}(\boldsymbol{P}).

Examples

  • In2=In\boldsymbol{I}_n^2=\boldsymbol{I}_n, so In\boldsymbol{I}_n is idempotent: it projects every vector onto the whole space.
  • (1000)\begin{pmatrix}1&0\\0&0\end{pmatrix} is idempotent and symmetric: the orthogonal projection onto the xx-axis.
  • (1100)\begin{pmatrix}1&1\\0&0\end{pmatrix} is idempotent but not symmetric: an oblique projection onto the xx-axis along the line spanned by (1,−1)(1,-1).

Prerequisites

Sources

Aliases: projection matrix, projector Keywords: projection, idempotent linear operator, hat matrix, projection operator, orthogonal projection, orthogonal projector, oblique projection Symbols: element of

Last updated: 27 October 2026 11:52