Sameer Kailasa,
Travis Mcknight,
Nihar Mahajan,
and
Samir Khan
Rishabh Deep Singh
A Former Brilliant Member
Jimin Khim
contributed
Differentiation under the integral sign is an operation in calculus used to evaluate certain integrals. Under fairly loose conditions on the function being integrated, differentiation under the integral sign allows one to interchange the order of integration and differentiation. In its simplest form, called the Leibniz integral rule, differentiation under the integral sign makes the following equation valid under light assumptions on f: dxd∫abf(x,t)dt=∫ab∂x∂f(x,t)dt.
Many integrals that would otherwise be impossible or require significantly more complex methods can be solved by this approach.
The most general form of differentiation under the integral sign states that: if f(x,t) is a continuous and continuously differentiable (i.e., partial derivatives exist and are themselves continuous) function and the limits of integration a(x) and b(x) are continuous and continuously differentiable functions of x, then dxd∫a(x)b(x)f(x,t)dt=f(x,b(x))⋅b′(x)−f(x,a(x))⋅a′(x)+∫a(x)b(x)∂x∂f(x,t)dt.
In the case where a(x) and b(x) are constant functions, this formula reduces to the simpler form dxd∫abf(x,t)dt=∫ab∂x∂f(x,t)dt. This simpler statement is known as Leibniz integral rule.
Examples
Generally, one uses differentiation under the integral sign to evaluate integrals that can be thought of as belonging to some family of integrals parameterized by a real variable. To better understand this statement, consider the following example:
Compute the definite integral ∫01lntt3−1dt.
This integral appears resistant to standard integration techniques such as integration by parts, u-substitution, etc. We would like to use differentiation under the integral sign to compute it.
How can we choose a function to differentiate under the integral sign? The appearance of lnt in the denominator of the integrand is quite unwelcome, and we would like to get rid of it. Thankfully, we know dxdtx=txlnt, so differentiating the numerator with respect to the exponent seems to be what we'd like to do.
Accordingly, we define a function g(x)=∫01lnttx−1dt. In this notation, the integral we wish to evaluate is g(3). Observe that the given integral has been recast as member of a family of definite integrals g(x) indexed by the variable x.
By Leibniz integral rule, we compute g′(x)=∫01∂x∂lnttx−1dt=∫01lnttxlntdt=x+1tx+101=x+11. It follows that g(x)=ln∣x+1∣+C for some constant C.
To determine C, note that g(0)=0, so 0=g(0)=ln1+C=C. Hence, g(x)=ln∣x+1∣ for all x such that the integral exists. In particular, g(3)=ln4=2ln2. □
In the example, part of the integrand was replaced with a variable and the resultant function was studied using differentiation under the integral sign. This is a good illustration of the problem-solving principle: if stuck on a specific problem, try solving a more general problem.
505149!505051!515150!495150!
Compute the definite integral ∫01(xlnx)50dx.
The correct answer is: 515150!
Another example illustrates the power of this technique in its general form, as one may use it to compute the Gaussian integral.
Compute the definite integral ∫0∞e−x2/2dx.
Define a function g(t)=(∫0te−x2/2dx)2. Our goal is to compute g(∞) and then take its square root.
Differentiating with respect to t gives g′(t)=2⋅(∫0te−x2/2dx)⋅(dtd∫0te−x2/2dx)=2e−t2/2∫0te−x2/2dx=2∫0te−(t2+x2)/2dx.
Make the change of variables u=x/t, so that the integral transforms to g′(t)=2∫01te−(1+u2)t2/2du. Now, the integrand has a closed-form antiderivative with respect to t: g′(t)=−2∫01∂t∂1+u2e−(1+u2)t2/2du=−2dtd∫011+u2e−(1+u2)t2/2du.
Set h(t)=∫011+x2e−(1+x2)t2/2dx. Then by the above calculation, g′(t)=−2h′(t), so g(t)=−2h(t)+C. To determine C, take t→0 in the equation; since g(0)=0 and h(0)=∫011+x21dx=tan−1x01=4π, it follows that 0=−π/2+C⟹C=π/2.
Finally, taking t→∞, we conclude g(∞)=−2h(∞)+π/2=π/2. Thus, ∫0∞e−x2/2dx=2π.□
∂a∂J=π2exp(a2+1−b2)∫−∞∞xexp[−(a2+1)(x+a2+1ab)2]dx=π2exp(a2+1−b2)∫−∞∞(v−a2+1ab)exp[−(a2+1)v2]dv[v=x+ab/(a2+1)]=π2(−a2+1ab)exp(a2+1−b2)∫−∞∞exp[−(a2+1)v2]dv[ using oddness of ve−(a2+1)v2]=π2(−a2+1ab)exp(a2+1−b2)a2+1π[(i)]=(a2+1)3/2−2abexp(a2+1−b2)
One should also note counterexamples, for which this technique does not work. For instance, suppose one attempts to evaluate ∫0∞xsinxdx by making the variable change u=x/t for some t=0. Then, ∫0∞xsinxdx=∫0∞usintudu=g(t). Differentiating under the integral sign yields 0=g′(t)=∫0∞costudu, which is absurd. The problem is that the function f(x,t)=sintx/x is not continuously differentiable (consider ∂f/∂t when x=0), which was required in the assumptions set forth above.
4π2ππ
0
Compute the definite integral: ∫02πecosθcos(sinθ)dθ.
Hint: Consider the function f(t)=∫02πetcosθcos(tsinθ)dθ