← 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 ff is defined on [0,1][0, 1] by

f(x)={x2,when x is rationalx3,when x is irrationalf(x) = \begin{cases} x^2, & \text{when } x \text{ is rational}\\ x^3, & \text{when } x \text{ is irrational}\end{cases}

Evaluate lower integral ∫01‾f\displaystyle\underline{\int_{0}^{1}} f and upper integral ∫01‾f\displaystyle\overline{\int_{0}^{1}} f. Does the integral ∫01f\displaystyle\int_{0}^{1} f exist?

Technique

Darboux from first principles. On any subinterval both Q\mathbb{Q} and Qc\mathbb{Q}^c are dense, so the infimum of ff there is the smaller of the two branch-infima and the supremum is the larger of the two branch-suprema. On [0,1][0,1] we have x3≤x2x^3\le x^2 — the reverse of the ordering on [1,∞)[1,\infty), and getting it backwards interchanges the two answers. The consequence is decisive: every lower Darboux sum of ff equals the corresponding lower sum of x3x^3, and every upper sum of ff equals the corresponding upper sum of x2x^2; so the two Darboux integrals are just ∫01x3\int_0^1x^3 and ∫01x2\int_0^1x^2. The existence question is then settled by Riemann’s criterion.

Solution

Step 1 — The pointwise ordering on [0,1][0,1] (the step that decides the answer).

For x∈[0,1]x\in[0,1],

x3−x2=x2(x−1)≤0⟹x3≤x2,x^{3}-x^{2}=x^{2}(x-1)\le 0\qquad\Longrightarrow\qquad x^{3}\le x^{2},

with equality exactly at x=0x=0 and x=1x=1. Hence

on [0,1]:x3≤f(x)≤x2for every x,(1)\text{on }[0,1]:\quad x^3\le f(x)\le x^2 \quad\text{for every }x, \tag{1}

since f(x)f(x) is one of x2,x3x^2,x^3 at each point. Both bounding functions are continuous and increasing on [0,1][0,1] — a fact used repeatedly below.

Sanity anchor. On [1,∞)[1,\infty) the inequality reverses (x3≥x2x^3\ge x^2). A candidate who imports that ordering will report ∫‾f=13>∫‾f=14\underline{\int}f=\tfrac13>\overline{\int}f=\tfrac14, which is impossible, since always ∫‾f≤∫‾f\underline{\int}f\le\overline{\int}f. If your two numbers come out in the wrong order, the ordering of x2,x3x^2,x^3 is where the error is.

Step 2 — Notation, and the infimum/supremum on a subinterval.

Let P={0=x0<x1<⋯<xk=1}P=\{0=x_0<x_1<\cdots<x_k=1\} be a partition of [0,1][0,1], write Ii=[xi−1,xi]I_i=[x_{i-1},x_i], Δi=xi−xi−1>0\Delta_i=x_i-x_{i-1}>0, and

mi=inf⁡x∈Iif(x),Mi=sup⁡x∈Iif(x),m_i=\inf_{x\in I_i}f(x),\qquad M_i=\sup_{x\in I_i}f(x), L(P,f)=∑i=1kmiΔi,U(P,f)=∑i=1kMiΔi.L(P,f)=\sum_{i=1}^{k}m_i\Delta_i,\qquad U(P,f)=\sum_{i=1}^{k}M_i\Delta_i .

Since Δi>0\Delta_i>0, both Q∩Ii\mathbb{Q}\cap I_i and Qc∩Ii\mathbb{Q}^{c}\cap I_i are non-empty and dense in IiI_i (density of the rationals and of the irrationals in R\mathbb{R}). Therefore the value set of ff on IiI_i is

f(Ii)={x2:x∈Q∩Ii}  ∪  {x3:x∈Qc∩Ii},f(I_i)=\{x^{2}:x\in\mathbb{Q}\cap I_i\}\;\cup\;\{x^{3}:x\in\mathbb{Q}^{c}\cap I_i\},

and consequently

mi=min⁡(inf⁡Q∩Iix2, inf⁡Qc∩Iix3),Mi=max⁡(sup⁡Q∩Iix2, sup⁡Qc∩Iix3).(2)m_i=\min\Bigl(\inf_{\mathbb{Q}\cap I_i}x^{2},\ \inf_{\mathbb{Q}^{c}\cap I_i}x^{3}\Bigr), \qquad M_i=\max\Bigl(\sup_{\mathbb{Q}\cap I_i}x^{2},\ \sup_{\mathbb{Q}^{c}\cap I_i}x^{3}\Bigr). \tag{2}

The four branch extrema. Let gg be continuous and increasing on IiI_i and let D⊆IiD\subseteq I_i be dense in IiI_i. For every x∈Dx\in D, g(x)≥g(xi−1)g(x)\ge g(x_{i-1}), so inf⁡Dg≥g(xi−1)\inf_D g\ge g(x_{i-1}); and by density there are tj∈Dt_j\in D with tj↓xi−1t_j\downarrow x_{i-1}, so inf⁡Dg≤lim⁡jg(tj)=g(xi−1)\inf_D g\le\lim_j g(t_j)=g(x_{i-1}) by continuity. Hence inf⁡Dg=g(xi−1)\inf_D g=g(x_{i-1}), and symmetrically sup⁡Dg=g(xi)\sup_D g=g(x_i). (Neither need be attained: if xi−1x_{i-1} is rational, the irrational infimum xi−13x_{i-1}^{3} is a limit only.)

Applying this with g(x)=x2g(x)=x^{2} on D=Q∩IiD=\mathbb{Q}\cap I_i and with g(x)=x3g(x)=x^{3} on D=Qc∩IiD=\mathbb{Q}^{c}\cap I_i:

inf⁡Q∩Iix2=xi−12,inf⁡Qc∩Iix3=xi−13,sup⁡Q∩Iix2=xi2,sup⁡Qc∩Iix3=xi3.\inf_{\mathbb{Q}\cap I_i}x^{2}=x_{i-1}^{2},\quad \inf_{\mathbb{Q}^{c}\cap I_i}x^{3}=x_{i-1}^{3},\quad \sup_{\mathbb{Q}\cap I_i}x^{2}=x_{i}^{2},\quad \sup_{\mathbb{Q}^{c}\cap I_i}x^{3}=x_{i}^{3}.

Now feed these into (2) and use Step 1 (xi−13≤xi−12x_{i-1}^{3}\le x_{i-1}^{2} and xi3≤xi2x_i^{3}\le x_i^{2}, both endpoints lying in [0,1][0,1]):

  mi=xi−13,Mi=xi2.  (3)\boxed{\;m_i=x_{i-1}^{3},\qquad M_i=x_{i}^{2}.\;} \tag{3}

Step 3 — Identify the Darboux sums of ff with those of x3x^3 and x2x^2.

Because x↦x3x\mapsto x^{3} is increasing on [0,1][0,1], its infimum on IiI_i is xi−13x_{i-1}^{3}; because x↦x2x\mapsto x^{2} is increasing, its supremum on IiI_i is xi2x_i^{2}. So (3) says precisely

L(P,f)=L(P, x3)andU(P,f)=U(P, x2)for every partition P.(4)L(P,f)=L(P,\,x^{3})\qquad\text{and}\qquad U(P,f)=U(P,\,x^{2})\qquad\text{for }\textbf{every}\text{ partition }P. \tag{4}

Both x3x^{3} and x2x^{2} are continuous on [0,1][0,1], hence Riemann integrable, hence their lower and upper integrals equal their ordinary integrals. Taking the supremum over PP in the first identity of (4) and the infimum over PP in the second:

∫01‾f=sup⁡PL(P,f)=sup⁡PL(P,x3)=∫01‾x3=∫01x3 dx=14,\underline{\int_{0}^{1}}f=\sup_P L(P,f)=\sup_P L(P,x^{3})=\underline{\int_{0}^{1}}x^{3}=\int_{0}^{1}x^{3}\,dx=\frac14, ∫01‾f=inf⁡PU(P,f)=inf⁡PU(P,x2)=∫01‾x2=∫01x2 dx=13.\overline{\int_{0}^{1}}f=\inf_P U(P,f)=\inf_P U(P,x^{2})=\overline{\int_{0}^{1}}x^{2}=\int_{0}^{1}x^{2}\,dx=\frac13 .

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,1n,2n,…,nn}P_n=\left\{0,\tfrac1n,\tfrac2n,\dots,\tfrac nn\right\}, so xi=inx_i=\tfrac in and Δi=1n\Delta_i=\tfrac1n. By (3),

