Let $f(x)=\sin(\pi x)$ and let $0<x<1$
Find the Fourier series of the above function.
Now at first we should rescale $x$ to a symmetric interval : Let $s=x- 1/2 $
Thus $-1/2<s<1/2$
Now the task is to find the Fourier series of $f(s)=\sin(\pi (s+1/2))$
Which is very long to do but at the end I hopefully got the right answer (using the rescaled inner product to find the coefficients)
$FS(\sin(\pi x))= 2/\pi + \sum_{k=1}^\infty \frac{8}{\pi(1-4k^2)} \cos2k\pi x$
Now my first question is , is this right, and for the second, was there another way to compute its Fourier series because this method took 2 pages.