← 2026 Paper 2
UPSC 2026 Maths Optional Paper 2 Q3b — Step-by-Step Solution
20 marks · Section A
Riemann integral · Real Analysis · asked 11× in 14 yrs · Read the full method →
Question
A function f is defined on [0,1] by
f(x)={x2,x3,when x is rationalwhen x is irrational
Evaluate lower integral ∫01f and upper integral ∫01f. Does the integral ∫01f exist?
Technique
Darboux from first principles. On any subinterval both Q and Qc are dense, so the infimum of f there is the smaller of the two branch-infima and the supremum is the larger of the two branch-suprema. On [0,1] we have x3≤x2 — the reverse of the ordering on [1,∞), and getting it backwards interchanges the two answers. The consequence is decisive: every lower Darboux sum of f equals the corresponding lower sum of x3, and every upper sum of f equals the corresponding upper sum of x2; so the two Darboux integrals are just ∫01x3 and ∫01x2. The existence question is then settled by Riemann’s criterion.
Solution
Step 1 — The pointwise ordering on [0,1] (the step that decides the answer).
For x∈[0,1],
x3−x2=x2(x−1)≤0⟹x3≤x2,
with equality exactly at x=0 and x=1. Hence
on [0,1]:x3≤f(x)≤x2for every x,(1)
since f(x) is one of x2,x3 at each point. Both bounding functions are continuous and increasing on [0,1] — a fact used repeatedly below.
Sanity anchor. On [1,∞) the inequality reverses (x3≥x2). A candidate who imports that ordering will report ∫f=31>∫f=41, which is impossible, since always ∫f≤∫f. If your two numbers come out in the wrong order, the ordering of x2,x3 is where the error is.
Step 2 — Notation, and the infimum/supremum on a subinterval.
Let P={0=x0<x1<⋯<xk=1} be a partition of [0,1], write Ii=[xi−1,xi], Δi=xi−xi−1>0, and
mi=x∈Iiinff(x),Mi=x∈Iisupf(x),
L(P,f)=i=1∑kmiΔi,U(P,f)=i=1∑kMiΔi.
Since Δi>0, both Q∩Ii and Qc∩Ii are non-empty and dense in Ii (density of the rationals and of the irrationals in R). Therefore the value set of f on Ii is
f(Ii)={x2:x∈Q∩Ii}∪{x3:x∈Qc∩Ii},
and consequently
mi=min(Q∩Iiinfx2, Qc∩Iiinfx3),Mi=max(Q∩Iisupx2, Qc∩Iisupx3).(2)
The four branch extrema. Let g be continuous and increasing on Ii and let D⊆Ii be dense in Ii. For every x∈D, g(x)≥g(xi−1), so infDg≥g(xi−1); and by density there are tj∈D with tj↓xi−1, so infDg≤limjg(tj)=g(xi−1) by continuity. Hence infDg=g(xi−1), and symmetrically supDg=g(xi). (Neither need be attained: if xi−1 is rational, the irrational infimum xi−13 is a limit only.)
Applying this with g(x)=x2 on D=Q∩Ii and with g(x)=x3 on D=Qc∩Ii:
Q∩Iiinfx2=xi−12,Qc∩Iiinfx3=xi−13,Q∩Iisupx2=xi2,Qc∩Iisupx3=xi3.
Now feed these into (2) and use Step 1 (xi−13≤xi−12 and xi3≤xi2, both endpoints lying in [0,1]):
mi=xi−13,Mi=xi2.(3)
Step 3 — Identify the Darboux sums of f with those of x3 and x2.
Because x↦x3 is increasing on [0,1], its infimum on Ii is xi−13; because x↦x2 is increasing, its supremum on Ii is xi2. So (3) says precisely
L(P,f)=L(P,x3)andU(P,f)=U(P,x2)for every partition P.(4)
Both x3 and x2 are continuous on [0,1], hence Riemann integrable, hence their lower and upper integrals equal their ordinary integrals. Taking the supremum over P in the first identity of (4) and the infimum over P in the second:
∫01f=PsupL(P,f)=PsupL(P,x3)=∫01x3=∫01x3dx=41,
∫01f=PinfU(P,f)=PinfU(P,x2)=∫01x2=∫01x2dx=31.
Step 4 — The same two numbers computed explicitly, from a uniform partition.
(The examiner wants to see the limit done, not only quoted. This step is self-contained and re-proves Step 3’s conclusion.)
Take Pn={0,n1,n2,…,nn}, so xi=ni and Δi=n1. By (3),
L(Pn,f)=i=1∑n(ni−1)3n1=n41j=0∑n−1j3=n41⋅[2(n−1)n]2=4n2(n−1)2,
U(Pn,f)=i=1∑n(ni)2n1=n31⋅6n(n+1)(2n+1)=6n2(n+1)(2n+1).
Hence
n→∞limL(Pn,f)=41,n→∞limU(Pn,f)=31.(5)
By definition ∫01f≥L(Pn,f) and ∫01f≤U(Pn,f) for each n, so letting n→∞,
∫01f ≥ 41,∫01f ≤ 31.(6)
For the reverse inequalities — the half a hurried candidate omits — use (4): for every partition P,
L(P,f)=L(P,x3)≤∫01x3=41,U(P,f)=U(P,x2)≥∫01x2=31,
whence ∫01f≤41 and ∫01f≥31. With (6),
∫01f=41,∫01f=31.■
(The two computations agree, and 41<31 respects the general inequality ∫≤∫.)
Step 5 — Does ∫01f exist?
Riemann’s (Darboux’s) criterion. A bounded f on [a,b] is Riemann integrable iff ∫abf=∫abf; equivalently, iff for each ε>0 there is a partition P with U(P,f)−L(P,f)<ε.
Here f is bounded (0≤f≤1 on [0,1] by (1)), so the criterion applies, and
∫01f−∫01f=31−41=121=0.
Indeed, for every partition P whatsoever,
U(P,f)−L(P,f) ≥ ∫01f−∫01f=121,
so no partition can force the oscillation sum below ε=121.
Therefore ∫01f does not exist: f∈/R[0,1].■
Step 6 — Cross-check by Lebesgue’s criterion (independent second proof).
Lebesgue’s criterion. A bounded f on [a,b] is Riemann integrable iff its set of discontinuities has Lebesgue measure zero.
Here f is continuous at x0∈[0,1] iff x02=x03, i.e. iff x0∈{0,1}. Indeed, if x02=x03 then every neighbourhood of x0 contains both rationals and irrationals, along which f takes values near x02 and near x03 respectively, so f has no limit at x0; whereas if x02=x03 then ∣f(x)−f(x0)∣≤max(∣x2−x02∣,∣x3−x03∣)→0.
So the discontinuity set is (0,1), of measure 1>0, and f is not Riemann integrable — agreeing with Step 5. (In the Lebesgue theory f=x3 except on Q∩[0,1], a null set, so f is Lebesgue integrable with ∫[0,1]fdm=41. The question, being posed in Darboux language, asks about the Riemann integral, which does not exist.)
Answer
∫01f=41,∫01f=31,∫01f−∫01f=121=0 ⟹ ∫01f does not exist.