MAT257Y1/Unit 9
Unit 9 · Analysis II

The Riemann Integral in $\mathbb{R}^n$

Integration over a box is the one-variable construction with rectangles replaced by boxes and nothing else changed. The two real questions are which functions are integrable — answered exactly, by a measure-zero condition — and how to compute the thing, answered by Fubini, which reduces an $n$-dimensional integral to $n$ one-dimensional ones.

By the end you can
Why it matters & where it comes from
Why it exists

Volume, mass, probability and flux are all integrals over regions rather than intervals. The construction has to come before any of the theorems about changing variables or integrating over surfaces, and its limits are what motivated the Lebesgue theory that follows in MAT357H1.

In the real world

Every numerical quadrature scheme approximates exactly these sums, and the convergence rate depends on the smoothness assumptions this unit isolates. Monte Carlo integration exists because the box-partition approach costs exponentially in $n$.

Story & open questions

Riemann's 1854 definition was already known to be too fragile by the 1890s: pointwise limits of integrable functions need not be integrable. Lebesgue's 1902 thesis fixed it, and the criterion in this unit — integrable exactly when the discontinuities have measure zero — is the precise statement of what Riemann's theory can and cannot see.

Building the integral

Definition Boxes, partitions, sums

A closed box is $Q=[a_1,b_1]\times\dots\times[a_n,b_n]$ with volume $v(Q)=\prod_i(b_i-a_i)$. A partition $P$ of $Q$ subdivides each edge, cutting $Q$ into finitely many subboxes $R$. For bounded $f:Q\to\mathbb{R}$ set

$L(f,P)=\sum_R\Big(\inf_Rf\Big)v(R),\qquad U(f,P)=\sum_R\Big(\sup_Rf\Big)v(R).$

$f$ is integrable if $\sup_PL(f,P)=\inf_PU(f,P)$, and the common value is $\int_Qf$.

Theorem Riemann criterion

A bounded $f$ is integrable on $Q$ iff for every $\varepsilon>0$ there is a partition $P$ with $U(f,P)-L(f,P)<\varepsilon$.

Refining a partition raises $L$ and lowers $U$, and any two partitions have a common refinement, so every lower sum is at most every upper sum. The supremum and infimum therefore exist with $\sup L\le\inf U$, and the criterion is exactly the statement that no gap remains.

Theorem Continuous implies integrable

A continuous $f$ on a closed box $Q$ is integrable.

$Q$ is compact, so $f$ is uniformly continuous by Unit 3: given $\varepsilon$ there is $\delta$ with $|f(x)-f(y)|<\varepsilon/v(Q)$ whenever $\|x-y\|<\delta$.
Take a partition with every subbox of diameter below $\delta$. On each, $\sup-\inf\le\varepsilon/v(Q)$, so $U-L\le\varepsilon$. ∎

Uniform continuity is the load-bearing step, and it is the reason compactness had to come first.

Measure zero and content zero

Definition

$A\subseteq\mathbb{R}^n$ has measure zero if for every $\varepsilon>0$ it can be covered by countably many boxes of total volume less than $\varepsilon$. It has content zero if finitely many suffice.

Theorem How they differ
Content zero implies measure zero, trivially.
$\mathbb{Q}\cap[0,1]$ has measure zero — enumerate it and put an interval of length $\varepsilon2^{-k}$ around the $k$-th point — but not content zero, since finitely many intervals covering a dense set must cover $[0,1]$.
For compact sets the two coincide: extract a finite subcover from the countable one.
Theorem Standard measure-zero sets

A countable union of measure-zero sets has measure zero (split $\varepsilon$ as $\sum\varepsilon2^{-k}$). Any hyperplane, any graph of a continuous function on a box, and any smooth surface of dimension less than $n$ has measure zero in $\mathbb{R}^n$. A box of positive volume does not.

Theorem Lebesgue's criterion

A bounded $f$ on a box $Q$ is Riemann integrable if and only if its set of discontinuities has measure zero.

This is the sharp statement. It immediately gives: continuous functions are integrable; functions with finitely or countably many jumps are integrable; the indicator of $\mathbb{Q}\cap[0,1]$ is not, because it is discontinuous everywhere.

Measure zero is about the discontinuities, not the function values. A function can be wildly discontinuous on a measure-zero set and still integrate perfectly. What kills integrability is discontinuity spread over a set of positive volume.

Integrating over more general sets, and Fubini

Definition Jordan measurable

For a bounded $S\subseteq\mathbb{R}^n$, put $S$ inside a box $Q$ and define $\int_Sf=\int_Qf\chi_S$, where $\chi_S$ is the indicator function. The definition works when $f\chi_S$ is integrable, and by Lebesgue's criterion that needs $\partial S$ to have measure zero. Such an $S$ is called Jordan measurable, and $v(S)=\int_S1$ is its volume.

Example A set with no volume

$S=\mathbb{Q}^n\cap[0,1]^n$ has boundary all of $[0,1]^n$, which does not have measure zero. So $\chi_S$ is not integrable and $S$ has no Jordan volume, even though it is countable. Lebesgue measure assigns it $0$; this is one of the gaps Riemann's theory leaves.

Theorem Fubini

Let $Q=A\times B$ with $A\subseteq\mathbb{R}^n$, $B\subseteq\mathbb{R}^m$ boxes, and let $f$ be integrable on $Q$. Then

$\displaystyle\int_Qf=\int_A\left(\int_Bf(x,y)\,dy\right)dx,$

where the inner integral is interpreted as a lower or upper integral at the (measure-zero set of) $x$ where $y\mapsto f(x,y)$ fails to be integrable. If $f$ is continuous no such care is needed and the two iterated orders agree.

