Continuous Functions on Metric Spaces

Similar documents
Problem Set 5: Solutions Math 201A: Fall 2016

7 Complete metric spaces and function spaces

THEOREMS, ETC., FOR MATH 515

THE STONE-WEIERSTRASS THEOREM AND ITS APPLICATIONS TO L 2 SPACES

Math 209B Homework 2

converges as well if x < 1. 1 x n x n 1 1 = 2 a nx n

Problem Set 5. 2 n k. Then a nk (x) = 1+( 1)k

Math 140A - Fall Final Exam

1 Topology Definition of a topology Basis (Base) of a topology The subspace topology & the product topology on X Y 3

The Heine-Borel and Arzela-Ascoli Theorems

Bounded and continuous functions on a locally compact Hausdorff space and dual spaces

Problem Set 2: Solutions Math 201A: Fall 2016

Real Analysis Problems

Real Analysis Notes. Thomas Goller

Functional Analysis. Franck Sueur Metric spaces Definitions Completeness Compactness Separability...

The Arzelà-Ascoli Theorem

Analysis III Theorems, Propositions & Lemmas... Oh My!

Math 118B Solutions. Charles Martin. March 6, d i (x i, y i ) + d i (y i, z i ) = d(x, y) + d(y, z). i=1

Analysis Finite and Infinite Sets The Real Numbers The Cantor Set

MAT 544 Problem Set 2 Solutions

Tools from Lebesgue integration

4.6 Montel's Theorem. Robert Oeckl CA NOTES 7 17/11/2009 1

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9

Honours Analysis III

MATH 5616H INTRODUCTION TO ANALYSIS II SAMPLE FINAL EXAM: SOLUTIONS

Definition A.1. We say a set of functions A C(X) separates points if for every x, y X, there is a function f A so f(x) f(y).

Compact operators on Banach spaces

Assignment-10. (Due 11/21) Solution: Any continuous function on a compact set is uniformly continuous.

The Space of Continuous Functions

Part III. 10 Topological Space Basics. Topological Spaces

g 2 (x) (1/3)M 1 = (1/3)(2/3)M.

Principles of Real Analysis I Fall VII. Sequences of Functions

Economics 204 Fall 2011 Problem Set 2 Suggested Solutions

Real Analysis Chapter 4 Solutions Jonathan Conder

FIXED POINT METHODS IN NONLINEAR ANALYSIS

4. (alternate topological criterion) For each closed set V Y, its preimage f 1 (V ) is closed in X.

Lecture Notes in Advanced Calculus 1 (80315) Raz Kupferman Institute of Mathematics The Hebrew University

Section 45. Compactness in Metric Spaces

Functional Analysis Winter 2018/2019

d(x n, x) d(x n, x nk ) + d(x nk, x) where we chose any fixed k > N

Math 117: Continuity of Functions

Bootcamp. Christoph Thiele. Summer As in the case of separability we have the following two observations: Lemma 1 Finite sets are compact.

Real Analysis Math 131AH Rudin, Chapter #1. Dominique Abdi

Review Notes for the Basic Qualifying Exam

4 Countability axioms

From now on, we will represent a metric space with (X, d). Here are some examples: i=1 (x i y i ) p ) 1 p, p 1.

MA5206 Homework 4. Group 4. April 26, ϕ 1 = 1, ϕ n (x) = 1 n 2 ϕ 1(n 2 x). = 1 and h n C 0. For any ξ ( 1 n, 2 n 2 ), n 3, h n (t) ξ t dt

Metric Spaces and Topology

MATH 722, COMPLEX ANALYSIS, SPRING 2009 PART 5

THEOREMS, ETC., FOR MATH 516

1. Let A R be a nonempty set that is bounded from above, and let a be the least upper bound of A. Show that there exists a sequence {a n } n N

Class Notes for MATH 454.

Immerse Metric Space Homework

Part A. Metric and Topological Spaces

REVIEW OF ESSENTIAL MATH 346 TOPICS

10 Compactness in function spaces: Ascoli-Arzelá theorem

