Skip to content
homethesisprojectswritingaboutworkquestionsarithmeticsequencesresume
Loading
~/blog/continuity-and-limits0%dark
  1. home/
  2. writing/
  3. Continuity and Limits of Functions

03 June 2026 · 3 min read · updated 23 Nov 2026

Continuity and Limits of Functions

Continuity is the property that a function commutes with limits, and on the real line it has three consequences that the rest of analysis leans on. We define the limit of a function and prove it is equivalent to convergence along sequences, define continuity, prove the intermediate value theorem from the least upper bound axiom, prove the extreme value theorem from Bolzano-Weierstrass, and prove that a function continuous on a closed bounded interval is uniformly continuous. These connect the convergence of sequences to the calculus of functions.

  • 11 results
  • 6 connections
  • real-analysis
  • continuity
On this page▾
  • Limits of functions
  • Continuity
  • The intermediate value theorem
  • The extreme value theorem
  • Uniform continuity

3 min left

  • Limits of functions1m
  • Continuity1m
  • The intermediate value theorem1m
  • The extreme value theorem1m
  • Uniform continuity1m

A continuous function is one that respects limits, sending nearby inputs to nearby outputs and convergent sequences to convergent sequences. The notion turns the static completeness of the real numbers into theorems about functions, three of which are the working tools of calculus, the intermediate value theorem, the extreme value theorem, and uniform continuity. This post proves them from the least upper bound axiom and the Bolzano-Weierstrass theorem alone, so it builds only on the previous post and underlies all differential and integral calculus [1], [2].

#Limits of functions

Definition1

Let fff be defined on a full punctured neighbourhood (c−r,c+r)∖{c}(c-r,c+r)\setminus\{c\}(c−r,c+r)∖{c} for some r>0r>0r>0, so that ccc is a limit point of dom⁡(f)\operatorname{dom}(f)dom(f), possibly not in it. The limit of fff at ccc is LLL, written lim⁡x→cf(x)=L\lim_{x\to c}f(x)=Llimx→c​f(x)=L, when for every ε>0\varepsilon>0ε>0 there is a δ>0\delta>0δ>0 such that 0<∣x−c∣<δ0<\abs{x-c}<\delta0<∣x−c∣<δ implies ∣f(x)−L∣<ε\abs{f(x)-L}<\varepsilon∣f(x)−L∣<ε.

The definition mirrors the definition of a sequence limit, with the index going to infinity replaced by the input approaching ccc. In fact the two notions are equivalent.

Theorem2

lim⁡x→cf(x)=L\lim_{x\to c}f(x)=Llimx→c​f(x)=L if and only if f(xn)→Lf(x_n)\to Lf(xn​)→L for every sequence xn→cx_n\to cxn​→c with xn≠cx_n\neq cxn​=c.

Proof

Suppose lim⁡x→cf(x)=L\lim_{x\to c}f(x)=Llimx→c​f(x)=L and xn→cx_n\to cxn​→c with xn≠cx_n\neq cxn​=c. Given ε>0\varepsilon>0ε>0, take δ\deltaδ from the definition and then NNN with ∣xn−c∣<δ\abs{x_n-c}<\delta∣xn​−c∣<δ for n≥Nn\ge Nn≥N, which holds since xn→cx_n\to cxn​→c. For these nnn, 0<∣xn−c∣<δ0<\abs{x_n-c}<\delta0<∣xn​−c∣<δ, so ∣f(xn)−L∣<ε\abs{f(x_n)-L}<\varepsilon∣f(xn​)−L∣<ε, proving f(xn)→Lf(x_n)\to Lf(xn​)→L. For the converse, suppose the limit fails. Then for some ε>0\varepsilon>0ε>0 every δ\deltaδ fails, and for each nnn the choice δ=1/n\delta=1/nδ=1/n fails at a point xn∈dom⁡(f)x_n\in\operatorname{dom}(f)xn​∈dom(f) with 0<∣xn−c∣<1/n0<\abs{x_n-c}<1/n0<∣xn​−c∣<1/n yet ∣f(xn)−L∣≥ε\abs{f(x_n)-L}\ge\varepsilon∣f(xn​)−L∣≥ε. Such an xnx_nxn​ exists because ccc is a limit point of dom⁡(f)\operatorname{dom}(f)dom(f). Then xn→cx_n\to cxn​→c with xn≠cx_n\neq cxn​=c but f(xn)↛Lf(x_n)\not\to Lf(xn​)→L, contradicting the sequential hypothesis.

The sequential characterisation transports every limit law for sequences to functions at one stroke. Sums, products, and quotients of functions with limits have the expected limits, because the corresponding sequences do.

