DIFFERENTIATING UNDER THE INTEGRAL SIGN

2y ago
167 Views
2 Downloads
359.55 KB
25 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Javier Atchley
Transcription

DIFFERENTIATING UNDER THE INTEGRAL SIGNKEITH CONRADI had learned to do integrals by various methods shown in a book that my highschool physics teacher Mr. Bader had given me. [It] showed how to differentiateparameters under the integral sign – it’s a certain operation. It turns out that’snot taught very much in the universities; they don’t emphasize it. But I caught onhow to use that method, and I used that one damn tool again and again. [If] guysat MIT or Princeton had trouble doing a certain integral, [then] I come along andtry differentiating under the integral sign, and often it worked. So I got a greatreputation for doing integrals, only because my box of tools was different fromeverybody else’s, and they had tried all their tools on it before giving the problemto me.1Richard Feynman [5, pp. 71–72]21. IntroductionThe method of differentiation under the integral sign, due to Leibniz in 1697 [4], concerns integralsR1depending on a parameter, such as 0 x2 e tx dx. Here t is the extra parameter. (Since x is thevariable of integration, x is not a parameter.) In general, we might write such an integral asZ b(1.1)f (x, t) dx,awhere f (x, t) is a function of two variables like f (x, t) x2 e tx .Z 1Z 1Example 1.1. Let f (x, t) (2x t3 )2 . Thenf (x, t) dx (2x t3 )2 dx. An anti-derivative00of (2x t3 )2 with respect to x is 61 (2x t3 )3 , soZ 1x 1(2x t3 )3(2 t3 )3 t94(2x t3 )2 dx 2t3 t6 .6630x 0This answer is a function of t, which makes sense since the integrand depends on t. We integrateover x and are left with something that depends only on t, not x.RbAn integral like a f (x, t) dx is a function of t, so we can ask about its t-derivative, assumingthat f (x, t) is nicely behaved. The rule, called differentiation under the integral sign, is that thet-derivative of the integral of f (x, t) is the integral of the t-derivative of f (x, t):ZZ bd b f (x, t) dx f (x, t) dx.(1.2)dt aa t1See 2/09/do-biology-students-need-calculus/ fora similar story with integration by parts in the first footnote.2Just before this quote, Feynman wrote “One thing I never did learn was contour integration.” Perhaps he meantthat he never felt he learned it well, since he did know it. See [6, Lect. 14, 15, 17, 19], [7, p. 92], and [8, pp. 47–49].A challenge he gave in [5, p. 176] suggests he didn’t like contour integration.1

2KEITH CONRADIf you are used to thinking mostly about functions with one variable, not two, keep in mind that(1.2) involves integrals and derivatives with respect to separate variables: integration with respectto x and differentiation with respect to t.R1Example 1.2. We saw in Example 1.1 that 0 (2x t3 )2 dx 4/3 2t3 t6 , whose t-derivative is6t2 6t5 . According to (1.2), we can also compute the t-derivative of the integral like this:Z 1Z d 1(2x t3 )2 dx (2x t3 )2 dxdt 0 t0Z 1 2(2x t3 )(3t2 ) dx0Z 1(12t2 x 6t5 ) dx 0x 1 6t2 x2 6t5 xx 025 6t 6t .The answer agrees with our first, more direct, calculation.We will apply (1.2) to many examples of integrals, in Section 12 we will discuss the justificationof this method in our examples, and then we’ll give some more examples.2. Euler’s factorial integral in a new lightFor integers n 0, Euler’s integral formula for n! isZ (2.1)xn e x dx n!,0which can be obtained by repeated integration by parts starting from the formulaZ e x dx 1(2.2)0when n 0. Now we are going to derive Euler’s formula in another way, by repeated differentiationafter introducing a parameter t into (2.2).For t 0, let x tu. Then dx t du and (2.2) becomesZ te tu du 1.0Dividing by t and writing u as x (why is this not a problem?), we getZ 1(2.3)e tx dx .t0This is a parametric form of (2.2), where both sides are now functions of t. We need t 0 in orderthat e tx is integrable over the region x 0.Now we bring in differentiation under the integral sign. Differentiate both sides of (2.3) withrespect to t, using (1.2) to treat the left side. We obtainZ 1 xe tx dx 2 ,t0