Math 321 Final Examination April 1995 Notation used in this exam: N. (1) S N (f,x) = f(t)e int dt e inx.

Recall that if X is a compact metric space, C(X), the space of continuous (real-valued) functions on X, is a Banach space with the norm

Analysis Comprehensive Exam Questions Fall 2008

Chapter 3 Continuous Functions

MATH 202B - Problem Set 5

I. The space C(K) Let K be a compact metric space, with metric d K. Let B(K) be the space of real valued bounded functions on K with the sup-norm

Contents Ordered Fields... 2 Ordered sets and fields... 2 Construction of the Reals 1: Dedekind Cuts... 2 Metric Spaces... 3

Analysis III. Exam 1

McGill University Math 354: Honors Analysis 3

Lectures on Analysis John Roe

Math 328 Course Notes

Overview of normed linear spaces

Introductory Analysis I Fall 2014 Homework #9 Due: Wednesday, November 19

Analysis Qualifying Exam

Continuity of convex functions in normed spaces

CHAPTER 9. Embedding theorems

Chapter 2. Metric Spaces. 2.1 Metric Spaces

Midterm 1. Every element of the set of functions is continuous

NOTES ON EXISTENCE AND UNIQUENESS THEOREMS FOR ODES

Real Analysis, 2nd Edition, G.B.Folland Elements of Functional Analysis

MH 7500 THEOREMS. (iii) A = A; (iv) A B = A B. Theorem 5. If {A α : α Λ} is any collection of subsets of a space X, then

Notions such as convergent sequence and Cauchy sequence make sense for any metric space. Convergent Sequences are Cauchy

Many of you got these steps reversed or otherwise out of order.

Most Continuous Functions are Nowhere Differentiable

MATH 54 - TOPOLOGY SUMMER 2015 FINAL EXAMINATION. Problem 1

Summer Jump-Start Program for Analysis, 2012 Song-Ying Li. 1 Lecture 7: Equicontinuity and Series of functions

3 (Due ). Let A X consist of points (x, y) such that either x or y is a rational number. Is A measurable? What is its Lebesgue measure?

Solutions Final Exam May. 14, 2014

Math General Topology Fall 2012 Homework 11 Solutions

THE INVERSE FUNCTION THEOREM

Spectral theory for compact operators on Banach spaces

36 CHAPTER 2. COMPLEX-VALUED FUNCTIONS. In this case, we denote lim z z0 f(z) = α.

16 1 Basic Facts from Functional Analysis and Banach Lattices

l(y j ) = 0 for all y j (1)

MTH 503: Functional Analysis

Continuity. Matt Rosenzweig

van Rooij, Schikhof: A Second Course on Real Functions

Prohorov s theorem. Bengt Ringnér. October 26, 2008

2 Sequences, Continuity, and Limits

