I have a Euclidean Space $V=R^3$ and a subspace E = {v} , v≠0 so to calculate the projection of $u \in V$.
My teacher wrote on the blackboard: P(u)=$\frac{<u,v>}{||v^2||}v$ so for this case would be that : $\frac{u^Tv}{||v||^2}v$ but my teacher wrote that as long as the dimension of E is one then P(u)=$\frac{1}{||v^2||}v v^Tu$ .I do not understand why he wrote that $v^T$ when $u$ was the only trasposed .
In a real Euclidean space the inner product is symmetric, so $$u^Tv=\langle u,v\rangle=\langle v,u\rangle =v^Tu\,.$$ Anyway, this can be directly seen as well, because $u^Tv$ is a scalar ($1\times 1$ matrix), its transpose is itself: $$u^Tv=(u^Tv)^T=v^T(u^T)^T=v^Tu\,.$$ Also because this is a scalar, it doesn't matter whether we multiply $v$ by this from left or from right.
The comment that $E$ must be one dimensional means that $E$ is the subspace of $V$ where we want to project to, and here $E$ is the span (line) of $v$.
An additional suggestion is that it's easier to calculate with $v_1:=\frac v{\|v\|}$ which has norm $1$ in place of $v$: we simply get $$P(u)=\langle u,v\rangle v\,.$$
By the way, a similar formula can be written when $E$ has any finite dimension, using an orthonormal basis of $E$.