DIFFERENTIATING UNDER THE INTEGRAL SIGN3so Z(2.4)xe tx dx 01.t2Differentiate both sides of (2.4) with respect to t, again using (1.2) to handle the left side. We getZ 2 x2 e tx dx 3 .t0Taking out the sign on both sides, Z(2.5)x2 e tx dx 02.t3If we continue to differentiate each new equation with respect to t a few more times, we obtainZ 6x3 e tx dx 4 ,t0Z 24x4 e tx dx 5 ,t0andZ 120x5 e tx dx 6 .t0Do you see the pattern? It isZ n!(2.6)xn e tx dx n 1 .t0We have used the presence of the extra variable t to get these equations by repeatedly applyingd/dt. Now specialize t to 1 in (2.6). We obtainZ xn e x dx n!,0which is our old friend (2.1). Voilá!The idea that made this work is introducing a parameter t, using calculus on t, and then settingt to a particular value so it disappears from the final formula. In other words, sometimes to solvea problem it is useful to solve a more general problem. Compare (2.1) to (2.6).3. A damped sine integralWe are going to use differentiation under the integral sign to proveZ πsin xdx arctan te txx20for t 0.Call this integral F (t) and set f (x, t) e tx (sin x)/x, so ( / t)f (x, t) e tx sin x. ThenZ 0F (t) e tx (sin x) dx.0The integrande tx sin x,as a function of x, can be integrated by parts:Z(a sin x cos x) axeax sin x dx e .1 a2

4KEITH CONRADApplying this with a t and turning the indefinite integral into a definite integral,Z (t sin x cos x) tx x e tx (sin x) dx F 0 (t) e.1 t20x 0As x , t sin x cos x oscillates a lot, but in a bounded way (since sin x and cos x are boundedfunctions), while the term e tx decays exponentially to 0 since t 0. So the value at x is 0.ThereforeZ 10e tx (sin x) dx F (t) .1 t20We know an explicit antiderivative of 1/(1 t2 ), namely arctan t. Since F (t) has the samet-derivative as arctan t, they differ by a constant: for some number C,Z sin x(3.1)e txdx arctan t C for t 0.x0We’ve computed the integral, up to an additive constant, without finding an antiderivative ofe tx (sin x)/x.To compute C in (3.1), let t on both sides.R Since (sin x)/x 1, the absolute value ofthe integral on the left is bounded from above by 0 e tx dx 1/t, so the integral on the left in(3.1) tends to 0 as t . Since arctan t π/2 as t , equation (3.1) as t becomes0 π2 C, so C π/2. Feeding this back into (3.1),Z sin xπe tx(3.2)dx arctan t for t 0.x20If we let t 0 in (3.2), this equation suggests thatZ sin xπ(3.3)dx ,x20which is true and it is important in signal processing and Fourier analysis. It is a delicate matter toderive (3.3) from (3.2) since the integral in (3.3) is not absolutely convergent. Details are providedin an appendix.4. The Gaussian integralThe improper integral formulaZ (4.1)e x2 /2dx 2π 2is fundamental to probability theory and Fourier analysis. The function 12π e x /2 is called aGaussian, and (4.1) says the integral of the Gaussian over the whole real line is 1.The physicist Lord Kelvin (after whom the Kelvin temperature scale is named) once wrote (4.1)on the board in a class and said “A mathematician is one to whom that [pointing at the formula] isas obvious as twice two makes four is to you.” We will prove (4.1) using differentiation under theintegral sign. The method will not make (4.1) as obvious as 2 · 2 4. If you take further coursesyou may learn more natural derivations of (4.1) so that the result really does become obvious. Fornow, just try to follow the argument here step-by-step.We are going to aim not at (4.1), but at an equivalent formula over the range x 0: rZ 2ππ x2 /2(4.2)dx e .220

