Proof (Stein's lemma, normal random variable)

Expand $$ \begin{align*} \expect[(X - μ)\,g(X)] ={}& \int_{\R} (x-μ) g(x) \frac{1}{\sqrt{2πσ^2}} \exp\left(-\frac{(x-μ)^2}{2σ^2} \right) \d x \\ ={}& -σ^2 \int_{\R} g(x) \cdot \dd{x}\left(\frac{1}{\sqrt{2πσ^2}} \exp\left(-\frac{(x-μ)^2}{2σ^2}\right)\right) \d x \\ ={}& -σ^2 \left[g(x) \frac{1}{\sqrt{2πσ^2}} \exp\left(-\frac{(x-μ)^2}{2σ^2}\right)\right]_{-\infty}^\infty \\ &+ σ^2\int_{\R} g'(x) \frac{1}{\sqrt{2πσ^2}}\exp\left(-\frac{(x-μ)^2}{2σ^2}\right) \d x \\ ={}& σ^2\expect[g'(X)] \end{align*} $$ where the boundary term vanishes because $g$ is bounded.