Let $g,h$ be nonnegative Lebesgue measurable functions on $\mathbb{R}$. Prove that
$$\int_{-\infty}^\infty g(x)^2h(x)\,dx=\int_0^\infty\int_{\{t\in\mathbb{R}:g(t)>x\}}2h(t)x\,dtdx.$$
I am lost on how to approach this question.
Change of variable?
Thanks for any help.