I need to prove the following:
If $\vec{A}$ and $\vec{B}$ are two vectors different from $\vec{0}$. Proof $\vec{A} - c \vec{B} $ is orthogonal to $\vec{B}$ if $ c = \frac{\vec{A} · \vec{B} }{||\vec{B} ||^2}$.
$$$$
I did some attempts and I got that given $c =\frac{\vec{A} · \vec{B} }{||\vec{B} ||^2}$ then $cB$ is the orthogonal projection of $\vec{A}$ onto $\vec{B}$. Thus, $\vec{A} - c \vec{B} $ is the vector that connects the ends of $\vec{A}$ and it's projection on $\vec{B}$. Therefore, $(\vec{A} - c \vec{B}) · \vec{B} = 0$ and it's orthogonal.
I was told that I need it to be more formal but I don't know how to make it more formal. Thanks.
When you say things like 'is the vector that connects the ends of $\vec{A}$ and its projection on $\vec{B}$', you are interpreting the result and thinking about the usual Euclidian space. Note that there is a certain gap here, because we don't know precisely what 'the end' of a vector is. Also, this result can be stated in a more general context, so it is useful to think in a more abstract way instead of interpreting it geometrically.
What about this approach: let $\vec{v} = \vec{A}-c\vec{B}$. Then, you have: $$ \vec{v}\cdot \vec{B} = (\vec{A}-c\vec{B})\cdot \vec{B} = \vec{A}\cdot \vec{B}-c\vec{B}\cdot \vec{B}$$ Now, remember that $\vec{B}\cdot \vec{B} = ||\vec{B}||^{2}$. Take $c = \frac{\vec{A}\cdot \vec{B}}{||B||^{2}}$. Then: $$\vec{v}\cdot \vec{B} = \vec{A}\cdot \vec{B}-\frac{\vec{A}\cdot \vec{B}}{||\vec{B}||^{2}}||\vec{B}||^{2} = \vec{A}\cdot \vec{B} -\vec{A}\cdot\vec{B} = 0 $$ so that $\vec{v}= \vec{A}-c\vec{B}$ with $c = \frac{\vec{A}\cdot\vec{B}}{||\vec{B}||^{2}}$ is orthogonal to $\vec{B}$.