All 15 questions UPSC has asked on continuity and uniform continuity 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 · 1c 2021 · 2a 2020 · 2b 2018 · 2c 2017 · 1c 2016 · 1b 2016 · 4b 2011 · 1b 2010 · 2c 2009 · 1c 2009 · 1d 2009 · 2d 2008 · 1c(i) 2008 · 1d 2008 · 3d(ii)
Find the points of discontinuity of the function defined by
Solution
Put , so . Since :
- if (i.e. ): , so the limit is ;
- if (i.e. ): , so the limit is ;
- if (i.e. ): every term is .
So
Where : , i.e. ; in this means . At such a point , but changes sign there, so takes the values on one side and on the other. Hence is discontinuous at each .
Elsewhere is continuous and non-zero, so it keeps one sign on a neighbourhood, and is constant () there: is continuous.
Points of discontinuity: , i.e. , .
✓ Checked by computer We checked by computer: equals the sign of .
Find the maximum and minimum values of for .
Solution
, and Its roots are , both outside . Since , on the whole of , so is increasing there. The extreme values are at the end points:
- Minimum: .
- Maximum: .
✓ Checked by computer We checked by computer: has no zero in ; , .
Prove that the function is not uniformly continuous on the interval .
Solution
is uniformly continuous on if for every there is with whenever . To disprove it, we find points that get arbitrarily close while their values stay 1 apart.
Take Then but
With , no works: for large , yet . So is not uniformly continuous on .
✓ Proof checked step by step Proof checked step by step.
Show that if a function defined on an open interval of is convex, then is continuous. Show, by example, if the condition of open interval is dropped, then the convex function need not be continuous.
Solution
is convex on : for , .
Slope lemma. For in , (Write with and rearrange the convexity inequality.)
Continuity at . Because the interval is open, we can choose with .
- For , the lemma (applied to and to ) gives
- For , similarly the slope lies between the same two numbers.
So with , Hence as : is continuous at every point of .
Example on a closed interval. On let It is convex: if neither point is 1, both sides of the inequality are 0; if and , the point is less than 1, so the left side is . But is discontinuous at . So without the open interval a convex function need not be continuous (only at the end points can it fail).
✓ Proof checked step by step Proof checked step by step.
Find the supremum and the infimum of on the interval .
Solution
Let . Then The numerator has and on , so there. Hence and is increasing on .
- Supremum: attained at the right end, (it is the maximum).
- Infimum: . Since is increasing and is excluded, the infimum is , and it is not attained.
✓ Checked by computer We checked by computer: increases on from values near 1 up to .
For the function given by show that there is a differentiable function that extends .
Solution
Define by Then on , so extends .
- At : is a product and composition of differentiable functions, with .
- At : So exists.
Hence is differentiable on all of and extends . (Note is not continuous at 0, but continuity of was not required.)
✓ Proof checked step by step Proof checked step by step.
Let be a continuous function such that and exist and are finite. Prove that is uniformly continuous on .
Solution
Let , , and let .
Far right and far left. There is such that for and for . Hence
The middle. is continuous on the closed bounded interval , so it is uniformly continuous there: there is with for in this interval and .
Combine. Let and .
- If both lie in : .
- Otherwise one of them, say , satisfies (or ). As , (or ). Then both are (or both ), so again .
So is uniformly continuous on .
✓ Proof checked step by step Proof checked step by step.
Let and be defined by where (in ). Is uniformly continuous on ? Justify your answer.
Solution
No, is not uniformly continuous on .
Take and in . Then For , whatever we choose, for large we have but . So the definition of uniform continuity fails.
(The reason: near 0 the graph becomes arbitrarily steep. is continuous at each point of , but is not closed, so the theorem “continuous on a closed bounded interval uniformly continuous” does not apply.)
✓ Proof checked step by step Proof checked step by step.
Define the function Find . Is continuous at ? Justify your answer.
Solution
For :
At : since . So
is not continuous at 0. Take . Then (In fact does not exist: but oscillates between and .) So is differentiable everywhere, but is discontinuous at 0.
✓ Proof checked step by step Proof checked step by step.
State Rolle’s theorem. Use it to prove that between two roots of there will be a root of .
Solution
Rolle’s theorem. If is continuous on , differentiable on , and , then for some .
Application. Since , Let be two roots of . Then , and is continuous and differentiable everywhere. By Rolle’s theorem there is with So between any two roots of there is a root of .
✓ Proof checked step by step Proof checked step by step.
Let What are the points of discontinuity of , if any ? What are the points where is not differentiable, if any ? Justify yours answers.
Solution
Write without absolute values: (For , , the same formula as on ; for , .)
Each piece is a polynomial, so the only points to check are .
- : both pieces give 1, so is continuous. Left derivative , right derivative : not differentiable.
- : the same formula holds on both sides, so is continuous and differentiable there, with .
- : , but . A jump: is discontinuous, and hence not differentiable.
Answer: is discontinuous only at ; it is not differentiable at and .
✓ Checked by computer We checked by computer: both sides of agree at , but at the left limit is 2 while .
Show that if is a continuous function then for some real numbers and , .
Solution
We use two standard facts about a continuous on .
(1) is bounded and attains its bounds. If were unbounded, pick with ; by Bolzano–Weierstrass a subsequence , and continuity gives , contradicting . So and are finite. Pick with ; a subsequence converges to some and . Similarly for some .
(2) Intermediate value theorem. A continuous function on an interval takes every value between any two of its values.
Conclusion. Clearly . Conversely, let . On the closed interval with end points and , is continuous with , so by (2) for some between and . Hence , and
✓ Proof checked step by step Proof checked step by step.
For , show .
Solution
Apply the mean value theorem to on : there is with Since and , Therefore
✓ Proof checked step by step Proof checked step by step.
If is continuous and for all , then show that for all .
Solution
Let .
- : .
- Integers: by induction for ; in particular . Also , so , and for all .
- Rationals: for , , , so . Thus for every rational .
- Reals: given , choose rationals (the rationals are dense). By continuity,
Hence for all .
✓ Proof checked step by step Proof checked step by step.
Prove that
Solution
For all quantities are positive, so
Let , so . Writing , Put . The numerator is For : , and (as ). So the numerator is positive, and on .
Hence is strictly increasing, , i.e. , and therefore
✓ Proof checked step by step Proof checked step by step; we also checked the inequality numerically across .
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.

