Metrics — Guided Practice (Hints Only Edition)
Q1 • Verifying a Metric
Definition. A metric on \(X\) is a function \(d:X\times X\to\mathbb{R}\) such that for all \(x,y,z\in X\):
\[
d(x,y)\ge 0,\quad d(x,y)=0\iff x=y,\quad d(x,y)=d(y,x),\quad d(x,z)\le d(x,y)+d(y,z).
\]
Hint: Axioms via absolute value
Q2 • Subspace (Inherited) Metrics
If \(Y\subseteq X\) and \(d\) is a metric on \(X\), then \(d|_{Y\times Y}\) is a metric on \(Y\).
Task. Let \(X=\mathbb{R}^2\) with \(d_2(x,y)=\sqrt{(x_1-y_1)^2+(x_2-y_2)^2}\). For \(Y=\{(x,0):x\in\mathbb{R}\}\), identify the inherited metric.
Hint: Plug \(Y\)-points into the ambient formula
Q3 • The Discrete Metric
For any set \(X\),
\[
d(x,y)=\begin{cases}0,&x=y,\\ 1,&x\ne y.\end{cases}
\]
Task. Tabulate \(d\) on \(X=\{1,2,3,4\}\).
Hint: Matrix pattern
Q4 • Metrics on \(\mathbb{R}^n\): \(d_p\) and \(d_\infty\)
For \(x=(x_1,\dots,x_n)\), \(y=(y_1,\dots,y_n)\) and \(1\le p\le \infty\),
\[
d_p(x,y)=\Big(\sum_{k=1}^n |x_k-y_k|^p\Big)^{1/p},\qquad
d_\infty(x,y)=\max_{1\le k\le n}|x_k-y_k|.
\]
Task. For \(x=(1,2)\), \(y=(4,6)\), compute \(d_1,d_2,d_\infty\).
Hint: Use the difference vector
Q5 • Infinite-Dimensional Space \(\ell^1\)
\(\ell^1=\{(x_k)_{k\ge1}:\sum_{k=1}^\infty |x_k|<\infty\}\).
Examples for context (not tasks). \((1/k^2)\) is summable; \((1/k)\) is not.
- Does \(x_k=\dfrac{(-1)^k}{k}\) belong to \(\ell^1\)?
- Corrected Show \(x_k=\dfrac{1}{k(\log(k+1))^{2}}\in\ell^1\).
- Give a sufficient condition on \((x_k)\) ensuring \((x_k)\in\ell^1\).
Hints
- (1) Absolute convergence ignores the sign: compare with the harmonic series.
- (2) Use the Integral Test: compare with \(\displaystyle \int \frac{dx}{x(\log x)^2}\).
- (3) For large \(k\), a bound like \(|x_k|\le \dfrac{C}{k^{1+\varepsilon}}\) with \(\varepsilon>0\) is enough by comparison.
Q6 • The \(\ell^1\) Metric
For \(x,y\in\ell^1\), define \(d_1(x,y)=\sum_{k=1}^\infty |x_k-y_k|\).
- Let \(x_k=\dfrac{1}{k^2}\) and \(y_k=\dfrac{2}{k^2}\). Compute \(d_1(x,y)\).
- Let \(z_k=\dfrac{3}{k^2}\). Verify \(d_1(x,z)\le d_1(x,y)+d_1(y,z)\).
Hints
- Use linearity for series of nonnegative terms: \(\sum(|a_k|+|b_k|)=\sum|a_k|+\sum|b_k|\).
- Observe the relationship between consecutive differences in this specific example.
Q7 • Function Metrics: Uniform vs \(L^1\)
For bounded \(f,g:[0,1]\to\mathbb{R}\),
\[
d_u(f,g)=\sup_{t\in[0,1]}|f(t)-g(t)|,\qquad
d_1(f,g)=\int_0^1 |f(t)-g(t)|\,dt.
\]
Hints for Task A
- Maximize \(t(1-t)\) on \([0,1]\) (use calculus or symmetry).
- For the integral, note \(t-t^2\ge0\) on \([0,1]\) and compute \(\int_0^1 (t-t^2)\,dt\).
Hints for Task B
- For the sup, study behavior near \(t=1\).
- For the integral, compute \(\int_0^1 t^n\,dt\) and take the limit.
Mastery Check (No Solutions)
- Concept. Which axiom can fail for \(d(x,y)=\|x-y\|_2^2\) on \(\mathbb{R}^n\)?
Hint
Try a right triangle and compare the squared lengths against the triangle inequality. - Technique. Give a simple sufficient condition on terms \(x_k\) to guarantee \((x_k)\in\ell^1\).
Hint
Compare to \(p\)-series with \(p>1\) on the tail of the sequence. - Application. On \(C([0,1])\), which metric directly encodes uniform convergence?
Hint
Think: “supremum of the pointwise difference.”