← 2026 Paper 2

UPSC 2026 Maths Optional Paper 2 Q1c — Step-by-Step Solution

10 marks · Section A

Continuity of Functions on R; Epsilon-Delta · Real Analysis · asked 2× in 14 yrs · Read the full method →

Question

Find the points of discontinuity of the function f:(0,1)→Rf : (0, 1) \to \mathbb{R} defined by

f(x)=lim⁡n→∞(1+sin⁡πx)n−1(1+sin⁡πx)n+1,x∈(0,1).f(x) = \lim_{n\to\infty} \frac{\left(1 + \sin\dfrac{\pi}{x}\right)^{n} - 1}{\left(1 + \sin\dfrac{\pi}{x}\right)^{n} + 1},\qquad x \in (0, 1).

Technique

The expression is a function of the single quantity t=1+sin⁡πxt=1+\sin\frac{\pi}{x}, and tn−1tn+1\dfrac{t^{n}-1}{t^{n}+1} has three completely different limits according as t>1t>1, t=1t=1, t<1t<1 — the classical ”tnt^n trichotomy” that governs every “limit-of-nnth-powers” function. Here t∈[0,2]t\in[0,2], so the trichotomy is decided purely by the sign of sin⁡πx\sin\frac{\pi}{x}, and the closed form collapses to f=sgn⁡ ⁣(sin⁡πx)f=\operatorname{sgn}\!\left(\sin\frac{\pi}{x}\right). After that the question is elementary: locate the zeros of sin⁡πx\sin\frac\pi x in (0,1)(0,1) and check the two one-sided limits at each. The trigger: a limit of nnth powers means “case-split on the base against 11”, never a single algebraic manipulation.

Solution

Step 0 — Name the base and record its range; check the expression is even defined.

Put

s=s(x)=sin⁡πx,t=t(x)=1+s(x).s = s(x)=\sin\frac{\pi}{x},\qquad t = t(x) = 1+s(x).

Since −1≤s≤1-1\le s\le 1 for all xx,

0 ≤ t ≤ 2.0\ \le\ t\ \le\ 2 .

In particular t≥0t\ge 0, so tn≥0t^{n}\ge 0 for every n≥1n\ge1, and therefore

tn+1 ≥ 1 > 0.t^{n}+1\ \ge\ 1\ >\ 0 .

The denominator never vanishes, for any x∈(0,1)x\in(0,1) and any nn: the sequence whose limit defines ff is well defined term by term. (This is worth one line — the base can be 00, e.g. at x=23x=\tfrac23 where sin⁡3π2=−1\sin\frac{3\pi}{2}=-1, and a careless solution divides by something it has not checked.)

Step 1 — Evaluate the limit: the tnt^{n} trichotomy.

Write gn(t)=tn−1tn+1g_n(t)=\dfrac{t^{n}-1}{t^{n}+1}.

Case (i): t>1t>1, i.e. s>0s>0. Then tn→∞t^{n}\to\infty. Divide numerator and denominator by tnt^{n} (legitimate, tn>0t^n>0):

gn(t)=1−t−n1+t−n ⟶ 1−01+0=1,since 0<t−1<1⇒t−n→0.g_n(t)=\frac{1-t^{-n}}{1+t^{-n}}\ \longrightarrow\ \frac{1-0}{1+0}=1 ,\qquad\text{since } 0<t^{-1}<1\Rightarrow t^{-n}\to0 .

Case (ii): t=1t=1, i.e. s=0s=0. Then tn=1t^{n}=1 for every nn, so

gn(t)=1−11+1=0for every n ⟹ lim⁡n→∞gn(t)=0.g_n(t)=\frac{1-1}{1+1}=0\quad\text{for every }n\ \Longrightarrow\ \lim_{n\to\infty}g_n(t)=0 .

Case (iii): 0≤t<10\le t<1, i.e. −1≤s<0-1\le s<0. Then tn→0t^{n}\to 0 — for 0<t<10<t<1 this is the standard geometric fact, and for t=0t=0 (which does occur, at the points where sin⁡πx=−1\sin\frac\pi x=-1) we have tn=0t^{n}=0 for every n≥1n\ge1, so the limit is 00 there too. Hence

gn(t) ⟶ 0−10+1=−1.g_n(t)\ \longrightarrow\ \frac{0-1}{0+1}=-1 .

Therefore

