All 21 questions UPSC has asked on riemann integral in the Mathematics Optional (Paper II, Real Analysis) from 2008 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Real Analysis topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the answer was worked out again independently with computer algebra (SymPy).
- ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 3b 2026 · 4b 2025 · 4b 2024 · 1c 2024 · 4b 2022 · 1c 2022 · 2a 2021 · 1c 2020 · 4b 2019 · 1c 2019 · 4c 2018 · 1b 2017 · 2a 2015 · 2b 2014 · 1b 2014 · 2b 2013 · 1c 2013 · 3d 2012 · 3b 2012 · 4b 2008 · 3c
A function is defined on by Evaluate lower integral and upper integral . Does the integral exist?
Solution
On we have . Take any partition . Each subinterval contains both rationals and irrationals (both are dense), and are continuous and increasing, so Hence and : the upper sums of are those of the continuous function , and the lower sums are those of . Taking the infimum and supremum over all partitions,
Since , the upper and lower integrals differ, so does not exist ( is not Riemann integrable).
✓ Checked by computer We checked by computer: and .
Prove that the improper integral is divergent.
Solution
The integrand is positive, so it is enough to find pieces of whose integrals add up to .
Fix and look at . On :
- ;
- .
So , and the integrand is on . Therefore The are disjoint, so for every , as the harmonic series diverges. Hence the improper integral diverges.
(Away from the zeros of the integrand is small, but near each it rises to 1 on an interval of width about , and these widths add up to infinity.)
✓ Proof checked step by step Proof checked step by step.
Prove that every continuous function is Riemann integrable.
Solution
Let be continuous on . We use the Riemann criterion: is integrable iff for every there is a partition with .
- A continuous function on a closed bounded interval is bounded and uniformly continuous. So, given , there is such that
- Take any partition with all . On , attains its maximum and minimum at points less than apart, so .
- Then
By the Riemann criterion, is Riemann integrable on .
✓ Proof checked step by step Proof checked step by step.
Test the convergence of .
Solution
The integrand is unbounded at both ends: as , and as . Split at .
Near 0, on : , so , and (using ). So converges absolutely.
Near 2, on : , so , and converges (power ).
Both parts converge, so is convergent (in fact absolutely).
✓ Checked by computer We checked by computer: the integral converges, with value about .
Find the upper and lower Riemann integrals for the function defined on as follows : Hence, show that is not Riemann integrable on .
Solution
Comparing the two formulas. For ,
Both and are continuous and decreasing on , and every subinterval contains rationals and irrationals. So on : Thus and for every partition , which gives ( is the area of a quarter of the unit circle.)
Since , the upper and lower integrals differ, so is not Riemann integrable on .
✓ Checked by computer We checked by computer: and .
Test the convergence of .
Solution
For all , By the comparison test, converges, so the integral is absolutely convergent (hence convergent).
(Its value, found by contour integration, is .)
✓ Checked by computer We checked by computer: the integral converges, to about .
Let on , . Show that is Riemann integrable on the closed interval and .
Solution
Let divide into equal parts, . Since is increasing on , on we have , . So
- Integrable: , so by the Riemann criterion is integrable on .
- Value: as , both and tend to . Since ,
✓ Checked by computer We checked by computer: and both tend to .
If a function is monotonic in the interval , then prove that is Riemann integrable in .
Solution
Suppose is increasing on (the decreasing case is the same with signs reversed). If , is constant and there is nothing to prove; so let . is bounded, since .
Let divide into equal parts of length . Since is increasing, on we have and . So because the sum telescopes.
Given , choose . Then , so by the Riemann criterion is Riemann integrable on .
✓ Proof checked step by step Proof checked step by step.
Show that
Solution
Let . Substituting swaps and : Adding, using and . Since , because , and . Hence
✓ Checked by computer We checked by computer: the integral is .
Evaluate
Solution
Let , . Then .
Differentiate under the integral sign. , which is bounded by (integrable), so
Partial fractions (here we need ): Since and ,
Integrate: , and gives . So (The formula also holds at , by continuity.)
✓ Checked by computer We checked by computer: numerical integration matches for .
Discuss the convergence of .
Solution
The only trouble point is , where ; on the integrand is positive and continuous.
Compare with . As , since . By the limit comparison test, behaves like .
But . Hence the given integral diverges.
✓ Checked by computer We checked by computer: as .
Prove the inequality : .
Solution
On , increases from to , so with strict inequalities for . The functions are continuous, so integrating gives strict inequalities: Now Hence
✓ Checked by computer We checked by computer: the integral is about , between and .
Let where denotes the largest integer less than or equal to . (i) Determine all the real numbers at which is differentiable. (ii) Determine all the real numbers at which is continuous but not differentiable.
Solution
is bounded on every bounded interval and has only finitely many discontinuities there (at the integers), so it is integrable and is defined for all real .
is continuous everywhere. On , , so for .
Where is continuous. By the fundamental theorem of calculus, if the integrand is continuous at , then . is continuous at every non-integer, so is differentiable at every , with .
At an integer . Using on and on : The one-sided derivatives differ, so is not differentiable at .
Answers.
- is differentiable at all real that are not integers.
- is continuous but not differentiable exactly at the integers .
✓ Proof checked step by step Proof checked step by step.
Is the function Riemann integrable? If yes, obtain the value of .
Solution
Integrable. is a step function taking the value on , with . As increases, decreases and increases, so is monotonic increasing on (and bounded by 1). A monotonic function is Riemann integrable, so yes, is integrable.
Value. On , is a step function with finitely many steps, so On , , so that piece is at most . Hence Using , and (telescoping),
✓ Checked by computer We checked by computer: the series sums to .
Test the convergence of the improper integral .
Solution
For , , so By the comparison test, is convergent.
(One can also use the limit test: , and converges since the power .)
✓ Checked by computer We checked by computer: the integral converges, to about .
Integrate , where
Solution
Spot the antiderivative. Let for , . Then
- for : ;
- at 0: .
So on the whole of .
is integrable. , and is continuous except at . A bounded function with one discontinuity is Riemann integrable.
Value. If is differentiable on and is Riemann integrable, then (the fundamental theorem of calculus). Hence
✓ Checked by computer We checked by computer: numerical integration gives .
Let Is Riemann integrable in the interval ? Why ? Does there exist a function such that ? Justify your answer.
Solution
Integrable – yes. is bounded on and continuous except at , where it jumps (left limit 2, value ). A bounded function with finitely many discontinuities is Riemann integrable. Its value is
Is there with ? – no (on any interval containing 0, e.g. ). By Darboux’s theorem, a derivative has the intermediate value property: if exists on an interval, it takes every value between any two of its values. But near 0, takes values (for ) and (for ), and never the value 3. On , , yet for all . So cannot be a derivative there.
(Integrability and having an antiderivative are different properties: this is integrable but has no antiderivative on .)
✓ Checked by computer We checked by computer: .
Let denote the integer part of the real number , i.e., if where is an integer, then . Is the function Riemann integrable in ? If not, explain why. If it is integrable, compute .
Solution
On , takes only the values : This is a bounded step function with finitely many discontinuities (at ), so it is Riemann integrable. The value at the single point does not affect the integral:
✓ Checked by computer We checked by computer: the integral is 11.
Let be differentiable on such that and . Prove that .
Solution
(We assume, as the question intends, that is integrable on , e.g. continuous.)
Since , integrate by parts with and , : The boundary term is because . And . Hence
✓ Proof checked step by step Proof checked step by step.
Give an example of a function , that is not Riemann integrable but is Riemann integrable. Justify.
Solution
On let
is not Riemann integrable. Every subinterval of every partition contains both rationals and irrationals, so and . Hence for every partition , The upper integral is and the lower integral is ; they differ.
is Riemann integrable. for every , a constant function, with .
So is not integrable while is. (This shows the converse of “ integrable integrable” is false.)
✓ Proof checked step by step Proof checked step by step.
Let be a continuous function on . Using first mean value theorem on Integration, prove that
Solution
First mean value theorem. If is continuous and is integrable on , then for some .
Here , with . Using the theorem on the whole of is not enough (we would not know where is), so split at .
Near 0. On : As : , so by continuity, and . This part tends to .
Away from 0. On , with (continuous on ):
Adding the two parts,
✓ Proof checked step by step Proof checked step by step; we also checked numerically with (values for , approaching ).
More on Real Analysis
- Real Analysis topic-wise PYQs (questions only, for practice)
- Mathematics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Mathematics booklist
Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

