Metric Spaces. Lecture Notes and Exercises, Fall 2015. M.van den Berg



Similar documents
Metric Spaces Joseph Muscat 2003 (Last revised May 2009)

Metric Spaces. Chapter 1

Mathematical Methods of Engineering Analysis

Notes on metric spaces

Metric Spaces. Chapter Metrics

x a x 2 (1 + x 2 ) n.

1. Prove that the empty set is a subset of every set.

1 if 1 x 0 1 if 0 x 1

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

BANACH AND HILBERT SPACE REVIEW

THE BANACH CONTRACTION PRINCIPLE. Contents

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 3. Spaces with special properties

No: Bilkent University. Monotonic Extension. Farhad Husseinov. Discussion Papers. Department of Economics

0 <β 1 let u(x) u(y) kuk u := sup u(x) and [u] β := sup

and s n (x) f(x) for all x and s.t. s n is measurable if f is. REAL ANALYSIS Measures. A (positive) measure on a measurable space

1 Norms and Vector Spaces

FUNCTIONAL ANALYSIS LECTURE NOTES: QUOTIENT SPACES

Basic Concepts of Point Set Topology Notes for OU course Math 4853 Spring 2011

Introduction to Topology

MEASURE AND INTEGRATION. Dietmar A. Salamon ETH Zürich

Practice with Proofs

9 More on differentiation

MATH 425, PRACTICE FINAL EXAM SOLUTIONS.

MA651 Topology. Lecture 6. Separation Axioms.

1. Let X and Y be normed spaces and let T B(X, Y ).

Lecture Notes on Measure Theory and Functional Analysis

n k=1 k=0 1/k! = e. Example 6.4. The series 1/k 2 converges in R. Indeed, if s n = n then k=1 1/k, then s 2n s n = 1 n

THE CONTRACTION MAPPING THEOREM

Fixed Point Theorems

Mathematics for Econometrics, Fourth Edition

Solutions to Homework 10

4. Expanding dynamical systems

INTRODUCTION TO TOPOLOGY

1 = (a 0 + b 0 α) (a m 1 + b m 1 α) 2. for certain elements a 0,..., a m 1, b 0,..., b m 1 of F. Multiplying out, we obtain

Some stability results of parameter identification in a jump diffusion model

TOPIC 4: DERIVATIVES

MATH PROBLEMS, WITH SOLUTIONS

Inner Product Spaces

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

I. Pointwise convergence

ON SEQUENTIAL CONTINUITY OF COMPOSITION MAPPING. 0. Introduction

Parabolic Equations. Chapter 5. Contents Well-Posed Initial-Boundary Value Problem Time Irreversibility of the Heat Equation

Math 104: Introduction to Analysis

Class Meeting # 1: Introduction to PDEs

t := maxγ ν subject to ν {0,1,2,...} and f(x c +γ ν d) f(x c )+cγ ν f (x c ;d).

Properties of BMO functions whose reciprocals are also BMO

2.3 Convex Constrained Optimization Problems

CHAPTER II THE LIMIT OF A SEQUENCE OF NUMBERS DEFINITION OF THE NUMBER e.

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

(Basic definitions and properties; Separation theorems; Characterizations) 1.1 Definition, examples, inner description, algebraic properties

FUNCTIONAL ANALYSIS LECTURE NOTES CHAPTER 2. OPERATORS ON HILBERT SPACES

Separation Properties for Locally Convex Cones

The Mean Value Theorem

Chapter 7. Continuity

Let H and J be as in the above lemma. The result of the lemma shows that the integral

INTRODUCTORY SET THEORY

CHAPTER IV - BROWNIAN MOTION

ALMOST COMMON PRIORS 1. INTRODUCTION

Section 5.1 Continuous Random Variables: Introduction

Fuzzy Differential Systems and the New Concept of Stability

Modern Optimization Methods for Big Data Problems MATH11146 The University of Edinburgh

INDISTINGUISHABILITY OF ABSOLUTELY CONTINUOUS AND SINGULAR DISTRIBUTIONS

Geometric Transformations

F. ABTAHI and M. ZARRIN. (Communicated by J. Goldstein)

Lecture notes on Ordinary Differential Equations. Plan of lectures

Chapter 5. Banach Spaces

MATH 304 Linear Algebra Lecture 20: Inner product spaces. Orthogonal sets.

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

Mathematics Course 111: Algebra I Part IV: Vector Spaces

RANDOM INTERVAL HOMEOMORPHISMS. MICHA L MISIUREWICZ Indiana University Purdue University Indianapolis

Solutions for Review Problems

VERTICES OF GIVEN DEGREE IN SERIES-PARALLEL GRAPHS

Numerical methods for American options

FIRST YEAR CALCULUS. Chapter 7 CONTINUITY. It is a parabola, and we can draw this parabola without lifting our pencil from the paper.

16.3 Fredholm Operators

MA4001 Engineering Mathematics 1 Lecture 10 Limits and Continuity

Differential Operators and their Adjoint Operators

Math 4310 Handout - Quotient Vector Spaces

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Lecture Notes on Topology for MAT3500/4500 following J. R. Munkres textbook. John Rognes

The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].

Continued Fractions and the Euclidean Algorithm

The Henstock-Kurzweil-Stieltjes type integral for real functions on a fractal subset of the real line

Lecture 7: Continuous Random Variables

The Heat Equation. Lectures INF2320 p. 1/88

THE CENTRAL LIMIT THEOREM TORONTO

Convex analysis and profit/cost/support functions

Limits and Continuity

Advanced Microeconomics

MATHEMATICS IN RELATIVE SET THEORY Karel Hrbacek Department of Mathematics The City College of CUNY New York, NY July 31, 2009

1. Let P be the space of all polynomials (of one real variable and with real coefficients) with the norm

Regression With Gaussian Measures

Lebesgue Measure on R n

Real Roots of Univariate Polynomials with Real Coefficients

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

Scalar Valued Functions of Several Variables; the Gradient Vector

3. Prime and maximal ideals Definitions and Examples.

Research Article Stability Analysis for Higher-Order Adjacent Derivative in Parametrized Vector Optimization

Transcription:

Metric Spaces Lecture Notes and Exercises, Fall 2015 M.van den Berg School of Mathematics University of Bristol BS8 1TW Bristol, UK mamvdb@bristol.ac.uk

