Let $(X,\mathcal{M},\mu)$ be a $\sigma$-finite measure space and $f$ a measurable real valued function on $X$. Prove that \begin{equation*} \int_X e^{f(x)}\mathrm{d}\mu(x) = \int_\mathbb{R} e^{t}\mu(E_t)\mathrm{d}t \end{equation*} where $E_t=\{x\mid f(x)>t\}$ for each $t\in\mathbb{R}$.
Can this be solved by a change of variable formula?