For a continuous random variable Y, if the probability density function is f(x) and the transformation function is t(x):
E(Y^2)=\int t(x)^2 f(x) dx