I solved this question but I am not quite sure if it is a valid solution. The question is:
Let $u$ be a vector in an inner product space $V$ and let $\{v_1, v_2, v_3, \ldots, v_n\}$ be an orthonormal basis for $V$. Show that if $a_i$ is the angle between $u$ and $v_i$ we have*
$$\cos^2(a_1) + \cos^2(a_2) + \cdots + \cos^2(a_n) = 1$$
My approach was that:
The vector zero is included in both of the bases. Other than the zero vector, all vectors have an angle of $90^\circ$ between them. However, since the vector zero is in both of them there is an angle of $0^\circ$. Hence, the equation is true.
Is this a valid solution? Does any vector exist that opposes this? What would be a valid solution? Thank you for your help.
Because $\{v_{1},...,v_{n}\}$ is an orthonormal basis, you know that:
(1) $||v_{k}||=1$ for every $k=1,...,n$.
(2) $u=\sum_{k=1}^{n}\alpha_{k}v_{k}$, with $\alpha_{1},...,\alpha_{n}$ scalars and $||u||^{2}=\sum_{k=1}^{n}\alpha_{k}^{2}$.
(3) $\langle u, v_{k}\rangle = \alpha_{k}$
Now, for each $k \in \{1,...,n\}$ we have (using (1)): $$\cos a_{k} = \frac{\langle u, v_{k}\rangle}{||u||||v_{k}||} = \frac{\langle u, v_{k}\rangle}{||u||}.$$ Thus, using (3) and (2) we get: $$\cos^{2}a_{1}+\cdots+\cos^{2}a_{n} = \sum_{k=1}^{n} \frac{\langle u, v_{k}\rangle}{||u||} = \sum_{k=1}^{n} \frac{\alpha_{k}^{2}}{||u||^{2}} = \frac{1}{||u||^{2}}\sum_{k=1}^{n}\alpha_{k}^{2} = \frac{1}{||u||^{2}}||u||^{2} = 1$$