Riemann integral

At a Glance

Why This Chapter Matters

The Riemann integral appears in 10 of the last 14 years, split evenly between 10- and 15-mark questions — almost all in Section A. Unlike the rest of calculus which tests computation, this atom tests reasoning: can you prove a function is integrable, can you recognise when it is not, and can you evaluate an integral from the definition? Four recurring proof templates (Darboux criterion, Lebesgue criterion, Darboux theorem, oscillation squeeze) cover every question that has ever appeared.

Minimum Theory

Darboux sums. For ff bounded on [a,b][a,b] and partition P={a=x0<x1<⋯<xn=b}P=\{a=x_0<x_1<\cdots<x_n=b\}, define Mi=sup⁡[xi−1,xi]fM_i=\sup_{[x_{i-1},x_i]}f and mi=inf⁡[xi−1,xi]fm_i=\inf_{[x_{i-1},x_i]}f. The upper and lower Darboux sums are U(P,f)=∑i=1nMiΔxi,L(P,f)=∑i=1nmiΔxi.U(P,f)=\sum_{i=1}^n M_i\Delta x_i,\qquad L(P,f)=\sum_{i=1}^n m_i\Delta x_i. Always L≤UL\le U. Define ∫‾f=inf⁡PU(P,f)\overline\int f=\inf_P U(P,f) (upper integral) and ∫‾f=sup⁡PL(P,f)\underline\int f=\sup_P L(P,f) (lower integral). Always ∫‾f≤∫‾f\underline\int f\le\overline\int f.

Riemann integrability criteria:

Key theorem classes:

Antiderivatives (Darboux’s theorem). If g′=fg'=f on [a,b][a,b] then ff must have the intermediate value property — no jump discontinuities. Therefore a function with a jump discontinuity is Riemann integrable but does not have an antiderivative. These are separate properties.

Darboux sums: upper sum U(P,f) (light, overshoots the curve) and lower sum L(P,f) (dark, undershoots). Riemann's criterion: U-L<\varepsilon for fine enough partitions.

Question Archetypes

Seven patterns cover all Riemann integral questions.

ArchetypeYou are seeing this when…
integrability-from-definitionprove integrability and compute from Darboux sums directly
integrability-class-proofprove that monotone or continuous functions are integrable
integrability-criteriondecide integrability and antiderivative existence for a piecewise function
step-function-integralfunction has finitely/countably many discontinuities; decide integrability and compute
ftc-evaluationevaluate by spotting an antiderivative (FTC), handling a singular endpoint
integral-boundsprove upper and lower bounds without computing the integral
non-integrable-exampleshow upper and lower integrals differ (Dirichlet-type)
oscillation-proofpure definition proof about oscillation

integrability-from-definition (1 question; 2022)

Recognition Cues

Solution Template

  1. Set up the uniform partition PnP_n with Δx=k/n\Delta x=k/n.
  2. Compute L(Pn)L(P_n) and U(Pn)U(P_n) (for increasing ff: mi=f(xi−1)m_i=f(x_{i-1}), Mi=f(xi)M_i=f(x_i)).
  3. Use standard sum formulas (∑i2=n(n+1)(2n+1)/6\sum i^2=n(n+1)(2n+1)/6, etc.).
  4. Take n→∞n\to\infty; show both limits equal the same value.

Worked Example(s)

2022 Paper 2, 2022-P2-Q2a (15 marks)

Show f(x)=x2f(x)=x^2 is Riemann integrable on [0,k][0,k] and ∫0kx2 dx=k3/3\int_0^k x^2\,dx=k^3/3.

Partition. Equal partition PnP_n: xi=ik/nx_i=ik/n, Δx=k/n\Delta x=k/n. Since ff increasing: mi=(ik/n)2m_i=(ik/n)^2, Mi=((i+1)k/n)2M_i=((i+1)k/n)^2.

