So, for continuous $f: [1,\infty) \rightarrow [0,\infty)$, I must show that $$\left(\int_1^{\infty} f(x) dx\right)^2 \le \left(\int_1^{\infty} x^2(f(x))^2 dx\right).$$
I know I that I should define the inner product to be $\langle f,g\rangle = \int_1^{\infty} fg)$ and that the Cauchy-Schwarz inequality states that $|\langle f,g\rangle| \le ||f||||g||$.
The left side of the problem's inequality can be written as $\langle f, 1\rangle^2$ which is less than or equal to $||f||^2||1||^2$. My thoughts were that since $x$ is between $1$ and $\infty$, $||f||^2||1||^2 \le ||f||^2 ||x||^2$ but this evaluates to $(\int_1^{\infty} (f(x))^2 dx)(\int_1^{\infty} x^2 dx)$, which is not what I need. I've tried some other approaches, but this seems to be the closest, but I am not sure where to go from here.
Edit: The norm is $||f|| = \sqrt{\langle f,f\rangle}$ here.