Consider the sequence fn(x)=xn. In the first metric,
d1(fn,0)=∫01xndx=n+11n→∞0.
In the second metric,
d2(fn,0)=x∈[0,1]supxn=1.
Our calculations show that fn converges to 0 with respect to d1 (which is called the L1-metric), but it does not converge with respect to d2 (which is called the sup-metric or L∞-metric).
Moral: Different metrics capture different types of convergence.
In analysis, one of the central concepts is convergence, and metrics are an important way to describe the type of convergence we have.
which proves the first inequality. For the second inequality, we want to prove a statement about a supremum-we want to show that
1≤i≤nsup∣xi−yi∣≤dℓ2(x,y).
When you want to prove something like this, you almost never want to find an inequality with the supremum directly. Instead, you want to find an upper bound for every element you take the supremum of, i.e., you want to find an upper bound for ∣xk−yk∣ that works for each 1≤k≤n (I switched to k here since I want to use i for the index in the sum):
Thus, dℓ2(x,y) is an upper bound for the set {∣xi−yi∣∣1≤i≤n}, so because the supremum is the least upper bound, you immediately get
dℓ∞(x,y)=1≤i≤nsup∣xi−yi∣≤dℓ2(x,y).
Example 3.
(Exercise 1.1.13)
Let X be any set, and let d be the discrete metric on X:
d(x,y)={01if x=y,if x=y.
Show that (xn) converges to x with respect to the discrete metric if and only if there exists an N such that xn=x for all n≥N.
Solution.
There are two implications to prove:
"⟸"
Assume that there exists N such that xn=x for all n≥N. Given any ε>0, if n≥N, then
d(xn,x)=d(x,x)=0<ε.
Thus, (xn) converges to x with respect to the discrete metric. (We never used the fact that d is the discrete metric, so in this case, (xn) actually converges to x with respect to any metric.)
"⟹"
Now assume that (xn) converges to x with respect to the discrete metric. This means that given anyε>0, there exists N such that if n≥N, then d(xn,x)<ε.
Here, we will need to use the fact that d is the discrete metric: if we pick ε=21, then there exists an N so that if n≥N, then d(xn,x)<21. But d is the discrete metric, so the only way this can occur is if d(xn,x)=0, i.e., xn=x. Thus, we have shown that if n≥N, then xn=x, which was what we wanted to show.