L(Pn)=k3n3∑i=0n−1i2=k3n3⋅(n−1)n(2n−1)6  →  k33.L(P_n)=\frac{k^3}{n^3}\sum_{i=0}^{n-1}i^2=\frac{k^3}{n^3}\cdot\frac{(n-1)n(2n-1)}{6}\;\to\;\frac{k^3}{3}. U(Pn)=k3n3∑j=1nj2=k3n3⋅n(n+1)(2n+1)6  →  k33.U(P_n)=\frac{k^3}{n^3}\sum_{j=1}^{n}j^2=\frac{k^3}{n^3}\cdot\frac{n(n+1)(2n+1)}{6}\;\to\;\frac{k^3}{3}.

Both limits equal k3/3k^3/3, so ff is Riemann integrable and ∫0kx2 dx=k3/3\int_0^k x^2\,dx=k^3/3. ■\blacksquare

Common Traps


integrability-class-proof (2 question(s); 2021, 2025)

Recognition Cues

Solution Template (monotone):

  1. State Riemann’s criterion.
  2. Choose the equal partition PnP_n with Δx=(b−a)/n\Delta x=(b-a)/n.
  3. For increasing ff: U−L=b−an[f(b)−f(a)]U-L=\frac{b-a}{n}[f(b)-f(a)]. For decreasing: same formula with f(a)−f(b)f(a)-f(b).
  4. Choose n>(b−a)[f(b)−f(a)]/εn>(b-a)[f(b)-f(a)]/\varepsilon; then U−L<εU-L<\varepsilon. ■\blacksquare

Solution Template (continuous):

  1. Invoke Heine-Cantor: on compact [a,b][a,b], continuous ⇒\Rightarrow uniformly continuous.
  2. Given ε\varepsilon, find δ\delta so ∣s−t∣<δ⇒∣f(s)−f(t)∣<ε/(b−a)|s-t|<\delta\Rightarrow|f(s)-f(t)|<\varepsilon/(b-a).
  3. Choose partition PP with mesh <δ<\delta; then each oscillation Mi−mi<ε/(b−a)M_i-m_i<\varepsilon/(b-a).
  4. U−L<[ε/(b−a)]∑Δxi=εU-L<[\varepsilon/(b-a)]\sum\Delta x_i=\varepsilon. ■\blacksquare

Worked Example(s)

2021 Paper 2, 2021-P2-Q1c (10 marks)

Prove: monotone ff on [a,b][a,b] is Riemann integrable.

WLOG ff increasing. For equal partition PnP_n (mesh h=(b−a)/nh=(b-a)/n): on each [xi−1,xi][x_{i-1},x_i], sup⁡f=f(xi)\sup f=f(x_i) and inf⁡f=f(xi−1)\inf f=f(x_{i-1}), so U(Pn)−L(Pn)=h∑i=1n[f(xi)−f(xi−1)]=h[f(b)−f(a)]=(b−a)[f(b)−f(a)]n.U(P_n)-L(P_n)=h\sum_{i=1}^n[f(x_i)-f(x_{i-1})]=h[f(b)-f(a)]=\frac{(b-a)[f(b)-f(a)]}{n}. This is <ε<\varepsilon for n>(b−a)[f(b)−f(a)]/εn>(b-a)[f(b)-f(a)]/\varepsilon. Riemann’s criterion is satisfied. ■\blacksquare


2025 Paper 2, 2025-P2-Q4b (15 marks)

Prove every continuous function on [a,b][a,b] is Riemann integrable.

Bounded: continuous on compact [a,b][a,b] ⇒\Rightarrow bounded (extreme value theorem), so Darboux sums are finite.

Uniform continuity (Heine-Cantor): since ff is continuous on the compact set [a,b][a,b], it is uniformly continuous: for any ε>0\varepsilon>0, ∃δ>0\exists\delta>0 such that ∣s−t∣<δ⇒∣f(s)−f(t)∣<ε/(b−a)|s-t|<\delta\Rightarrow|f(s)-f(t)|<\varepsilon/(b-a).

