Continuous Functions in Metric Spaces
Continuous Functions Between Metric Spaces
This set of notes introduces the study of continuous functions from one metric space to another. The key pieces covered include function notation and domain considerations, the definition of a functional limit using ϵ and δ, the definition of continuity at a point, an example proof for a vector-valued function on R2, and the topological definition of continuity phrased in terms of open sets.
Notation and Terminology for Functions Between Metric Spaces
A function f is a map from a domain A (a subset of a metric space M) to a codomain N (another metric space, possibly different). The metric on M is denoted by d and the metric on N by ρ. The notation is written as:
Domain Considerations
The domain A is the set of points where the function is defined. It can be a proper subset of the larger metric space M, and even if the function could be extended to the rest of M, the notation only concerns behavior on A.
The function must exist on all points of the declared domain; for example, writing g(x)=1/x with domain [0,1] is invalid because 1/x is not defined at 0.
Codomain vs. Image (Range)
The codomain is the larger target metric space N that the function maps into; the function does not need to land on every point of N.
The image (or range) is the true set of outputs: f(A)={f(x):x∈A}⊆N. The image is usually a proper subset of the codomain.
Preimage
The preimage of a subset S of the codomain (denoted f−1(S), though this is not an inverse function) is the set of all points in the domain that map into S:
The preimage is always a subset of A and can be empty. For example, with f(x)=x2 from domain [−10,10] to R:
f−1({4})={−2,2}
f−1([100,∞))={−10,10}
f−1((−5,3))=∅ (empty set), because no output from the domain lies in that interval.
Functional Limits
The functional limit describes the behavior of a function as inputs approach a particular point. Let f:A⊆M→N, and let C be an accumulation point of A (i.e., there exist points of A arbitrarily close to C, but C itself need not be in A). The notation
(where L∈N) is defined by the ϵ–δ condition:
For every ϵ>0, there exists δ>0 such that whenever x∈A and 0<d(x,C)<δ, it follows that ρ(f(x),L)<ϵ.
Key Points
C must be an accumulation point of A; if C were isolated, there would be no way to "approach" it with other points from the domain.
The condition 0<d(x,C) explicitly excludes evaluating f at C itself; the limit is about nearby points, not about f(C).
The δ may depend on ϵ and on C, but must not depend on x.
For functions from R to R with the Euclidean metric, this reduces to the standard definition: 0<∣x−C∣<δ⟹∣f(x)−L∣<ϵ.
Continuity at a Point
A function f:A→N is continuous at a point C∈A if one of the following holds:
C is an isolated point of A — then f is automatically continuous at C, by convention.
C is an accumulation point of A — then x→C,x∈Alimf(x) exists and is equal to f(C).
Thus, a function is continuous at an interior or endpoint (as long as it is an accumulation point) precisely when the limit equals the function value. At an isolated point, no limit is required.
When we say "f is continuous" without qualification, we mean it is continuous at every point of its domain — a pointwise property. The definition of continuity on a set (e.g., f continuous on [a,b]) means it satisfies the condition for each point in that set.
Visualizing Continuity and Discontinuity
Consider a function whose domain is {1}∪[2,4) (with 2 included, 4 not included). In this example:
The point x=1 is isolated; the function is continuous there.
At a point where the function has a jump — the limit exists but does not equal the function value — the function is not continuous.
Points outside the domain (like 4) are irrelevant for continuity; limits can still be discussed, but continuity is defined only on the domain.
Endpoints of the domain (like 2) are treated normally; a function can be continuous at an endpoint because the only way to approach it is from within the domain.
Example: Proving Continuity of a Vector-Valued Function
Consider the function f:R2→R2 defined by
This is a vector-valued function of two variables. The goal is to prove that f is continuous on all of R2.
Scrap Work (Preliminary Calculation)
Fix an arbitrary point (a,b)∈R2. Compute the output distance:
Let δ denote the input distance bound: ∥(x,y)−(a,b)∥<δ. Then
To guarantee ∥f(x,y)−f(a,b)∥<ϵ, it suffices to have 2δ≤ϵ, i.e., δ≤ϵ/2.
Formal Proof
Proof. Let (a,b)∈R2 be arbitrary, and let ϵ>0. Choose δ∈(0,ϵ/2). Then for any (x,y)∈R2 with ∥(x,y)−(a,b)∥<δ, we have
∥f(x,y)−f(a,b)∥=4(x−a)2+(y−b)2≤2∥(x,y)−(a,b)∥<2δ<ϵ.Therefore f satisfies the ϵ–δ definition at (a,b). Since (a,b) was arbitrary, f is continuous on R2. ∎
Remarks
The proof follows a standard pattern: fix (a,b), let ϵ>0, choose δ, then show the implication.
The δ chosen depends on ϵ but not on (x,y) (and here not even on (a,b), which shows uniform continuity, though that is not the focus).
Because the component functions 2x and y+1 are polynomials (degree 1), the algebra simplifies nicely. In general, polynomial functions are continuous, but this direct computation verifies the definition.
The Topological Definition of Continuity
In addition to the ϵ–δ definition, continuity can be characterized topologically using open sets. This approach is particularly elegant in general metric spaces (and beyond).
Definition
A function f:A⊆M→N is continuous on its domain if for every open set U⊆N (i.e., open in the codomain N), the preimage f−1(U) is open relative to A.
Meaning of "Open Relative to A"
There are two equivalent ways to think about this property:
If A were the entire metric space — i.e., if we treat A as the whole space — then f−1(U) would be an ordinary open subset of that space.
As an intersection — f−1(U) can be written as the intersection of an open set in M with the domain A: there exists an open set W in M such that f−1(U)=W∩A.
Visual Intuition
Consider a function from a closed bounded interval (e.g., [A,B]) to R. If the preimage of an open interval in the codomain is a set like (A,C) (an interval that includes the endpoint A when the domain is just [A,B]), that preimage is open relative to [A,B] because it can be expressed as (−∞,C)∩[A,B] — the intersection of an open set in R with the domain. However, if the preimage were [A,C) (including the left endpoint), it would not be open relative to [A,B] (the endpoint A would not be an interior point of the preimage when considered as a subset of [A,B]).
Thus, the topological condition encodes the same continuity idea: small changes in input do not cause jumps in output. This definition is equivalent to the ϵ–δ definition.
Looking Ahead: Four Characterizations of Continuity
So far, two characterizations have appeared:
The ϵ–δ definition (metric space version).
The topological definition (preimages of open sets are open relative to the domain).
Two more characterizations (using sequences and using closed sets) will be introduced later. The topological definition is especially important because it generalizes to spaces without a metric.

Ask anything
We've read this whole study set, so questions about it get the best answers.