Find the (projection) matrix which projects every vector in $R_{3}$ onto the subspace given by S = span {(2, 4, 6),(3, 6, 9),(1, 1, −1)}.
I have been looking at this problem for hours. So far, from my understanding, the projection matrix is:
$P=A(A^{T}A)^{-1}A^{T}$
So what I did was letting A equal:
A=$\begin{bmatrix}2 & 3 &1\\4 & 6 & 1\\6 & 9 & -1\end{bmatrix}$
Then I solved for $A^{T}A=\begin{bmatrix}56 & 84 &12\\84 & 126 & 18\\0 & 0 & 3\end{bmatrix}$
But, then I got, $(A^{T}A)^{-1}=0$
Does this mean that the projection matrix is just zero? The given vectors are not linearly independent right? So its impossible to even do this with my steps because A is not linearly independent. Is there another way to solve this, with the nonindependent vectors? I feel that I did something wrong given the simple answer...