Choose a fine partition: take any partition PP with mesh ∥P∥<δ\|P\|<\delta. On each subinterval [xi−1,xi][x_{i-1},x_i] (length <δ<\delta), ff attains its max at ξi\xi_i and min at ηi\eta_i, and ∣ξi−ηi∣≤Δxi<δ|\xi_i-\eta_i|\le\Delta x_i<\delta, so Mi−mi<ε/(b−a)M_i-m_i<\varepsilon/(b-a).

U(P,f)−L(P,f)=∑i(Mi−mi)Δxi<εb−a∑iΔxi=ε.U(P,f)-L(P,f)=\sum_i(M_i-m_i)\Delta x_i<\frac\varepsilon{b-a}\sum_i\Delta x_i=\varepsilon.

Riemann’s criterion is satisfied. ■\blacksquare

The key: uniform (not pointwise) continuity is needed — it gives a single δ\delta controlling all oscillations simultaneously. Compactness of [a,b][a,b] is what guarantees the upgrade from continuous to uniformly continuous.

Common Traps


integrability-criterion (1 question; 2013)

Recognition Cues

Solution Template

  1. Integrability: check boundedness; identify the set of discontinuities; apply Lebesgue’s criterion (finite or countable ⇒\Rightarrow measure zero ⇒\Rightarrow integrable).
  2. Antiderivative: if ff has a jump discontinuity, cite Darboux’s theorem — derivatives must have the intermediate value property, so ff cannot be a derivative.

Worked Example(s)

2013 Paper 2, 2013-P2-Q1c (10 marks)

f(x)=x2/2+4f(x)=x^2/2+4 for x≥0x\ge0, f(x)=−x2/2+2f(x)=-x^2/2+2 for x<0x<0. Riemann integrable on [−1,2][-1,2]? Antiderivative exists?

Integrability. ff is bounded (values in [3/2,6][3/2,6]). The single discontinuity at x=0x=0 (jump: lim⁡0−f=2≠4=lim⁡0+f\lim_{0^-}f=2\ne4=\lim_{0^+}f) has measure zero. By Lebesgue’s criterion: yes, ff is Riemann integrable.

Antiderivative. ff has a jump at x=0x=0: f(0−)=2f(0^-)=2, f(0+)=4f(0^+)=4. Any value c∈(2,4)c\in(2,4) is not attained by ff on [−1,2][-1,2]. By Darboux’s theorem, a derivative cannot have a jump discontinuity. Therefore no antiderivative gg with g′=fg'=f exists on [−1,2][-1,2].

Common Traps


step-function-integral (2 question(s); 2013, 2015)

Recognition Cues

Solution Template

  1. Integrability: identify the discontinuity set (integer points for floor function, {1/n}\{1/n\} for the step function); state it is finite or countable (measure zero); conclude integrable by Lebesgue.
  2. Compute: on each constant piece, contribution == value ×\times length. Sum up (possibly as an infinite series for the countable case).
  3. For infinite series: use partial fractions and telescoping.

Worked Example(s)

2013 Paper 2, 2013-P2-Q3d (10 marks)

f(x)=[x]2+3f(x)=[x]^2+3 on [−1,2][-1,2]. Integrable? Compute.

Step function: f=4f=4 on [−1,0)[-1,0), f=3f=3 on [0,1)[0,1), f=4f=4 on [1,2)[1,2), f(2)=7f(2)=7. Discontinuities at x=0,1,2x=0,1,2 — finite set, measure zero. Integrable.

∫−12f dx=4(1)+3(1)+4(1)=11.\int_{-1}^2 f\,dx=4(1)+3(1)+4(1)=\boxed{11.}

(The single point x=2x=2 contributes zero.)


2015 Paper 2, 2015-P2-Q2b (15 marks)

f(x)=1/nf(x)=1/n on (1/(n+1),1/n](1/(n+1),1/n], f(0)=0f(0)=0. Integrable on [0,1][0,1]? Find ∫01f\int_0^1 f.

Bounded (0≤f≤10\le f\le1). Discontinuities at {1/n:n≥2}∪{0}\{1/n:n\ge2\}\cup\{0\} — countable, measure zero. Integrable.

