I'm not entirely sure how to go about answering this question about vectors. Any advice/help is appreciated.
Write the vector $\displaystyle a =\begin{bmatrix}3\\-1\\7\end{bmatrix}$ as a linear combination of the set of orthonormal basis vectors $\displaystyle\left\{\begin{bmatrix}1/\sqrt2\\0\\1/-\sqrt2\end{bmatrix},\begin{bmatrix}0\\1\\0\end{bmatrix},\begin{bmatrix}1/\sqrt2\\0\\1/\sqrt2\end{bmatrix}\right\}$ in $\mathbb R^3.$
Hint: If $\{u_1,\dots,u_n\}$ for an orthonormal basis for the space $X$, then any vector $x\in X$ can be written as$$x=\sum_{i=1}^n \langle x,u_i\rangle u_i$$