Limits and Continuity of Real-Valued Functions

⚡ Key Takeaways

Limits describe the value a function approaches as its input approaches a point; continuity demands that this limiting value actually equals the function's value there. One-line: lim⁡x→af(x)=L\lim_{x\to a} f(x) = L means f(x)f(x) can be forced arbitrarily close to LL by taking xx close enough to aa (but not equal). Applies wherever functions on R\mathbb{R} must be analyzed for smoothness, approximation, optimization, and convergence. Formalized rigorously by Cauchy, Bolzano, and Weierstrass in the 19th century.

💡 The Core Insight

A limit is a statement about a challenge-response game: an adversary names a tolerance ε>0\varepsilon > 0 around the candidate value LL; you must produce a neighborhood radius δ>0\delta > 0 around aa guaranteeing every input within δ\delta (excluding aa itself) lands within ε\varepsilon of LL. The value f(a)f(a) — and even whether it exists — is irrelevant to the limit. Continuity is precisely the demand that you can win this game with L=f(a)L = f(a), eliminating the gap between the approach and the destination.

Formal Statement

DefinitionLimit of a Function (ε–δ)

Let ff be defined on a punctured neighborhood of a∈Ra \in \mathbb{R}. We say lim⁡x→af(x)=L\lim_{x\to a} f(x) = L if:

1
∀ε>0    ∃δ>0    ∀x    (0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε)\quad \forall \varepsilon > 0 \;\; \exists \delta > 0 \;\; \forall x \;\; \big(0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon\big)

Derivation hint: Read inner-to-outer — given the tolerance ε\varepsilon, the existential δ\delta promises a punctured interval (a−δ,a+δ)∖{a}(a-\delta, a+\delta)\setminus\{a\} mapping into (L−ε,L+ε)(L-\varepsilon, L+\varepsilon). Here ε\varepsilon is the output tolerance, δ\delta the input radius, aa the limit point, LL the limit value, and ∣x−a∣|x-a|, ∣f(x)−L∣|f(x)-L| are Euclidean distances on R\mathbb{R}. The condition 0<∣x−a∣0 < |x-a| explicitly excludes x=ax = a.

DefinitionOne-Sided Limits

The right-hand and left-hand limits are:

2
lim⁡x→a+f(x)=L+  ⟺  ∀ε>0  ∃δ>0    (a<x<a+δ  ⟹  ∣f(x)−L+∣<ε)\quad \lim_{x\to a^+} f(x) = L^+ \iff \forall\varepsilon>0\;\exists\delta>0\;\;(a < x < a+\delta \implies |f(x)-L^+|<\varepsilon)

Derivation hint: Restrict the punctured neighborhood to its right half a<x<a+δa<x<a+\delta; the left-hand version uses a−δ<x<aa-\delta<x<a. The two-sided limit exists iff both one-sided limits exist and are equal:

3
lim⁡x→af(x)=L  ⟺  lim⁡x→a+f(x)=lim⁡x→a−f(x)=L\quad \lim_{x\to a} f(x) = L \iff \lim_{x\to a^+} f(x) = \lim_{x\to a^-} f(x) = L

Derivation hint: Splitting the punctured neighborhood into left and right halves shows the two-sided δ\delta is the minimum of the one-sided δ\delta's.

DefinitionContinuity at a Point

ff is continuous at aa if a∈dom(f)a \in \mathrm{dom}(f) and:

4
lim⁡x→af(x)=f(a)\quad \lim_{x\to a} f(x) = f(a)

Derivation hint: This single equation silently asserts three conditions — f(a)f(a) exists, the limit exists, and they are equal. Equivalently, in ε–δ form (note 0<∣x−a∣0 < |x-a| becomes just ∣x−a∣|x-a|, since x=ax=a trivially satisfies the conclusion):

5
∀ε>0  ∃δ>0    (∣x−a∣<δ  ⟹  ∣f(x)−f(a)∣<ε)\quad \forall\varepsilon>0\;\exists\delta>0\;\;(|x-a|<\delta \implies |f(x)-f(a)|<\varepsilon)

