126. Leibniz's Rule

126.1. Leibniz’s Rule

Differentiation under the integral sign. When the integrand and the limits depend on a parameter 𝑄, the derivative splits into three pieces: one from the integrand changing, two from the moving limits.

dd𝑄𝑎(𝑄)𝑏(𝑄)(𝑥,𝑄)d𝑥=𝑎(𝑄)𝑏(𝑄)𝜕𝜕𝑄d𝑥integrand varies+(𝑏(𝑄),𝑄)𝑏(𝑄)upper limit moves(𝑎(𝑄),𝑄)𝑎(𝑄)lower limit moves

Reading the three terms:

126.1.1. Special cases

dd𝑄𝑎𝑏(𝑥,𝑄)d𝑥=𝑎𝑏𝜕𝜕𝑄d𝑥dd𝑄𝑎𝑄(𝑥)d𝑥=(𝑄)
Example

The newsvendor overage term 0𝑄(𝑄𝑥)𝑓(𝑥)d𝑥 has (𝑥,𝑄)=(𝑄𝑥)𝑓(𝑥), upper limit 𝑏(𝑄)=𝑄, lower limit fixed:

dd𝑄0𝑄(𝑄𝑥)𝑓(𝑥)d𝑥=0𝑄𝑓(𝑥)d𝑥+(𝑄𝑄)𝑓(𝑄)=0=𝐹(𝑄)

The boundary term vanishes because the integrand is zero at 𝑥=𝑄.