Length of (1/(n+1),1/n](1/(n+1),1/n] is 1/n−1/(n+1)=1/(n(n+1))1/n-1/(n+1)=1/(n(n+1)). Sum: ∫01f dx=∑n=1∞1n⋅1n(n+1)=∑n=1∞1n2(n+1).\int_0^1 f\,dx=\sum_{n=1}^\infty\frac{1}{n}\cdot\frac{1}{n(n+1)}=\sum_{n=1}^\infty\frac{1}{n^2(n+1)}.

Partial fractions: 1/(n2(n+1))=−1/n+1/n2+1/(n+1)1/(n^2(n+1))=-1/n+1/n^2+1/(n+1). Sum telescopes + Basel: ∫01f=−1+π26=π26−1.\int_0^1 f=-1+\frac{\pi^2}{6}=\boxed{\frac{\pi^2}{6}-1.}

Common Traps


ftc-evaluation (1 question; 2014)

Recognition Cues

Solution Template

  1. Spot the antiderivative FF by reverse product rule: ddx[x2sin⁡(1/x)]=2xsin⁡(1/x)−cos⁡(1/x)\frac{d}{dx}[x^2\sin(1/x)]=2x\sin(1/x)-\cos(1/x).
  2. Show FF extends continuously to [0,1][0,1] (squeeze: ∣x2sin⁡(1/x)∣≤x2→0|x^2\sin(1/x)|\le x^2\to0).
  3. Show ff is bounded on [0,1][0,1] with a single discontinuity at 00.
  4. Apply FTC on [ε,1][\varepsilon,1] and let ε→0+\varepsilon\to0^+.

Worked Example(s)

2014 Paper 2, 2014-P2-Q2b (15 marks)

f(x)=2xsin⁡(1/x)−cos⁡(1/x)f(x)=2x\sin(1/x)-\cos(1/x) for x∈(0,1]x\in(0,1], f(0)=0f(0)=0. Show ∫01f dx=sin⁡1\int_0^1 f\,dx=\sin1.

Antiderivative: ddx[x2sin⁡(1/x)]=2xsin⁡(1/x)−cos⁡(1/x)=f(x)\frac{d}{dx}[x^2\sin(1/x)]=2x\sin(1/x)-\cos(1/x)=f(x) for x>0x>0.

Let F(x)=x2sin⁡(1/x)F(x)=x^2\sin(1/x), F(0)=0F(0)=0. Continuous on [0,1][0,1] since ∣F(x)∣≤x2→0|F(x)|\le x^2\to0.

ff is bounded (∣f∣≤3|f|\le3) with one discontinuity at x=0x=0. On [ε,1][\varepsilon,1], FTC gives ∫ε1f=F(1)−F(ε)=sin⁡1−ε2sin⁡(1/ε)\int_\varepsilon^1 f=F(1)-F(\varepsilon)=\sin1-\varepsilon^2\sin(1/\varepsilon).

Let ε→0+\varepsilon\to0^+: ε2sin⁡(1/ε)→0\varepsilon^2\sin(1/\varepsilon)\to0.

  ∫01f dx=sin⁡1.  \boxed{\;\int_0^1 f\,dx=\sin1.\;}

Common Traps


integral-bounds (1 question; 2018)

Recognition Cues

Solution Template

  1. Identify a monotonicity or range property of ff on [a,b][a,b].
  2. Bound: m≤f(x)≤Mm\le f(x)\le M for all x∈[a,b]x\in[a,b].
  3. Integrate: m(b−a)≤∫abf≤M(b−a)m(b-a)\le\int_a^b f\le M(b-a).
  4. Use strict inequalities if ff is non-constant (the integral is strictly between the bounds).

Worked Example(s)

2018 Paper 2, 2018-P2-Q1b (10 marks)

Prove π2/9<∫π/6π/2(x/sin⁡x) dx<2π2/9\pi^2/9<\int_{\pi/6}^{\pi/2}(x/\sin x)\,dx<2\pi^2/9.

