Consider C([0,1]) as a metric space equipped with the supremum norm
∥f∥∞=x∈[0,1]sup∣f(x)∣,
which induces the metric d(f,g)=∥f−g∥∞. To show completeness, let {fn} be a Cauchy sequence in C([0,1]). That is, for every ε>0, there exists N∈N such that
∥fm−fn∥∞<εfor all m,n≥N.
Step 1: Pointwise convergence to a limit function f
Fix x∈[0,1]. Then, for m,n≥N,
∣fm(x)−fn(x)∣≤∥fm−fn∥∞<ε.
Thus, {fn(x)}n=1∞ is a Cauchy sequence in R, which is complete. Hence, there exists f(x)∈R such that fn(x)→f(x) as n→∞. This defines a function f:[0,1]→R.
Step 2: Convergence is uniform (i.e., ∥fn−f∥∞→0)
Let ε>0 and choose N as above. Now fix any n≥N. For all k≥N,
∣fn(x)−fk(x)∣≤∥fn−fk∥∞<εfor all x∈[0,1].
Taking the limit as k→∞ yields
∣fn(x)−f(x)∣=k→∞lim∣fn(x)−fk(x)∣≤εfor all x∈[0,1].
Thus,
∥fn−f∥∞=x∈[0,1]sup∣fn(x)−f(x)∣≤εfor all n≥N.
So {fn} converges uniformly to f.
Step 3: f is continuous (i.e., f∈C([0,1]))
Let ε>0 and fix x0∈[0,1]. Choose N such that ∥fN−f∥∞<ε/3. Since fN∈C([0,1]) and [0,1] is compact, fN is uniformly continuous: there exists δ>0 such that ∣x−y∣<δ implies ∣fN(x)−fN(y)∣<ε. Then, for ∣x−x0∣<δ,