DIFFERENTIATING UNDER THE INTEGRAL SIGN5Call the integral on the left I.For t R, set 22e t (1 x )/2F (t) dx.1 x20R Then F (0) 0 dx/(1 x2 ) π/2 and F ( ) 0. Differentiating under the integral sign,Z Z 2222e (tx) /2 dx. te t (1 x )/2 dx te t /2F 0 (t) Z00Make the substitution y tx, with dy t dx, soZ 220 t2 /2e y /2 dy Ie t /2 .F (t) e0For b 0, integrate both sides from 0 to b and use the Fundamental Theorem of Calculus:Z bZ bZ b20 t2 /2F (t) dt Iedt F (b) F (0) Ie t /2 dt.000Letting b ,rπππ220 I I I .222I learned this from Michael Rozman [12], who modified an idea on a Math Stackexchange question[3], and in a slightly less elegant form it appeared much earlier in [15].5. Higher moments of the GaussianFor every integer n 0 we want to compute a formula forZ 2(5.1)xn e x /2 dx. Rxn f (x) dx(Integrals of the typefor n 0, 1, 2, . . . are called the moments of f (x), so (5.1) is the2n-th moment of the Gaussian.) When n is odd, (5.1) vanishes since xn e x /2 is an odd function.What if n 0, 2, 4, . . . is even?The first case, n 0, is the Gaussian integral (4.1):Z 2(5.2)e x /2 dx 2π. To get formulas for (5.1) when n 6 0, we follow the same strategy as our treatment of the factorial2integral in Section 2: stick a t into the exponent of e x /2 and then differentiate repeatedly withrespect to t. For t 0, replacing x with tx in (5.2) gives Z 2π tx2 /2(5.3)edx .t Differentiate both sides of (5.3) with respect to t, using differentiation under the integral sign onthe left: Z x2 tx2 /22π edx 3/2 ,22t so Z 2π2 tx2 /2(5.4)x edx 3/2 .t

6KEITH CONRADDifferentiate both sides of (5.4) with respect to t. After removing a common factor of 1/2 onboth sides, we get Z 3 2π4 tx2 /2(5.5)x edx 5/2 .t Differentiating both sides of (5.5) with respect to t a few more times, we get Z 3 · 5 2π6 tx2 /2x edx ,t7/2 Z 3 · 5 · 7 2π8 tx2 /2x edx ,t9/2 and Z 3 · 5 · 7 · 9 2π10 tx2 /2x edx .t11/2 Quite generally, when n is evenZ 1 · 3 · 5 · · · (n 1) 2xn e tx /2 dx 2π,t(n 1)/2 where the numerator is the product of the positive odd integers from 1 to n 1 (understood to bethe empty product 1 when n 0).In particular, taking t 1 we have computed (5.1):Z 2xn e x /2 dx 1 · 3 · 5 · · · (n 1) 2π. R As an application of (5.4), we now compute ( 12 )! : 0 x1/2 e x dx, where the notation ( 21 )! andits definition are inspired by Euler’sR integral formula (2.1) for n! when n is a nonnegative integer. Using the substitution u x1/2 in 0 x1/2 e x dx, we have Z 1! x1/2 e x dx20Z 2 ue u (2u) du0Z 2 2u2 e u du0Z 2 u2 e u du 2πby (5.4) at t 2 3/22 π .26. A cosine transform of the GaussianWe are going to computeZF (t) 0 cos(tx)e x2 /2dx

