Skip to content
The book

Riemann integration and criteria

Why this is asked: Lebesgue's criterion (bounded + discontinuities of measure zero) decides Riemann integrability instantly. Know Dirichlet, Thomae, and that composition can destroy integrability.

In one sentence

A bounded function is Riemann integrable exactly when its discontinuities form a set of measure zero — and almost every question here is that criterion applied to a deliberately strange function.

Why the exam asks it

Because it separates candidates who think "integrable means you can find the area" from those who know the definition. Lebesgue's criterion turns a question that looks like it needs work into a five-second decision, and the paper rewards knowing it by asking about functions nobody could integrate directly.

The idea

Lebesgue's criterion

A bounded ff on [a,b][a,b] is Riemann integrable if and only if its set of discontinuities has measure zero.

Both halves matter. Boundedness is a hypothesis, not a consequence — an unbounded function is not Riemann integrable at all, whatever its continuity. And "measure zero" is generous: any countable set has measure zero, so a function may be discontinuous at every rational and still integrate perfectly well.

That last point is the one the exam exploits, and it produces the pair you must know.

The Dirichlet function

1Q1_{\mathbb{Q}} on [0,1][0,1]: one at every rational, zero at every irrational.

It is bounded. It is discontinuous at every point — near any xx there are both rationals and irrationals, so the values jump by 11 in every neighbourhood. The discontinuity set is [0,1][0,1], which has measure 11, not 00. Not Riemann integrable.

Directly: every upper sum is 11 and every lower sum is 00, whatever the partition, because every subinterval contains both kinds of point.

It is Lebesgue integrable, with integral 00, since the rationals have measure zero. That contrast is the standard motivation for the Lebesgue theory, and it is examined as such.

Thomae's function

Now change one thing: t(x)=1/qt(x) = 1/q if x=p/qx = p/q in lowest terms, and t(x)=0t(x) = 0 for irrational xx.

0 1 1 only finitely many spikes exceed any given height — so it is integrable
Thomae's function: height 1/q at each rational p/q in lowest terms, zero everywhere else. Above any fixed height there are only finitely many spikes — which is exactly what makes it Riemann integrable despite being discontinuous at every rational.

This is discontinuous at every rational and continuous at every irrational. The discontinuity set is Q\mathbb{Q} — countable, measure zero. Riemann integrable, with integral 00.

The reason is visible in the picture: fix any height ε\varepsilon. Only finitely many rationals have 1/q>ε1/q > \varepsilon, so only finitely many spikes rise above it, and finitely many spikes can be covered by intervals of arbitrarily small total width.

Dirichlet and Thomae differ only in the height of the spikes, and that difference decides integrability. Carrying both is worth more than any theorem in this topic.

Where intuition breaks

"Bounded, so integrable." Dirichlet. Boundedness is necessary and nowhere near sufficient. This is a hypothesis dropped, and it is the most common single error in the topic.

"∣f∣|f| is integrable, so ff is." Take f=1f = 1 on the rationals and −1-1 elsewhere. Then ∣f∣≡1|f| \equiv 1, which is as integrable as anything gets. But ff is discontinuous everywhere, so it is not.

Why it is tempting: for Lebesgue integration, ∣f∣|f| integrable does give ff integrable when ff is measurable. The implication people half-remember is from a different theory, and Riemann integrability is not preserved by taking absolute values in reverse.

"A composition of integrable functions is integrable." This one is genuinely surprising, and it is worth memorising because it cannot be guessed.

Let tt be Thomae's function and g=1(0,1]g = 1_{(0,1]} — that is, g(0)=0g(0) = 0 and g(y)=1g(y) = 1 for y>0y > 0. Both are Riemann integrable. But

g(t(x))={1x rational (where t(x)>0)0x irrationalg(t(x)) = \begin{cases} 1 & x \text{ rational (where } t(x) > 0) \\ 0 & x \text{ irrational} \end{cases}

which is exactly the Dirichlet function. Two integrable functions compose to a non-integrable one.

What survives: g∘fg \circ f is integrable when gg is continuous and ff is integrable. It is the integrability of the outer function alone that is not enough.

"Products and sums of integrable functions are integrable." These are true, and appear among the false options for exactly that reason. Sums, products and absolute values of Riemann integrable functions are integrable — it is composition, and only composition, that fails.

"∫01fxn dx=0\int_0^1 f x^n \, dx = 0 for all nn, so f≡0f \equiv 0." True for continuous ff, by Weierstrass approximation. Drop continuity and it fails, since changing ff on a measure-zero set changes no integral. Another hypothesis dropped, and a favourite because the conclusion feels forced.

The exam's angle

  1. Is it bounded? If not, stop — not Riemann integrable.
  2. Where is it discontinuous? Sketch the set. Finite or countable means measure zero means integrable. An interval's worth of discontinuity means not.
  3. If the option involves a composition, be suspicious. That is the one operation that breaks, and it is the reason the option is there.
  4. If it says "for all nn" about moments, check whether continuity was assumed.

Most questions here are Dirichlet or Thomae wearing a different coat. Recognising which one you are looking at settles the question faster than any computation.

The night before

  • Lebesgue's criterion: bounded, and discontinuities of measure zero. Both halves.
  • Dirichlet 1Q1_{\mathbb{Q}}: bounded, discontinuous everywhere, not Riemann integrable. Lebesgue integrable with integral 00.
  • Thomae 1/q1/q at p/qp/q: discontinuous exactly on Q\mathbb{Q}, is Riemann integrable, integral 00.
  • ∣f∣|f| integrable does not give ff integrable.
  • Sums, products, ∣f∣|f|: fine. Composition: not. g∘t=g \circ t = Dirichlet.
  • g∘fg \circ f is safe when gg is continuous.
  • All moments vanishing forces f≡0f \equiv 0 only for continuous ff.

See it move

Riemann sums closing on the integralinteractivefree

More in Integration

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Improper integrals and convergence tests

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 1