Continuous Functions in Metric Spaces


Continuous Functions in Metric Spaces

Maria
Welcome back! Today we're going to talk about continuous functions, but not just from R to R—we're talking about functions from one metric space to another. It's a broader perspective that unifies a lot of ideas you've seen before.

Michael
Sounds good. So first, we need some notation, right? I remember from the video: we have a domain A which is a subset of some metric space M, and we map to another metric space N, with metrics d and ρ respectively.

Maria
Exactly. And we write f: A → N. The domain A is where the function is defined, and N is the codomain—the larger target space. But the actual set of outputs is called the image, f(A). Those are often different: the codomain is like the ambient space, but the function might not hit every point.

Michael
Right. And there's also the preimage. For a subset S of the codomain, the preimage f^{-1}(S) is all points in A that land in S. Even though we write f^{-1}, it's not an inverse function—it's a set operation.

Maria
Precisely. For example, with f(x)=x^2 on domain [-10,10], the preimage of {4} is {-2,2}, and the preimage of [-5,3] is the empty set because no input gives an output in that range.

Michael
Good. Now we need to talk about limits. The limit of f(x) as x approaches a point c—but c doesn't have to be in the domain. It just needs to be an accumulation point of A, meaning we can find points in A arbitrarily close to c without being c itself.

Maria
Exactly. So the definition: we say limit x→c f(x)=L if for every ε>0, there exists δ>0 such that whenever x is in A and 0 < d(x,c) < δ, then ρ(f(x),L) < ε. The 0< distance condition means we never look at the value at c itself, only near it.

Michael
That's the same ε-δ definition from real analysis, but generalized with metrics. And continuity at a point c in the domain: either c is an isolated point—then automatically continuous—or the limit exists and equals f(c). So it's a pointwise condition.

Maria
Yes. And if a function is continuous at every point in its domain, we simply say it's continuous. Now let's do an example to see this in action. Take f: R^2 → R^2 defined by f(x,y) = (2x, y+1). We'll prove it's continuous on all of R^2.

Michael
Great. So we fix an arbitrary point (a,b) in R^2 and let ε>0. We need to find δ such that if the Euclidean distance between (x,y) and (a,b) is less than δ, then the distance between f(x,y) and f(a,b) is less than ε.

Maria
Right. Let's do the scrap work: the difference in outputs is (2x-2a, (y+1)-(b+1)) = (2(x-a), y-b). Its norm is sqrt(4(x-a)^2 + (y-b)^2). We want to bound this. Notice that sqrt(4(x-a)^2 + (y-b)^2) ≤ sqrt(4(x-a)^2 + 4(y-b)^2) = 2 sqrt((x-a)^2+(y-b)^2) = 2 d((x,y),(a,b)).

Michael
So if we choose δ = ε/2, then whenever d((x,y),(a,b)) < δ, we get that the output distance is less than 2δ = ε. That works! And note that δ depends on ε but not on (a,b), so the function is uniformly continuous too.

Maria
Exactly. The formal proof would be: fix (a,b) in R^2, let ε>0, choose δ in (0, ε/2). Then for all (x,y) with d((x,y),(a,b))<δ, we have ρ(f(x,y),f(a,b)) ≤ 2δ < ε. So f is continuous at (a,b). Since (a,b) was arbitrary, f is continuous on R^2.

Michael
That's a clean proof. Now, there's another way to think about continuity—the topological definition. Instead of ε-δ, it says: f is continuous on its domain if the preimage of every open set in the codomain is open relative to the domain.

Maria
Right. 'Open relative to A' means we can write the preimage as V ∩ A, where V is an open set in M. For example, if the domain is an interval and the function jumps, the preimage of a small open set around the jump might be a half-open interval, which is not open relative to the full real line, but if we restrict to the domain as a metric space itself, it could be open.

Michael
So it's a different perspective. The topological definition is more global and relates to the structure of open sets. We'll see it again when we discuss the four characterizations of continuity. For now, it's good to know that the ε-δ definition and the preimage-of-open-sets definition are equivalent.

Maria
Absolutely. So we've covered the notation, the definitions of limits and continuity, an example proof, and a peek at the topological side. That sets us up nicely for deeper study of continuous functions on metric spaces.

Michael
Well summarized. Next time we can look at more examples and those four characterizations. Thanks for the discussion!

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