#Continuity

Definition3

A function fff is continuous at ccc when lim⁡x→cf(x)=f(c)\lim_{x\to c}f(x)=f(c)limx→c​f(x)=f(c), that is when for every ε>0\varepsilon>0ε>0 there is a δ>0\delta>0δ>0 with ∣x−c∣<δ\abs{x-c}<\delta∣x−c∣<δ implying ∣f(x)−f(c)∣<ε\abs{f(x)-f(c)}<\varepsilon∣f(x)−f(c)∣<ε. It is continuous on a set when it is continuous at each point.

By Theorem 2 applied with L=f(c)L=f(c)L=f(c), continuity at ccc gives f(xn)→f(c)f(x_n)\to f(c)f(xn​)→f(c) for every xn→cx_n\to cxn​→c with xn≠cx_n\neq cxn​=c. A general sequence xn→cx_n\to cxn​→c splits into terms with xn=cx_n=cxn​=c, where f(xn)=f(c)f(x_n)=f(c)f(xn​)=f(c) exactly, and terms with xn≠cx_n\neq cxn​=c, which converge to f(c)f(c)f(c) by the punctured statement, so interleaving the two gives f(xn)→f(c)f(x_n)\to f(c)f(xn​)→f(c) with no restriction. In the other direction the unrestricted criterion contains the punctured one. Continuity at ccc is then exactly the statement that f(xn)→f(c)f(x_n)\to f(c)f(xn​)→f(c) whenever xn→cx_n\to cxn​→c. A continuous function commutes with limits, f(lim⁡xn)=lim⁡f(xn)f(\lim x_n)=\lim f(x_n)f(limxn​)=limf(xn​). Sums, products, quotients with nonzero denominator, and compositions of continuous functions are continuous, each by the matching sequence law. Polynomials are continuous everywhere, and the elementary functions are continuous on their domains.

#The intermediate value theorem

A continuous function cannot skip a value as it moves between two heights. The proof is the first place the least upper bound axiom acts on a function.

Theorem4

If fff is continuous on [a,b][a,b][a,b] and yyy lies between f(a)f(a)f(a) and f(b)f(b)f(b), then f(c)=yf(c)=yf(c)=y for some c∈[a,b]c\in[a,b]c∈[a,b].

Proof

Assume f(a)<y<f(b)f(a)<y<f(b)f(a)<y<f(b), the other case following by negating fff. Let S={x∈[a,b]:f(x)<y}S=\{x\in[a,b]:f(x)<y\}S={x∈[a,b]:f(x)<y}, which is nonempty since a∈Sa\in Sa∈S and bounded above by bbb, so c=sup⁡Sc=\sup Sc=supS exists by the least upper bound axiom. Choosing xn∈Sx_n\in Sxn​∈S with c−1/n<xn≤cc-1/n<x_n \le cc−1/n<xn​≤c, possible because c−1/nc-1/nc−1/n is not an upper bound of SSS, gives a sequence in SSS with xn→cx_n\to cxn​→c, and since each f(xn)<yf(x_n)<yf(xn​)<y continuity gives f(c)=lim⁡f(xn)≤yf(c)=\lim f(x_n)\le yf(c)=limf(xn​)≤y. If f(c)<yf(c)<yf(c)<y, then since f(c)<y<f(b)f(c)<y<f(b)f(c)<y<f(b) we have c≠bc\neq bc=b, so c<bc<bc<b. By continuity there is a δ>0\delta>0δ>0 with f<yf<yf<y on (c−δ,c+δ)∩[a,b](c-\delta,c+\delta)\cap[a,b](c−δ,c+δ)∩[a,b], so any point with c<x<min⁡(c+δ,b)c<x<\min(c+\delta,b)c<x<min(c+δ,b) lies in SSS, contradicting c=sup⁡Sc=\sup Sc=supS. This leaves f(c)=yf(c)=yf(c)=y, with c∈[a,b]c\in[a,b]c∈[a,b].

The theorem is the reason a continuous function on an interval has an interval as its image, and it is the existence principle behind root-finding, since a continuous function changing sign on [a,b][a,b][a,b] must vanish in between.

#The extreme value theorem

On a closed bounded interval a continuous function is bounded and reaches its bounds, by Bolzano-Weierstrass.

Theorem5

A function continuous on [a,b][a,b][a,b] is bounded and attains a maximum and a minimum.

Proof