Monotonicity. h(x)=sin⁡x/xh(x)=\sin x/x has h′(x)=(xcos⁡x−sin⁡x)/x2<0h'(x)=(x\cos x-\sin x)/x^2<0 on (0,π/2](0,\pi/2] (since xcos⁡x<sin⁡xx\cos x<\sin x there). So hh is strictly decreasing, hence x/sin⁡xx/\sin x is strictly increasing.

Bounds. On [π/6,π/2][\pi/6,\pi/2]: π/3≤x/sin⁡x≤π/2\pi/3\le x/\sin x\le\pi/2 (min at x=π/6x=\pi/6: (π/6)/(1/2)=π/3(\pi/6)/(1/2)=\pi/3; max at x=π/2x=\pi/2: (π/2)/1=π/2(\pi/2)/1=\pi/2).

Integrate over length π/2−π/6=π/3\pi/2-\pi/6=\pi/3: π3⋅π3=π29<∫π/6π/2xsin⁡x dx<π2⋅π3=π26<2π29.\frac\pi3\cdot\frac\pi3=\frac{\pi^2}{9}<\int_{\pi/6}^{\pi/2}\frac x{\sin x}\,dx<\frac\pi2\cdot\frac\pi3=\frac{\pi^2}{6}<\frac{2\pi^2}{9}.

  π29<∫π/6π/2xsin⁡x dx<2π29.  ■\boxed{\;\frac{\pi^2}{9}<\int_{\pi/6}^{\pi/2}\frac{x}{\sin x}\,dx<\frac{2\pi^2}{9}.\;}\quad\blacksquare

Common Traps


non-integrable-example (1 question; 2024)

Recognition Cues

Solution Template

  1. On any subinterval, rationals and irrationals are both dense, so sup⁡f=\sup f= (rational branch value) and inf⁡f=\inf f= (irrational branch value) — at any point.
  2. Upper integral =∫=\int (rational branch); lower integral =∫=\int (irrational branch).
  3. These differ ⇒\Rightarrow ff not Riemann integrable.

Worked Example(s)

2024 Paper 2, 2024-P2-Q4b (15 marks)

f(x)=1−x2f(x)=\sqrt{1-x^2} on rationals, f(x)=1−xf(x)=1-x on irrationals. Find ∫‾01f\overline\int_0^1 f and ∫‾01f\underline\int_0^1 f; show ff not Riemann integrable.

Comparison. For x∈(0,1)x\in(0,1): 1−x2=(1−x)(1+x)>(1−x)\sqrt{1-x^2}=\sqrt{(1-x)(1+x)}>(1-x) since 1+x>11+x>1.

Sup/inf on any [α,β][\alpha,\beta]: both branches are dense, so sup⁡f=1−α2\sup f=\sqrt{1-\alpha^2} (rational branch, max at left since decreasing) and inf⁡f=1−β\inf f=1-\beta (irrational branch, min at right).

Upper integral =inf⁡P∑sup⁡fi Δxi→∫011−x2 dx=π/4=\inf_P\sum\sup f_i\,\Delta x_i\to\int_0^1\sqrt{1-x^2}\,dx=\pi/4 (quarter-circle area).

Lower integral =sup⁡P∑inf⁡fi Δxi→∫01(1−x) dx=1/2=\sup_P\sum\inf f_i\,\Delta x_i\to\int_0^1(1-x)\,dx=1/2.

∫‾01f=π4≠12=∫‾01f  ⟹  f is not Riemann integrable.\overline\int_0^1 f=\frac\pi4\ne\frac12=\underline\int_0^1 f\;\Longrightarrow\;\boxed{f\text{ is not Riemann integrable.}}

Common Traps


oscillation-proof (1 question; 2023)

Recognition Cues

Worked Example(s)

2023 Paper 2, 2023-P2-Q4a (15 marks)

Prove: ω(f,[a,b])=M−m=sup⁡{∣f(x1)−f(x2)∣:x1,x2∈[a,b]}\omega(f,[a,b])=M-m=\sup\{|f(x_1)-f(x_2)|:x_1,x_2\in[a,b]\}.

Let S=sup⁡{∣f(x1)−f(x2)∣}S=\sup\{|f(x_1)-f(x_2)|\}. Two-sided bound:

