I want to know how to prove that for a projection matrix $P$ and its complement matrix $P^\perp$.
We have $$I-P=P^\perp$$
I do know the intuition that $P$ and $P^\perp$ project a vector into two different subspaces.
But can we prove it in a algebra way?
P can be represented by $$P=U_1U_1^T;P^\perp=U_2U_2^T$$, in which $$\begin{bmatrix}U_1&U_2\end{bmatrix}$$ is an orthogonal matrix.
Suppose $P$ is an orthogonal projection onto $U$ then for
$$v=v_U+v_{U_\perp} \implies Pv=v_U$$
and $$(I-P)v=v-v_U=v_{U_\perp}$$ thus $(I-P)$ is an orthogonal projection onto $U_\perp$.