Derivation hint: Set L=f(a)L = f(a) in [1]; the point x=ax=a may be included because ∣f(a)−f(a)∣=0<ε|f(a)-f(a)| = 0 < \varepsilon holds automatically.

DefinitionContinuity on a Set

ff is continuous on S⊆RS \subseteq \mathbb{R} if it is continuous at every point of SS (using one-sided continuity at endpoints). ff is uniformly continuous on SS if:

6
∀ε>0  ∃δ>0  ∀x,y∈S    (∣x−y∣<δ  ⟹  ∣f(x)−f(y)∣<ε)\quad \forall\varepsilon>0\;\exists\delta>0\;\forall x,y\in S\;\;(|x-y|<\delta \implies |f(x)-f(y)|<\varepsilon)

Derivation hint: Compare with [5] — here a single δ\delta must work for <strong>all</strong> points simultaneously; the quantifier ∀x\forall x moved inside, after ∃δ\exists\delta.

TheoremSequential Characterization (Heine)

lim⁡x→af(x)=L\lim_{x\to a} f(x) = L if and only if for every sequence (xn)(x_n) with xn→ax_n \to a and xn≠ax_n \neq a:

7
lim⁡n→∞f(xn)=L\quad \lim_{n\to\infty} f(x_n) = L

Derivation hint: Forward direction uses ε–δ on the tail of (xn)(x_n); reverse direction is by contraposition, building a violating sequence xnx_n with ∣xn−a∣<1/n|x_n-a|<1/n but ∣f(xn)−L∣≥ε0|f(x_n)-L|\ge\varepsilon_0. This converts function-limit problems into sequence-limit problems, and is the standard tool for disproving limits (find two sequences giving different values).

TheoremAlgebraic Limit Laws

If lim⁡x→af=L\lim_{x\to a} f = L and lim⁡x→ag=M\lim_{x\to a} g = M, then:

8
lim⁡x→a(f+g)=L+M,lim⁡x→a(fg)=LM,lim⁡x→afg=LM (M≠0)\quad \lim_{x\to a}(f+g) = L+M,\quad \lim_{x\to a}(fg) = LM,\quad \lim_{x\to a}\frac{f}{g} = \frac{L}{M}\ (M\neq 0)

Derivation hint: For the sum, ∣(f+g)−(L+M)∣≤∣f−L∣+∣g−M∣|(f+g)-(L+M)| \le |f-L|+|g-M|; force each below ε/2\varepsilon/2. For products, add and subtract Lg(x)Lg(x).

TheoremSqueeze Theorem

If g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) near aa and lim⁡x→ag=lim⁡x→ah=L\lim_{x\to a} g = \lim_{x\to a} h = L, then:

9
lim⁡x→af(x)=L\quad \lim_{x\to a} f(x) = L

Derivation hint: Both gg and hh lie in (L−ε,L+ε)(L-\varepsilon, L+\varepsilon); the squeezed ff is trapped between them, hence also in that interval.

Why It Holds / Derivation

ProofThe Limit of a Composition / Continuity is Preserved

We prove that the composition of continuous functions is continuous: if gg is continuous at aa and ff is continuous at b=g(a)b = g(a), then f∘gf\circ g is continuous at aa.

Step 1. Fix ε>0\varepsilon > 0. We must find δ>0\delta>0 so that ∣x−a∣<δ  ⟹  ∣f(g(x))−f(g(a))∣<ε|x-a|<\delta \implies |f(g(x)) - f(g(a))| < \varepsilon.

Step 2. Since ff is continuous at b=g(a)b = g(a), apply [5] at bb: there exists η>0\eta > 0 such that

10
∣y−b∣<η  ⟹  ∣f(y)−f(b)∣<ε.\quad |y - b| < \eta \implies |f(y) - f(b)| < \varepsilon.

Derivation hint: This is literally continuity of ff at bb with tolerance ε\varepsilon producing inner radius η\eta.

Step 3. Since gg is continuous at aa, apply [5] at aa with tolerance η\eta: there exists δ>0\delta > 0 such that

11
∣x−a∣<δ  ⟹  ∣g(x)−g(a)∣<η.\quad |x - a| < \delta \implies |g(x) - g(a)| < \eta.

