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 on 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
on : one at every rational, zero at every irrational.
It is bounded. It is discontinuous at every point — near any there are both rationals and irrationals, so the values jump by in every neighbourhood. The discontinuity set is , which has measure , not . Not Riemann integrable.
Directly: every upper sum is and every lower sum is , whatever the partition, because every subinterval contains both kinds of point.
It is Lebesgue integrable, with integral , 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: if in lowest terms, and for irrational .
This is discontinuous at every rational and continuous at every irrational. The discontinuity set is — countable, measure zero. Riemann integrable, with integral .
The reason is visible in the picture: fix any height . Only finitely many rationals have , 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.
" is integrable, so is." Take on the rationals and elsewhere. Then , which is as integrable as anything gets. But is discontinuous everywhere, so it is not.
Why it is tempting: for Lebesgue integration, integrable does give integrable when 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 be Thomae's function and — that is, and for . Both are Riemann integrable. But
which is exactly the Dirichlet function. Two integrable functions compose to a non-integrable one.
What survives: is integrable when is continuous and 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.
" for all , so ." True for continuous , by Weierstrass approximation. Drop continuity and it fails, since changing on a measure-zero set changes no integral. Another hypothesis dropped, and a favourite because the conclusion feels forced.
The exam's angle
- Is it bounded? If not, stop — not Riemann integrable.
- Where is it discontinuous? Sketch the set. Finite or countable means measure zero means integrable. An interval's worth of discontinuity means not.
- If the option involves a composition, be suspicious. That is the one operation that breaks, and it is the reason the option is there.
- If it says "for all " 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 : bounded, discontinuous everywhere, not Riemann integrable. Lebesgue integrable with integral .
- Thomae at : discontinuous exactly on , is Riemann integrable, integral .
- integrable does not give integrable.
- Sums, products, : fine. Composition: not. Dirichlet.
- is safe when is continuous.
- All moments vanishing forces only for continuous .
See it move
More in Integration
Take it further
- The mistake this prevents: boundary and endpoint → real wrong options, and why each one tempts
- The mistake this prevents: hypothesis dropped → real wrong options, and why each one tempts
- Previous-year questions set on this — every option and the answer, free:December 2025 · Part CJune 2025 · Part CJune 2025 · Part CDecember 2024 · Part BDecember 2024 · Part CDecember 2024 · Part CDecember 2024 · Part CDecember 2023 · Part C
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.
Open this in the full syllabus view · Unit 1