TITLE: A technical relation
QUESTION [11 upvotes]: I have encountered the following interesting technical relation.
$$ \pi^2 = \inf_{x \in \mathcal{D}(0,1) \setminus\{0\}} \frac{\int_0^1 |x'(s)|^2 \, \text{d}s}{\int_0^1 |x(s)|^2 \, \text{d}s}$$
where $\mathcal{D}(0,1)$ is the set of all smooth functions in $(0,1)$ with a compact support.
Amazing. Can anyone please give a hint why this is true? Thank you.

REPLY [5 votes]: First of all, we write down the fourier expansion of $x(t)$: 
$$x(t) = \sum_{n=1}^\infty a_n \sin(n\pi t) + \sum_{n=1}^\infty b_n \cos (n\pi t)$$
(the main point is that $x(t)$ has no constant term, do you know why?). Thus
$$\int_0^1 |x(t)|^2 dt = \sum_{n=1}^\infty a_n^2 + b_n^2$$
and 
$$\int_0^1 |x'(t)|^2 dt = \pi ^2 \sum_{n=1}^\infty n^2(a_n^2 + b_n^2)$$
$$\Rightarrow \frac{\int_0^1|x'(t)|^2 dt}{\int_0^1 |x(t)|^2 dt} =  \frac{\pi^2 \sum_{n=1}^\infty n^2 (a^2_n + b_n^2)}{ \sum_{n=1}^\infty a_n^2 + b_n^2} \geq \pi^2\frac{\sum_{n=1}^\infty a^2_n + b_n^2}{\sum_{n=1}^\infty a_n^2 + b_n^2} = \pi^2 $$
With equality as $f(t)= \sin(\pi t)$. (Strictly speaking the infimum is not attained as this function does not have compact support).