# differentiation under the integral sign

The technique of differentiation  under the integral sign concerns the interchange of the operation  of differentiation with respect to a parameter with the operation of integration over some other variable:

 $\frac{\partial}{\partial x}\int_{\Omega}f(x,\omega)\,d\omega=\int_{\Omega}% \frac{\partial}{\partial x}f(x,\omega)\,d\omega\,.$

The theorems below give some sufficient conditions, in increasing generality and sophistication, for which the swap of differentiation and integration is legal.

## Formal statements

###### Theorem 1 (Elementary Calculus version).

Let $f\colon[a,b]\times Y\to\mathbb{R}$ be a function  , with $[a,b]$ being a closed interval   , and $Y$ being a compact subset11Assumed to be Jordan-measurable if the Riemann integral is to be used. of $\mathbb{R}^{n}$. Suppose that both $f(x,y)$ and $\partial f(x,y)/\partial x$ are continuous   in the variables $x$ and $y$ jointly. Then $\int_{Y}f(x.y)\,dy$ exists as a continuously differentiable function of $x$ on $[a,b]$, with derivative  $\frac{d}{dx}\int_{Y}f(x,y)\,dy=\int_{Y}\frac{\partial}{\partial x}f(x,y)\,dy\,.$

Theorem 1 is the formulation of integration under the integral sign that usually appears in elementary Calculus texts. Unfortunately, its restriction  that $Y$ must be compact can be quite severe for applications: e.g. integrals over $(-\infty,+\infty)$ are not included. Theorem 2 below addresses this problem and others:

###### Theorem 2 (Measure theory version).

Let $X$ be an open subset of $\mathbb{R}$, and $\Omega$ be a measure space  . Suppose $f\colon X\times\Omega\to\mathbb{R}$ satisfies the following conditions:

1. 1.

$f(x,\omega)$ is a Lebesgue-integrable function of $\omega$ for each $x\in X$.

2. 2.

For almost all $\omega\in\Omega$, the derivative $\partial f(x,\omega)/\partial x$ exists for all $x\in X$.

3. 3.

There is an integrable function $\Theta\colon\Omega\to\mathbb{R}$ such that $\left\lvert\partial f(x,\omega)/\partial x\right\rvert\leq\Theta(\omega)$ for all $x\in X$.

Then for all $x\in X$,

 $\frac{d}{dx}\int_{\Omega}f(x,\omega)\,d\omega=\int_{\Omega}\frac{\partial}{% \partial x}f(x,\omega)\,d\omega\,.$

Theorem 2 suffices for many applications, but using the Fundamental Theorem of Calculus for Lebesgue integration, we can weaken the hypotheses for differentiating under the integral sign even further:

###### Theorem 3.

Let $X$ be an open subset of $\mathbb{R}$, and $\Omega$ be a measure space. Suppose that a function $f\colon X\times\Omega\to\mathbb{R}$ satisfies the following conditions:

1. 1.

$f(x,\omega)$$x$ and $\omega$ jointly, and is integrable over $\omega$, for almost all $x\in X$ held fixed.

2. 2.

For almost all $\omega\in\Omega$, $f(x,\omega)$$x$. (This guarantees that $\partial f(x,\omega)/\partial x$ exists almost everywhere.)

3. 3.

$\partial f/\partial x$ is “locally integrable” — that is, for all compact intervals $[a,b]$$X$:

 $\int_{a}^{b}\int_{\Omega}\left\lvert\frac{\partial}{\partial x}f(x,\omega)% \right\rvert\,d\omega\,dx<\infty\,.$

Then $\int_{\Omega}f(x,\omega)\,d\omega$ is an absolutely continuous function of $x$, and for almost every $x\in X$, its derivative exists and is given by

 $\frac{d}{dx}\int_{\Omega}f(x,\omega)\,d\omega=\int_{\Omega}\frac{\partial}{% \partial x}f(x,\omega)\,d\omega\,.$

