The math optional, made finite. Daily Practice

Riemann integral

At a Glance

Why This Chapter Matters

The Riemann integral appears in 9 of the last 13 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[xi1,xi]fM_i=\sup_{[x_{i-1},x_i]}f and mi=inf[xi1,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 LUL\le U. Define f=infPU(P,f)\overline\int f=\inf_P U(P,f) (upper integral) and f=supPL(P,f)\underline\int f=\sup_P L(P,f) (lower integral). Always ff\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(xi1)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 nn\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 0kx2dx=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)=k3n3i=0n1i2=k3n3(n1)n(2n1)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)=k3n3j=1nj2=k3n3n(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 0kx2dx=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=(ba)/n\Delta x=(b-a)/n.
  3. For increasing ff: UL=ban[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>(ba)[f(b)f(a)]/εn>(b-a)[f(b)-f(a)]/\varepsilon; then UL<ε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 st<δf(s)f(t)<ε/(ba)|s-t|<\delta\Rightarrow|f(s)-f(t)|<\varepsilon/(b-a).
  3. Choose partition PP with mesh <δ<\delta; then each oscillation Mimi<ε/(ba)M_i-m_i<\varepsilon/(b-a).
  4. UL<[ε/(ba)]Δ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=(ba)/nh=(b-a)/n): on each [xi1,xi][x_{i-1},x_i], supf=f(xi)\sup f=f(x_i) and inff=f(xi1)\inf f=f(x_{i-1}), so U(Pn)L(Pn)=hi=1n[f(xi)f(xi1)]=h[f(b)f(a)]=(ba)[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>(ba)[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 st<δf(s)f(t)<ε/(ba)|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 [xi1,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 Mimi<ε/(ba)M_i-m_i<\varepsilon/(b-a).

U(P,f)L(P,f)=i(Mimi)Δxi<εbaiΔ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 x0x\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: lim0f=24=lim0+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.

12fdx=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 (0f10\le f\le1). Discontinuities at {1/n:n2}{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/n1/(n+1)=1/(n(n+1))1/n-1/(n+1)=1/(n(n+1)). Sum: 01fdx=n=11n1n(n+1)=n=11n2(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=π261.\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)x20|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 01fdx=sin1\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)x20|F(x)|\le x^2\to0.

ff is bounded (f3|f|\le3) with one discontinuity at x=0x=0. On [ε,1][\varepsilon,1], FTC gives ε1f=F(1)F(ε)=sin1ε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.

  01fdx=sin1.  \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: mf(x)Mm\le f(x)\le M for all x[a,b]x\in[a,b].
  3. Integrate: m(ba)abfM(ba)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/sinx)dx<2π2/9\pi^2/9<\int_{\pi/6}^{\pi/2}(x/\sin x)\,dx<2\pi^2/9.

Monotonicity. h(x)=sinx/xh(x)=\sin x/x has h(x)=(xcosxsinx)/x2<0h'(x)=(x\cos x-\sin x)/x^2<0 on (0,π/2](0,\pi/2] (since xcosx<sinxx\cos x<\sin x there). So hh is strictly decreasing, hence x/sinxx/\sin x is strictly increasing.

Bounds. On [π/6,π/2][\pi/6,\pi/2]: π/3x/sinxπ/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π/2xsinxdx<π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π/2xsinxdx<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 supf=\sup f= (rational branch value) and inff=\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)=1x2f(x)=\sqrt{1-x^2} on rationals, f(x)=1xf(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): 1x2=(1x)(1+x)>(1x)\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 supf=1α2\sup f=\sqrt{1-\alpha^2} (rational branch, max at left since decreasing) and inff=1β\inf f=1-\beta (irrational branch, min at right).

Upper integral =infPsupfiΔxi011x2dx=π/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 =supPinffiΔxi01(1x)dx=1/2=\sup_P\sum\inf f_i\,\Delta x_i\to\int_0^1(1-x)\,dx=1/2.

01f=π412=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])=Mm=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:

SMmS\le M-m: for any x1,x2x_1,x_2, f(x1)f(x2)Mm|f(x_1)-f(x_2)|\le M-m (since mfMm\le f\le M). So MmM-m is an upper bound and SMmS\le M-m.

SMmS\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)>(Mm)ε|f(x_1)-f(x_2)|=f(x_1)-f(x_2)>(M-m)-\varepsilon. Since ε\varepsilon is arbitrary, SMmS\ge M-m.

Hence S=Mm=ω(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 ULU-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 Mimi<ε/(ba)M_i-m_i<\varepsilon/(b-a); sum ε\to\varepsilon
2024P2-Q4b15non-integrable-exampleDensity: sup=1x2\sup=\sqrt{1-x^2}, inf=1x\inf=1-x; upper =π/4=\pi/4, lower =1/2=1/2; differ
2023P2-Q4a15oscillation-proofSMmS\le M-m trivial; SMmS\ge M-m via ε\varepsilon-characterisation of sup,inf\sup,\inf
2022P2-Q2a15integrability-from-definitionLower sum i2\sum i^2 with i=0,,n1i=0,\ldots,n-1; upper with i=1,,ni=1,\ldots,n; both k3/3\to k^3/3
2021P2-Q1c10integrability-class-proofEqual partition; UL=h[f(b)f(a)]U-L=h[f(b)-f(a)]; choose nn large
2018P2-Q1b10integral-boundssinx/x\sin x/x decreasing; x/sinx[π/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)

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.