(convex combination!). Use convexity of f and multiply by the common denominator to get. Interchanging the role of x and y, we obtain that f is ( 2M ε

Class Notes for MATH 255.

CHAPTER I THE RIESZ REPRESENTATION THEOREM

MA651 Topology. Lecture 10. Metric Spaces.

Continuity. Chapter 4

Transcription:

Continuous Functions on Metric Spaces Math 201A, Fall 2016 1 Continuous functions Definition 1. Let (X, d X ) and (Y, d Y ) be metric spaces. A function f : X Y is continuous at a X if for every ɛ > 0 there exists δ > 0 such that d X (x, a) < δ implies that d Y (f(x), f(a)) < ɛ. In terms of open balls, the definition says that f (B δ (a)) B ɛ (f(a)). In future, X, Y will denote metric spaces, and we will not distinguish explicitly between the metrics on different spaces. Definition 2. A subset U X is a neighborhood of a point a X if B ɛ (a) U for some ɛ > 0. A set is open if and only if it is a neighborhood of every point in the set, and U is a neighborhood of x if and only if U G where G is an open neighborhood of x. Note that slightly different definitions of a neighborhood are in use; some definitions require that a neighborhood is an open set, which we do not assume. Proposition 3. A function f : X Y is continuous at a X if and only if for every neighborhood V Y of f(a) the inverse image f 1 (V ) X is a neighborhood of a. Proof. Suppose that the condition holds. If ɛ > 0, then V = B ɛ (f(a)) is a neighborhood of f(a), so U = f 1 (V ) is a neighborhood of a. Then B δ (a) U for some δ > 0, which implies that f (B δ (a)) B ɛ (f(a)), so f is continuous at a. Conversely, if f is continuous at a and V is a neighborhood of f(a), then B ɛ (f(a)) V for some ɛ > 0. By continuity, there exists δ > 0 such that f (B δ (a)) B ɛ (f(a)), so B δ (a) f 1 (V ), meaning that f 1 (V ) is a neighborhood of a. 1

Definition 4. A function f : X Y is sequentially continuous at a X if x n a in X implies that f(x n ) f(a) in Y. Theorem 5. A function f : X Y is continuous at a if and only if it is sequentially continuous at a. Proof. Suppose that f is continuous at a. Let ɛ > 0 be given and suppose that x n a. Then there exists δ > 0 such that d(f(x), f(a)) < ɛ for d(x, a) < δ, and there exists N N such that d(x n, a) < δ for n > N. It follows that d(f(x n ), f(a)) < ɛ for n > N, so f(x n ) f(a) and f is sequentially continuous at a. Conversely, suppose that f is not continuous at a. Then there exists ɛ 0 > 0 such that for every n N there exists x n X with d(x n, a) < 1/n and d(f(x n ), f(a)) ɛ 0. Then x n a but f(x n ) f(a), so f is not sequentially continuous at a. Definition 6. A function f : X Y is continuous if f is continuous at every x X. Theorem 7. A function f : X Y is continuous if and only if f 1 (V ) is open in X for every V that is open in Y. Proof. Suppose that the inverse image under f of every open set is open. If x X and V Y is a neighborhood of f(x), then V W where W is an open neighborhood of f(x). Then f 1 (W ) is an open neighborhood of x and f 1 (W ) f 1 (V ), so f 1 (V ) is a neighborhood of x, which shows that f is continuous. Conversely, suppose that f : X Y is continuous and V Y is open. If x f 1 (V ), then V is an open neighborhood of f(x), so the continuity of f implies that f 1 (V ) is a neighborhood of x. It follows that f 1 (V ) is open since it is a neighborhood of every point in the set. Theorem 8. The composition of continuous functions is continuous Proof. Suppose that f : X Y and g : Y Z are continuous, and g f : X Z is their composition. If W Z is open, then V = g 1 (W ) is open, so U = f 1 (V ) is open. It follows that (g f) 1 (W ) = f 1 (g 1 (W )) is open, so g f is continuous. Theorem 9. The continuous image of a compact set is compact. 2

Proof. Suppose that f : X Y is continuous and X is compact. If {G α : α I} is an open cover of f(x), then {f 1 (G α ) : α I} is an open cover of X, since the inverse image of an open set is open. Since X is compact, it has a finite subcover {f 1 (G αi ) : i = 1, 2,..., n}. Then {G αi : i = 1, 2,..., n} is a finite subcover of f(x), which proves that f(x) is compact. 2 Uniform convergence A subset A X is bounded if A B R (x) for some (and therefore every) x X and some R > 0. Equivalently, A is bounded if diam A = sup {d(x, y) : x, y A} <. Definition 10. A function f : X Y is bounded if f(x) Y is bounded. Definition 11. A sequence (f n ) of functions f n : X Y converges uniformly to a function f : X Y if for every ɛ > 0 there exists N N such that n > N implies that d (f n (x), f(x)) < ɛ for all x X. Unlike pointwise convergence, uniform convergence preserves boundedness and continuity. Proposition 12. Let (f n ) be a sequence of functions f n : X Y. If each f n is bounded and f n f uniformly, then f : X Y is bounded. Proof. By the uniform convergence, there exists n N such that d (f n (x), f(x)) 1 for all x X. Since f n is bounded, there exists y Y and R > 0 such that It follows that d (f n (x), y) R for all x X. d(f(x), y) d (f(x), f n (x)) + d (f n (x), y) R + 1 for all x X, meaning that f is bounded. Theorem 13. Let (f n ) be a sequence of functions f n : X Y. If each f n is continuous at a X and f n f uniformly, then f : X Y is continuous at as. 3

Proof. Let a X. Since (f n ) converges uniformly to f, given ɛ > 0, there exists n N such that d (f n (x), f(x)) < ɛ 3 for all x X, and since f n is continuous at a, there exists δ > 0 such that d (f n (x), f n (a)) < ɛ 3 if d(x, a) < δ. If d(x, a) < δ, then it follows that d (f(x), f(a)) d (f(x), f n (x)) + d (f n (x), f n (a)) + d (f n (a), f(a)) < ɛ, which proves that f is continuous at a. Since uniform convergence preserves continuity at a point, the uniform limit of continuous functions is continuous. Definition 14. A sequence (f n ) of functions f n : X Y is uniformly Cauchy if for every ɛ > 0 there exists N N such that m, n > N implies that d (f m (x), f n (x)) < ɛ for all x X. A uniformly convergent sequence of functions is uniformly Cauchy. The converse is also true for functions that take values in a complete metric space. Theorem 15. Let Y be a complete metric space. Then a uniformly Cauchy sequence (f n ) of functions f n : X Y converges uniformly to a function f : X Y. Proof. The uniform Cauchy condition implies that the sequence (f n (x)) is Cauchy in Y for every x X. Since Y is complete, f n (x) f(x) as n for some f(x) Y. Given ɛ > 0, choose N N such that for all m, n > N we have d (f m (x), f n (x)) < ɛ for all x X. Taking the limit of this inequality as m, we get that d (f(x), f n (x)) ɛ for all x X for all n > N, which shows that (f n ) converges uniformly to f as n. 4

3 Function spaces Definition 16. The metric space (B(X, Y ), d ) is the space of bounded functions f : X Y equipped with the uniform metric d (f, g) = sup {d (f(x), g(x)) : x X}. It is straightforward to check that d is a metric on B(X, Y ); in particular, d (f, g) < if f, g are bounded functions. Theorem 17. Let Y be a complete metric space. Then (B(X, Y ), d ) is a complete metric space. Proof. If (f n ) is a Cauchy sequence in B(X, Y ), then (f n ) is uniformly Cauchy, so by Theorem 15 it converges uniformly to a function f : X Y. By Proposition 12, f B(X, Y ), so B(X, Y ) is complete. Definition 18. The space C(X, Y ) is the space of continuous functions f : X Y, and (C b (X, Y ), d ) is the space of bounded, continuous functions f : X Y equipped with the uniform metric d. Theorem 19. Let X be a metric space and Y a complete metric space. Then (C b (X, Y ), d ) is a complete metric space. Proof. By Theorem 13, C b (X, Y ) is a closed subspace of the complete metric space B(X, Y ), so it is a complete metric space. 4 Continuous functions on compact sets Definition 20. A function f : X Y is uniformly continuous if for every ɛ > 0 there exists δ > 0 such that if x, y X and d(x, y) < δ, then d (f(x), f(y)) < ɛ. Theorem 21. A continuous function on a compact metric space is bounded and uniformly continuous. Proof. If X is a compact metric space and f : X Y a continuous function, then f(x) is compact and therefore bounded, so f is bounded. Let ɛ > 0. For each a X, there exists δ(a, ɛ) > 0 such that d (f(x), f(a)) < ɛ 2 for all x X with d(x, a) < δ(a, ɛ). 5

Then { B δ(a,ɛ) (a) : a X } is an open cover of X, so by the Lebesgue covering lemma, there exists η > 0 such that for every x X there exists a X with B η (x) B δ(a,ɛ) (a). Hence, d(x, y) < η implies that x, y B δ(a,ɛ) (a), so d (f(x), f(y)) d (f(x), f(a)) + d (f(a), f(y)) < ɛ, which shows that f is uniformly continuous. For real-valued functions, we have the following basic result. Theorem 22 (Weierstrass). If X is compact and f : X R is continuous, then f is bounded and attains its maximum and minimum values. Proof. The image f(x) R is compact, so it is closed and bounded. It follows that M = sup X f < and M f(x). Similarly, inf X f f(x). 5 The Arzelà-Ascoli theorem Definition 23. A family of functions F C(X, Y ) is equicontinuous if for every a X and ɛ > 0, there exists δ > 0 such that if x X and d(x, a) < δ, then d (f(x), f(a)) < ɛ for every f F. Definition 24. A family of functions F C(X, Y ) is uniformly equicontinuous if for every ɛ > 0, there exists δ > 0 such that if x, y X and d(x, y) < δ, then d (f(x), f(y)) < ɛ for every f F. Theorem 25. If X is a compact metric space and F C(X, Y ) is equicontinuous, then F is uniformly equicontinuous. Proof. Let F C(X, Y ) be equicontinuous, and suppose that ɛ > 0. For each a X, there exists δ(a, ɛ) > 0 such that if x X and d(x, a) < δ(a, ɛ), then d (f(x), f(a)) < ɛ/2 for every f F. Then {B δ(a,ɛ) (a) : a X} is an open cover of X, so by the Lebesgue covering lemma there exist η > 0 such that for every x X we have B η (x) B δ(a,ɛ) (a) for some a X. If d(x, y) < η, then x, y B δ(a,ɛ) (a), so d (f(x), f(y)) d (f(x), f(a)) + d (f(a), f(y)) < ɛ for every f F, which shows that F is uniformly equicontinuous. 6

For simplicity, we now specialize to real-valued functions. In that case, we write C(X) = C(X, R). If X is compact, then C(X) equipped with the sup-norm f = sup x X f(x), and the usual pointwise definitions of vector addition and scalar multiplication, is a Banach space. Definition 26. A family of functions F C(X) is pointwise bounded if for every x X there exists M > 0 such that f(x) M for all f F. Definition 27. A subset A X is of a metric space X is precompact (or relatively compact) if its closure Ā is compact. Lemma 28. Let X be a complete metric space. A subset A X is precompact if and only if it is totally bounded. Proof. If A is precompact, then the compact set Ā is totally bounded, so A Ā is totally bounded. Conversely, suppose that A is totally bounded. If ɛ > 0, then A has a finite (ɛ/2)-net E, and every x Ā belongs to B ɛ/2 (a) for some a E. It follows that E is a finite ɛ-net for Ā, so Ā is totally bounded. Moreover, Ā is a closed subset of a complete space, so Ā is complete, which shows that Ā is compact and A is precompact. Theorem 29 (Arzelà-Ascoli). Let X be a compact metric space. A family F C(X) of continuous functions f : X R is precompact with respect to the sup-norm topology if and only if it is pointwise bounded and equicontinuous. Furthermore, F is compact if and only if it is closed, pointwise bounded, and equicontinuous. Proof. Since C(X) is complete, a subset is complete if and only if it is closed. It follows that F is compact if and only if it is closed and totally bounded. From Lemma 28, F is precompact if and only if it is totally bounded. Thus, it suffices to prove that F is totally bounded if and only if it is pointwise bounded and equicontinuous. First, suppose that F is pointwise bounded and equicontinuous, and let ɛ > 0. We will construct a finite ɛ-net for F. The family F is equicontinuous and X is compact, so F is uniformly equicontinuous, and there exists δ > 0 such that d(x, y) < δ implies that f(x) f(y) < ɛ 3 for all f F. 7

Since X is compact, it has a finite δ-net E = {x i : 1 i n} such that X = n B δ (x i ). i=1 Furthermore, since F is pointwise bounded, M i = sup { f(x i ) : f F} < for each 1 i n. Let M = max{m i : 1 i n}. Then [ M, M] R is compact, so it has a finite (ɛ/6)-net F = {y j R : 1 j m} such that [ M, M] m B ɛ/6 (y j ). Here, B ɛ/6 (y j ) is an open interval in R of diameter ɛ/3. Let Φ be the finite set of maps φ : E F. For each φ Φ, define j=1 F φ = { f F : f(x i ) B ɛ/6 (φ(x i )) for i = 1,..., n }. Since f(x i ) [ M, M] and {B ɛ/6 (y j ) : 1 j m} covers [ M, M], we have F = φ Φ F φ. Let f, g F φ. Then for each x i E, we have f(x i ), g(x i ) B ɛ/6 (y j ) for some y j F, so f(x i ) g(x i ) < ɛ 3. Furthermore, if x X, then x B δ (x i ) for some x i E, so d(x, x i ) < δ, and the uniform equicontinuity of F implies that f(x) g(x) f(x) f(x i ) + f(x i ) g(x i ) + g(x i ) g(x) < ɛ. Thus, f g < ɛ, so the diameter of F φ is less than ɛ, and F φ B ɛ (f φ ) for some f φ F. Hence, F φ Φ B ɛ (f φ ) is totally bounded. 8

Conversely, suppose that F C(X) is precompact. Then F is bounded, so there exists M > 0 such that f M for all f F, which implies that F is pointwise (and, in fact, uniformly) bounded. Moreover, F is totally bounded, so given ɛ > 0, there exists a finite (ɛ/3)- net E = {f i : 1 i n} for F. Each f i : X R is uniformly continuous, so there exists δ i > 0 such that d(x, y) < δ i implies that f i (x) f i (y) < ɛ/3. Let δ = min{δ i : 1 i n}. If f F, then f f i < ɛ/3 for some f i E, so d(x, y) < δ implies that f(x) f(y) f(x) f i (x) + f i (x) f i (y) + f i (y) f(y) < ɛ, meaning that F is uniformly equicontinuous. This result, and the proof, also applies to complex-valued functions in C(X, C), vector-valued functions in C(X, R n ), and with a stronger hypothesis to functions that take values in a complete metric space Y : If X is compact, then F C(X, Y ) is precompact with respect to the uniform metric d if and only if F is equicontinuous and pointwise precompact, meaning that the set {f(x) : f F} is precompact in Y for every x X. 6 The Peano existence theorem As an application of the Arzelà-Ascoli theorem, we prove an existence result for an initial-value problem for a scalar ODE. (Essentially the same proof applies to systems of ODEs.) Theorem 30. Suppose that f : R R R is continuous and u 0 R. Then there exists T > 0 such that the initial-value problem du = f(u, t), dt u(0) = u 0 has a continuously differentiable solution u : [0, T ] R. Proof. For each h > 0, construct an approximate solution u h : [0, ) R as follows. Let t n = nh and define a sequence (u n ) n=0 recursively by u n+1 = u n + hf (u n, t n ). 9

Define u h (t) by linear interpolation between u n and u n+1, meaning that u h (t) = u n + (t t n) h Choose L, T 1 > 0, and let (u n+1 u n ) for t n t t n+1. R 1 = { (x, t) R 2 : x u 0 L and 0 t T 1 }. Then, since f is continuous and R 1 is compact, M = sup f(x, t) <. (x,t) R 1 If (u k, t k ) R 1 for every 0 k n 1, then n 1 n 1 u n u 0 u k+1 u k = h f (u k, t k ) Mt n. k=0 k=0 Thus, (u n, t n ) R 1 so long as Mt n L and t n T 1. Let { T = min T 1, L }, N = T M h, and define R R 1 by R = { (x, t) R 2 : x u 0 L and 0 t T }. Then it follows that (u n, t n ) R if 0 t n T and 0 n N. Moreover, u n+1 u n = h f(u n, t n ) Mh for every 0 n N. It is clear that the linear interpolant u h then satisfies u h (s) u h (t) M s t for every 0 s, t T. To show this explicitly, suppose that 0 s < t T, t m s t m+1, and 10

t n t t n+1. Then u h (t) u h (s) u h (t) u h (t n ) + n 1 k=m+1 (t t n ) f(u n, t n ) + h u h (t k+1 ) u h (t k ) + u h (t m+1 ) u h (s) n 1 k=m+1 f(u k, t k ) + (t m+1 s) f(u m, t m ) M [(t t n ) + (t n t m+1 ) + (t m+1 s)] M t s. In addition, u h (t) L for t [0, T ]. By the Arzelà-Ascoli theorem, the family {u h : h > 0} is precompact in C([0, T ]), so we can extract a subsequence (u hj ) j=1 such that h j 0 and u hj u uniformly to some u C([0, T ]) as j. To show that u is a solution of the initial-value problem, we note that, by the fundamental theorem of calculus, u C 1 ([0, T ]) is a solution if and only if u C([0, T ]) and u satisfies the integral equation u(t) = u 0 + t 0 f (u(s), s) ds for 0 t T. Let χ [0,t] be the characteristic function of the interval [0, t], defined by χ [0,t] (s) = { 1 if 0 s t 0 if s > t Then the piecewise-linear approximation u h satisfies the equation u h (t) = u 0 + N 1 k=0 tk+1 t k χ [0,t] (s)f (u h (t k ), t k ) ds. Let ɛ > 0. Since f : R R is continuous on a compact set, it is uniformly continuous, and there exists δ > 0 such that x y < Mδ and s t < δ implies that f(x, s) f(y, t) < ɛ/t. 11

For 0 < h < δ and t k s t k+1, we have u h (s) u h (t k ) < Mδ and s t k < δ, so for 0 t T we get that t u h(t) u 0 f (u h (s), s) ds Thus, u h (t) u 0 Since u hj u 0 + < ɛ T < ɛ. N 1 0 tk+1 k=0 t k N 1 tk+1 t 0 k=0 t k χ [0,t] (s) f((u h (s), s) f (u h (t k ), t k ) ds χ [0,t] (s) ds f (u h (s), s) ds 0 uniformly on [0, T ] as h 0. u uniformly as j, it follows that t 0 f ( u hj (s), s ) ds u(t) uniformly on [0, T ] as j. However, the uniform convergence u hj u and the uniform continuity of f imply that f(u hj (t), t) f(u(t), t) uniformly. Then, since the Riemann integral of the limit of a uniformly convergent sequence of Riemann-integrable functions is the limit of the Riemann integrals, we get that u 0 + t 0 f ( u hj (s), s ) ds u 0 + t 0 f (u(s), s) ds for each t [0, T ]. Hence, since the limits must be the same, u(t) = u 0 + t 0 f (u(s), s) ds, so u C 1 ([0, T ]) is a solution of the initial-value problem. 7 The Stone-Weierstrass theorem Definition 31. A subset A X is dense in X if Ā = X. 12 as j

Definition 32. A family of functions A C(X) is an algebra if it is a linear subspace of C(X) and f, g A implies that fg A. Here, fg is the usual pointwise product, (fg)(x) = f(x)g(x). Definition 33. A family of functions F C(X) separates points if for every pair of distinct points x, y X there exists f F such that f(x) f(y). A constant function f : X R is a function such that f(x) = c for all x X and some c R. Theorem 34 (Stone-Weierstrass). Let X be a compact metric space. If A C(X) is an algebra that separates points and contains the constant functions, then A is dense in (C(X), ). Proof. Suppose that f C(X) and let ɛ > 0. By Lemma 35, for every pair of points y, z X, there exists g yz A such that g yz (y) = f(y) and g yz (z) = f(z). First, fix y X. Since f g yz is continuous and (f g yz )(z) = 0, for each z X there exists δ(z) > 0 such that g yz (x) < f(x) + ɛ for all x B δ(z) (z). The family of open balls {B δ(z) (z) : z X} covers X, so it has a finite subcover {B δi (z i ) : 1 i n} since X is compact. By Lemma 37, the function g y = min{g yzi : 1 i n} belongs to Ā. Moreover, g y(y) = f(y) and g y (x) < f(x) + ɛ for all x X. Next, consider g y. Since f g y is continuous and (f g y )(y) = 0, for each y Y there exists δ(y) > 0 such that g y (x) > f(x) ɛ for all x B δ(y) (y). Then {B δ(y) (y) : y X} is an open cover of X, so it has a finite subcover {B δ(yj )(y j ) : 1 j m}. By Lemma 37, the function belongs to Ā. Furthermore, g = max{g yj : 1 j m} f(x) ɛ < g(x) < f(x) + ɛ for all x X, so f g < ɛ, which shows that Ā is dense in C(X). 13

To complete the proof of the Stone-Weierstrass theorem, we prove several lemmas. Lemma 35. Let A C(X) be a linear subspace that contains the constant functions and separates points. If f C(X) and y, z X, then there exists g yz A such that g yz (y) = f(y) and g yz (z) = f(z). Proof. Given distinct points y, z X and real numbers a, b R, there exists h A with h(y) h(z). Then g A defined by [ ] h(x) h(y) g(x) = a + (b a) h(z) h(y) satisfies g(y) = a, g(z) = b. If y z, choose g yz as above with a = f(y) and b = f(z); if y = z, choose g yy = f. The next lemma is a special case of the Weierstrass approximation theorem. Lemma 36. There is a sequence (p n ) of polynomials p n : [ 1, 1] R such that p n (t) t as n uniformly on [ 1, 1]. Proof. Define a sequence of polynomials q n : [0, 1] R by the recursion relation q n+1 (t) = q n (t) + 1 ( t q 2 2 n (t) ), q 0 (t) = 0. We claim that for every n N, we have q n 1 (t) q n (t) t for all t [0, 1]. Suppose as an induction hypothesis that this inequality holds for some n N. Then q n+1 (t) q n (t) and t qn+1 (t) = t q n (t) 1 ( t q 2 2 n (t) ) ( ) ( = t qn (t) 1 1 ( t + qn (t)) ) 2 0. so q n (t) q n+1 (t) t. Moreover, q 1 (t) = t/2, so q 0 (t) q 1 (t) t, and the inequality follows by induction. 14

For each t [0, 1] the real sequence (q n (t)) is monotone increasing and bounded from above by 1, so it converges to some limit q(t) as n. Taking the limit of the recursion relations as n, we find that q 2 (t) = t, and since q(t) 0, we have q(t) = t. According to Dini s theorem, a monotone increasing sequence of continuous functions that converges pointwise on a compact set to a continuous function converges uniformly, so q n (t) t uniformly on [0, 1]. Finally, defining the polynomials p n : [ 1, 1] R by p n (t) = q n (t 2 ), we see that p n (t) t uniformly on [ 1, 1]. Lemma 37. Let X be a compact metric space, and suppose that A C(X) is an algebra. If f, g A, then max{f, g}, min{f, g} Ā. Proof. Since max{f, g} = 1 (f + g + f g ), 2 min{f, g} = 1 (f + g f g ) 2 it is suffices to show that f Ā for every f A. If f A, then f is bounded, so f(x) [ M, M] for some M > 0. From Lemma 36, there exists a sequence (p n ) of polynomials that converges uniformly to t on [ 1, 1]. Then p n (f/m) A and p n (f/m) f /M uniformly as n, since p n is uniformly continuous on [ 1, 1]. It follows that f Ā. Definition 38. A metric space is separable if it has a countable dense subset. Corollary 39. Let X R n be a closed, bounded set and P the set of polynomials p : X R. Then P is dense in (C(X), ). Moreover, C(X) is separable. Proof. A closed, bounded set in R n is compact, and the set P of polynomials is a subalgebra of C(X) that contains the constant functions and separates points, so P is dense in C(X). Any polynomial can be uniformly approximated on a bounded set by a polynomial with rational coefficients, and there are countable many such polynomials, so C(X) is separable. In particular, we have the following special case. Theorem 40 (Weierstrass approximation). If f : [0, 1] R is a continuous function and ɛ > 0, then there exists a polynomial p : [0, 1] R such that f(x) p(x) < ɛ for every x [0, 1]. 15