There are actually two cases we have to consider here, if p=1 and if . We will see why below:
First assume that . Given the function on the interval [1,B], the area between this curve and the x-axis is
Note that, if p=1, then the above does not work because we would divide by 1-p=0.
Hence we treat p=1 separately. The function becomes and on the interval [1,B], the area between this curve and the x-axis is
So our final answer is