How to determine the mean value and mode of a continuous random variable defined by a probability density function f(x)