I have a projection matrix of type
$P_1 = A (A^TA)^{-1}A^T$
The basis of the projected subspace is A.
If I have a projection of type $P_2 = I - [A(A^T A)^{-1}A^T]$
Its easy to proove that $A$ is a basis of $P_1$.
$P_1 A s = (A (A^T A)^{-1} A^T)As = As$ meaning this that any vector transformed by $A$, already lives in the subspace spanned by $P_1$.
I tried to do something similar with $P_2$.
$P_2 X s = X s$ and find the solution for X, but this approach only gives me something like $P_2Xs = 0$ which I think should verify for any s. Therefore I have $P_2X = 0$, which I cant solve since P_2 is not invertible.
So, how can I compute a basis for the projected subspace spanned by $P_2$?
Edited based on Bercis answer:
I know I can find a basis for $P_2$ using $QR$ decomposition. I think the basis its just the first $m$ columns with $m = rank(P_2)$.
I was expecting to have a direct approach, that require less computations, given that for $P_1$ I can get the basis directly.