f(x)={   1,sin⁡πx>0,   0,sin⁡πx=0,−1,sin⁡πx<0,i.e.f(x)=sgn⁡ ⁣(sin⁡πx),x∈(0,1).f(x)=\begin{cases}\ \ \,1, & \sin\dfrac{\pi}{x}>0,\\[4pt] \ \ \,0, & \sin\dfrac{\pi}{x}=0,\\[4pt] -1, & \sin\dfrac{\pi}{x}<0,\end{cases} \qquad\text{i.e.}\qquad \boxed{f(x)=\operatorname{sgn}\!\left(\sin\frac{\pi}{x}\right)},\quad x\in(0,1).

So ff takes only the three values −1,0,1-1,0,1; it is bounded, ∣f∣≤1|f|\le1.

Step 2 — Locate the zeros of sin⁡πx\sin\frac{\pi}{x} inside (0,1)(0,1).

Substitute u=πxu=\dfrac{\pi}{x}. As xx runs over (0,1)(0,1), uu runs over (π,∞)(\pi,\infty) — decreasingly in xx: x↓x\downarrow corresponds to u↑u\uparrow.

sin⁡u=0  ⟺  u=kπ, k∈Z.\sin u=0\iff u=k\pi,\ k\in\mathbb{Z}.

Combined with u>πu>\pi this forces k≥2k\ge 2, and

u=kπ  ⟺  πx=kπ  ⟺  x=1k.u=k\pi\iff \frac{\pi}{x}=k\pi\iff x=\frac1k .

Hence

sin⁡πx=0  on (0,1)  ⟺  x∈E:={12, 13, 14, …}={1k: k≥2}.\sin\frac{\pi}{x}=0\ \text{ on }(0,1)\iff x\in E:=\Big\{\tfrac12,\ \tfrac13,\ \tfrac14,\ \dots\Big\}=\Big\{\tfrac1k:\ k\ge2\Big\}.

Note carefully that x=1x=1 (which would come from k=1k=1) is not in the open interval (0,1)(0,1), and neither is x=0x=0; the open domain is doing real work here.

Step 3 — Sign of sin⁡πx\sin\frac{\pi}{x} between consecutive zeros; the explicit form of ff.

For an integer k≥1k\ge1,

x∈(1k+1, 1k)  ⟺  u=πx∈(kπ, (k+1)π),x\in\left(\frac{1}{k+1},\ \frac1k\right)\iff u=\frac{\pi}{x}\in\big(k\pi,\ (k+1)\pi\big),

and on (kπ,(k+1)π)(k\pi,(k+1)\pi) the sine has the constant sign (−1)k(-1)^{k} (positive on (0,π)(0,\pi) and alternating thereafter). Therefore

f(x)=(−1)kfor x∈(1k+1, 1k), k=1,2,3,…,f(x)=(-1)^{k}\qquad\text{for } x\in\left(\frac{1}{k+1},\ \frac1k\right),\ k=1,2,3,\dots,

and f(x)=0f(x)=0 for x∈Ex\in E. Since

(0,1)=⋃k≥1(1k+1,1k) ∪ E,(0,1)=\bigcup_{k\ge1}\left(\frac{1}{k+1},\frac1k\right)\ \cup\ E ,

this describes ff completely:

f=−1 on (12,1),f=+1 on (13,12),f=−1 on (14,13),f=+1 on (15,14), …f=-1 \text{ on }\left(\tfrac12,1\right),\quad f=+1\text{ on }\left(\tfrac13,\tfrac12\right),\quad f=-1\text{ on }\left(\tfrac14,\tfrac13\right),\quad f=+1\text{ on }\left(\tfrac15,\tfrac14\right),\ \dots

with f(1k)=0f\big(\tfrac1k\big)=0 at every one of the separating points.

Step 4 — ff is continuous at every point of (0,1)∖E(0,1)\setminus E.

Let x0∈(0,1)x_{0}\in(0,1) with x0∉Ex_{0}\notin E. Then x0x_{0} lies in exactly one of the open intervals (1k+1,1k)\left(\frac{1}{k+1},\frac1k\right), which is an open neighbourhood of x0x_{0} inside (0,1)(0,1) on which ff is the constant (−1)k(-1)^{k}. A function constant on a neighbourhood of a point is continuous at that point. Hence ff is continuous at x0x_{0}.

Step 5 — ff is discontinuous at every point of EE; both one-sided limits computed.

Fix k≥2k\ge2 and put x0=1k∈(0,1)x_{0}=\dfrac1k\in(0,1). By Step 3, f(x0)=0f(x_{0})=0, and:

lim⁡x→1k−f(x)=(−1)k.\lim_{x\to\frac1k^{-}}f(x)=(-1)^{k}. lim⁡x→1k+f(x)=(−1)k−1=−(−1)k.\lim_{x\to\frac1k^{+}}f(x)=(-1)^{k-1}=-(-1)^{k}.

The two one-sided limits are +1+1 and −1-1 in one order or the other; in particular

lim⁡x→1k−f(x) ≠ lim⁡x→1k+f(x),\lim_{x\to\frac1k^{-}}f(x)\ \neq\ \lim_{x\to\frac1k^{+}}f(x),

so lim⁡x→1/kf(x)\displaystyle\lim_{x\to 1/k}f(x) does not exist, and ff is discontinuous at x0=1kx_{0}=\frac1k.

Both one-sided limits exist and are finite, so each is a discontinuity of the first kind (a jump), with jump

∣lim⁡x→x0+f−lim⁡x→x0−f∣=2,\left|\lim_{x\to x_0^{+}}f-\lim_{x\to x_0^{-}}f\right|=2 ,

and the value f(x0)=0f(x_{0})=0 is the midpoint of the jump — it agrees with neither one-sided limit, so the discontinuity is irremovable no matter how f(1/k)f(1/k) is redefined.

Concretely, at x0=12x_{0}=\tfrac12 (k=2k=2): lim⁡x→12−f=+1\lim_{x\to\frac12^{-}}f=+1,  f(12)=0\ f\left(\tfrac12\right)=0,  lim⁡x→12+f=−1\ \lim_{x\to\frac12^{+}}f=-1.

Step 6 — Assemble, and note what the open interval excludes.

D={points of discontinuity of f}=E={1k: k=2,3,4,… }={12,13,14,15,… }.D=\{\text{points of discontinuity of }f\}=E=\left\{\frac1k:\ k=2,3,4,\dots\right\}=\left\{\frac12,\frac13,\frac14,\frac15,\dots\right\}.

Two structural remarks that the phrasing of the question invites:

  1. DD is countably infinite, and its points accumulate only at x=0x=0, which is not in the domain. Consequently every point of DD is isolated in DD, and on any closed subinterval [a,b]⊂(0,1)[a,b]\subset(0,1) with a>0a>0 the function ff has only finitely many discontinuities — so ff is Riemann integrable on every such [a,b][a,b] (Lebesgue’s criterion: DD has measure zero).
  2. Had the domain been [0,1)[0,1), the point x=0x=0 would be a further, far worse discontinuity: ff oscillates between +1+1 and −1-1 in every neighbourhood of 00, so neither one-sided limit exists there (a discontinuity of the second kind). Had it been (0,1](0,1], the endpoint x=1x=1 would join DD as well, since sin⁡π=0\sin\pi=0 gives f(1)=0f(1)=0 while f→−1f\to-1 as x→1−x\to1^{-}. The open interval (0,1)(0,1) excludes both. ■\qquad\blacksquare

Answer

  f(x)=sgn⁡ ⁣(sin⁡πx)={(−1)k,1k+1<x<1k  (k=1,2,3,… )0,x=1k  (k=2,3,4,… )  \boxed{\;f(x)=\operatorname{sgn}\!\left(\sin\frac{\pi}{x}\right)=\begin{cases}(-1)^{k}, & \dfrac{1}{k+1}<x<\dfrac1k\ \ (k=1,2,3,\dots)\\[4pt] 0, & x=\dfrac1k\ \ (k=2,3,4,\dots)\end{cases}\;}   Points of discontinuity: D={1k: k=2,3,4,… }={12,13,14,… }; each is a jump (first-kind) discontinuity of jump 2, with f ⁣(1k)=0 and one-sided limits (−1)k, (−1)k−1. f is continuous on (0,1)∖D.  \boxed{\;\text{Points of discontinuity: } D=\left\{\tfrac1k:\ k=2,3,4,\dots\right\}=\left\{\tfrac12,\tfrac13,\tfrac14,\dots\right\};\ \text{each is a jump (first-kind) discontinuity of jump }2,\ \text{with } f\!\left(\tfrac1k\right)=0\ \text{and one-sided limits } (-1)^{k},\,(-1)^{k-1}.\ f \text{ is continuous on } (0,1)\setminus D.\;}
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.