DIFFERENTIATING UNDER THE INTEGRAL SIGN7by looking at its t-derivative:F 0 (t) (6.1)Z x sin(tx)e x2 /2dx.0This is good from the viewpoint of integration by parts since xe xSo we apply integration by parts to (6.1):2 /2is the derivative of e x2 /2.2dv xe x dxu sin(tx),andv e xdu t cos(tx) dx,2 /2.ThenZ0F (t) u dvZ uv 0 0sin(tx)ex2 /2sin(tx)ex2 /2 As x , ex2 /2 0x v duZ t cos(tx)e x2 /2dx0x 0x tF (t).x 0blows up while sin(tx) stays bounded, so sin(tx)/ex2 /2goes to 0. ThereforeF 0 (t) tF (t).2 /2We know the solutions to this differential equation: constant multiples of e tZ 22cos(tx)e x /2 dx Ce t /2. So0pR 2for some constant C. To find C, set t 0. The left side is 0 e x /2 dx, which is π/2 by (4.2).pThe right side is C. Thus C π/2, so we are done: for all real t,rZ π t2 /2 x2 /2cos(tx)edx e.20R 2Remark 6.1. If we want to compute G(t) 0 sin(tx)e x /2 dx, with sin(tx) in place of cos(tx),then in place of F 0 (t) tF (t) we have G0 (t) 1 tG(t), and G(0) 0. From the differential equaRt 2R p22222tion, (et /2 G(t))0 et /2 , so G(t) e t /2 0 ex /2 dx. So while 0 cos(tx)e x /2 dx π2 e t /2 ,R 2the integral 0 sin(tx)e x /2 dx is impossible to express in terms of elementary functions.7. The Gaussian times a logarithmWe will computeZ 2(log x)e x dx.02Integrability at follows from rapid decay of e x at , and integrability near x 0 follows fromthe integrand there being nearly log x, which is integrable on [0, 1], so the integral makes sense.(This example was brought to my attention by Harald Helfgott.)

8KEITH CONRADR 2We already know 0 e x dx π/2, but how do we find the integral when a factor of log x is inserted into the integrand? Replacing x with x in the integral,Z Z1 log x x x2 e dx.(7.1)(log x)edx 4 0x0To compute this last integral, the key idea is that (d/dt)(xt ) xt log x, so we get a factor oflog x in an integral after differentiation under the integral sign if the integrand has an exponentialparameter: for t 1 setZ F (t) xt e x dx.0(This is integrable for x near 0 since for small x, xt e x xt , which is integrable near 0 sincet 1.) Differentiating both sides with respect to t,Z 0xt (log x)e x dx,F (t) 0so (7.1) tells us the number we are interested in is F 0 ( 1/2)/4.The function F (t) is well-known under a different name: for s 0, the Γ-function at s is definedbyZ Γ(s) xs 1 e x dx,0so Γ(s) F (s 1). Therefore Γ0 (s) F 0 (s 1), so F 0 ( 1/2)/4 Γ0 (1/2)/4. For the rest of thissection we work out a formula for Γ0 (1/2)/4 using properties of the Γ-function; there is no moredifferentiation under the integral sign.We need two standard identities for the Γ-function: 1(7.2)Γ(s 1) sΓ(s), Γ(s)Γ s 21 2s πΓ(2s).2R The first identity follows from integration by parts. Since Γ(1) 0 e x dx 1, the first identityimplies Γ(n) (n 1)! for every positive integer n. The second identity, called the duplicationformula, is subtle. For example, at s 1/2 it says Γ(1/2) π. A proof of the duplication formulacan be found in many complex analysis textbooks. (The integral defining Γ(s) makes sense not justfor real s 0, but also for complex s with Re(s) 0, and the Γ-function is usually regarded as afunction of a complex, rather than real, variable.)Differentiating the first identity in (7.2),Γ0 (s 1) sΓ0 (s) Γ(s),(7.3)so at s 1/2(7.4) 1 0 111 0 130 10 3 Γ Γ Γ π Γ 2 Γ π .Γ222222220Differentiating the second identity in (7.2), 11(7.5)Γ(s)Γ0 s Γ0 (s)Γ s 21 2s ( log 4) πΓ(2s) 21 2s π2Γ0 (2s).22Setting s 1 here and using Γ(1) Γ(2) 1, 30 30(7.6)Γ Γ (1)Γ ( log 2) π πΓ0 (2).22