Derivation hint: Feed the radius η\eta from Step 2 as the output tolerance required of gg.

Step 4. Chain them: if ∣x−a∣<δ|x-a|<\delta, then by [11] ∣g(x)−b∣<η|g(x)-b|<\eta, so setting y=g(x)y = g(x) in [10] gives ∣f(g(x))−f(b)∣<ε|f(g(x)) - f(b)| < \varepsilon. Since f(b)=f(g(a))f(b) = f(g(a)), this is exactly ∣f(g(x))−f(g(a))∣<ε|f(g(x)) - f(g(a))| < \varepsilon. ■\blacksquare

∎
ProofContinuity ⟹ Boundedness on Compact Intervals (Extreme Value Theorem, sketch)

Claim. A continuous f:[a,b]→Rf:[a,b]\to\mathbb{R} attains a maximum and minimum.

Step 1. Boundedness. Suppose not bounded above. Then for each nn pick xn∈[a,b]x_n\in[a,b] with f(xn)>nf(x_n) > n. By Bolzano–Weierstrass, (xn)(x_n) has a convergent subsequence xnk→c∈[a,b]x_{n_k}\to c\in[a,b].

Step 2. By sequential continuity [7], f(xnk)→f(c)f(x_{n_k}) \to f(c), a finite number. But f(xnk)>nk→∞f(x_{n_k}) > n_k \to \infty, contradiction. Hence ff is bounded.

Step 3. Attainment. Let M=sup⁡f([a,b])M = \sup f([a,b]). Choose yn∈[a,b]y_n\in[a,b] with f(yn)→Mf(y_n) \to M. A convergent subsequence ynk→dy_{n_k}\to d gives f(d)=lim⁡f(ynk)=Mf(d) = \lim f(y_{n_k}) = M. So the supremum is achieved. The minimum follows by applying the result to −f-f. ■\blacksquare

∎
AC
Augustin-Louis Cauchy
1789–1857

Cauchy's Cours d'analyse (1821) was the first systematic attempt to ground calculus on limits rather than infinitesimals, defining a limit as a value that variables "approach indefinitely so as to differ from it by as little as one wishes." Though his phrasing was still verbal, it contained the seed of the ε–δ method. Cauchy famously (and incorrectly) "proved" that a convergent sum of continuous functions is continuous — an error later corrected by uniform convergence — illustrating how subtle limiting processes are. His contemporary Bernard Bolzano had reached similar rigor independently a few years earlier (1817), but his work went largely unnoticed. The fully symbolic ε–δ formulation we use today crystallized in the lectures of Karl Weierstrass in the 1860s.

Building Intuition

🧠 Intuition

Think of f(x)f(x) as a machine and LL as a target on a dartboard with concentric rings. The adversary shrinks the bullseye to radius ε\varepsilon. You respond by restricting your throwing zone to inputs within δ\delta of aa. You win the limit if there is always a throwing zone small enough that every dart lands inside the current bullseye. Crucially, you remove the single point x=ax=a from the throwing zone — the limit doesn't care what happens at aa, only what happens near it. Continuity is the stricter demand that the bullseye center sits exactly at f(a)f(a): the function's actual value at aa is where everything is headed, so there's no jump, no hole, no surprise.

Figure
The ε–δ game: inputs within δ map into the ε-band around L
x y L L+ε L-ε a a-δ a+δ y = f(x) Inputs in (a-δ, a+δ)\{a} ⟹ outputs in (L-ε, L+ε)

Worked Examples

ExampleProving a Polynomial Limit by ε–δ

Given: Prove lim⁡x→3(2x+1)=7\lim_{x\to 3}(2x + 1) = 7.

Step 1 — Scratch work. We need ∣(2x+1)−7∣<ε|(2x+1) - 7| < \varepsilon, i.e. ∣2x−6∣=2∣x−3∣<ε|2x - 6| = 2|x-3| < \varepsilon.

Step 2 — Solve for ∣x−3∣|x-3|. This requires ∣x−3∣<ε/2|x-3| < \varepsilon/2. So choose δ=ε/2\delta = \varepsilon/2.

