Find the Fourier series of
\begin{equation} f(x)=\begin{cases} x-[x] \quad &\text{if $x$ is not an integer} \\ \frac{1}{2} \quad &\text{if $x$ is an integer} \end{cases} \end{equation}
I fail to see what interval I should integrate over in order to find its Fourier series.
Here's a picture:
from which we can see it is period 1. So just work the problem on $[0,1]$.
Edit/update: Since you want a full Fourier series, you want to work with a symmetric interval about the origin, say $-1<x<1$ here. The plot of $f(x)$ there would look like
Then, the (complex form) of the full Fourier series is given by
$$ \sum_{n=-\infty}^\infty c_n \exp(in\pi x) \quad\text{where}\quad c_n={1\over 2}\int_{-1}^{1} f(x)\exp(-in\pi x)\,dx. $$
Here's a plot taking the partial sum ranging over $n=-10$ to $n=10$ (red) along with the graph of $f(x)$ (black):