DIFFERENTIATING UNDER THE INTEGRAL SIGN9 We compute Γ(3/2) by the first identity in (7.2) at s 1/2: Γ(3/2) (1/2)Γ(1/2) π/2 (wealready computed this at the end of Section 5). We compute Γ0 (2) by (7.3) at s 1: Γ0 (2) Γ0 (1) 1. Thus (7.6) says πΓ0 (1)0 3000 3Γ Γ (1) π log 2 π. ( log 2) π π(Γ (1) 1) Γ2222Feeding this formula for Γ0 (3/2) into (7.4), 0 1 π( 2 log 2 Γ0 (1)).Γ2It turns out that Γ0 (1) γ, where γ .577 is Euler’s constant. Thus, at last, Z Γ0 (1/2)π x2(log x)edx (2 log 2 γ).4408. Logs in the denominator, part IConsider the following integral over [0, 1], where t 0:Z 1 tx 1dx.0 log xSince 1/ log x 0 as x 0 , the integrand vanishes at x 0. As x 1 , (xt 1)/ log x t.Therefore when t is fixed the integrand is a continuous function of x on [0, 1], so the integral is notan improper integral.The t-derivative of this integral isZ 1Z 1 tx log x1dx xt dx ,log xt 100which we recognize as the t-derivative of log(t 1). ThereforeZ 1 tx 1dx log(t 1) C0 log xfor some C. To find C, let t 0 . On the right side, log(1 t) tends to 0. On the left side, theintegrand tends to 0: (xt 1)/ log x (et log x 1)/ log x t because ea 1 a when a 0.Therefore the integral on the left tends to 0 as t 0 . So C 0, which impliesZ 1 tx 1dx log(t 1)(8.1)0 log xfor all t 0, and it’s obviously also true for t 0. Another way to compute this integral is to writext et log x as a power series and integrate term by term, which is valid for 1 t 1.Under the change of variables x e y , (8.1) becomesZ dy(8.2)e y e (t 1)y log(t 1).y0

10KEITH CONRAD9. Logs in the denominator, part IIWe now consider the integralZ F (t) 2dxxt log xR for t 1. The integral converges by comparison with 2 dx/xt . We know that “at t 1” theintegral diverges to :Z bZ dxdx limb xlogxxlogx22b lim log log xb 2lim log log b log log 2b .So we expect that as t 1 , F (t) should blow up. But how does it blow up? By analyzing F 0 (t)and then integrating back, we are going to show F (t) behaves essentially like log(t 1) as t 1 .Using differentiation under the integral sign, for t 1 Z 10F (t) dx t xt log x2Z tx ( log x)dx log x2Z dx xt2x x t 1 t 1 x 221 t.1 tWe want to bound this derivative from above and below when t 1. Then we will integrate to getbounds on the size of F (t).For t 1, the difference 1 t is negative, so 21 t 1. Dividing both sides of this by 1 t, whichis negative, reverses the sense of the inequality and gives 121 t .1 t1 tThis is a lower bound on F 0 (t). To get an upper bound on F 0 (t), we want to use a lower boundon 21 t . Since ea a 1 for all a (the graph of y ex lies on or above its tangent line at x 0,which is y x 1),2x ex log 2 (log 2)x 1for all x. Taking x 1 t,(9.1)21 t (log 2)(1 t) 1.When t 1, 1 t is negative, so dividing (9.1) by 1 t reverses the sense of the inequality:121 t log 2 .1 t1 t