Step 3 — Formal proof. Let ε>0\varepsilon > 0. Set δ=ε/2\delta = \varepsilon/2. Suppose 0<∣x−3∣<δ0 < |x-3| < \delta. Then

12
∣(2x+1)−7∣=2∣x−3∣<2δ=2⋅ε2=ε.\quad |(2x+1)-7| = 2|x-3| < 2\delta = 2\cdot\frac{\varepsilon}{2} = \varepsilon.

Derivation hint: Factor the constant 2 out of the absolute value, then substitute the chosen δ\delta.

Answer: lim⁡x→3(2x+1)=7, with δ=ε/2\boxed{\lim_{x\to 3}(2x+1) = 7,\ \text{with } \delta = \varepsilon/2} (dimensionless).

ExampleA Removable Discontinuity and a Quadratic ε–δ

Given: Evaluate lim⁡x→2x2−4x−2\lim_{x\to 2}\dfrac{x^2 - 4}{x - 2} and verify by ε–δ that the limit is 44.

Step 1 — Simplify. For x≠2x\neq 2: x2−4x−2=(x−2)(x+2)x−2=x+2\dfrac{x^2-4}{x-2} = \dfrac{(x-2)(x+2)}{x-2} = x+2. So the limit is 2+2=42+2 = 4. The function has a removable discontinuity (hole) at x=2x=2.

Step 2 — ε–δ for x+2x+2. Need ∣(x+2)−4∣=∣x−2∣<ε|(x+2)-4| = |x-2| < \varepsilon. Choose δ=ε\delta = \varepsilon.

Step 3 — Verify. Let ε>0\varepsilon>0, set δ=ε\delta=\varepsilon. If 0<∣x−2∣<δ0<|x-2|<\delta then (with x≠2x\neq 2, so the cancellation is valid):

13
∣x2−4x−2−4∣=∣(x+2)−4∣=∣x−2∣<δ=ε.\quad \left|\frac{x^2-4}{x-2} - 4\right| = |(x+2)-4| = |x-2| < \delta = \varepsilon.

Derivation hint: The condition 0<∣x−2∣0<|x-2| guarantees x≠2x\neq 2, legitimizing the factor cancellation before applying δ\delta.

Answer: lim⁡x→2x2−4x−2=4\boxed{\lim_{x\to 2}\dfrac{x^2-4}{x-2} = 4}. The function x2−4x−2\frac{x^2-4}{x-2} becomes continuous if we redefine its value at 22 to be 44.

Common Misconceptions

⚠️ Common mistake

"The limit equals the function value." False in general — the limit ignores x=ax=a entirely. A limit can exist where f(a)f(a) is undefined (Example 2), and f(a)f(a) can exist while differing from the limit (a removable discontinuity with a misplaced point). The equality lim⁡x→af=f(a)\lim_{x\to a} f = f(a) is precisely the definition of continuity, not an automatic fact.

"Continuous means differentiable." False. The Weierstrass function is continuous everywhere but differentiable nowhere.

"A single δ\delta works for all points." That stronger property is uniform continuity [6], which is not implied by ordinary continuity on non-compact sets (see counterexample).

CounterexampleContinuous but not uniformly continuous

Let f(x)=1/xf(x) = 1/x on (0,1](0,1]. It is continuous at every point of (0,1](0,1]. But it is not uniformly continuous: take xn=1nx_n = \frac{1}{n} and yn=1n+1y_n = \frac{1}{n+1}. Then ∣xn−yn∣=1n(n+1)→0|x_n - y_n| = \frac{1}{n(n+1)} \to 0, yet

14
∣f(xn)−f(yn)∣=∣n−(n+1)∣=1↛0.\quad |f(x_n)-f(y_n)| = |n - (n+1)| = 1 \not\to 0.

Derivation hint: As x→0+x\to 0^+ the graph steepens without bound, so no single δ\delta can control the output gap everywhere; the required δ\delta shrinks toward 00. No single δ\delta can satisfy [6] for, say, ε=12\varepsilon = \tfrac12. (On the compact interval [ c,1][\,c,1] with c>0c>0, the Heine–Cantor theorem guarantees uniform continuity.)

CounterexampleA limit that fails to exist by oscillation

