Find the orthogonal projection of the function $f(x)=x$ onto the subspace of $C([-1,1])$ spanned by $\sin\pi$x , $\sin2\pi$x, $\sin3\pi$x .
I was given this problem and I don't really know how to go about solving it. I understand orthogonal projection with vectors and can use Gram-Schmidt but I'm a bit confused how to even begin with this sort of problem. Any help would be much appreciated.