Continuity of Functions on R; Epsilon-Delta

At a Glance

Why This Chapter Matters

This atom appears once in 13 years (2018, 15 marks) and is rated T4, so it is not a priority-one topic. However, the ε\varepsilon-δ\delta technique underpins every continuity argument in the paper, and UPSC’s question type is tightly predictable: prove continuity or discontinuity of a specific function from the definition. Mastering the template here pays dividends in related atoms (uniform continuity, P2-RA-09; properties on compact sets, P2-RA-10).

Minimum Theory

Definition (Continuity at a point). Let f:R→Rf:\mathbb{R}\to\mathbb{R} and x0∈Rx_0 \in \mathbb{R}. Then ff is continuous at x0x_0 if

∀ ε>0,  ∃ δ>0 such that ∣x−x0∣<δ  ⇒  ∣f(x)−f(x0)∣<ε.\forall\,\varepsilon > 0,\;\exists\,\delta > 0 \text{ such that } |x - x_0| < \delta \;\Rightarrow\; |f(x) - f(x_0)| < \varepsilon.

Sequential characterisation. ff is continuous at x0x_0 if and only if for every sequence (xn)(x_n) with xn→x0x_n \to x_0 we have f(xn)→f(x0)f(x_n) \to f(x_0).

Discontinuity via sequences. To prove ff is discontinuous at x0x_0, it suffices to exhibit a sequence xn→x0x_n \to x_0 such that f(xn)↛f(x0)f(x_n) \not\to f(x_0).

Algebra of continuous functions. If ff and gg are continuous at x0x_0, so are f+gf+g, fgfg, and f/gf/g (provided g(x0)≠0g(x_0) \neq 0). Composition: if gg is continuous at x0x_0 and ff is continuous at g(x0)g(x_0), then f∘gf \circ g is continuous at x0x_0.

Classifying a discontinuity. At a point x0x_0 where ff fails to be continuous:

Naming which kind you have, and producing both one-sided limits, is what separates a full answer from “it is discontinuous there”.

Functions defined as a pointwise limit — the tnt^n trichotomy. When ff is defined by f(x)=lim⁡n→∞gn(x)f(x)=\lim_{n\to\infty}g_n(x) with gng_n built from an nn-th power, the limit is governed entirely by the base against 11. For gn(t)=tn−1tn+1g_n(t)=\dfrac{t^n-1}{t^n+1} with t≥0t\ge0:

t>1⇒tn→∞⇒gn→1;t=1⇒gn≡0;0≤t<1⇒tn→0⇒gn→−1,t>1\Rightarrow t^n\to\infty\Rightarrow g_n\to 1;\qquad t=1\Rightarrow g_n\equiv0;\qquad 0\le t<1\Rightarrow t^n\to0\Rightarrow g_n\to-1,

so f=sgn⁡(t−1)f=\operatorname{sgn}(t-1). The three branches must all be taken, including the endpoint t=0t=0 if the base can vanish. The resulting ff is a step function, and the question then reduces to locating where the base crosses 11. No ε\varepsilon-δ\delta work is involved — the limit is evaluated case-wise and the continuity verdict is read off the steps.

Key examples.

Proving continuity of f(x)=x2f(x) = x^2 at x0x_0. For ∣x−x0∣<δ|x - x_0| < \delta,

∣f(x)−f(x0)∣=∣x2−x02∣=∣x+x0∣ ∣x−x0∣.|f(x) - f(x_0)| = |x^2 - x_0^2| = |x + x_0|\,|x - x_0|.

Restrict δ≤1\delta \leq 1 so that ∣x−x0∣<1|x - x_0| < 1 implies ∣x∣<∣x0∣+1|x| < |x_0| + 1, giving ∣x+x0∣≤∣x∣+∣x0∣<2∣x0∣+1|x + x_0| \leq |x| + |x_0| < 2|x_0| + 1. Then

∣f(x)−f(x0)∣<(2∣x0∣+1) δ.|f(x) - f(x_0)| < (2|x_0| + 1)\,\delta.

Choose δ=min⁡ ⁣(1, ε2∣x0∣+1)\delta = \min\!\left(1,\, \dfrac{\varepsilon}{2|x_0|+1}\right). Then ∣f(x)−f(x0)∣<ε|f(x) - f(x_0)| < \varepsilon.

Question Archetypes

ArchetypeRecognition
prove-continuity”Prove ff is continuous at x0x_0 using the ε\varepsilon-δ\delta definition.”
prove-discontinuity”Prove ff is discontinuous at x0x_0.“
piecewise-analysis”Investigate continuity of a piecewise-defined function.”
limit-function-discontinuitiesff is defined as a pointwise limit of nn-th powers; find its points of discontinuity