S≤M−mS\le M-m: for any x1,x2x_1,x_2, ∣f(x1)−f(x2)∣≤M−m|f(x_1)-f(x_2)|\le M-m (since m≤f≤Mm\le f\le M). So M−mM-m is an upper bound and S≤M−mS\le M-m.

S≥M−mS\ge M-m: fix ε>0\varepsilon>0. By definition of sup⁡\sup and inf⁡\inf, ∃x1\exists x_1 with f(x1)>M−ε/2f(x_1)>M-\varepsilon/2 and ∃x2\exists x_2 with f(x2)<m+ε/2f(x_2)<m+\varepsilon/2. Then ∣f(x1)−f(x2)∣=f(x1)−f(x2)>(M−m)−ε|f(x_1)-f(x_2)|=f(x_1)-f(x_2)>(M-m)-\varepsilon. Since ε\varepsilon is arbitrary, S≥M−mS\ge M-m.

Hence S=M−m=ω(f,[a,b])S=M-m=\omega(f,[a,b]). ■\blacksquare

Common Traps


Marks-Aware Writing

10-mark questions (2013-Q1c, 2013-Q3d, 2018, 2021): State the relevant criterion (Lebesgue or Riemann), apply it in two lines, conclude. For the antiderivative question: state Darboux’s theorem, identify the jump, conclude no antiderivative. For monotone integrability: equal partition + telescoping argument takes 4–5 lines.

15-mark questions (2014, 2015, 2022, 2023, 2024, 2025): Full proof with all steps shown. For Darboux sums (2022): write LL and UU with sum formulas, take limits, state conclusion. For continuous (2025): state Heine-Cantor, write the oscillation bound, bound U−LU-L. For oscillation (2023): two-sided inequality with the ε\varepsilon-argument for the lower bound.

Practice Set

YearPaper/QMarksArchetypeOne-line hint
2025P2-Q4b15integrability-class-proofHeine-Cantor: uniform continuity; oscillation Mi−mi<ε/(b−a)M_i-m_i<\varepsilon/(b-a); sum →ε\to\varepsilon
2024P2-Q4b15non-integrable-exampleDensity: sup⁡=1−x2\sup=\sqrt{1-x^2}, inf⁡=1−x\inf=1-x; upper =π/4=\pi/4, lower =1/2=1/2; differ
2023P2-Q4a15oscillation-proofS≤M−mS\le M-m trivial; S≥M−mS\ge M-m via ε\varepsilon-characterisation of sup⁡,inf⁡\sup,\inf
2022P2-Q2a15integrability-from-definitionLower sum ∑i2\sum i^2 with i=0,…,n−1i=0,\ldots,n-1; upper with i=1,…,ni=1,\ldots,n; both →k3/3\to k^3/3
2021P2-Q1c10integrability-class-proofEqual partition; U−L=h[f(b)−f(a)]U-L=h[f(b)-f(a)]; choose nn large
2018P2-Q1b10integral-boundssin⁡x/x\sin x/x decreasing; x/sin⁡x∈[π/3,π/2]x/\sin x\in[\pi/3,\pi/2]; multiply by π/3\pi/3
2015P2-Q2b15step-function-integralCountable discont.; interval length 1/(n(n+1))1/(n(n+1)); series = −1+π2/6-1+\pi^2/6
2014P2-Q2b15ftc-evaluationAntiderivative x2sin⁡(1/x)x^2\sin(1/x); extend by F(0)=0F(0)=0; FTC on [ε,1][\varepsilon,1], limit
2013P2-Q3d10step-function-integral[x]2+3[x]^2+3 takes values 4,3,44,3,4 on three unit intervals; integral =11=11
2013P2-Q1c10integrability-criterionJump at 0 ⇒\Rightarrow integrable (Lebesgue) but no antiderivative (Darboux)

Ready to drill what you just read?

Daily Practice turns these patterns into one adaptive set a day — practised daily until they're automatic, free for everyone.

See Daily Practice →

This chapter is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.