1 Definition of a metric space. Let X be a set, X. Elements of X will be called points. Definition 1.1 (a) A map d : X X R is called a metric on X if (M1) ( (x, y) X X) [0 d(x, y) < ]. (M2) ( (x, y) X X) [(d(x, y) = 0) (x = y)]. (M3) ( (x, y) X X) [d(x, y) = d(y, x)]. (M4) ( (x, y, z) X X X) [d(x, y) d(x, z) + d(z, y)]. (b) (X, d) is called a metric space and d(x, y) is the distance between points x and y. Remark 1.2 Conditions (M1)-(M4) are the axioms of a metric space. (M4) is called the triangle inequality. Example 1.3 Let X be a non-empty set. Define d : X 2 R by { 1, if x y, d(x, y) = 0, if x = y. Then d is a metric on X, and (X, d) is a discrete metric space. Example 1.4 Let R be the real line with d(x, y) = x y. Then (R, d) is a metric space. Example 1.5 Let X = R N := {x = (x 1, x 2,..., x N ) x i R, 1 i N}. Let d : X 2 R be defined by 1/2 N d(x, y) = (x j y j ) 2. Then (R N, d) is a metric space. j=1 Theorem 1.6 Let X = l 2 := {x = (x n ) n N n=1 x2 n < }. Let d : X 2 R be defined by Then (l 2, d) is a metric space. d(x, y) = (x j y j ) 2 j=1 1/2. Proof. Since 0 (x j y j ) 2 2(x 2 j + y2 j ) we have that 0 (x j y j ) 2 2 x 2 j + 2 yj 2 <. j=1 This proves (M1). (M2) and (M3) follow immediately from Definition 1.1. To prove (M4) we let z l 2. Let n N be arbitrary and let a i = x i z i, b i = z i y i. Since j=1 { n } 1/2 { n } 1/2 { n } 1/2 (a i + b i ) 2 a 2 i + b 2 i ( ) i=1 i=1 i=1 j=1

we have that { n } 1/2 (x i y i ) 2 d(x, z) + d(z, y). i=1 We obtain (M4) by letting n. To prove ( ) we note that this equivalent to { n n a i b i i=1 i=1 The above follows directly from the fact that for λ R a 2 i } 1/2 { n } 1/2 b 2 i. i=1 n (λa i + b i ) 2 = Aλ 2 + 2Hλ + B 0, i=1 where A = n i=1 a2 i, B = n i=1 b2 i, H = n i=1 a ib i. Since the quadratic in λ is non-negative we have that H 2 AB. Theorem 1.7 Let X be a non-empty set, and let B(X) be the set of all bounded real-valued functions from X to R. Define d : B(X) 2 R by Then d is a (supremum) metric on B(X). d(f, g) = sup f(x) g(x). x X Proof. Since f, g B(X) there exist constants c 1, c 2 such that f(x) c 1, g(x) c 2 on X. Then 0 f(x) g(x) f(x) + g(x) c 1 + c 2. Hence 0 sup f(x) g(x) c 1 + c 2. x X This proves (M1). (M2) and (M3) follow immediately from Definition 1.1. To prove (M4) we let h B(X). Then there exist c 3 such that h(x) c 3 on X. Hence f(x) g(x) f(x) h(x) + h(x) g(x) sup x X f(x) h(x) + sup x X h(x) g(x) = d(f, h) + d(h, g), and sup f(x) g(x) d(f, h) + d(h, g). x X Definition 1.8 Let (X, d) be a metric space and let Y be a non-empty subset of X. The restriction of d : X X R to d : Y Y R induces a metric on Y. Definition 1.9 (a) Let X be a vector space over R (or C). A mapping is called a norm if (N1) ( x X) [0 x < ]. (N2) ( x X) [ x = 0 x = 0]. (N3) ( x X, λ R(or C) ) [ λx = λ x ]. : X R 2

(N4) ( x X, y X) [ x + y x + y ]. (b) X supplied with a norm is called a normed space. Proposition 1.10 Let (X, ) be a normed space. Then X is a metric space with the metric defined by x, y X d(x, y) = x y. Proposition 1.11 x, y, z X : d(x, z) d(y, z) d(x, y). Proof. By (M4) d(x, z) d(x, y) + d(y, z). Hence d(x, z) d(y, z) d(x, y). By reversing the role of x and y, and by (M3) d(y, z) d(x, z) d(y, x) = d(x, y). Proposition 1.12 x, y, u, v X : d(x, u) d(y, v) d(x, y) + d(u, v). Proof. d(x, u) d(x, y) + d(y, u) d(x, y) + d(y, v) + d(v, u) = d(x, y) + d(y, v) + d(u, v) d(x, u) d(y, v) d(x, y) + d(u, v). By reversing the roles of x and y and of u and v respectively, d(y, v) d(x, u) d(y, x) + d(v, u) = d(x, y) + d(u, v). Example 1.13 Let (X 1, d 1 ), (X 2, d 2 ) be metric spaces. Let X = X 1 X 2, and define d : X 2 R by (x 1, x 2 ), (y 1, y 2 ) X d((x 1, x 2 ), (y 1, y 2 )) = d 2 1 (x 1, y 1 ) + d 2 2 (x 2, y 2 ). Then (X, d) is a metric space: the Cartesian product of (X 1, d 1 ) and (X 2, d 2 ). 3

2 Convergence in metric spaces. Definition 2.1 Let (X, d) be a metric space. A sequence of points x 1, x 2,... (shorthand (x n ))in X is convergent if there is an element x X such that We write lim n x n = x or x n x. lim d(x n, x) = 0. n Example 2.2 Let (R N, d) be the standard Euclidean space. Then x (n) = (x (n) 1,..., x(n) ) x = (x 1,..., x N ) if and only if x (n) j x j for all 1 j N. N Proof. Also for j = 1,..., N N d((x (n) 1,..., x(n) N ), (x 1,..., x N )) = x (n) j j=1 j x j ) 2 (x (n) x j d(x (n), x). 1/2 N j=1 x (n) j x j. Definition 2.3 Let X be a set and let (Y, d) be a metric space. Let (f n ), f n : X Y, be a sequence of functions. Then (f n ) converges pointwise if there exists a function f : X Y such that ( x X) [ lim n d(f n(x), f(x)) = 0]. (f n ) converges uniformly if there exists a function f : X Y such that or lim sup d(f n (x), f(x)) = 0, n x X ( ε > 0) ( N N) [ (n N) = sup d(f n (x), f(x)) < ε ]. x X Remark 2.4 Uniform convergence implies pointwise convergence. The converse need not be true. Convergence of a sequence of (f n ), f n B(X), n = 1, 2, with the supremum metric is nothing but uniform convergence. Example 2.5 Let f n : (0, 1) R, f n (x) = x n. Then f n f pointwise, where f(x) = 0, 0 < x < 1. However, (f n ) does not converge uniformly since sup f n (x) f(x) = sup f n (x) = sup x n = 1. x (0,1) x (0,1) x (0,1) Let f n : [0, ) R, f n (x) = nx n+x. Then f n f pointwise, where f(x) = x, x 0. However, (f n ) does not converge uniformly since ( n ) ( n ) n f n f = 2 2 6. Let f n : [0, ) R, f n (x) = converges uniformly to f since nx 1+n 2 x. Then f n f pointwise, where f(x) = 0, x 0. (f n ) sup f n (x) f(x) 1 x [0, ) n. 4

Let f n : [0, 1] R be given by f n (x) = Then f n 0 in B[0, 1] with the supremum metric. 1 n 2 + x 2. 1 sup f n (x) 0 = sup x [0,1] x [0,1] n 2 + x 2 1 0 (n ) n2 Let g n : [0, 1] R be given by g n (x) = 2nx 1 + n 2 x 2. Then g n does not converge in B[0, 1] with the supremum metric. g n (x) 0 for every x [0, 1]. But: sup g n (x) 0 = 1 0. x [0,1] Theorem 2.6 Let (X, ρ), (Y, d) be metric spaces, and let f n : X Y, f n f converge uniformly on X. If c is a point at which each f n is continuous, then f is continuous at c. Proof. Let N N be such that n N implies sup x X d(f n (x), f(x)) < ε 3. Let δ be such that ρ(c, x) < δ implies d(f N (x), f N (c)) < ε 3. Then for ρ(c, x) < δ d(f(c), f(x)) d(f(c), f N (c)) + d(f N (c), f N (x)) + d(f N (x), f(x)) < ε Hence f is continuous at c. Definition 2.7 Let f n : X R, n = 1, 2,.... Then n=1 f n converges uniformly to s, s : X R, if the partial sums s n = f 1 + + f n converge uniformly to s. Theorem 2.8 If the series n=1 f n of real-valued functions converges uniformly to s, and if each f n is continuous at c then s is continuous at c. Proof. s n = f 1 + + f n is continuous at c. The result follows by Theorem 2.6 Example 2.9 n=1 xn converges pointwise on ( 1, 1) to s(x) = 1 1 x. Note that s n(x) = 1 xn+1 1 x. Hence sup x ( 1,1) s n (x) s(x) = sup x ( 1,1) xn+1 1 x 1 2 sup x ( 1,1) x n+1 = 1 2, and the convergence is not uniform. Example 2.10 Let f n : [0.1] R, f n (x) = nxe nx2. Then (f n ) converges pointwise to the function which is 0 on [0, 1]. The convergence is not uniform since f n ( 1 n ) n e. Note that 1 0 f n(x)dx = 1 2 (1 e n ) 1 2 as n, and so 1 0 f n(x)dx 1 0 0dx. Theorem 2.11 Let f n : [a, b] R, n = 1, 2,... be a sequence of Riemann integrable functions which converges uniformly to f on [a, b]. Then f is Riemann integrable, and b a f n(x)dx b a f(x)dx. Proof. For each ε > 0 there exists N N such that n N, x [a, b] implies f n (x) f(x) < ε. Hence for any partition P of [a, b], and for n N U(P, f) U(P, f n ) + ε(b a), L(P, f) L(P, f n ) ε(b a). 5

Since f N is Riemann integrable, there exists a partition P of [a, b] such that U( P, f N ) L( P, f N ) < ε. Then U( P, f) L( P, f) < U( P, f N ) + ɛ(b a) L( P, f N ) + ε(b a) < ε(1 + 2(b a)). Since ε > 0 was arbitrary, f is Riemann integrable. Hence for n N b Similarly, for n N a f(x)dx = inf{u(p, f) : P a partition of [a, b]} inf{u(p, f n ) : P a partition of [a, b]} + ε(b a) = b a b a f n (x)dx + ε(b a). f(x)dx b Combining these two inequalities we have for n N a f n (x)dx ε(b a). b f(x)dx b a a f n (x)dx 2ε(b a). Remark 2.12 Let f n : [0, ) R, f n (x) = 1 n e x/n. Then (f n ) converges uniformly to the 0 function on [0, ). However, 0 f n (x)dx = 1. Remark 2.13 If f n f pointwise on [a, b], and f n is Riemann integrable for all n N. Then f need not to be Riemann { integrable. For example, let {q 1, q 2... } be an enumeration of the rationals 1, x {q1,..., q in [0, 1], f n (x) = n }, Then f 0, otherwise. n is Riemann integrable with 1 0 f n(x)dx = { 1, x Q [0, 1] 0, f n f pointwise with f(x) = 0, x [0, 1] Q. But U(P, f) = 1, L(P, f) = 0, and f is not Riemann integrable. Corollary 2.14 If n=1 f n converges uniformly to s on [a, b], and if each f n is Riemann integrable on [a, b]. Then s is integrable, and b a s(x)dx = b n=1 a f n(x)dx. Proof. Put s n = f 1 + + f n. Then b a s(x)dx = lim b n a s n(x)dx n b = lim n k=1 a f k(x)dx = b k=1 a f k(x)dx. Theorem 2.15 Let (f n ) be a sequence of real-valued differentiable functions on [a, b]. Suppose that (f n (x)) converges for at least one x [a, b], and that f n converges uniformly on [a, b]. Then (i) f n converges uniformly on [a, b], (ii) f = lim n f n is differentiable on [a, b], and for all x [a, b], f (x) = lim n f n(x). Proof. Let lim n f n = g, and let ε > 0. Since (f n) converges uniformly on [a, b], there exists N N such that sup a x b f n(x) g(x) < ε for n N. Hence sup a x b f n(x) f m(x) 2ε for m, n N. If ξ 1, ξ 2 are points of [a, b] then, by the mean value theorem for f n f m f n (ξ 1 ) f m (ξ 1 ) (f n (ξ 2 ) f m (ξ 2 )) = (ξ 1 ξ 2 ).{f n(ξ) f m(ξ)} where ξ [ξ 1, ξ 2 ]. So for all m, n N, (1) f n (ξ 1 ) f m (ξ 1 ) (f n (ξ 2 ) f m (ξ 2 )) 2 ξ 1 ξ 2 ε. 6

If x 0 is a point for which (f n (x 0 )) converges, then there is an N N such that for m, n N (2) f n (x 0 ) f m (x 0 ) ε. Let x be any point of [a, b]. By (1), (2) with ξ 1 = x, ξ 2 = x 0 we have for m, n max{n, N }, (3) f n (x) f m (x) (1 + 2 x x 0 )ε (1 + 2(b a))ε. Hence lim m f m (x) exists for all x [a, b]. Taking the limit m in (3) we see that (f n ) converges uniformly on [a, b]. Let a < c < b, and let h 0 be such that c + h [a, b]. By (1) with ξ 1 = c + h, ξ 2 = c we have for m, n N f n (c + h) f n (c) h f m(c + h) f m (c) h 2ε. Since f m (c + h) f m (c) f(c + h) f(c) as m, the above inequality shows that for n N f n (c + h) f n (c) f(c + h) f(c) h h 2ε. By the definition of the derivative f N (c) there exists on δ > 0 such that ( ) f N (c + h) f N (c) (0 < h δ) = f h N(c) ε. Then for 0 < h δ f(c + h) f(c) g(c) h f(c + h) f(c) f N(c + h) f N (c) h h + f N (c + h) f N (c) f h N(c) + f N (c) g(c) 2ε + ε + ε. Hence f (c) exists and f (c) = lim n f n(c). Corollary 2.16 Let u n : [a, b] R be such that ( ) (i) ( x 0 [a, b]) u n (x 0 ) is convergent. n=1 (ii) ( n N) u n is differentiable. (iii) The series Then the series u n(x) is uniformly convergent on [a, b]. n=1 u n (x) n=1 converges uniformly to s(x) and s (x) = u n(x). Theorem 2.17 If x n x in (X, d) and x n y in (X, d) then x = y. n=1 Proof. 0 d(x, y) d(x, x n ) + d(x n, y) 0 = x = y. 7

Theorem 2.18 Let x n x and y n y in (X, d). Then d(x n, y n ) d(x, y). Proof. 0 d(x n, y n ) d(x, y) d(x, x n ) + d(y n, y) 0. Definition 2.19 Let (X, d) and (X, e) be metric spaces. The metrics d and e are equivalent if d(x n, x) 0 e(x n, x) 0. Remark 2.20 If there are c 1, c 2 > 0 such that x, y X c 1 d(x, y) e(x, y) c 2 d(x, y) then d and e are equivalent. Example 2.21 On R 2 d((x 1, y 1 ), (x 2, y 2 )) = (x 1 x 2 ) 2 + (y 1 y 2 ) 2 and are equivalent. Proof. e((x 1, y 1 ), (x 2, y 2 )) = x 1 x 2 + y 1 y 2 1 2 e((x 1, y 1 ), (x 2, y 2 )) d((x 1, y 1 ), (x 2, y 2 )) e((x 1, y 1 ), (x 2, y 2 )). 3 Limit points, open sets, closed sets Let (X, d) be a metric space, x 0 X, r > 0. Definition 3.1 The set B(x 0 ; r) = {x X : d(x, x 0 ) < r} is the open ball with center x 0 and radius r. B(x0 ; r) = {x X : d(x, x 0 ) r} is the closed ball with center x 0 and radius r. Example 3.2 Let R 1 have its usual metric, a R 1. Then B(a; r) = (a r, a + r), B(a; r) = [a r, a + r]. Similarly for R n, a R n, B(a; r) = {(x 1,..., x n ) R n : n i=1 (x i a i ) 2 < r 2 }, B(a; r) = {(x 1,..., x n ) R n n : i=1 (x i a i ) 2 r 2 }. Example 3.3 Let (X, d) be a discrete metric space, and let a X. Then B(a; 1) = {a}, while B(a; 1) = X. Definition 3.4 Let E be a subset of X. The point c X is a limit point of E if for any ε > 0 there is an x E such that 0 < d(x, c) < ε, i.e. (B(c; ε)\{c}) E. Theorem 3.5 Let c be a limit point of E. Then for every ε > 0 the ball B(c; ε) contains infinitely many points of E. Moreover, there exists a sequence (x n ) of points in E such that d(x n, c) is positive, and strictly decreasing to 0. Proof. For n N, (B(c; 1 n )\{c}) E x n. Then 0 < d(x n, c) < 1 n ( ). Hence x n c. The set of distinct points {x 1, x 2,... } is infinite. Otherwise min{d(x 1, c),..., d(x n, c)} is bounded away from 0, contradicting ( ). 8

Example 3.6 Let E be a finite set in a metric space (X, d). Then E does not have any limit points. Proof. Since E is finite B(c; 1) contains finitely many points of E. Then c is not a limit point of E by Theorem 3.5. Example 3.7 (i) Let R have the Euclidean metric. Then any c R is a limit point of Q. Proof. For any ε > 0, (c ε, c) will contain a point of Q. Hence (B(c; ε)\{c}) Q. (ii) Let E = { 1, 1 2, 1 3,... }. Then 0 is the only limit point of E. Proof. ( B(0; ) ε) 1 n for n N, n > 1 ε. If x E then x = 1 n for some n N. Then 1 B n ; 1 n 1 n+1 \{x} does not contain points of E. If x < 0, then B (x; x) E =. If 0 < x < 1, x / E then B(x; ε) E = for ε = min{ 1 n x, x 1 n+1 }, where n is such that 1 n+1 < x < 1 n. If x > 1, then B (x; x 1) E =. So 0 is the only limit point of E. Example 3.8 A discrete metric space does not have any limit points. Definition 3.9 A point c of E is an isolated point of E if c is not a limit point of E. Example 3.10 A discrete metric space consists of isolated points. The subset [0, 1) of R does not have isolated points. The set of limit points of [0, 1) is the set [0, 1]. Definition 3.11 Given a set E X. Then c is an interior point of E if there is an ε > 0 such that B(c; ε) E. A set E X is open if every point of E is an interior point of E. Example 3.12 Let (X, d) be a metric space. Then and X are open sets. Example 3.13 The open ball B(a; r) is open. Proof. Let x B(a; r). Then d(x, a) < r. Let δ = r d(x, a). Then δ > 0. Let y B(x; δ). Then d(x, y) < δ and d(a, y) d(a, x) + d(x, y) < d(a, x) + δ = d(a, x) + r d(x, a) = r. Hence y B(a; r). Since y B(x; δ) was arbitrary, we conclude B(x; δ) B(a; r). Hence x is an interior point, and B(a; r) consists of interior points. Theorem 3.14 Let {A α : α T } be a collection of open sets in (X, d). Then is open. α T Proof. Suppose a α T A α. Then there exists α 0 T such that a A α0. Since A α0 is open we have r > 0 : B(a; r) A α0 A α. Theorem 3.15 Let {A i : i = 1, 2,..., N} be a finite collection of open sets in (X, d). Then A α α T is open. N k=1 A k 9

Proof. have Suppose a N k=1 A k. Then ( k N)[(1 k N) a A k ]. Since A k is open, we Let r = min{r 1,..., r N }, Then r > 0, and ( k) (1 k N) ( r k > 0) : B(a; r k ) A k. N ( k N)[(1 k N) B(a; r) = B(a; r k ) B(a; r k ) A k ]. k=1 Example 3.16 Let A k = ( 1 k, 1 k ) R1, k N, where R 1 has the usual metric. Then A k = {0}, which is not open. Definition 3.17 A set A is closed in (X, d) if X\A is an open set in (X, d). Example 3.18 X and are closed sets. k=1 Theorem 3.19 A set A in a metric space (X, d) is closed if and only if it contains all its limit points. Proof. Suppose A is closed. Let x X\A. Since X\A is open there exists r > 0 such that B(x; r) A =. Hence x is not a limit point of A. Suppose A contains all its limit points. Let x X\A. Then x is neither a limit point of A nor a point of A. Then there exists ε > 0 such that B(x; ε) A =. Then X\A is open and A is closed. Theorem 3.20 The intersection of any collection of closed sets is closed. The union of a finite collection of closed sets is closed. Proof. Let {A α : α T } be a collection of closed sets. Then {A c α : α T } is a collection of open sets. By Theorem 3.14 α T Ac α is open. By Definition 3.17 ( c α T α) Ac is closed. By De Morgan s law we have that ( ) c α T Ac α = α T Acc α = α T A α is closed. Let {A i : i = 1, 2,..., N} be a collection of closed sets. Then {A c i : i = 1, 2,..., N} is a collection of open sets. By Theorem 3.15 ( N N c i=1 Ac i is open. By Definition 3.17 i=1 i) Ac is ( N ) c N closed. By De Morgan s law i=1 Ac i = i=1 Acc i = N i=1 A i is closed. Example 3.21 (i) The closed ball B(a; r), a X, r > 0 is a closed set. Let x X\ B(a; r). Then d(x, a) > r. Let δ = d(x, a) r and y B(x; δ). Then y / B(a; r) since d(a, y) d(a, x) d(x, y) > d(a, x) δ = r. (ii) A finite set in a metric space is closed. (iii) [0, 1] is a closed subset of R 1. Definition 3.22 Let E be any subset of X, in a metric space (X, d). (i) The interior of E, denoted by int(e), is the set of interior points of E. (ii) The set of limit points of E is denoted by E. (iii) The closure of E, denoted by E, is the set E E. 10

(iv) The boundary of E, denoted by b(e) is the set E\int(E). Theorem 3.23 For any set E in a metric space (X, d) (i) int(e) is open, (ii) E is closed, (iii) b(e) is closed, (iv) E is closed. Proof. (i) If int(e) = then it is open. If int(e), let x int(e). Then there exists a δ > 0 such that B(x; δ) E. Let y B(x; δ). Then B(y; δ d(x, y)) B(x; δ) E. Hence y int(e). Hence B(x; δ) int(e). Then int(e) is a union of open balls, and hence is open. Note that x is an interior point of int(e). So int(e) int(int(e)) int(e). Hence int(e) = int(int(e)). (ii) If E = X. Then E is closed. If X\E, let x X\E. Then x / E, x / E. Hence there exists a δ > 0 such that B(x; δ) E =. We will show that B(x; δ) E =. Suppose to the contrary and let x 0 B(x; δ) E. Then δ d(x, x 0 ) > 0, and B(x 0 ; δ d(x, x 0 )) E since x 0 is a limit point of E. Then B(x; δ) E for all δ > 0 since B(x 0 ; δ d(x, x 0 )) B(x; δ). Contradiction. Hence B(x; δ) E = for some δ > 0, and B(x; δ) E =. Then X\E is open and E is closed. (iii) b(e) = E\int(E) = E (X\int(E)). Since X\int(E) is closed, b(e) is intersection of two closed sets. (iv) Let x be a limit point of E. Then for any δ > 0, B(x; δ)\{x} contains a point x 0 of E. Let ε > 0 be a such that B(x 0 ; ε) B(x; δ)\{x}. Since B(x 0 ; ε)\{x 0 } contains a point of E, B(x; δ)\{x} contains a point of E. Then x E and E contains its limit points. Hence E is closed. Theorem 3.24 For any set E in a metric space (X, d), b(e) = {c X : for all ε > 0, B(c; ε) E and B(c; ε) (X\E) }. Proof. Suppose x b(e). Then x E\int(E). Then x is not an interior point of E, and so for all ε > 0, B(x; ε) (X\E). Also x E or x E. Hence B(x; ε) E for all ε > 0. Hence x {c X : for all ε > 0, B(c; ε) E, B(c; ε) (X\E) = }. Suppose x {c X : for all ε > 0, B(c; ε) E, B(c; ε) (X\E) }. Then x int(e) and, x E or x E. Hence x / int(e), x E. Theorem 3.25 Let C[a, b] be the set of continuous real valued functions. Then C[a, b] is a closed subset of the metric space (B[a, b], d) with the supremum metric. Proof. Let f C[a, b], and let (f n ) be a sequence in C[a, b] such that f n f in B[a, b]. It suffices to show that f C[a, b]. Fix t 0 [a, b], ε > 0. Let N N be such that d(f N, f) < ε/3. Since f N is continuous we have Therefore for the same t δ > 0 t (t 0 δ, t 0 + δ) [a, b] : f N (t) f N (t 0 ) < ε/3. f(t) f(t 0 ) f(t) f N (t) + f N (t) f N (t 0 ) + f N (t 0 ) f(t 0 ) ε/3 + ε/3 + ε/3 = ε. Hence f C[a, b]. 11

Theorem 3.26 (i) If A B, and B is closed then A B. (ii) If C D and C is open then C int(d). Proof. (i) If A is closed then A = A, and there is nothing to prove. Otherwise, assume that A \ A. Let x A \ A. Suppose that x B. Then x is an interior point of B c since B c is open. Therefore x is an interior point of A c since B c A c. This is a contradiction since x is a limit point of A. (ii) Let x C. Since C is open there exits ε > 0 such that B(x; ε) C. Hence B(x; ε) D, so that x int(d). Theorem 3.27 Let (X, d) be a metric space, x X and r > 0. Then B(x; r) B(x; r). The inclusion is not necessarily valid in the other direction. However, in R n with the usual metric B(x; r) = B(x; r) Proof. B(x; r) B(x; r). By 3.21 B(x; r) is closed. By 3.26(i) B(x; r) B(x; r). To see that the inclusion is not necessarily valid in the other direction we let d be the discrete metric on a set X with at least two elements say x 0 and x 1. Then B(x 0 ; 1) = {x 0 } and B(x 0 ; 1) = {x 0 } since there are no limit points in a discrete metric space. But B(x 0 ; 1) = X and X {x 0 }. Let R n have the usual metric, and let x R n, y R n with d(x, y) = r. It suffices to show that y B(x; r). Let ε (0, r), x = (x 1,..., x n ), y = (y 1,..., y n ) and x = ((1 ε 2r )y 1 + ε 2r x 1,..., (1 ε 2r )y n + ε 2r x n). Then d( x, y) = ε 2r d(x, y) = ε ε 2. Hence x y. Moreover d( x, x) = (1 2r )d(x, y) = r ε 2 < r. Hence x B(x; r) and y is a limit point of B(x; r). 4 Functions in metric spaces Definition 4.1 Let (X, ρ) and (Y, σ) be metric spaces. Let A X, x 0 be a limit point of A, i.e. x 0 A, and y 0 Y. Let f : A Y. Then y 0 is the limit of f at x 0 if ( ε > 0) ( δ > 0) ( x A)[(0 < ρ(x, x 0 ) < δ) = (σ(f(x), y 0 ) < ε)]. Notation: lim x x 0 f(x) = y 0 or f(x) y 0 as x x 0. Theorem 4.2 Let (X, ρ) and (Y, σ) be metric spaces. Let A X, x 0 be a limit point of A, i.e. x 0 A, and y 0 Y. Let f : A Y. Then y 0 = lim x x0 f(x) if and only if for every sequence (x n ) in A \ {x 0 } (ρ(x n, x 0 ) 0) = (σ(f(x n ), y 0 ) 0). Proof. The proof is similar to the corresponding proof for real functions and shows that the Cauchy and Heine definitions of a limit are equivalent. Theorem 4.3 Let f(x) y 1 as x x 0 and f(x) y 2 as x x 0. Then y 1 = y 2. Proof. σ(y 1, y 2 ) σ(y 1, f(x)) + σ(f(x), y 2 ) 0 as x x 0. Hence y 1 = y 2. Example 4.4 Let f : R 2 \{(0, 0)} R be defined by f(x, y) = x 4 + y 2. Then lim (x,y) (0,0) f(x, y) does not exist. By Theorem 4.2 it is sufficient to find a sequence ((x ( n, y n )) n N ) with (x n, y n ) (0, 0) such that (f(x n, y n )) n N does not converge. Let (x n, y n ) = 1 n, ( 1)n n 2. Then f(x n, y n ) = ( 1) n /2. x2 y 12

Example 4.5 Let f : R 2 \{(0, 0)} R be defined by f(x, y) = x2 y 2 x 4 + y 2. Since x 2 y 1 2 (x4 + y 2 ) and f(x, y) y we have that d((x, y), (0, 0)) < 2ε implies f(x, y) < 2 y 2 1 2 (x2 + y 2 ) 1/2 < ε. Hence lim (x,y) (0,0) f(x, y) = 0. Definition 4.6 Let (X, ρ), (Y, σ) be metric spaces. Then f : X Y is continuous at a point x 0 of X if given ε > 0 there is a δ > 0 such that ρ(x, x 0 ) < δ implies σ(f(x), f(x 0 )) < ε (or f(b(x 0 ; δ)) B(f(x 0 ); ε)). If f is continuous at all points of a set then f is continuous on that set. Example 4.7 Let (X, d) be a metric space, let a X, and f : X R, f(x) = d(a, x). Then f is continuous. Proof. Let x X be arbitrary. By Proposition 1.11 f(x) f(y) = d(a, x) d(a, y) d(x, y) < ε for y B(x; ε). Theorem 4.8 Let (X, ρ), (Y, σ) be metric spaces. Then f : X Y is continuous if and only if for every open set G in Y, f 1 (G) is open in X. Proof. Suppose f is continuous and G is open in Y. If f 1 (G) = then it is open. If f 1 (G) let x 0 f 1 (G). Then f(x 0 ) G and since G is open there is an ε > 0 such that B(f(x 0 ); ε) G. By continuity of f there exists δ > 0 such that f(b(x 0 ; δ)) B(f(x 0 ); ε). Then B(x 0 ; δ) f 1 (B(f(x 0 ); ε)) f 1 (G). Then x 0 is an interior point of f 1 (G), and f 1 (G) is open. Suppose that the open set condition holds. Let x X. For any ε > 0, B(f(x); ε) is open in (Y, σ). By hypothesis f 1 (B(f(x); ε)) is open in (X, ρ). Since x f 1 (B(f(x); ε)) there is a δ > 0 such that B(x; δ) f 1 (B(f(x); ε)). Then f(b(x; δ)) B(f(x); ε), and so f is continuous at x. Theorem 4.9 Let (X, ρ), (Y, σ) be metric spaces. Then f : X Y is continuous if and only if the inverse of every closed set C in Y is closed in X. Proof. Suppose the closed set condition holds. Then C closed implies f 1 (C) closed. Let G be open. Then G c is closed, and f 1 (G c ) = (f 1 (G)) c is closed. Then f 1 (G) is open. Then f is continuous by 4.8. Suppose f is continuous, and C is closed in Y. Then C c is open, and by 4.8 f 1 (C c ) = (f 1 (C)) c is open. Then f 1 (C) is closed. 5 Complete metric spaces Definition 5.1 A sequence (x n ) of points in a metric space (X, d) is a Cauchy sequence if ( ε > 0) ( N N) ( m, n N) [(m, n N) (d(x n, x m ) < ε)]. Lemma 5.2 Let (x n ) be a Cauchy sequence in a metric space (X, d). Then (x n ) is bounded. Proof. Let ε = 1 in Definition 5.1. Then there exists N N such that m, n N implies d(x m, x n ) < 1. Hence for m N, d(x m, x N ) < 1, and so for all m, d(x m, x N ) max{d(x 1, x N ),..., d(x N 1, x N ), 1}. 13

Theorem 5.3 A convergent sequence in a metric space is a Cauchy sequence. Proof. Let x n x in (X, d). Then ( ε > 0) ( N N) ( n N) [(n N) (d(x n, x) < ε/2)]. Let ε > 0 and let N be as above. Let m, n N be such that m, n N. Then d(x n, x m ) d(x n, x) + d(x m, x) < ε/2 + ε/2 = ε. Hence (x n ) is a Cauchy sequence. Remark 5.4 The converse of Theorem 5.3 is false in general. Let (Q, d) have the standard metric d(x, y) = x y. Let x n = 10 n s n, where s n = min{s N : s 2 > 2.10 2n }. We will show that (x n ) is a Cauchy sequence in (Q, d) which does not converge. Since s 2 n > 2.10 2n (s n 1) 2 we have that (s n 1) 2 4.10 2n. Hence s n 2.10 n +1 3.10 n, and s 2 n 2.10 2n +2s n 1 2.10 2n +6.10 n. Then 2 < x 2 n 2 + 6.10 n. It follows that lim n x 2 n = 2, and so (x 2 n) is a Cauchy sequence. Since x n x m x n x m. x n + x m x 2 n x 2 m 6. max{10 n, 10 m } we have that (x n ) is also a Cauchy sequence. Suppose lim n x n = x, x Q. Then lim n x 2 n = x 2. But x 2 2 for x Q. Contradiction. Definition 5.5 A subset E of a metric space (X, d) is complete if for any Cauchy sequence of points (x n ) in E there exists x E such that x n x. Example 5.6 The set of real numbers R with the usual metric d(x, y) = x y is a complete metric space. (See Lecture notes in Further Topics in Analysis). Theorem 5.7 The Euclidean space R N is complete. Proof. Let (x n ) be a Cauchy sequence in R N. For a fixed n, the point x n is an N-tuple x n = (x (1) n, x (2) n,..., x (N) n ). Then for every i = 1, 2,..., N, (x n (i) ) is a Cauchy sequence of real numbers. This follows from the inequality x (i) n x (i) m { N i=1 (x (i) n x (i) m ) 2 } 1/2, which is valid for every i = 1, 2,..., N. By the completeness of R with the usual metric we conclude that, for every i = 1, 2,..., N, there exists x (i) such that x (i) n x (i). Let x = (x (1), x (2),..., x (N) ). Then x R N, and the inequality implies that x n x. { N } 1/2 N (x (i) n x (i) ) 2 x n (i) x (i) i=1 i=1 Theorem 5.8 Let (X, d) be a metric space, and let E be a subset of X. (i) If E is complete then E is closed. (ii) If X is complete, and E is closed, then E is complete. Proof. (i) Let x X be a limit point of E. Then there exists a sequence (x n ) of points in E such that x n x. Then (x n ) is a Cauchy sequence, by Theorem 5.3. Since E is complete, x n y for some y E. By uniqueness of the limit, x = y. Hence x E. (ii) Let (x n ) be a Cauchy sequence in E. Since X is complete, x n x for some x X. Since E is closed, x E. 14

Definition 5.9 Let (X, d) be a metric space. A subset E of X is called bounded if there exists an open ball that contains E. Remark 5.10 A subset E of a metric space (X, d) is bounded if and only if diam(e) := sup d(x, y) <. x,y E Let (Y, τ) be a metric space, and let X be an arbitrary set. Then f : X Y is bounded if f(x) is bounded in Y. Let B(X, Y ) denote the set of all bounded functions from X to Y. The (usual) supremum metric on B(X, Y ) is defined by ρ(f, g) = sup τ(f(x), g(x)). x X Recall that if X = [a, b], Y = R and τ is the usual metric on R then we obtain the metric space B[a, b] with the supremum metric. Theorem 5.11 Let X be a non-empty set and (Y, τ) be a complete metric space. Then (B(X, Y ), ρ) is a complete metric space. Proof. Let (φ n ) be a Cauchy sequence in B(X, Y ) and let x be any point of X. Since τ(φ m (x), φ n (x)) sup ξ X τ(φ m (ξ), φ n (ξ)) = ρ(φ m, φ n ) it follows that (φ n (x)) is a Cauchy sequence in the complete metric space (Y, τ). Hence lim n φ n (x) exists for every x X. Let φ : X Y be the function given by φ(x) = lim n φ n (x), x X. Next we show that φ B(X, Y ). Since (φ n ) is Cauchy in (B(X, Y ), ρ) there exists N N such that m, n N implies ρ(φ n, φ m ) 1. Hence ρ(φ N, φ m ) 1. Then, by definition sup x X τ(φ N (x), φ m (x)) 1 for m N, and so for any x X, τ(φ N (x), φ m (x)) 1, m N. By Theorem 2.18 τ(φ N (x), φ(x)) 1. Since φ N is bounded, φ N (X) is contained in an open ball. Hence φ(x) is contained in an open ball with the same center and radius, 1 larger. So φ B(X, Y ). Finally we show that φ m φ (which is a stronger assertion than the statement φ m (x) φ(x) for every x X). Given any ε > 0 there exists N ε N such that m, n N ε implies ρ(φ m, φ n ) ε. Hence m, n N ε implies for x X, τ(φ m (x), φ n (x)) ε. Taking the limit n (see again Theorem 2.18) we obtain that m N ε, x X implies τ(φ m (x), φ(x)) ε. Hence sup x X τ(φ m (x), φ(x)) ε for m N ε. Hence m N ε implies ρ(φ m, φ) ε. So φ m φ. Corollary 5.12 (C[a, b], d) is a complete metric space. Proof. Since R with the usual metric space is complete, B[a, b] with the supremum metric d, is complete by Theorem 5.11. By Theorem 3.25 C[a, b] is a closed subset of B[a, b]. Then C[a, b] is complete by Theorem 5.8. Definition 5.13 A normed space which is complete as a metric space is a Banach space. Remark 5.14 R, R N, B(X, Y ) with Y a complete normed space are examples of Banach spaces. C[a, b] with norm f g = sup x [a,b] f(x) g(x) is a Banach space. Example 5.15 Let C[0, 1] be the continuous real-valued functions on [0, 1]. Define d(f, g) = 1 f(t) g(t) dt. Then (C[0, 1], d) is an incomplete metric space. 0 Proof. Define for n = 1, 2... 0, 0 t 1 2, f n (t) = 2n(t 1 2 ), 1 2 t 1 2 + 1 2n, 1 1, 2 + 1 2n t 1. 15

Then (f n ) is Cauchy since d(f n, f m ) = 1 0 f n(t) f m (t) dt = 1 4 1 n 1 m. Hence d(f n, f m ) ε for n, m 1 ε Suppose f m f. Then there exists N such that m N implies d(f, f m ) = 1 0 = f(t) f m (t) dt 1 2 0 1 2 + 1 2m 1 f(t) dt + f(t) f m (t) dt + 1 f(t) dt < ε. 1 1 2 2 + 1 2m We conclude that f(t) = 0, 0 t 1 2, f(t) = 1, 1 2 < t 1. Hence f is not continuous at 1 2. Contradiction. Hence C[0, 1] with this metric is not complete. Theorem 5.16 A metric space (X, d) is complete if and only if for every sequence (V n ) of nonempty closed subsets of X [ ] {( n N) [V n+1 V n ]} [diam(v n ) 0] V n. Proof. Suppose X is complete, and let (V n ) be a sequence of non-empty closed sets with V n V n+1, diam(v n ) 0. Let ε > 0. There exists N N such that diam(v N ) < ε. Let x n V n, n = 1, 2,.... Then for any m, n N, x m, x n V N and d(x m, x n ) diam(v N ) < ε. Hence (x n ) is a Cauchy sequence. Since X is complete x n x for some x X. Since x n V m for all n m, x V m = V m. Since m was arbitrary x m=1 V m, and m=1 V m. Note that {x} = m=1 V m. (If y m=1 V m and y x, then diam(v m ) d(x, y) > 0). Suppose X is not complete. Then there exists a Cauchy sequence (x n ) which does not converge. Let V n = {x i : i n}. Then V n does not have any limit points (If x is a limit point of V n, then there exists a subsequence of (x n ) which converges. Since (x n ) is Cauchy, (x n ) converges. Contradiction). Hence V n is closed, and V n V n+1. Given any ε > 0 there exists N such that m, n N implies d(x m, x n ) < ε. Hence diam(v N ) ε and so diam(v n ) 0. Suppose x V n for all n. Then x n x since d(x, x n ) diam(v n ) 0. Contradiction. So n=1 V n =. Definition 5.17 A subset A of a metric space (X, d) is said to be dense if A = X. I.e. if Remark 5.18 A is not dense in X if n=1 ( x X) ( ε > 0) ( y A) [d(x, y) < ε]. ( x X) ( ε > 0) ( y A) [d(x, y) ε]. Definition 5.19 A metric space (X, d) is said to be separable if it contains a countable dense subset. Example 5.20 (i) R with the standard metric is separable as Q is countable and dense in R. (ii) R N with the standard metric is separable as Q N is countable and dense in R N. Definition 5.21 Two metric spaces (X 1, d 1 ) and (X 2, d 2 ) are isometric if there exists a bijection T : X 1 X 2 such that [ ] ( x, y X 1 ) d 2 (T x, T y) = d 1 (x, y). Theorem 5.22 Let (X, d) be a metric space. Then there exists a complete metric space ( X, d) which has a subset W which is isometric with X and which is dense in X. If X is any complete metric space having a subset W isometric with X and dense in X then X and X are isometric. 16

The proof is in four steps: (a) the construction of a metric space ( X, d), (b) the construction of an isometry T from X onto W where W = X, (c) the proof of completeness of ( X, d), (d) the proof of the uniqueness except for isometries. Proof. (a) Let (x n ) and (x n) be Cauchy sequences in (X, d). We define (x n ) to be equivalent to (x n) written (x n ) (x n) if lim n d(x n, x n) = 0. Then defines an equivalent relation. ((x n ) (x n ) since d(x n, x n ) = 0, (x n ) (y n ) lim n d(x n, y n ) = lim n d(y n, x n ) = 0 (y n ) (x n ), (x n ) (y n ) and (y n ) (z n ) implies lim n d(x n, z n ) lim n (d(x n, y n ) + d(y n, z n )) = 0 and so (x n ) (z n )). Let X be the set of all equivalence classes x, ŷ,... of Cauchy sequences. We write (x n ) x if (x n ) is a member of x. Define d : X X R by d( x, ŷ) = lim n d(x n, y n ) where (x n ) x, (y n ) ŷ. This limit exists since d(x n, y n ) d(x m, y m ) d(x n, x m ) + d(y n, y m ), which goes to 0 as n, m. Hence (d(x n, y n )) is a Cauchy sequence in the complete metric space R. Moreover this limit is independent of the choice of representatives: Let (x n ) (x n) and (y n ) (y n). Then d(x n, y n ) d(x n, y n) d(x n, x n) + d(y n, y n) 0. Hence lim n d(x n, y n ) = lim n d(x n, y n) = d( x, ŷ). To complete part (a) we show that d is a metric on X. (M1) 0 d( x, ŷ) < since 0 lim n d(x n, y n ) < for Cauchy sequences (x n ) and (y n ), (M2) d( x, ŷ) = 0 lim n d(x n, y n ) = 0 for representatives (x n ) x, (y n ) ŷ (x n ) (y n ) x = ŷ, (M3) d( x, ŷ) = lim n d(x n, y n ) = lim n d(y n, x n ) = d(ŷ, x), (M4) Let (z n ) ẑ. Then d( x, ŷ) = lim n d(x n, y n ) lim n (d(x n, z n )+d(z n, y n )) = lim n d(x n, z n )+ lim n d(z n, y n ) = d(x, ẑ) + d(ẑ, ŷ) since each of the above limits exists. (b) With each b X we associate the class b X which contains the constant Cauchy sequence (b, b, b... ). This defines a map T : X X. T is an isometry since d( b, ĉ) = lim n d(b, c) = d(b, c), where ĉ is the class containing (c, c,... ). Put W = T (X). Then T is onto W. T is also one-to-one. (Suppose b = ĉ. Then d( b, ĉ) = 0 implies d(b, c) = 0. Hence b = c). So X and W are isometric. We will show that W is dense in X. Let x X be arbitrary, and let (x n ) x. For every ε > 0 there exists N N such that n N implies d(x n, x N ) < ε 2. Let (x N, x N,... ) x N. Then x N W. Moreover d( x N, x) = lim n d(x N, x n ) ε 2 < ε. Hence W is dense in X. (c) Let ( x n ) be a Cauchy sequence in ( X, d). Since W is dense in X we have that for every x n X there exists ẑ n W such that d( x n, ẑ n ) < 1 n. By the triangle inequality d(ẑ n, ẑ m ) d(ẑ n, x n ) + d( x n, x m ) + d( x m, ẑ m ) 1 n + ε + 1 m for all m, n N and some N N. Hence (ẑ m) is a Cauchy sequence in W. Since T : X W is an isometry the sequence (z m ), z m = T 1 ẑ m is a Cauchy sequence in X. Let x X be the equivalence class containing (z m ). We will show that x n x in ( X, d). Since d( x n, x) d( x n, ẑ n ) + d(ẑ n, x) < 1 n + d(ẑ n, x), ẑ n contains the Cauchy sequence (z n, z n,... ), and x contains the Cauchy sequence (z m ) we have that d(ẑ n, x) = lim m d(z n, z m ). So d( x n, x) 1 n + ε < 2ε for n sufficiently large. (d) We prove that X and X are isometric by constructing a bijective isometry U : X X. Let T : X W and T 1 : X W be bijective isometries. Then T T1 1 : W W is a bijective isometry. Suppose x X\ W. Then there exists a sequence z n W such that d( x, z n ) < 1 n. Then ( z n ) is a Cauchy sequence in X. Define ẑ n = T T1 1 z n, n = 1, 2,..... Then (ẑ n ) is a Cauchy sequence in W since T T1 1 is an isometry. Since X is complete ẑ n x for some x X. This defines a map U : X X by putting x = U x. We will show that U is an isometry. Let x, ỹ X. Then, by the triangle inequality, d(u x, Uỹ) d( x, ỹ) d(u x, Uỹ) d( x n, ỹ n ) + d( x n, ỹ n ) d( x, ỹ) d(u x, Uỹ) d( x n, ŷ n ) + d( x n, ỹ n ) d( x n, ŷ n ) + d( x n, x) + d(ỹ n, ỹ) d(u x, x n ) + d(uỹ, ŷ n ) + d( x n, x) + d(ỹ n, ỹ) 0 since U x = lim n x n, Uỹ = lim n ŷ n, x n x, ỹ n ỹ and d( x n, ỹ n ) = d( x n, ŷ n ). Hence U is an isometry. But isometrics are injective (one-to-one). Finally we show that U is onto. Let x X\W. Then there exists a sequence (ẑ n ) W such that ẑ n x. Then z n = T 1 T 1 ẑ n gives a Cauchy sequence (ẑ n ). Then x n x and U x = x. 17

6 The contraction mapping theorem and applications Let (X, d) be a metric space. Let T : X X be a function (mapping) from X into itself. Definition 6.1 A point x X is a fixed point of the mapping T, if T x = x. Definition 6.2 A mapping T : X X is a contraction (or contraction mapping) if [ ] ( λ [0, 1)) ( x, y X) d(t x, T y) λd(x, y). Theorem 6.3 Let (X, d) be a complete metric space, and let T : X X be a contraction. Then T has a unique fixed point. Proof. Let x 0 X. Define x n+1 = T x n, n = 0, 1, 2,... Then Let m n. Then d(x n+1, x n ) = d(t x n, T x n 1 ) λd(x n, x n 1 ) = λd(t x n 1, T x n 2 ) λ 2 d(x n 1, x n 2 ) = λ n d(x 1, x 0 ). (1) d(x n, x m ) d(x n, x n+1 ) + d(x n+1, x n+2 ) + + d(x m 1, x m ) λ n d(x 1, x 0 ) + λ n+1 d(x 1, x 0 ) + + λ m 1 d(x 1, x 0 ) λn 1 λ d(x 1, x 0 ). It follows from (1) that (x n ) is a Cauchy sequence. Since (X, d) is complete, there exists x X such that x n x. Taking the limit m in (1) we obtain (2) d(x n, x ) λn 1 λ d(x 1, x 0 ). By the triangle inequality and (2) (3) d(t x, x ) d(t x, T x m ) + d(t x m, x ) λd(x, x m ) + d(x m+1, x ) 2λm+1 1 λ d(x 1, x 0 ). Taking the limit m in (3) we obtain that d(t x, x ) = 0. Hence T x = x, and x is a fixed point of T. Suppose that z X is also a fixed point of T, i.e. T z = z. Then d(x, z) = d(t x, T z) λd(x, z). Since 0 λ < 1 it follows that d(x, z) = 0, and hence x = z. Example 6.4 Let X = [0, 1] with the standard metric. Since R is complete, and [0, 1] is closed, [0, 1] is complete. Let T : X X be defined by T x = cos x. Then T X = [cos 1, 1]. Also, by the Mean Value Theorem we have T x T y = cos x cos y max sin θ x y = sin(1) x y. θ [0,1] Since sin(1) < 1 we conclude that T is a contraction mapping. Iteration of an arbitrary value in [0, 1] gives x = 0.739085133.... 18

Example 6.5 Let X = C[0, 1] with the supremum (maximum) metric. Let T : X X be defined by (T f)(t) = 1 t 0 τf(τ)dτ. The T is a contraction mapping since, t d(t f, T g) = max τ(g(τ) f(τ))dτ max t [0,1] 1 0 0 τ g(τ) f(τ) dτ 1 0 t [0,1] t 0 τ g(τ) f(τ) dτ τd(f, g)dτ = 1 d(f, g). 2 Note that T f C[0, 1]. Since C[0, 1] is complete the equation T f = f has a unique solution, by Theorem 6.3. Since t (T f)(t) is differentiable we have that t f(t) is differentiable, and f (t) = d dt (T f)(t) = tf(t). Since f(0) = 1 we have f(t) = e t2 /2 on [0, 1]. It can be shown that this solution can be extended to X = C(R). Example 6.6 Let K : [a, b] [a, b] R be a continuous function, and let θ : [a, b] R be continuous. Consider the integral equation ψ(x) = λ b K(x, y)ψ(y)dy + θ(x), ψ C[a, b] where a λ is a constant (Fredholm integral equation of the second kind). We shall prove that for λ sufficiently small, there exists a unique ψ C[a, b] which solves the equation. In Chapter 7 we shall prove that continuous functions on closed, bounded subsets of R m are bounded: i.e. there exists M such that K(x, y) M. We will also show that continuous functions on closed, bounded subsets of R m are uniformly continuous i.e. for all ε > 0 there exists δ > 0 such that x 1 x 2 < δ implies θ(x 1 ) θ(x 2 ) ε and K(x 1, y) K(x 2, y) < ε. Also for ψ C[a, b], there exists N ψ such that ψ(y) N ψ for all a y b. Define T on C[a, b] by (T ψ)(x) = λ Then T ψ(x 1 ) T ψ(x 2 ) λ b b a a a K(x, y)ψ(y)dy + θ(x), a x b. (K(x 1, y) K(x 2, y))ψ(y)dy + θ(x 1 ) θ(x 2 ) λ εn ψ (b a) + ε for x 1 x 2 δ. Hence T ψ C[a, b]. For any ψ 1, ψ 2 C[a, b] we have d(t ψ 1, T ψ 2 ) = max a x b T ψ 1 (x) T ψ 2 (x) λ b K(x, y) ψ 1 (y) ψ 2 (y) dy λ M(b a)d(ψ 1, ψ 2 ). Hence T is a contraction map on a complete metric space for λ < (M(b a)) 1 and T ψ = ψ has a unique solution. Then ψ(x) = λ b K(x, y)ψ(y)dy + θ(x) has a unique solution in C[a, b] for a λ < (M(b a)) 1. Example 6.7 Consider the integral equation ψ(x) = λ 1 1 (x y)ψ(y)dy + 1, ψ C[ 1, 1]. Then b a = 2, and x y 2 on [ 1, 1] [ 1, 1]. Hence there exists a unique solution for λ < 1 4. We see that the solution is of the form ψ(x) = c + dx. Hence c + dx = λ 1 2dλ 3 1 1 (x y)(c + dy)dy + 1 = 2dλ + 2cλx. So c = 1 3, d = 2cλ with solution c = 3 3 + 4λ 2, d = 6λ. We see that 3 + 4λ2 this is also the unique solution for λ 1 4. Theorem 6.8 Let S be the rectangle [x 0 a, x 0 + a] [y 0 b, y 0 + b]. Suppose that f : S R is continuous, and f(x, y) B for (x, y) S, and there exists a constant A such that f(x 1, y 1 ) f(x 1, y 2 ) A y 1 y 2 19

for all (x 1, y 1 ) S, (x 1, y 2 ) S (Lipschitz condition). Let α [0, a] be such that α < min { 1 A, b B }. Then the differential equation dy dx = f(x, y), subject to the initial condition y(x 0) = y 0 has a unique solution in the interval [x 0 α, x 0 + α]. Proof. Let M = [x 0 α, x 0 + α], N = [y 0 b, y 0 + b]. Let C(M, N) be the collection of continuous functions from M into N with metric d(ϕ 1, ϕ 2 ) = ϕ 1 (t) ϕ 2 (t). Since N is complete, sup x 0 α t x 0+α (C(M, N), d) is a complete metric space. Define T on C(M, N) by x T ψ(x) = y 0 + f(t, ψ(t))dt. x 0 Then T ψ is differentiable with (T ψ) (x) = f(x, ψ(x)), and hence T ψ is continuous. Moreover, (T ψ)(x) y 0 = x f(t, ψ(t))dt x 0 x f(t, ψ(t)) dt B x x 0 Bα < b. x 0 Hence T ψ C(M, N). By the Lipschitz condition d(t ψ 1, T ψ 2 ) = max x M x f(t, ψ 1 (t))dt x 0 x f((t, ψ 2 (t))dt x 0 x max x M f(t, ψ 1 (t)) f(t, ψ 2 (t)) dt max x x x M Ad(ψ 1, ψ 2 )dt = Aαd(ψ 1, ψ 2 ). 0 x 0 So T : C(M, N) C(M, N) is a contraction map with λ = Aα < 1. Hence T has a unique fixed point φ C(M, N) satisfying x T φ = φ i.e. φ(x) = y 0 + f(t, φ(t))dt. x 0 We see that φ(x 0 ) = y 0. Since the right hand side is differentiable, φ is differentiable, and φ (x) = f(x, φ(x)). Hence φ is a solution of dy dx = f(x, y) with y(x 0) = y 0. On the other hand any solution of this o.d.e. with this initial condition is a fixed point since (T y)(x) = y 0 + y 0 + x x 0 dy dt dt = y 0 + y(x) y(x 0 ) = y(x). x x 0 f(t, y(t))dt = Example 6.9 Consider the equation dy dx = x2 + y 2, y(0) = 0. Choose b > 0 in Theorem 6.8. Then f(x, y 1 ) f(x, y 2 )) = y1 2 y2 2 = y 1 + y 2 y 1 y 2 2b y 1 y 2 since y 1, y 2 [ b, b]. So A = 2b. Choose { S = [ a, } a] [ b, b]. Then f(x, y) b 2 + a 2 on S. Hence B = b 2 + a 2. Choose 1 α < min 2b, b b 2 + a 2, α [0, a]. For a = b = 1 we obtain that there exists a unique solution 2 on ( 2 1/2, 2 1/2 ). Approximations can be obtained by iterations: let y 1 : ( 2 1/2, 2 1/2 ) ( 2 1/2, 2 1/2 ) be y 1 (x) = 0. Then T y 1 (x) = x 0 = x3 3 + x7 63,... f(t, y 1 (t))dt = x 0 f(t, 0)dt = x3 3, T y 2(x) = x 0 f ( ) t, t3 dt = 3 x 0 ( ) t 2 + t6 dt 9 Remark 6.10 It is possible to prove local existence and uniqueness for equations of the type y (k) (x) = f(x, y, y (1)..., y (k 1) ) under suitable Lipschitz conditions on f, and under suitable initial conditions. 20

Theorem 6.11 (Implicit function Theorem) Let (x 0, y 0 ) be an interior point of a set E in R 2, and suppose that f : E R satisfies (i) f(x 0, y 0 ) = 0, (ii) f is continuous in an open set G containing (x 0, y 0 ), (iii) f y exists in G and is continuous at (x 0, y 0 ), and f y (x 0, y 0 ) 0. Then there exists a rectangle M N = [x 0 α, x 0 +α] [y 0 β, y 0 +β], and a continuous function φ : M N such that y = φ(x) is the only solution lying in M N of the equation f(x, y) = 0. ( ) 1 f Proof. Put q = y (x 0, y 0 ). Since f y is continuous at (x 0, y 0 ), there is a rectangle [x 0 δ, x 0 + δ] [y 0 β, y 0 + β] G on which 1 q f (x, y) y < 1. Using conditions (i), (ii) we 2 can find a positive number α δ such that for x M = [x 0 α, x 0 + α], we have qf(x, y 0 ) β 2. Since N is complete, C(M, N) with the usual metric is complete. Define Ω on C(M, N) by (Ωψ)(x) = ψ(x) qf(x, ψ(x)), x M. Then Ωψ is continuous. We first show that Ω maps C(M, N) into itself. Let ψ C(M, N). Then for x M, we have (Ωψ)(x) ( y 0 = ψ(x) ) qf(x, ψ(x)) y 0 = ψ(x) qf(x, ψ(x)) (y 0 qf(x, y 0 )) qf(x, y 0 ) = (ψ(x) y 0 ) 1 q f y (x, u) qf(x, y 0 ) by the Mean Value Theorem applied to the second variable: u (y 0, ψ(x)). Hence (Ωψ)(x) y 0 ψ(x) y 0 1 q f y (x, u) + qf(x, y 0) β 1 2 + β 2 = β. To prove that Ω is a contraction map we let ψ 1, ψ 2 C(M, N), and let x M. Then (Ωψ 1 )(x) (Ωψ 2 )(x) ( = (ψ 1 (x) qf(x, ψ 1 (x))) (ψ 2 (x) qf(x, ψ 2 (x)) = (ψ 1 (x) ψ 2 (x)) 1 q f ) (x, v) y for some v between ψ 1 (x) and ψ 2 (x). Then ρ(ωψ 1, Ωψ 2 ) 1 2 ρ(ψ 1, ψ 2 ). Hence by the contraction mapping theorem Ω has a unique fixed point. Hence there exists a unique φ : M N, φ C(M, N) such that Ω(φ) = φ i.e f(x, φ(x)) = 0, x M. 7 Compact sets Definition 7.1 Let (X, d) be a metric space. A subset E of X (which may be X itself) is compact if every sequence in E has a subsequence which converges to a point in E. If X is compact then (X, d) is a compact metric space. Example 7.2 A finite set in a metric space is compact. Proof. If E = then E is compact. Suppose E = {p 1,..., p k }. If (x n ) is a sequence of points in E then at least one point p i appears infinitely often in (x n ). Theorem 7.3 The subset [a, b] of R with the usual metric is compact. Proof. First we show that every sequence in R has a monotone subsequence. Let (x n ) be a sequence in R. We call x p a terrace point if x n x p for all n p. If there are infinitely many terrace points then let x ν1 be the first, x ν2 be the second,.... Then (x νk ) is a decreasing 21

subsequence of (x n ). If there are finitely many terrace points (perhaps none), let ν 1 be a natural number such that no x n for n ν 1 is a terrace point. There is a ν 2 > ν 1 such that x ν2 > x ν1. There is a ν 3 > ν 2 such that x ν3 > x ν2. Continuing this way we obtain an increasing subsequence of (x n ). Let (x n ) be a sequence of points in [a, b]. By the above there exists a monotone subsequence (x nk ) of (x n ). Since x n [a, b] for all n we have that x nk [a, b] for all k. Then (x nk ) is bounded and monotone. Let x = lim k x nk. Then either x nk = x for all k sufficiently large or x is a limit point. Since [a, b] is closed, x [a, b]. Theorem 7.4 Let E = [a 1, b 1 ] [a n, b n ] R n with the usual metric. Then E is compact. Proof. Let (x m ) be a sequence of points in E, x m = (ξ 1m,..., ξ nm ). Then (ξ 1m ) m 1 is a sequence in [a, b]. By 7.3(ξ 1m ) m 1 has a convergent subsequence (ξ 1mi ) i 1. Let ξ 1 = lim i ξ 1mi. Then (ξ 2mi ) i 1 is a sequence in [a 2, b 2 ] and has a convergent subsequence with limit ξ 2. By repeating this process altogether n times we end up with a sequence (x νk ) k 1 of points in E such that lim i ξ jνi = ξ j, j = 1,..., n. Let x = (ξ 1,..., ξ n ). Then n d(x, x νi ) = ξ j ξ jνi 2 j=1 1/2 n ξ j ξ jνi 0 as i. Hence lim i x νi = x. Then x νi = x for all i sufficiently large, or x is a limit point of E. Since E is closed, x E. Theorem 7.5 A compact set in a metric space is complete. Proof. Let E be compact set in (X, d), and let (x n ) be a Cauchy sequence in E. Then (x n ) has a subsequence (x ni ) which converges to a point x E. Hence d(x n, x) d(x n, x ni ) + d(x ni, x) 0 as n, i. Hence x n x, x E. Theorem 7.6 Let E be a set in a metric space (X, d). (i) If E is compact, then E is bounded and closed. (ii) If X is compact and E is closed then E is compact. Proof. (i) Since E is compact, E is complete by 7.5. Then E is closed by 5.8 (i). Suppose E is unbounded. Then there exists a sequence (x n ) in E such that d(x 1, x n ) n 1, n N. Then (x n ) does not have a convergent subsequence since d(x ni, x) d(x ni, x 1 ) d(x 1, x) n i 1 d(x 1, x) as i (ii) Let (x n ) be any sequence in E. Since (x n ) is a sequence in X, X compact, there exists a subsequence (x ni ) with a limit x X. Since (x ni ) is a convergent sequence in E, and since E is closed, x E. Corollary 7.7 A set in R n with the usual metric is compact if and only if it is bounded and closed. Proof. Suppose E is bounded and closed. Then E [ N, N] [ N, N] for some N > 0. Then E is a closed subset of the compact set [ N, N] [ N, N]. Then E is compact by 7.6 (ii). The converse follows from 7.6 (i). Theorem 7.8 A set E in a metric space is compact if and only if every infinite subset of E has at least one limit point in E. j=1 22

Proof. Suppose E is compact. If A E and A is infinite then A contains a subset {x 1, x 2,... } of distinct points. Since E is compact (x n ) has a subsequence (x ni ) which converges to a point x E. Then x is a limit point of {x n1, x n2,... } and hence of A. Suppose every infinite subset of E has at least one limit point in E. Let (x n ) be a sequence in E. The set of points {x 1,... } may be finite or infinite. If {x 1,... } is finite then at least one of its points occurs infinitely many times in the sequence (x n ). Then (x n ) has a convergent subsequence, converging to a point in E. If {x 1,... } is infinite then it has a limit point, and this is the limit of some subsequence of (x n ). Theorem 7.9 (Bolzano Weierstrass theorem). A bounded, infinite set in R n has at least one limit point. Proof. A bounded set lies in the compact set [ N, N] [ N, N] for some N > 0, and the theorem follows by 7.8. Theorem 7.10 Let (X, d), (Y, e) be a metric spaces. compact then f(x) is compact. If f : X Y is continuous, and X is Proof. Let (y n ) be a sequence in f(x). Then there exists a sequence (x n ) in X such that y n = f(x n ). Since X is compact, there exists a convergent subsequence (x nk ), with x nk x, x X. Since f is continuous, f(x nk ) f(x). Hence y nk f(x) and f(x) f(x). Corollary 7.11 If the domain of a continuous function is compact then the range is bounded and closed. Proof. Theorem 7.10 and Theorem 7.6 (i). Corollary 7.12 If the domain of a real-valued continuous function is compact, then the function is bounded and attains its least upper bound and its greatest lower bound. Proof. Since the range is bounded and closed, the range contains its supremum and infimum. Theorem 7.13 Let f : X Y be a continuous bijection, where X is compact. Then f 1 : Y X is continuous. Proof. Let F be a closed set in X. Since X is compact, F is compact by 7.6 (ii). Then f(f ) is compact by 7.10. Hence f(f ) is closed by 7.6 (i). Then (f 1 ) 1 (F ) is closed, and f 1 is continuous by 4.9. Corollary 7.14 Let f : [a, b] R be strictly increasing and continuous. Then f 1 : [f(a), f(b)] [a, b] is strictly monotone and continuous. Proof. f is onto [f(a), f(b)], and since f is one-to-one f 1 : [f(a), f(b)] [a, b] exists. Since [a, b] is compact, f 1 is continuous by 7.13. Definition 7.15 Let (X, d), (Y, e) be a metric spaces. f : X Y is uniformly continuous if for any ε > 0 there exists a δ > 0 such that x, y X, d(x, y) < δ implies e(f(x), f(y)) < ε: ( ε > 0)( δ > 0)( x X)( y X)[(d(x, y) < δ e(f(x), f(y)) < ε] Remark 7.16 f is not uniformly continuous if ( ε > 0)( δ > 0)( x X)( y X)[(d(x, y) < δ) (e(f(x), f(y)) ε)] 23