(a) Let $\mathbf{u}_1, \ldots, \mathbf{u}_n$ be an orthonormal basis of a finite-dimensional inner product space $V$. Let $\mathbf{v}=c_1 \mathbf{u}_1+\cdots+c_n \mathbf{u}_n$ and $\mathbf{w}=d_1 \mathbf{u}_1+\cdots+d_n \mathbf{u}_n$ be any two elements of $V$. Prove that $\langle\mathbf{v}, \mathbf{w}\rangle=c_1 d_1+\cdots+c_n d_n$.
(b) Write down the corresponding inner product formula for an orthogonal basis.