If the Kurzweil-Henstock integral — which has a stronger Fundamental Theorem of Calculus  (http://planetmath.org/FundamentalTheoremOfCalculusForKurzweilHenstockIntegral) — is used in place of the Lebesgue integral, Theorem 3 can be generalized to a formulation that provides also the necessary conditions for differentiation under the integral sign. See [Talvila] for the full details.

Yet this is not the end of the story. There are some applications in which the integrand is too “irregular”, or the integral of the differentiated integrand becomes divergent, and neither Theorem 2 or Theorem 3 would apply. However, if we use generalized functions (all of which can be differentiated at will), then we can extend the technique of differentiation under the integral sign further, and make sense of any “irregular” integrals that may result:

###### Theorem 4 (Distribution theory version).

Let $X$ be an open set in $\mathbb{R}^{m}$, and $\Omega$ be a measure space. Given $f(x,\omega)$, for each $\omega\in\Omega$, a generalized function of $x\in X$ (in the sense of Schwartz’s theory of distributions  ), define:

 $\langle{\int_{\Omega}f(\cdot,\omega)\,d\omega},{\phi}\rangle:=\int_{\Omega}% \langle{f(\cdot,\omega)},{\phi}\rangle\,d\omega\,,\quad\phi\in\mathcal{D}(X)\,.$

Assume the above integral is well-defined and gives a distribution. Then

 $\frac{\partial}{\partial x_{i}}\,\int_{\Omega}f(x,\omega)\,d\omega=\int_{% \Omega}\frac{\partial}{\partial x_{i}}f(x,\omega)\,d\omega\,.$

where $\partial/\partial x_{i}$ refers to the generalized derivative of generalized functions on both sides of the equation.

For an absolutely continuous function, the generalized derivative coincides with the ordinary derivative, so Theorem 4 indeed generalizes Theorem 3. On the other hand, there are cases where the integrand is not absolutely continuous  — and so has a generalized derivative different from the ordinary derivative — yet its integral has a classical derivative that is represented by the final equation of Theorem 4. For instance, the integrand may involve a step function  , and its derivative would thus involve a Dirac delta distribution, that when integrated, yields an ordinary locally-integrable function (of the parameter $x$).

Theorem 4 is not so well-publicized, but appears, for example, in [Jones], and hinted at in a comment in [Schwartz].

## Other variations

There are other frequently-used variations of the theorems above.

Moving domains of integration. Not only can the integrand vary with the parameter, we can consider domains of integration, subsets of $\mathbb{R}^{n}$, that vary with the parameter.

In the one-dimensional case, for continuously differentiable functions $\alpha\colon[a,b]\to\mathbb{R}$, $\beta\colon[a,b]\to\mathbb{R}$, and $f\colon[a,b]\times\mathbb{R}\to\mathbb{R}$, we have:

 $\frac{d}{dx}\int_{\alpha(x)}^{\beta(x)}f(x,y)\,dy=\int_{\alpha(x)}^{\beta(x)}% \frac{\partial f(x,y)}{\partial x}\,dy+\frac{d\beta(x)}{dx}f(x,\beta(x))-\frac% {d\alpha(x)}{dx}f(x,\alpha(x))\,.$

This result can be extrapolated from Theorem 1, with the help of the Fundamental Theorem of Calculus and the multi-variate chain rule  (http://planetmath.org/ChainRuleSeveralVariables).

Generalizations  to varying smooth surfaces or volumes — or, more generally, $k$-dimensional differentiable manifolds in $\mathbb{R}^{n}$ — can be obtained by using integrals of differential forms  on chains (http://planetmath.org/NChain), and Stokes’ Theorem. Details can be found in [Flanders].

Different types of integrals. The differentiation can also be taken under integrals other than of the standard Riemann type, such as the line integrals  and surface integrals of vector calculus, or complex contour integrals. (Actually, these kinds of integrals can be re-formulated as Lebesgue integrals, so Theorem 2 applies to them.)

Complex variables. Other applications require differentiating holomorphic functions  with respect to a complex variable, and Theorem 2 generalizes directly to this situation, without requiring differentiation with respect to real variables as an intermediary.

## References

• Flanders Harley Flanders. “Differentiation under the Integral Sign”. American Mathematical Monthly, vol. 80 (June-July 1973), p. 615-627.
• Folland Gerald B. Folland. Real Analysis: Modern Techniques and Their Applications, second ed. Wiley-Interscience, 1999.
• Jones D. S. Jones. The Theory of Generalized Functions, second ed. Cambridge University Press, 1982.
• Munkres James R. Munkres. Analysis on Manifolds. Westview Press, 1991.
• Schwartz Laurent Schwartz. Théorie des Distributions, vol. I. Hermann, 1957.
• Talvila Erik Talvila. “http://www.math.ualberta.ca/ etalvila/papers/difffinal.pdfNecessary and Sufficient Conditions for Differentiating Under the Integral Sign”. American Mathematical Monthly, vol. 108 (June-July 2001), p. 544-548.

The author of this entry has also written an exposition, “http://gold-saucer.afraid.org/math/diff-int/diff-int.pdfDifferentiation under the Integral Sign using Weak Derivatives”, containing a proof of Theorem 4 along with detailed computational examples.

 Title differentiation under the integral sign Canonical name DifferentiationUnderTheIntegralSign Date of creation 2013-03-22 16:26:37 Last modified on 2013-03-22 16:26:37 Owner stevecheng (10074) Last modified by stevecheng (10074) Numerical id 16 Author stevecheng (10074) Entry type Topic Classification msc 46F10 Classification msc 28A25 Classification msc 26B15 Classification msc 26A24 Synonym Leibniz’s rule Related topic DerivativeOfRiemannIntegral Related topic IntegrationUnderIntegralSign Related topic HolomorphicFunctionAssociatedWithContinuousFunction