MAT137/Unit 07
Unit 07 · Term 2

The Definition of the Integral

The integral is built from scratch — upper and lower sums squeezing the area under a curve. Getting the definition right is what makes the Fundamental Theorem (next unit) meaningful rather than magical.

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

"Area under a curve" sounds obvious until you try to define it for a wiggly function. Riemann's upper and lower sums make both "area" and "accumulated total" precise.

In the real world

Any accumulated quantity is an integral: distance from speed, total cost from a rate, work in physics, the center of mass — and, crucially for statistics, probabilities for continuous distributions are areas under a density curve.

Story & open questions

Archimedes was integrating in ~250 BC, finding areas by his "method of exhaustion." Riemann gave the modern definition in 1854. Half a century later Lebesgue rebuilt integration on measure theory — the foundation that makes modern probability and statistics possible.

What the definition is measuring

Upper and lower sums measure the worst possible disagreement inside each subinterval. If the total disagreement can be forced below every $\varepsilon>0$, then the function has one well-defined area. This is why the definition works even before antiderivatives exist.

How to prove integrability
Start with an arbitrary $\varepsilon>0$.
Build a partition whose subintervals make the oscillation $M_i-m_i$ small, except possibly on a few intervals whose total length is small.
Show $U(f,P)-L(f,P)=\sum_i(M_i-m_i)\Delta x_i<\varepsilon$.
Conclude integrability by the criterion.

Three common integrability arguments

This is also the right way to think about why a function like the Dirichlet function fails: every interval contains rationals and irrationals, so the oscillation never shrinks.

Partitions and sums

Definition Upper and lower sums

For a bounded function $f$ and a partition $P=\{a=x_0<\dots<x_n=b\}$ of $[a,b]$, with $m_i=\inf_{[x_{i-1},x_i]}f$ and $M_i=\sup_{[x_{i-1},x_i]}f$, $$L(f,P)=\sum_i m_i\Delta x_i,\qquad U(f,P)=\sum_i M_i\Delta x_i.$$

Every lower sum is $\le$ every upper sum. Refining a partition raises lower sums and lowers upper sums, squeezing toward the area.

Integrability

Definition Riemann integral

A bounded $f$ is integrable on $[a,b]$ if $\sup_P L(f,P)=\inf_P U(f,P)$. That common value is $\displaystyle\int_a^b f$.

Criterion

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

Which functions are integrable

Theorem

If $f$ is continuous on $[a,b]$, it is integrable there. (Monotone functions are integrable too.)

Example $\int_0^1 x\,dx$
Use $n$ equal subintervals. $L=\dfrac{1}{n^2}\sum_{k=0}^{n-1}k =\dfrac{n-1}{2n}$ and $U=\dfrac{1}{n^2}\sum_{k=1}^{n}k=\dfrac{n+1}{2n}$.
Both $\to\tfrac12$ as $n\to\infty$, so $\int_0^1 x\,dx=\tfrac12$.

Properties

Basic rules

For integrable functions on $[a,b]$, linearity $\int_a^b(\alpha f+\beta g)=\alpha\!\int_a^b f+\beta\!\int_a^b g$; additivity $\int_a^b f=\int_a^c f+\int_c^b f$; monotonicity $f\le g\Rightarrow \int_a^b f\le\int_a^b g$; and $\left|\int_a^b f\right|\le\int_a^b|f|$.

Common pitfalls

• $m_i,M_i$ are the inf/sup over each subinterval, not the endpoint values.
• Integrability is about the gap $U-L$ closing, not about finding an antiderivative.
• Not every bounded function is integrable; the definition really is needed.

Practice

Problems adapted from the MAT137 question bank by Alfonso Gracia-Saz, used under CC BY-SA 4.0. Write full solutions before opening the answer.

Practice 1 · Riemann sum

Using equal subintervals, show $\int_0^1 x^2\,dx=\tfrac13$.