DIFFERENTIATING UNDER THE INTEGRAL SIGN11This is an upper bound on F 0 (t). Putting the upper and lower bounds on F 0 (t) together,11 F 0 (t) log 2 1 t1 t(9.2)for all t 1.We are concerned with the behavior of F (t) as t 1 . Let’s integrate (9.2) from a to 2, where1 a 2: Z 2 Z 2Z 21dt0log 2 F (t) dt dt. 1 taaa 1 tUsing the Fundamental Theorem of Calculus,2 log(t 1)2a2 ((log 2)t log(t 1)) F (t)a,asolog(a 1) F (2) F (a) (log 2)(2 a) log(a 1).Manipulating to get inequalities on F (a), we have(log 2)(a 2) log(a 1) F (2) F (a) log(a 1) F (2)Since a 2 1 for 1 a 2, (log 2)(a 2) is greater than log 2. This gives the bounds log(a 1) F (2) log 2 F (a) log(a 1) F (2)Writing a as t, we get log(t 1) F (2) log 2 F (t) log(t 1) F (2),so F (t) is a bounded distance from log(t 1) when 1 t 2. In particular, F (t) as t 1 .10. A trigonometric integral For positive numbers a and b, the arithmetic-geometric mean inequality says (a b)/2 ab(with equality if and only if a b). Let’s iterate the two types of means: for k 0, define {ak }and {bk } by a0 a, b0 b, andpak 1 bk 1ak , bk ak 1 bk 12for k 1.Example 10.1. If a0 1 and b0 2, then Table 2 gives ak and bk to 16 digits after the decimalpoint. Notice how rapidly they are getting close to each 067811865475 1.45647531512197021.4567910481542588 1.45679101393955491.4567910310469069 1.45679103104690681. Iteration of arithmetic and geometric means.

12KEITH CONRADGauss showed that for every choice of a and b, the sequences {ak } and {bk } converge very rapidlyto a common limit, which he called the arithmetic-geometric mean of x and y and wrote this asM (a, b). For example, M (1, 2) 1.456791031046906. Gauss discovered an integral formula for thereciprocal 1/M (a, b):Zdx12 π/2p. M (a, b)π 0a2 cos2 x b2 sin2 xThere is no elementary formula for this integral, but if we change the exponent 1/2 in the squareroot to a positive integer n then we can work out all the integralsZ2 π/2dxFn (a, b) 22π 0(a cos x b2 sin2 x)nusing repeated differentiation under the integral sign with respect to both a and b. (This example,with a different normalization and no context for where the integral comes from, is Example 4 onthe Wikipedia page for the Leibniz integral rule.)For n 1 we can do a direct integration:Zdx2 π/2F1 (a, b) π 0a2 cos2 x b2 sin2 xZ2 π/2sec2 x dxπ 0a2 b2 tan2 xZ2 du where u tan xπ 0 a2 b2 u2Z 2du 2πa 0 1 (b/a)2 u2Z dv2 where v (b/a)uπab 0 1 v 21 .abNow let’s differentiate F1 (a, b) with respect to a and with respect to b, both by its integraldefinition and by the formula we just compu

4. The Gaussian integral The improper integral formula (4.1) Z 1 1 e 2x 2 dx p 2ˇ is fundamental to probability theory and Fourier analysis. The function p1 2ˇ e 2x 2 is called a Gaussian, and (4.1) says the integral of the Gaussian over the whole real line is 1. The physicist Lord Kel

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

Chính Văn.- Còn đức Thế tôn thì tuệ giác cực kỳ trong sạch 8: hiện hành bất nhị 9, đạt đến vô tướng 10, đứng vào chỗ đứng của các đức Thế tôn 11, thể hiện tính bình đẳng của các Ngài, đến chỗ không còn chướng ngại 12, giáo pháp không thể khuynh đảo, tâm thức không bị cản trở, cái được

1. Merancang aturan integral tak tentu dari aturan turunan, 2. Menghitung integral tak tentu fungsi aljabar dan trigonometri, 3. Menjelaskan integral tentu sebagai luas daerah di bidang datar, 4. Menghitung integral tentu dengan menggunakan integral tak tentu, 5. Menghitung integral dengan rumus integral substitusi, 6.

Le genou de Lucy. Odile Jacob. 1999. Coppens Y. Pré-textes. L’homme préhistorique en morceaux. Eds Odile Jacob. 2011. Costentin J., Delaveau P. Café, thé, chocolat, les bons effets sur le cerveau et pour le corps. Editions Odile Jacob. 2010. Crawford M., Marsh D. The driving force : food in human evolution and the future.