In Faraways Linear Models (2ed.) page 77, he mention: "when non-constant variance is seen in the plot of $\hat{\epsilon}$ against $\hat{y}$", a transformation of the response $y$ to $h(y)$ where $h()$(a comment on what h() means here is appreciated) can be chosen so that $\operatorname{var}(h(y))$ is constant."
Then he gives an example on how to consider $h$
$$h(y) = h(Ey) + (y-Ey)h'(Ey)+ \cdots \\ \operatorname{var}(h(y)) = 0+h'(Ey)2\operatorname{var}(y)+ \cdots$$ We ignore higher order terms. For $var(h(y))$to be constant we need
$$h'(Ey) \propto (\operatorname{var}(y))^{-\frac{1}{2}}$$ which suggests: $$h(y) = \int\frac{dy}{\operatorname{var}(y)} == \int\frac{dy}{\text{SD}y}$$ (a comment on what the '$==$' means here is appreciated).
By an example with R, how exactly would this transformation plan out on data with non-constant variance?