A distribution function (CDF) already stores all the probability accumulated up to the point . So the probability of landing inside an interval is simply the difference of its values at the two ends:
Nothing has to be integrated: take the piece of that covers each endpoint and substitute. If an endpoint falls where is constant, that value is used as it is.
A random variable is given by the distribution function
Find .
For a continuous random variable the probability of falling into is the increment of the distribution function:
Here and , so
Both endpoints sit in the middle piece , where (the point is the border, and both pieces give the same value there). For :
For :
A quick sanity check: the value is between and , and it is smaller than , as it must be for a part of the whole range.
Screenshot any problem on your screen and get the steps. Chrome on a computer; free.