Let $X$ be a real-valued random variable with pdf $f_X(x)$, and let the random variable $Y=g(X)$ with the function $g(\cdot)$. Assume $f_Y(y)$ is the pdf of $Y$ infered from the function $g(\cdot)$. Then, is the following equality correct? \begin{align} E_{y\sim f_Y(y)}[h(y)]=E_{x\sim f_X(x)}[h(g(x))]. \end{align} In other words \begin{align} \int f_Y(y)h(y)dy = \int f_X(x)h(g(x))dx. \end{align}
If it is correct, how can we prove it? Thanks for any idea.