For boundedness, suppose fff is unbounded above. Then there are xn∈[a,b]x_n\in[a,b]xn​∈[a,b] with f(xn)→∞f(x_n)\to\inftyf(xn​)→∞. The sequence (xn)(x_n)(xn​) is bounded, so by the Bolzano-Weierstrass theorem a subsequence xnk→x∗∈[a,b]x_{n_k}\to x^\ast\in [a,b]xnk​​→x∗∈[a,b], and continuity gives f(xnk)→f(x∗)f(x_{n_k})\to f(x^\ast)f(xnk​​)→f(x∗), a finite number, contradicting f(xnk)→∞f(x_{n_k})\to \inftyf(xnk​​)→∞. This makes fff bounded above, and bounded below by the same argument on −f-f−f. Let M=sup⁡[a,b]fM=\sup_{[a,b]}fM=sup[a,b]​f, finite by boundedness, and take xnx_nxn​ with f(xn)→Mf(x_n)\to Mf(xn​)→M. A convergent subsequence xnk→x∗x_{n_k}\to x^\astxnk​​→x∗ has f(x∗)=lim⁡f(xnk)=Mf(x^\ast)=\lim f(x_{n_k})=Mf(x∗)=limf(xnk​​)=M, so the supremum is attained. The minimum is the maximum of −f-f−f.

Boundedness fails on an open interval, where 1/x1/x1/x runs off to infinity on (0,1)(0,1)(0,1), and the identity function x↦xx\mapsto xx↦x attains neither bound on (0,1)(0,1)(0,1). The theorem needs the interval closed and bounded, the two halves of compactness on the line.

#Uniform continuity

Continuity allows the tolerance δ\deltaδ to depend on the point. Uniform continuity demands one δ\deltaδ that works everywhere, and on a closed bounded interval continuity already delivers it.

Definition6

A function fff is uniformly continuous on a set when for every ε>0\varepsilon>0ε>0 there is one δ>0\delta>0δ>0 such that ∣x−y∣<δ\abs{x-y}<\delta∣x−y∣<δ implies ∣f(x)−f(y)∣<ε\abs{f(x)-f(y)}<\varepsilon∣f(x)−f(y)∣<ε for all x,yx,yx,y in the set.

Theorem7

A function continuous on [a,b][a,b][a,b] is uniformly continuous there.

Proof

Suppose not. Then some ε>0\varepsilon>0ε>0 resists every δ\deltaδ, so for each nnn the choice δ=1/n\delta=1/nδ=1/n fails, giving points xn,yn∈[a,b]x_n,y_n\in[a,b]xn​,yn​∈[a,b] with ∣xn−yn∣<1/n\abs{x_n-y_n}<1/n∣xn​−yn​∣<1/n but ∣f(xn)−f(yn)∣≥ε\abs{f(x_n)-f(y_n)}\ge\varepsilon∣f(xn​)−f(yn​)∣≥ε. By Bolzano-Weierstrass a subsequence xnk→x∗∈[a,b]x_{n_k}\to x^\ast\in[a,b]xnk​​→x∗∈[a,b], and since ∣xnk−ynk∣→0\abs{x_{n_k}-y_{n_k}}\to 0∣xnk​​−ynk​​∣→0 the matched subsequence ynk→x∗y_{n_k}\to x^\astynk​​→x∗ too. Continuity gives f(xnk)→f(x∗)f(x_{n_k})\to f(x^\ast)f(xnk​​)→f(x∗) and f(ynk)→f(x∗)f(y_{n_k})\to f(x^\ast)f(ynk​​)→f(x∗), so ∣f(xnk)−f(ynk)∣→0\abs{f(x_{n_k})-f(y_{n_k})}\to 0∣f(xnk​​)−f(ynk​​)∣→0, contradicting the gap ≥ε\ge\varepsilon≥ε.

Uniform continuity is the strength a function needs for the Riemann integral and for interchange of limits, since it controls oscillation by a length rather than by location. The calculus of one real variable rests on completeness. The next step generalises continuity to metric spaces, where compactness replaces the closed bounded interval and the same proofs run with sequences exchanged for nets of points.

[1]
S. Abbott, Understanding Analysis, 2nd ed. Springer, 2015.
[2]
W. Rudin, Principles of Mathematical Analysis, 3rd ed. McGraw-Hill, 1976.

Part 2 of 6 in Real Analysis

← previousSequences and Completenessnext →Metric and Normed Spaces

Explore connections

see in the atlas →

related

  • Differentiation and Taylor's Theorem
  • The Riemann Integral
  • Series and Power Series

referenced by (2)

  • Differentiation and Taylor's Theorem
  • The Riemann Integral
cite
@misc{continuity-and-limits,
  author = {Zac Kienzle},
  title  = {Continuity and Limits of Functions},
  year   = {2026},
  month  = {06},
  url    = {https://zackienzle.com/blog/continuity-and-limits}
}