10.2: Iterated integrals and Fubini theorem
- Last updated
- Jan 15, 2020
- Save as PDF
- Page ID
- 32334
( \newcommand{\kernel}{\mathrm{null}\,}\)
Iterated integrals and Fubini theorem
The Riemann integral in several variables is hard to compute from the definition. For one-dimensional Riemann integral we have the fundamental theorem of calculus (FIXME) and we can compute many integrals without having to appeal to the definition of the integral. We will rewrite a a Riemann integral in several variables into several one dimensional Riemann integrals by iterating. However, if f:[0,1]2→R is a Riemann integrable function, it is not immediately clear if the three expressions ∫[0,1]2f,∫10∫10f(x,y)dxdy,and∫10∫10f(x,y)dydx are equal, or if the last two are even well-defined.
Define f(x,y):={1 if x=\nicefrac12 and y∈Q,0 otherwise. Then f is Riemann integrable on R:=[0,1]2 and ∫Rf=0. Furthermore, ∫10∫10f(x,y)dxdy=0. However ∫10f(\nicefrac12,y)dy does not exist, so we cannot even write ∫10∫10f(x,y)dydx.
Proof: Let us start with integrability of f. We simply take the partition of [0,1]2 where the partition in the x direction is {0,\nicefrac12−ϵ,\nicefrac12+ϵ,1} and in the y direction {0,1}. The subrectangles of the partition are R1:=[0,\nicefrac12−ϵ]×[0,1],R2:=[\nicefrac12−ϵ,\nicefrac12+ϵ]×[0,1],R3:=[\nicefrac12+ϵ,1]×[0,1]. We have m1=M1=0, m2=0, M2=1, and m3=M3=0. Therefore, L(P,f)=m1(\nicefrac12−ϵ)⋅1+m2(2ϵ)⋅1+m3(\nicefrac12−ϵ)⋅1=0, and U(P,f)=M1(\nicefrac12−ϵ)⋅1+M2(2ϵ)⋅1+M3(\nicefrac12−ϵ)⋅1=2ϵ. The upper and lower sum are arbitrarily close and the lower sum is always zero, so the function is integrable and ∫Rf=0.
For any y, the function that takes x to f(x,y) is zero except perhaps at a single point x=\nicefrac12. We know that such a function is integrable and ∫10f(x,y)dx=0. Therefore, ∫10∫10f(x,y)dxdy=0.
However if x=\nicefrac12, the function that takes y to f(\nicefrac12,y) is the nonintegrable function that is 1 on the rationals and 0 on the irrationals. See .
We will solve this problem of undefined inside integrals by using the upper and lower integrals, which are always defined.
We split Rn+m into two parts. That is, we write the coordinates on Rn+m=Rn×Rm as (x,y) where x∈Rn and y∈Rm. For a function f(x,y) we write fx(y):=f(x,y) when x is fixed and we wish to speak of the function in terms of y. We write fy(x):=f(x,y) when y is fixed and we wish to speak of the function in terms of x.
[mv:fubinivA] Let R×S⊂Rn×Rm be a closed rectangle and f:R×S→R be integrable. The functions g:R→R and h:R→R defined by g(x):=∫S_fxandh(x):=¯∫Sfx are integrable over R and ∫Rg=∫Rh=∫R×Sf.
In other words ∫R×Sf=∫R(∫S_f(x,y)dy)dx=∫R(¯∫Sf(x,y)dy)dx. If it turns out that fx is integrable for all x, for example when f is continuous, then we obtain the more familiar ∫R×Sf=∫R∫Sf(x,y)dydx.
Let P be a partition of R and P′ be a partition of S. Let R1,R2,…,RN be the subrectangles of P and R′1,R′2,…,R′K be the subrectangles of P′. Then P×P′ is the partition whose subrectangles are Rj×R′k for all 1≤j≤N and all 1≤k≤K.
Let mj,k:=inf(x,y)∈Rj×R′kf(x,y). We notice that V(Rj×R′k)=V(Rj)V(R′k) and hence L(P×P′,f)=N∑j=1K∑k=1mj,kV(Rj×R′k)=N∑j=1(K∑k=1mj,kV(R′k))V(Rj). If we let mk(x):=infy∈R′kf(x,y)=infy∈R′kfx(y), then of course if x∈Rj then mj,k≤mk(x). Therefore K∑k=1mj,kV(R′k)≤K∑k=1mk(x)V(R′k)=L(P′,fx)≤∫S_fx=g(x). As we have the inequality for all x∈Rj we have K∑k=1mj,kV(R′k)≤infx∈Rjg(x). We thus obtain L(P×P′,f)≤N∑j=1(infx∈Rjg(x))V(Rj)=L(P,g).
Similarly U(P×P′,f)≥U(P,h), and the proof of this inequality is left as an exercise.
Putting this together we have L(P×P′,f)≤L(P,g)≤U(P,g)≤U(P,h)≤U(P×P′,f). And since f is integrable, it must be that g is integrable as U(P,g)−L(P,g)≤U(P×P′,f)−L(P×P′,f), and we can make the right hand side arbitrarily small. Furthermore as L(P×P′,f)≤L(P,g)≤U(P×P′,f) we must have that ∫Rg=∫R×Sf.
Similarly we have L(P×P′,f)≤L(P,g)≤L(P,h)≤U(P,h)≤U(P×P′,f), and hence U(P,h)−L(P,h)≤U(P×P′,f)−L(P×P′,f). So if f is integrable so is h, and as L(P×P′,f)≤L(P,h)≤U(P×P′,f) we must have that ∫Rh=∫R×Sf.
We can also do the iterated integration in opposite order. The proof of this version is almost identical to version A, and we leave it as an exercise to the reader.
[mv:fubinivB] Let R×S⊂Rn×Rm be a closed rectangle and f:R×S→R be integrable. The functions g:S→R and h:S→R defined by g(x):=∫S_fyandh(x):=¯∫Sfx are integrable over S and ∫Sg=∫Sh=∫R×Sf.
That is we also have ∫R×Sf=∫S(∫R_f(x,y)dx)dy=∫S(¯∫Rf(x,y)dx)dy.
Next suppose that fx and fy are integrable for simplicity. For example, suppose that f is continuous. Then by putting the two versions together we obtain the familiar ∫R×Sf=∫R∫Sf(x,y)dydx=∫S∫Rf(x,y)dxdy.
Often the Fubini theorem is stated in two dimensions for a continuous function f:R→R on a rectangle R=[a,b]×[c,d]. Then the Fubini theorem states that ∫Rf=∫ba∫dcf(x,y)dydx∫dc∫baf(x,y)dxdy. And the Fubini theorem is commonly thought of as the theorem that allows us to swap the order of iterated integrals.
We can also obtain the Repeatedly applying Fubini theorem gets us the following corollary: Let R:=[a1,b1]×[a2,b2]×⋯×[an,bn]⊂Rn be a closed rectangle and let f:R→R be continuous. Then ∫Rf=∫b1a1∫b2a2⋯∫bnanf(x1,x2,…,xn)dxndxn−1⋯dx1.
Clearly we can also switch the order of integration to any order we please. We can also relax the continuity requirement by making sure that all the intermediate functions are integrable, or by using upper or lower integrals.
Exercises
Prove the assertion U(P×P′,f)≥U(P,h) from the proof of .
Prove .
FIXME