This is an exercise from Rudin's Principles of Mathematical Analysis, Chapter $6$.
Suppose $f$ is a real, continuously differentiable function on $[a, b]$, $f(a) = f(b) = 0$, and $$\int_a^b f^2(x)\, dx = 1.$$ Prove that $$\int_a^b xf(x)f'(x)\,dx = -\frac{1}{2}$$ and that $$\int_a^b [f'(x)]^2\,dx \cdot \int_a^b x^2f^2(x)\,dx {\color{red}>} \frac{1}{4}.$$
The first equality can be easily proved by integrating by parts. Also, I can show that $$\int_a^b [f'(x)]^2\,dx \cdot \int_a^b x^2f^2(x)\,dx {\color{red}\geq} \frac{1}{4}$$ by Cauchy-Schwarz inequality. However, why the inequality must be always strict? I tried discussing $f'(x) = \lambda xf(x)$ for some constant $\lambda$ when the equality holds and deriving contradiction. But it seems helpless. Thanks in advance for any suggestions!