f(x)=sin⁡(1/x)f(x) = \sin(1/x) has no limit as x→0x\to 0. Using [7], take xn=1nπ→0x_n = \frac{1}{n\pi} \to 0 giving f(xn)=0f(x_n) = 0, but zn=1(2n+12)π→0z_n = \frac{1}{(2n+\frac12)\pi}\to 0 giving f(zn)=1f(z_n) = 1. Two sequences, two distinct sub-limits ⇒\Rightarrow the limit cannot exist. (By contrast xsin⁡(1/x)→0x\sin(1/x)\to 0 by the Squeeze Theorem [9], since ∣xsin⁡(1/x)∣≤∣x∣|x\sin(1/x)|\le|x|.)

Connections

connection

Limits are the foundation on which the entire edifice of calculus rests. The Derivative is defined as lim⁡h→0f(x+h)−f(x)h\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}, a limit of a difference quotient; differentiability is therefore a strengthening of continuity. The Riemann Integral is a limit of Riemann sums as the mesh of partitions tends to zero. The convergence of Infinite Series and Sequences of Real Numbers uses the same ε–N machinery, related to ε–δ by the sequential characterization [7]. Continuity generalizes to Metric Spaces and Topological Spaces, where the open-set definition ("preimages of open sets are open") reveals the topological essence that ε–δ merely encodes for R\mathbb{R}. The Intermediate Value Theorem and Extreme Value Theorem are the two great existence theorems flowing directly from continuity on compact connected sets.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- c. 1670s — Newton and Leibniz develop calculus using "fluxions" and infinitesimals, with limits described intuitively and without rigor.
- 1734 — Bishop George Berkeley's The Analyst attacks the logical incoherence of infinitesimals ("ghosts of departed quantities"), spurring the search for rigor.
- 1817 — Bernard Bolzano gives a purely analytic proof of the Intermediate Value Theorem and an early correct definition of continuity, anticipating ε–δ — but his work is overlooked for decades.
- 1821 — Cauchy's Cours d'analyse founds analysis on limits, defining continuity and convergence verbally, though still imprecisely (mixing pointwise and uniform notions).
- 1854 — Riemann formalizes the integral as a limit of sums in his Habilitation, requiring a sharp limit concept.
- c. 1861–1872 — Karl Weierstrass, in Berlin lectures, introduces the fully symbolic ε–δ definition and constructs his everywhere-continuous, nowhere-differentiable function (published 1872), shattering geometric intuition.
- 1872 — Heine and Cantor establish uniform continuity and the Heine–Cantor theorem (continuity on a compact set ⟹ uniform continuity); Cantor and Dedekind rigorously construct R\mathbb{R} via Cauchy sequences / cuts.
- 1875 — Darboux clarifies the relationship between Riemann integrability and continuity.
- 1906 — Fréchet introduces metric spaces, generalizing limits and continuity beyond R\mathbb{R} and seeding modern topology.

Subtleties & Limits

open-problem

The ε–δ framework, while complete for R\mathbb{R}, leaves open foundational and computational questions. Constructive analysis (Bishop, Brouwer) rejects the law of excluded middle, so the classical IVT — which uses non-constructive bisection limit arguments — fails to yield a computable root in general; characterizing exactly which continuous functions admit constructive root-finding remains active. In descriptive set theory, the structure of discontinuity sets is fully classified (the set of discontinuities of any function is an FσF_\sigma set, and conversely every FσF_\sigma set arises this way — Young's theorem), but analogous questions for higher-order regularity (sets of non-differentiability, sets where derivatives fail to be continuous) involve deep questions about Baire classes still under investigation. Finally, in nonstandard analysis (Robinson, 1960s), limits and continuity are rephrased using genuine infinitesimals from a hyperreal field ∗R^*\mathbb{R} — continuity at aa becomes "x≈a  ⟹  f(x)≈f(a)x\approx a \implies f(x)\approx f(a)" for hyperreals — raising ongoing pedagogical and philosophical debate about which formulation is "primary."

See Also

The Real Number System · Sequences of Real Numbers · Derivative · Riemann Integral · Intermediate Value Theorem · Extreme Value Theorem · Uniform Continuity · Metric Spaces · Infinite Series