L(Pn,f)=∑i=1n(i−1n)31n=1n4∑j=0n−1j3=1n4⋅[(n−1)n2]2=(n−1)24n2,L(P_n,f)=\sum_{i=1}^{n}\left(\frac{i-1}{n}\right)^{3}\frac1n=\frac{1}{n^{4}}\sum_{j=0}^{n-1}j^{3} =\frac{1}{n^{4}}\cdot\left[\frac{(n-1)n}{2}\right]^{2}=\frac{(n-1)^{2}}{4n^{2}}, U(Pn,f)=∑i=1n(in)21n=1n3⋅n(n+1)(2n+1)6=(n+1)(2n+1)6n2.U(P_n,f)=\sum_{i=1}^{n}\left(\frac{i}{n}\right)^{2}\frac1n=\frac{1}{n^{3}}\cdot\frac{n(n+1)(2n+1)}{6} =\frac{(n+1)(2n+1)}{6n^{2}} .

Hence

lim⁡n→∞L(Pn,f)=14,lim⁡n→∞U(Pn,f)=13.(5)\lim_{n\to\infty}L(P_n,f)=\frac14,\qquad \lim_{n\to\infty}U(P_n,f)=\frac13 . \tag{5}

By definition ∫01‾f≥L(Pn,f)\underline{\int_0^1}f\ge L(P_n,f) and ∫01‾f≤U(Pn,f)\overline{\int_0^1}f\le U(P_n,f) for each nn, so letting n→∞n\to\infty,

