The expected value or mean value of a continuous rv with PDF f(x) is:
If X is a continuous rv with pdf f(x) and h(X) is any function of X then: