Let's say, I have joint probability function as follows:
$ f(x,y) = 4xy $ for $ 0 \le x \le 1 $ and $ 0 \le y \le 1 $
I want to get the marginal probability distribution of the random variable $ X $ from the joint probability distribution. So I integrate out the other random variable $ Y $. Then I get
$ f_X(x) = \int_{0}^{1} 4xy dy = [2xy^2]_{0}^{1} = 2x $
How can I use the resulted probability distribution function to find a probability between an interval of the random variable $ X $? Do I need to integrate the resulted function for some specific probability density between an interval of the random variable $ X $?