prove-continuity (1 question(s); 2018)

Recognition Cues

Solution Template

  1. Write out ∣f(x)−f(x0)∣|f(x) - f(x_0)| explicitly.
  2. Factor or bound the expression to isolate ∣x−x0∣|x - x_0|.
  3. Impose a preliminary bound δ≤1\delta \leq 1 (or another convenient constant) to control the remaining factor.
  4. Choose δ=min⁡(1,ε/C)\delta = \min(1, \varepsilon/C) where CC is the bound on the other factor.
  5. Verify: ∣x−x0∣<δ⇒∣f(x)−f(x0)∣<C⋅δ≤ε|x - x_0| < \delta \Rightarrow |f(x) - f(x_0)| < C \cdot \delta \leq \varepsilon.

Worked Example

2018 Paper 2, 2018-P2-Q2a (15 marks)

Using the ε\varepsilon-δ\delta definition, prove that f(x)=x2f(x) = x^2 is continuous at every point x0∈Rx_0 \in \mathbb{R}.

Proof.

Let x0∈Rx_0 \in \mathbb{R} and ε>0\varepsilon > 0 be given. We need to find δ>0\delta > 0 such that

∣x−x0∣<δ  ⟹  ∣x2−x02∣<ε.|x - x_0| < \delta \;\Longrightarrow\; |x^2 - x_0^2| < \varepsilon.

Observe that

∣x2−x02∣=∣x−x0∣ ∣x+x0∣.|x^2 - x_0^2| = |x - x_0|\,|x + x_0|.

Preliminary bound. Assume first that δ≤1\delta \leq 1, so ∣x−x0∣<1|x - x_0| < 1. Then

∣x∣≤∣x−x0∣+∣x0∣<1+∣x0∣,|x| \leq |x - x_0| + |x_0| < 1 + |x_0|,

and by the triangle inequality,

∣x+x0∣≤∣x∣+∣x0∣<(1+∣x0∣)+∣x0∣=1+2∣x0∣.|x + x_0| \leq |x| + |x_0| < (1 + |x_0|) + |x_0| = 1 + 2|x_0|.

Choice of δ\delta. Set

δ=min⁡ ⁣(1,  ε1+2∣x0∣).\delta = \min\!\left(1,\; \frac{\varepsilon}{1 + 2|x_0|}\right).

Verification. For ∣x−x0∣<δ|x - x_0| < \delta,

∣x2−x02∣=∣x−x0∣ ∣x+x0∣<δ (1+2∣x0∣)≤ε1+2∣x0∣ (1+2∣x0∣)=ε.|x^2 - x_0^2| = |x - x_0|\,|x + x_0| < \delta\,(1 + 2|x_0|) \leq \frac{\varepsilon}{1+2|x_0|}\,(1 + 2|x_0|) = \varepsilon.

Since ε>0\varepsilon > 0 was arbitrary and δ\delta depends only on ε\varepsilon and x0x_0, ff is continuous at x0x_0. As x0x_0 was arbitrary, f(x)=x2f(x) = x^2 is continuous on R\mathbb{R}.

f(x)=x2 is continuous on R.  ■\boxed{f(x) = x^2 \text{ is continuous on } \mathbb{R}.}\;\blacksquare

Common Traps

limit-function-discontinuities (1 question(s); 2026)

The opposite question type to prove-continuity: nothing here is done by ε\varepsilon-δ\delta. The function is handed to you as a limit, you evaluate that limit case-wise into a step function, and then you find — not verify — the discontinuity set. Expect the answer to be an infinite set.

Recognition Cues

Solution Template

  1. Name the base t=t(x)t=t(x) and record its range. If tt can be 00, say so and check the printed expression is still defined at every nn.
  2. Apply the trichotomy t>1t>1, t=1t=1, 0≤t<10\le t<1 and collapse ff to a closed form (typically a sign or step function).
  3. Locate the breakpoints — where the base crosses 11 — in terms of xx. Substituting u=π/xu=\pi/x or similar is usually the cleanest route.
  4. Determine the sign on each interval between breakpoints, so that ff is described completely.
  5. Continuity off the breakpoints: ff is locally constant there, hence continuous — one line.
  6. Discontinuity at each breakpoint: compute both one-sided limits, show they differ, and classify the jump. This is where the marks concentrate.
  7. Check the endpoints of the domain. An open interval excludes points that would otherwise belong to the answer.

Worked Example

2026 Paper 2, 2026-P2-Q1c (10 marks)

