Lemma (Wirtinger's inequality)

Let $f: \R\to \C$ be differentiable and periodic with period $L$.

If $\int_{0}^{L} f(x) \d x = 0$, then $$ \begin{align*} \int_{0}^{L} |f|^2 \d x \leq \frac{L^2}{4π^2} \int_{0}^{L} |f'|^2 \d x. \end{align*} $$

Proof