The proof partitions $Q$ as a product of partitions of $A$ and $B$, and observes that the upper and lower sums factor. Everything else is bookkeeping.

Example Why the caveat exists

Both iterated integrals can exist and differ when $f$ is not integrable on the product. The standard example on $[0,1]^2$ is $f(x,y)=\dfrac{x^2-y^2}{(x^2+y^2)^2}$, for which the two orders give $\pi/4$ and $-\pi/4$. Fubini needs integrability on the product as a hypothesis, not as a conclusion.

Example Region between graphs

For $S=\{(x,y):a\le x\le b,\ \varphi(x)\le y\le\psi(x)\}$ with $\varphi$, $\psi$ continuous, the boundary is two graphs and two segments, all of measure zero, so $S$ is Jordan measurable and

$\displaystyle\int_Sf=\int_a^b\int_{\varphi(x)}^{\psi(x)} f(x,y)\,dy\,dx.$

This is the "type I region" recipe from first-year calculus, now with a reason attached.

Common pitfalls

• Confusing measure zero with content zero. They differ exactly for non-compact sets, and $\mathbb{Q}\cap[0,1]$ is the example.
• Using Fubini without knowing $f$ is integrable on the product. Equality of iterated integrals is the conclusion, not the hypothesis.
• Assuming every bounded set has a volume. It needs a measure-zero boundary.
• Thinking countable implies content zero. The rationals are countable and dense.
• Forgetting that changing $f$ on a measure-zero set changes neither integrability nor the integral.

Practice

Original problems written for this guide in the style of Spivak and Munkres exercises. Write a full solution before opening the answer.

Practice 1 · Dirichlet in two variables

Is $\chi_{\mathbb{Q}^2}$ integrable on $[0,1]^2$?

Solution
No. Every subbox contains both rational and irrational points, so $L=0$ and $U=1$ for every partition. The discontinuity set is the whole square, which does not have measure zero.
Practice 2 · One bad line

Let $f=1$ on $[0,1]^2$ except $f=0$ on the segment $y=\tfrac12$. Is $f$ integrable, and what is the integral?

Solution
Integrable, with integral $1$. The discontinuity set is a line segment, which has measure zero in $\mathbb{R}^2$.
Practice 3 · Swap the order

Evaluate $\int_0^1\int_x^1 e^{y^2}\,dy\,dx$.

Solution
The inner integral has no elementary antiderivative. Swap: the region is $0\le x\le y\le1$, so the integral is $\int_0^1\int_0^ye^{y^2}dx\,dy=\int_0^1ye^{y^2}dy=\tfrac12(e-1)$. The integrand is continuous on a compact region, so Fubini applies.
Practice 4 · Measure zero of a graph

Prove the graph of a continuous $g:[0,1]\to\mathbb{R}$ has measure zero in $\mathbb{R}^2$.

Solution
$g$ is uniformly continuous, so given $\varepsilon$ split $[0,1]$ into $N$ intervals on which $g$ varies by less than $\varepsilon$. The graph sits in $N$ boxes of area at most $(1/N)\varepsilon$, total $\varepsilon$.
Practice 5 · Volume of a simplex

Compute the volume of $\{x_i\ge0,\ x_1+x_2+x_3\le1\}$.

Solution
Iterate: $\int_0^1\int_0^{1-x}\int_0^{1-x-y}dz\,dy\,dx=\tfrac16$. In general the $n$-simplex has volume $1/n!$.
Practice 6 · Countable union

Show a countable union of measure-zero sets has measure zero.

Solution
Cover the $k$-th set by countably many boxes of total volume below $\varepsilon2^{-k}$. The union of all these families is countable with total volume below $\varepsilon$.
Practice 7 · Integrable but nowhere continuous?

Can an integrable function be discontinuous on a dense set?

Solution
Yes. Thomae's function — $1/q$ at rationals $p/q$ in lowest terms, $0$ at irrationals — is discontinuous exactly on the rationals, a measure-zero set, and integrates to $0$. Dense and measure zero are compatible.
Practice 8 · Boundary of a ball

Show the closed unit ball is Jordan measurable.

Solution
Its boundary is the unit sphere, the union of two graphs $z=\pm\sqrt{1-x^2-y^2}$ over the closed unit disc, each of measure zero by the graph argument. So $\chi_S$ is discontinuous only on a measure-zero set.

Expanded topic checklist

Course coverage. This unit is part of the complete MAT257Y1 topic map. It should cover the following items before you move on:

Textbook/source alignment

Spivak's integration chapter is the reference for measure zero and Lebesgue's criterion; Munkres develops the same material with more worked detail on Jordan measurability. Verify the assigned text against the syllabus.

Core theorem map

Compactness gives uniform continuity gives integrability of continuous functions. Lebesgue's criterion generalises that completely. Fubini turns the definition into something computable, and Unit 10 adds the last tool, the change of variables.

Study routine. For each function you test, name its discontinuity set and decide whether it has measure zero. That single question settles Riemann integrability, and everything else in the unit is machinery for answering it.

Deep practice extensions

Use these after the main practice set. They are designed to force definition-level reasoning, theorem selection, and mixed application rather than routine calculation only.

Extension 1 · Exact criterion

State exactly when a bounded function on a box is Riemann integrable.

Guide
Exactly when its set of discontinuities has measure zero.
Extension 2 · Measure versus content

Give a set with measure zero but not content zero.

Guide
The rationals in $[0,1]$: countable, hence measure zero, but dense, so no finite cover works.
Extension 3 · Fubini's hypothesis

What must be assumed before equating iterated integrals?

Guide
Integrability of $f$ on the product region. Existence of both iterated integrals is not enough.
Extension 4 · When does a set have volume

Which bounded sets are Jordan measurable?

Guide
Those whose boundary has measure zero.