Let $f$ be $C^1$ in $[-\pi, \pi]$ and satisfies $\int_{-\pi}^\pi f(x)dx=0$, periodic boundary condition.
Then, prove that $\int_{-\pi}^\pi (f(x))^2dx\le \int_{-\pi}^\pi (f'(x))^2dx$.
I try to prove it by Parseval's equality(with $X_n=\sin nx$) and Schwartz inequality,
but then some constants come out. Also why condition $\int_{-\pi}^\pi f(x)dx=0$ needs?
Give some advice.
This is known as Wirtinger's inequality. See the wikipedia article for its proof.