For every natural number $n$, we denote by $S_{n}$ the function defined on $\mathbb{R}$ by $$\forall x \in \mathbb{R}, \quad S_{n}(x) = \sum_{k=-n}^{n} e^{2\pi\mathrm{i} kx}$$ Let $f : \mathbb{R} \rightarrow \mathbb{C}$ be a function of class $C^{\infty}$ on $\mathbb{R}$ and 1-periodic. The sequence of complex numbers $(c_{n}(f))_{n \in \mathbb{Z}}$ is defined by $$\forall n \in \mathbb{Z}, \quad c_{n}(f) = \int_{-1/2}^{1/2} f(x) e^{-2\pi\mathrm{i} nx} \mathrm{d}x$$ Let $n \in \mathbb{N}$. Calculate the integral $\int_{-1/2}^{1/2} S_{n}(x) \mathrm{d}x$.
For every natural number $n$, we denote by $S_{n}$ the function defined on $\mathbb{R}$ by
$$\forall x \in \mathbb{R}, \quad S_{n}(x) = \sum_{k=-n}^{n} e^{2\pi\mathrm{i} kx}$$
Let $f : \mathbb{R} \rightarrow \mathbb{C}$ be a function of class $C^{\infty}$ on $\mathbb{R}$ and 1-periodic. The sequence of complex numbers $(c_{n}(f))_{n \in \mathbb{Z}}$ is defined by
$$\forall n \in \mathbb{Z}, \quad c_{n}(f) = \int_{-1/2}^{1/2} f(x) e^{-2\pi\mathrm{i} nx} \mathrm{d}x$$
Let $n \in \mathbb{N}$. Calculate the integral $\int_{-1/2}^{1/2} S_{n}(x) \mathrm{d}x$.