Knowing the probability density function,how to find the mathematical expectation EX of this random variable?…