Compute the projection matrix P onto a line that goes through the vector $\vec a$.

44 Views Asked by At

I've computed the result using the formula our teacher gave using P = ($\vec a$$\vec a^T$)/($\vec a^T$$\vec a$) which gives me a scalar (9) divided by a not invertible matrix. I assume this is wrong because in other examples I see "(1/scalar)*matrix=P". The vector $\vec a$ = (1,2,-2).