“How to measure the distance between two functions?”
Just as you can have a sequence
You can have a sequence of functions. $f_n(x)$
Let $V = \{f: f: [0,1] \to \R\}$ be the space of bounded functions from $[0,1]$ to $\R$, we will consider various ways to measure size of a function
The different norms equip the vector space $V$ with different topologies. This is different from the finite dimensional vector space case.
In sport, sometimes you measure the score using the best score (like freestyle skiing in the winter Olympics); sometimes you use the average score of several try (like Tour de France, you add up the points in each leg); this is like sup or $L^1$ norm.
In this class, we will consider sup norm, and we define distance as $$ d_\infty(f,g) = \| f-g\|_\infty $$
We say a sequence of functions $f_n$ converge to $f$ uniformly, if $\lim_n d_\infty(f_\infty, f) = 0$.
Q: can you find a metric on the space of functions $V$ so that metric convergence means pointwise convergence? (No, you but you can still define a topology on $V$ so that convergence in that topology means pointwise convergence)
In general, if $M = \{f| f: X \to Y, f(X) \text{bounded}\}$ is the space of maps with bounded images, then for any $f, g \in M$, we can define $d_\infty(f,g) = \sup_{x} d_\infty(f(x), g(x))$.
Thm: If $f_n: \R \to \R$ are continuous and bounded, and $f_n \to f$ uniformly, then $f$ is continuous.
Proof: we need to show that, for any $x \in \R$, for any $\epsilon>0$, there is $\delta > 0$, such that for any $x'$ with $|x' - x| < \delta$, we have $|f(x') - f(x)|<\epsilon$.
First, we choose $n$ large enough, such that $d_\infty(f_n, f) < \epsilon/3$. Then, for $f_n$ and $x$ and $\epsilon/3$, we find $\delta$, such that any $|x'-x|<\delta$ implies $|f_n(x) - f_n(x')|<\epsilon/3$. Finally, if any $|x'-x|<\delta$, then $$ |f(x) - f(x')| \leq |f(x) - f_n(x)| + |f_n(x) - f_n(x')| + |f_n(x') - f_n(x)| < \epsilon/3 + \epsilon/3 + \epsilon/3 = \epsilon. $$ Done