In relation to a calculation involving sums of random variables, I needed to differentiate with respect to a double integral of the form
The parameter appears in both upper limits, but appears on its own in the outer upper limit, and as
in the inner upper limit. I went through the motions of using Liebniz’s Rule and was interested to see how it worked in this case. I have not seen anything like this anywhere else online, so I want to record it here.
Liebniz’s Rule in the case of a single integral works thus:
Here, is the antiderivative of
. The trick in the double integral case is to treat the inner integral like the function in the single integral case above. So, we differentiate the outer integral treating the inner integral as the function in the single integral case, then we differentiate the inner integral in the normal way. Thus, we write
The first integral in the penultimate step vanishes because the upper limit is converted from into
in the application of Liebniz’s Rule.