Find the points of discontinuity of f:(0,1)→Rf:(0,1)\to\mathbb{R} defined by f(x)=lim⁡n→∞(1+sin⁡πx)n−1(1+sin⁡πx)n+1f(x)=\lim\limits_{n\to\infty}\dfrac{\left(1+\sin\frac{\pi}{x}\right)^n-1}{\left(1+\sin\frac{\pi}{x}\right)^n+1}.

Source: analysis/solutions/2026-P2-Q1c.md

Step 1 — The base. Put s=sin⁡πxs=\sin\frac{\pi}{x} and t=1+st=1+s. Since −1≤s≤1-1\le s\le1 we have 0≤t≤20\le t\le2, so tn≥0t^n\ge0 and the denominator tn+1≥1>0t^n+1\ge1>0: the printed quotient is well defined for every xx and every nn. (Worth a line — tt does vanish, e.g. at x=23x=\tfrac23 where sin⁡3π2=−1\sin\tfrac{3\pi}{2}=-1.)

Step 2 — Trichotomy. t>1⇒f=1t>1\Rightarrow f=1; t=1⇒f=0t=1\Rightarrow f=0; 0≤t<1⇒f=−10\le t<1\Rightarrow f=-1 (including t=0t=0, where tn=0t^n=0 for all n≥1n\ge1). Hence

f(x)=sgn⁡ ⁣(sin⁡πx).\boxed{f(x)=\operatorname{sgn}\!\left(\sin\frac{\pi}{x}\right).}

Step 3 — Breakpoints. With u=π/xu=\pi/x, as xx runs over (0,1)(0,1), uu runs over (π,∞)(\pi,\infty). Then sin⁡u=0  ⟺  u=kπ\sin u=0\iff u=k\pi, and u>πu>\pi forces k≥2k\ge2, giving

E={1k: k≥2}={12,13,14,…}.E=\left\{\tfrac1k:\ k\ge2\right\}=\left\{\tfrac12,\tfrac13,\tfrac14,\ldots\right\}.

Note x=1x=1 (which would come from k=1k=1) is not in the open interval.

Step 4 — Signs. For x∈(1k+1,1k)x\in\left(\tfrac{1}{k+1},\tfrac1k\right) we have u∈(kπ,(k+1)π)u\in(k\pi,(k+1)\pi), where sin⁡u\sin u has constant sign (−1)k(-1)^k. So f=(−1)kf=(-1)^k there, and f=0f=0 on EE.

Step 5 — Continuity off EE. Any x0∉Ex_0\notin E lies in one of these open intervals, on which ff is constant; a function constant on a neighbourhood of a point is continuous at it.

Step 6 — Discontinuity on EE. Fix x0=1kx_0=\tfrac1k, k≥2k\ge2. Then f(x0)=0f(x_0)=0, while

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

the right-hand interval (1k,1k−1)\left(\tfrac1k,\tfrac{1}{k-1}\right) being non-empty precisely because k≥2k\ge2. The two one-sided limits are +1+1 and −1-1 in some order, so lim⁡x→1/kf\lim_{x\to1/k}f does not exist: a first-kind (jump) discontinuity of jump 22, with f(1/k)=0f(1/k)=0 sitting at the midpoint — so it is irremovable however f(1/k)f(1/k) is redefined.

D={1k: k=2,3,4,…}.\boxed{D=\left\{\tfrac1k:\ k=2,3,4,\ldots\right\}.}

Two structural remarks the phrasing invites. DD is countably infinite and accumulates only at x=0x=0, which is not in the domain; so every point of DD is isolated in DD, and on any [a,b]⊂(0,1)[a,b]\subset(0,1) with a>0a>0 there are only finitely many discontinuities (hence ff is Riemann integrable there). Had the domain been [0,1)[0,1), the point 00 would be a far worse, second-kind discontinuity — ff oscillates between ±1\pm1 in every neighbourhood of 00.

Common Traps

Marks-Aware Writing

At 15 marks, write a complete proof with every logical step made explicit: state ε>0\varepsilon > 0 given, state the goal, show the algebra, make the preliminary bound, choose δ\delta, verify the implication, and close with “since ε\varepsilon was arbitrary.” Skipping any of these steps risks losing 3–5 marks. Roughly: setup and algebra — 4 marks; preliminary bound and δ\delta choice — 5 marks; verification — 4 marks; conclusion — 2 marks.

Practice Set

Only one historical question on this atom (shown above).

Ready to drill what you just read?

Daily Practice turns these patterns into one adaptive set a day — practised daily until they're automatic, free for everyone.

See Daily Practice →

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