Suppose $f$ is a real positive continuous function on $\mathbb{R}$ with $\int_{-\infty}^{\infty}f(x)dx=1$. Let $0<\alpha<1$, and suppose $[a,b]$ is an interval of minimal length with $\int_a^bf(x)dx=\alpha$. Show that $f(a)=f(b)$.
I have a lot of difficulty from the resolution. Is there someone who could give me a helping hand?
Let $m$ be the length of the minimal interval. Consider $$g(x):=\int_{x}^{x+m}f(y)dy.$$ Since $m$ is minimal we have $g(x)\le \alpha$ for all $x\in\mathbb R$. So $a$ is a local maximum of $g$ and hence $g'(a)=0$. Using the fundamental theorem of calculus we get $$g'(x)=f(x+m)-f(x).$$ For $x=a$ this gives us $f(a)=f(b)$.