∫01‾f ≥ 14,∫01‾f ≤ 13.(6)\underline{\int_{0}^{1}}f\ \ge\ \frac14,\qquad \overline{\int_{0}^{1}}f\ \le\ \frac13 . \tag{6}

For the reverse inequalities — the half a hurried candidate omits — use (4): for every partition PP,

L(P,f)=L(P,x3)≤∫01‾x3=14,U(P,f)=U(P,x2)≥∫01‾x2=13,L(P,f)=L(P,x^{3})\le\underline{\int_{0}^{1}}x^{3}=\frac14,\qquad U(P,f)=U(P,x^{2})\ge\overline{\int_{0}^{1}}x^{2}=\frac13 ,

whence ∫01‾f≤14\underline{\int_0^1}f\le\frac14 and ∫01‾f≥13\overline{\int_0^1}f\ge\frac13. With (6),

∫01‾f=14,∫01‾f=13.■\underline{\int_{0}^{1}}f=\frac14,\qquad \overline{\int_{0}^{1}}f=\frac13 .\qquad\blacksquare

(The two computations agree, and 14<13\tfrac14<\tfrac13 respects the general inequality ∫‾≤∫‾\underline{\int}\le\overline{\int}.)

Step 5 — Does ∫01f\int_0^1 f exist?

Riemann’s (Darboux’s) criterion. A bounded ff on [a,b][a,b] is Riemann integrable iff ∫ab‾f=∫ab‾f\underline{\int_a^b}f=\overline{\int_a^b}f; equivalently, iff for each ε>0\varepsilon>0 there is a partition PP with U(P,f)−L(P,f)<εU(P,f)-L(P,f)<\varepsilon.

Here ff is bounded (0≤f≤10\le f\le1 on [0,1][0,1] by (1)), so the criterion applies, and

∫01‾f−∫01‾f=13−14=112≠0.\overline{\int_{0}^{1}}f-\underline{\int_{0}^{1}}f=\frac13-\frac14=\frac1{12}\neq0 .

Indeed, for every partition PP whatsoever,

U(P,f)−L(P,f) ≥ ∫01‾f−∫01‾f=112,U(P,f)-L(P,f)\ \ge\ \overline{\int_{0}^{1}}f-\underline{\int_{0}^{1}}f=\frac{1}{12},

so no partition can force the oscillation sum below ε=112\varepsilon=\tfrac1{12}.

Therefore ∫01f does not exist: f∉R[0,1].■\textbf{Therefore } \int_{0}^{1}f \textbf{ does not exist: } f\notin\mathcal{R}[0,1].\qquad\blacksquare

Step 6 — Cross-check by Lebesgue’s criterion (independent second proof).

Lebesgue’s criterion. A bounded ff on [a,b][a,b] is Riemann integrable iff its set of discontinuities has Lebesgue measure zero.

Here ff is continuous at x0∈[0,1]x_0\in[0,1] iff x02=x03x_0^{2}=x_0^{3}, i.e. iff x0∈{0,1}x_0\in\{0,1\}. Indeed, if x02≠x03x_0^2\neq x_0^3 then every neighbourhood of x0x_0 contains both rationals and irrationals, along which ff takes values near x02x_0^2 and near x03x_0^3 respectively, so ff has no limit at x0x_0; whereas if x02=x03x_0^2=x_0^3 then ∣f(x)−f(x0)∣≤max⁡(∣x2−x02∣,∣x3−x03∣)→0|f(x)-f(x_0)|\le\max(|x^2-x_0^2|,|x^3-x_0^3|)\to0.

So the discontinuity set is (0,1)(0,1), of measure 1>01>0, and ff is not Riemann integrable — agreeing with Step 5. (In the Lebesgue theory f=x3f=x^{3} except on Q∩[0,1]\mathbb{Q}\cap[0,1], a null set, so ff is Lebesgue integrable with ∫[0,1]f dm=14\int_{[0,1]}f\,dm=\tfrac14. The question, being posed in Darboux language, asks about the Riemann integral, which does not exist.)

Answer

  ∫01‾f=14,∫01‾f=13,∫01‾f−∫01‾f=112≠0 ⟹ ∫01f does not exist.  \boxed{\;\underline{\int_{0}^{1}}f=\frac14,\qquad \overline{\int_{0}^{1}}f=\frac13,\qquad \overline{\int_{0}^{1}}f-\underline{\int_{0}^{1}}f=\frac1{12}\neq0 \ \Longrightarrow\ \int_{0}^{1}f\ \text{does not exist.}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

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