Hint
Upper sum $\dfrac{1}{n^3}\sum_{k=1}^n k^2=\dfrac{(n+1)(2n+1)}{6n^2}\to\tfrac13$. The lower sum $\dfrac{1}{n^3}\sum_{k=0}^{n-1}k^2=\dfrac{(n-1)(2n-1)}{6n^2}\to\tfrac13$ too, so the integral is $\tfrac13$.
Practice 2 · Constant

Explain why $f(x)=c$ (constant) is integrable and $\int_a^b c=c(b-a)$.

Answer
Every $m_i=M_i=c$, so $L=U=c(b-a)$ for every partition.
Practice 3 · Bounding

If $f$ is integrable and $0\le f(x)\le 3$ on $[1,4]$, bound $\int_1^4 f$.

Answer
By monotonicity, $0\le\int_1^4 f\le 3\cdot3=9$.
Practice 4 · Partitions

Which of these are partitions of $[0,2]$? $\{0,2\}$, $\{1,2\}$, $\{0.5,1,1.5\}$, $\{0,1,2\}$.

Answer
Only $\{0,2\}$ and $\{0,1,2\}$. A partition must include both endpoints $0$ and $2$, which the other two omit.
Practice 5 · Properties

Given $\int_0^2 f=3$, $\int_0^4 f=9$, $\int_0^4 g=2$, compute $\int_2^4 f$, $\int_2^0 f$, and $\int_0^4(f-2g)$.

Answer
$\int_2^4 f=9-3=6$; $\int_2^0 f=-3$; $\int_0^4(f-2g)=9-2(2)=5$.
Practice 6 · Sum to integral

Express $\displaystyle\lim_{n\to\infty}\sum_{i=1}^n\frac1n\sin\frac in$ as a definite integral and evaluate it.

Answer
It is a right Riemann sum for $\int_0^1\sin x\,dx=1-\cos1$.
Practice 7 · Integrability

State the integrability criterion: a bounded $f$ is integrable on $[a,b]$ if and only if what holds?

Answer
If and only if for every $\varepsilon>0$ there is a partition $P$ with $U_P(f)-L_P(f)<\varepsilon$.
Practice 8 · MVT for integrals

Prove: if $a<b$ and $f$ is continuous on $[a,b]$, there is $c\in[a,b]$ with $f(c)=\dfrac{1}{b-a}\int_a^b f$.

Solution
Let $m,M$ be the min and max of $f$ (EVT). Then $m\le\dfrac{1}{b-a}\int_a^b f\le M$, and by the IVT $f$ attains this intermediate value at some $c$.

Expanded topic checklist

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

Textbook/source alignment

Use the Alfonso Gracia-Saz MAT137 materials as the primary local spine, with the current UofT single-variable calculus topic split as the completeness check. The added items are original study prompts, not copied textbook exercises.

Core theorem map

The definition chain is: partitions approximate the area, upper and lower sums trap all tagged sums, and integrability means the trap can be made arbitrarily tight.

Study routine. For a proof problem, draw the partition behavior first; for a computation problem, identify whether symmetry, geometry, or a limit of sums is fastest.

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 · Upper-lower criterion

State the upper-lower sum criterion for Riemann integrability.

Guide
A bounded function on $[a,b]$ is Riemann integrable iff for every $\epsilon>0$ there is a partition $P$ such that $U(f,P)-L(f,P)<\epsilon$.
Extension 2 · Constant function

Compute $\int_a^b c\,dx$ from the definition.

Guide
Every upper and lower sum equals $c(b-a)$ if $c\ge0$; for general constant $c$, tagged sums still equal $c(b-a)$.
Extension 3 · Discontinuous example

Is the function $f=1$ at $0$ and $0$ elsewhere on $[0,1]$ Riemann integrable?

Guide
Yes. It is bounded and differs from $0$ at one point only; upper sums can be made small by isolating $0$ in a tiny subinterval, and lower sums are $0$.
Extension 4 · Signed area

Explain why $\int_{-1}^1 x\,dx=0$ without antiderivatives.

Guide
The positive area on $[0,1]$ and negative area on $[-1,0]$ cancel by odd symmetry.