![]() | ||
In calculus, Leibniz's rule for differentiation under the integral sign, named after Gottfried Leibniz, states that for an integral of the form:
Contents
- General form Differentiation under the integral sign
- Three dimensional time dependent case
- Higher dimensions
- Measure theory statement
- Proof of basic form
- Variable limits form
- General form with variable limits
- Three dimensional time dependent form
- Alternative derivation
- Example 1
- Example 2
- Example 3
- Example 4
- Example 5
- Example 6
- Other problems to solve
- Applications to series
- In popular culture
- References
then for
where the partial derivative indicates that inside the integral, only the variation of f(•,t) with t is considered in taking the derivative. Notice that if
Thus under certain conditions, one may interchange the integral and partial differential operators. This important result is particularly useful in the differentiation of integral transforms. An example of such is the moment generating function in probability theory, a variation of the Laplace transform, which can be differentiated to generate the moments of a random variable. Whether Leibniz's integral rule applies is essentially a question about the interchange of limits.
General form: Differentiation under the integral sign
Theorem. Let f(x, t) be a function such that both f(x, t) and its partial derivative fx(x, t) are continuous in t and x in some region of the (x, t)-plane, including a(x) ≤ t ≤ b(x), x0 ≤ x ≤ x1. Also suppose that the functions a(x) and b(x) are both continuous and both have continuous derivatives for x0 ≤ x ≤ x1. Then for x0 ≤ x ≤ x1:This formula is the general form of the Leibniz integral rule and can be derived using the fundamental theorem of calculus. The (first) fundamental theorem of calculus is just a particular case of the above formula, for a(x) = a, a constant, b(x) = x and f(x, t) = f(t).
If both upper and lower limits are taken as constants, then the formula takes the shape of an operator equation:
ItDx = DxIt,where Dx is the partial derivative with respect to x and It is the integral operator with respect to t over a fixed interval. That is, it is related to the symmetry of second derivatives, but involving integrals as well as derivatives. This case is also known as the Leibniz integral rule.
The following three basic theorems on the interchange of limits are essentially equivalent:
Three-dimensional, time-dependent case
A Leibniz integral rule for two dimensions is:
where:
Higher dimensions
The Leibniz integral rule can be extended to multidimensional integrals. In two and three dimensions, this rule is better known from the field of fluid dynamics as the Reynolds transport theorem:
where
The general statement of the Leibniz integral rule requires concepts from differential geometry, specifically differential forms, exterior derivatives, wedge products and interior products. With those tools, the Leibniz integral rule in p-dimensions is:
where Ω(t) is a time-varying domain of integration, ω is a p-form,
Measure theory statement
Let
Then for all
Proof of basic form
Let:
So that, using difference quotients
Substitute equation (1) into equation (2), combine the integrals (since the difference of two integrals equals the integral of the difference) and use the fact that 1/h is a constant:
Provided that the limit can be passed under the integral sign, we obtain
We claim that the passage of the limit under the integral sign is valid. Indeed, the bounded convergence theorem (a corollary of the dominated convergence theorem) of real analysis states that if a sequence of functions on a set of finite measure is uniformly bounded and converges pointwise, then passage of the limit under the integral is valid. To complete the proof, we show that these hypotheses are satisfied by the family of difference quotients
Continuity of fx(x, y) and compactness implies that fx(x, y) is uniformly bounded. Uniform boundedness of the difference quotients follows from uniform boundedness of fx(x, y) and the mean value theorem, since for all y and n, there exists z in the interval [x, x + 1/n] such that
The difference quotients converge pointwise to fx(x, y) since fx(x, y) exists. This completes the proof.
For a simpler proof using Fubini's theorem, see the references.
Variable limits form
For a monovariant function g:
This follows from the chain rule.
General form with variable limits
Now, set
where a and b are functions of α that exhibit increments Δa and Δb, respectively, when α is increased by Δα. Then,
A form of the mean value theorem,
Dividing by Δα, and letting Δα → 0, and noticing ξ1 → a and ξ2 → b and using the result
yields the general form of the Leibniz integral rule below:
Three-dimensional, time-dependent form
At time t the surface Σ in Figure 1 contains a set of points arranged about a centroid
with
where the limits of integration confining the integral to the region Σ no longer are time dependent so differentiation passes through the integration to act on the integrand only:
with the velocity of motion of the surface defined by:
This equation expresses the material derivative of the field, that is, the derivative with respect to a coordinate system attached to the moving surface. Having found the derivative, variables can be switched back to the original frame of reference. We notice that (see article on curl ):
and that Stokes theorem allows the surface integral of the curl over Σ to be made a line integral over ∂Σ:
The sign of the line integral is based on the right-hand rule for the choice of direction of line element ds. To establish this sign, for example, suppose the field F points in the positive z-direction, and the surface Σ is a portion of the xy-plane with perimeter ∂Σ. We adopt the normal to Σ to be in the positive z-direction. Positive traversal of ∂Σ is then counterclockwise (right-hand rule with thumb along z-axis). Then the integral on the left-hand side determines a positive flux of F through Σ. Suppose Σ translates in the positive x-direction at velocity v. An element of the boundary of Σ parallel to the y-axis, say ds, sweeps out an area vt × ds in time t. If we integrate around the boundary ∂Σ in a counterclockwise sense, vt × ds points in the negative z-direction on the left side of ∂Σ (where ds points downward), and in the positive z-direction on the right side of ∂Σ (where ds points upward), which makes sense because Σ is moving to the right, adding area on the right and losing it on the left. On that basis, the flux of F is increasing on the right of ∂Σ and decreasing on the left. However, the dot-product v × F • ds = −F × v • ds = −F • v × ds. Consequently, the sign of the line integral is taken as negative.
If v is a constant,
which is the quoted result. This proof does not consider the possibility of the surface deforming as it moves.
Alternative derivation
Lemma. One has:Proof. From proof of the fundamental theorem of calculus,
Suppose a and b are constant, and that f(x) involves a parameter α which is constant in the integration but may vary to form different integrals. Assuming that f(x, α) is a continuous function of x and α in the compact set {(x, α) : α0 ≤ α ≤ α1 and a ≤ x ≤ b}, and that the partial derivative fα(x, α) exists and is continuous, then if one defines:
By the Heine–Cantor theorem it is uniformly continuous in that set. In other words, for any ε > 0 there exists Δα such that for all values of x in [a, b]:
On the other hand:
Hence φ(α) is a continuous function.
Similarly if
Therefore,
where
Now, ε → 0 as Δα → 0, therefore,
This is the formula we set out to prove.
Now, suppose
where a and b are functions of α which take increments Δa and Δb, respectively, when α is increased by Δα. Then,
A form of the mean value theorem,
Dividing by Δα, letting Δα → 0, noticing ξ1 → a and ξ2 → b and using the above derivation for
yields
This is the general form of the Leibniz integral rule.
Example 1
The function under the integral sign is not continuous at the point (x, α) = (0, 0) and the function φ(α) has a discontinuity at α = 0, because φ(α) approaches ±π/2 as α → 0±.
If we now differentiate φ(α) with respect to α under the integral sign, we get
which is, of course, true for all values of α except α = 0.
Example 2
An example with variable limits:
Example 3
The principle of differentiating under the integral sign may sometimes be used to evaluate a definite integral. Consider:
Now,
Now as x varies from 0 to π we have:
Hence,
Therefore,
Integrating both sides with respect to α, we get:
C1 = 0 follows from evaluating φ(0):
To determine C2 in the same manner, we should need to substitute in a value of α greater than 1 in φ(α). This is somewhat inconvenient. Instead, we substitute α = 1/β, where |β| < 1. Then,
Therefore, C2 = 0.
The definition of φ(α) is now complete:
The foregoing discussion, of course, does not apply when α = ±1, since the conditions for differentiability are not met.
Example 4
First we calculate:
The limits of integration being independent of a, But we have:
On the other hand:
Equating these two relations then yields
In a similar fashion, pursuing
Adding the two results then produces
Note that if we define
it can easily be shown that
Given I1, this partial-derivative-based recursive relation (i.e., integral reduction formula) can then be utilized to compute all of the values of In for n > 1.
Example 5
Here, we consider the integral
Differentiating under the integral with respect to α, we have
Therefore:
However, by definition, I(π/2) = 0, hence: C = π2/8 and
Example 6
Here, we consider the integral
We introduce a new variable φ and rewrite the integral as
Note that for φ = 1 we recover the original integral, now we proceed:
Integrating both sides of
Therefore, f(1) = f(0) however we note that from the equation for f(φ), we have f(0) = 2π, therefore the value of f at φ = 1, which is the same as the integral we set out to compute is 2π.
Other problems to solve
There are innumerable other integrals that can be solved "quickly" using the technique of differentiation under the integral sign. For example, consider the following cases where one adds a new variable α:
The first integral, the Dirichlet integral, is absolutely convergent for positive α but only conditionally convergent when α is 0. Therefore, differentiation under the integral sign is easy to justify when α > 0, but proving that the resulting formula remains valid when α is 0 requires some careful work.
Applications to series
Differentiating under the integral can also be applied to differentiating under summation, interpreting summation as counting measure. An example of an application is the fact that power series are differentiable in their radius of convergence.
In popular culture
Differentiation under the integral sign is mentioned in the late physicist Richard Feynman's best-selling memoir Surely You're Joking, Mr. Feynman! (in the chapter "A Different Box of Tools"), where he mentions learning it from an old text, Advanced Calculus (1926), by Frederick S. Woods (who was a professor of mathematics in the Massachusetts Institute of Technology) while in high school. The technique was not often taught when Feynman later received his formal education in calculus and, knowing it, Feynman was able to use the technique to solve some otherwise difficult integration problems upon his arrival at graduate school at Princeton University. The direct quotation from Surely You're Joking, Mr. Feynman! regarding the method of differentiation under the integral sign is as follows: