Week 3 Discussion Notes

Table of Contents

Homework Comments

Limits

I noticed that a lot of students are very "limit-happy," i.e., many of you like to move limits around without justification. Starting with Homework 3, I will require that you justify any instances where you move a limit around. This is especially important if you want to swap lim\lim with max\max, min\min, sup\sup, or inf\inf. (In fact, in many instances, that won't be legal.)

For example, here is a model solution:

Example 1.

Assume that limnxn=x\lim_{n\to\infty} x_n = x and limnyn=y\lim_{n\to\infty} y_n = y. Show that

limn(xn+yn)2=(x+y)2.\lim_{n\to\infty} \p{x_n + y_n}^2 = \p{x + y}^2.
Solution.
limn(xn+yn)2=(limn(xn+yn))2(t2 is continuous)=(x+y)2(limit law)\begin{aligned} \lim_{n\to\infty} \p{x_n + y_n}^2 &= \p{\lim_{n\to\infty} \p{x_n + y_n}}^2 &&\p{t^2 \text{ is continuous}} \\ &= \p{x + y}^2 &&\p{\text{limit law}} \end{aligned}

Problem 2

While grading this one, I noticed that a lot of you guys wrote something like this:

limnxi(n)=0 for all i    limnmax1ikxi(n)=0\lim_{n\to\infty} \abs{x_i^{\p{n}}} = 0 \text{ for all } i \implies \lim_{n\to\infty} \max_{1 \leq i \leq k}{\abs{x_i^{\p{n}}}} = 0

Many of you also wrote the equivalent statement

max1iklimnxi(n)=0    limnmax1ikxi(n)=0\max_{1 \leq i \leq k} \lim_{n\to\infty} \abs{x_i^{\p{n}}} = 0 \implies \lim_{n\to\infty} \max_{1 \leq i \leq k}{\abs{x_i^{\p{n}}}} = 0

While it turns out this is true for this problem, it's a non-trivial fact, meaning you have to prove it. What's special in this problem is that ii ranges over a finite set, i{1,,k}i \in \set{1, \ldots, k}. When you take a maximum or supremum over an infinite set, you can no longer switch lim\lim and max\max in general:

Example 2.

Let

ai(n)={1if i=n,0otherwise.a_i^{\p{n}} = \begin{cases} 1 & \text{if } i = n, \\ 0 & \text{otherwise}. \end{cases}

In other words, a(n)a^{\p{n}} is a sequence which is all 00's except at the nn-th term. For example,

a(1)=(1,0,0,0,)a(2)=(0,1,0,0,)a(3)=(0,0,1,0,)\begin{aligned} a^{\p{1}} &= \p{1, 0, 0, 0, \ldots} \\ a^{\p{2}} &= \p{0, 1, 0, 0, \ldots} \\ a^{\p{3}} &= \p{0, 0, 1, 0, \ldots} \\ &\,\,\:\vdots \end{aligned}

Then

limnxi(n)=0 for all i    maxilimnxi(n)=0,\lim_{n\to\infty} \abs{x_i^{\p{n}}} = 0 \text{ for all } i \iff \max_i \lim_{n\to\infty} \abs{x_i^{\p{n}}} = 0,

but for each nn, the maximum coordinate of x(n)x^{\p{n}} is 11, so you also have

limnmaxixi(n)=limn1=1.\lim_{n\to\infty} \max_i{\abs{x_i^{\p{n}}}} = \lim_{n\to\infty} 1 = 1.

Moral: Pointwise convergence (i.e., convergence in each coordinate) does not imply uniform convergence (i.e., convergence of the maximum or supremum) in general.

We'll see more examples of this phenomenon later.

Cauchy Sequences and Completeness

If you remember the definition of a Cauchy sequence in R\R, then this definition should be no surprise:

Definition

Let (X,d)\p{X, d} be a metric space. We say a sequence {xn}n\set{x_n}_n is Cauchy if for all ε>0\epsilon > 0, there exists NN such that d(xn,xm)<εd\p{x_n, x_m} < \epsilon whenever n,mNn, m \geq N.

Morally, Cauchy sequences "should" converge. In (R,)\p{\R, \abs{\:\cdot\:}}, a sequence was convergent if and only if it is Cauchy (this is the Bolzano-Weierstrass theorem from MATH 131A). However, this is not true for general metric spaces, which is why we have an additional definition:

Definition

Let (X,d)\p{X, d} be a metric space. If every Cauchy sequence converges in XX, then we say that XX is complete.

Example 3.
  1. R\R is complete with respect to the Euclidean metric..
  2. (0,1)\p{0, 1} is not complete with respect to the Euclidean metric.
  3. [0,1]\br{0, 1} is complete with respect to the Euclidean metric..
Example 4.

Show that (Rk,d2)\p{\R^k, d_{\ell^2}} is complete.

Solution.

To show this, we need to show that any Cauchy sequence {x(n)}n\set{x^{\p{n}}}_n in Rn\R^n converges. Each element in our sequence is a vector:

x(n)=(x1(n),,xk(n))x^{\p{n}} = \p{x^{\p{n}}_1, \ldots, x^{\p{n}}_k}

As you can imagine, we're going to need to use completeness of R\R to do this.

Let ε>0\epsilon > 0. Since {x(n)}n\set{x^{\p{n}}}_n is Cauchy, there exists an NN such that if n,mNn, m \geq N, then

(i=1kxi(n)xi(m)2)1/2=d2(x(n),x(m))<ε.\p{\sum_{i=1}^k \abs{x^{\p{n}}_i - x^{\p{m}}_i}^2}^{1/2} = d_{\ell^2}\p{x^{\p{n}}, x^{\p{m}}} < \epsilon.

Notice that

xj(n)xj(m)(i=1kxi(n)xi(m)2)1/2<ε\abs{x^{\p{n}}_j - x^{\p{m}}_j} \leq \p{\sum_{i=1}^k \abs{x^{\p{n}}_i - x^{\p{m}}_i}^2}^{1/2} < \epsilon

if n,mNn, m \geq N, i.e., the components {xj(n)}n\set{x^{\p{n}}_j}_n is Cauchy in R\R. Thus, by completeness, there exists xjRx_j \in \R such that limnxj(n)=xj\lim_{n\to\infty} x^{\p{n}}_j = x_j for each 1jk1 \leq j \leq k. The vector x=(x1,,xk)x = \p{x_1, \ldots, x_k} will be our candidate for the limit of the sequence. We just need to prove that {x(n)}n\set{x^{\p{n}}}_n actually converges to xx with respect to d2d_{\ell^2}.

This is easy, though. The sum in d2d_{\ell^2} is a finite sum, so we can apply our limit laws:

limnd2(x(n),x)=limn(i=1kxi(n)xi2)1/2=(limni=1kxi(n)xi2)1/2(t1/2 is continuous)=(i=1klimnxi(n)xi2)1/2(limit law; sum is finite)=0(t2 is continuous; limnxi(n)=xi)\begin{aligned} \lim_{n\to\infty} d_{\ell^2}\p{x^{\p{n}}, x} &= \lim_{n\to\infty} \p{\sum_{i=1}^k \abs{x^{\p{n}}_i - x_i}^2}^{1/2} \\ &= \p{\lim_{n\to\infty} \sum_{i=1}^k \abs{x^{\p{n}}_i - x_i}^2}^{1/2} && \p{t^{1/2} \text{ is continuous}} \\ &= \p{\sum_{i=1}^k \lim_{n\to\infty} \abs{x^{\p{n}}_i - x_i}^2}^{1/2} && \p{\text{limit law; sum is finite}} \\ &= 0 && \p{t^2 \text{ is continuous; } \lim_{n\to\infty} x^{\p{n}}_i = x_i} \end{aligned}

Thus, {x(n)}n\set{x^{\p{n}}}_n converges to xx in d2d_{\ell^2}, so (Rk,d2)\p{\R^k, d_{\ell^2}} is complete.

Example 5.

Show that (C([0,1]),d)\p{C\p{\br{0,1}}, d} is complete, where dd is the sup\sup-norm.

Solution.

As a reminder:

C([0,1])={f ⁣:[0,1]R|f is continuous}d(f,g)=supx[0,1]f(x)g(x)\begin{gathered} C\p{\br{0,1}} = \set{\func{f}{\br{0,1}}{\R} \st f \text{ is continuous}} \\ d\p{f, g} = \sup_{x \in \br{0,1}} \abs{f\p{x} - g\p{x}} \end{gathered}

Let {fn}n\set{f_n}_n be a Cauchy sequence. Like in the previous example, we'll first want to find a candidate for the limit of this sequence. Notice that for a fixed x[0,1]x \in \br{0, 1},

fn(x)fm(x)supx[0,1]fn(x)fm(x)=d(fn,fm).\abs{f_n\p{x} - f_m\p{x}} \leq \sup_{x \in \br{0,1}} \abs{f_n\p{x} - f_m\p{x}} = d\p{f_n, f_m}.

Like before, this estimate implies that {fn(x)}n\set{f_n\p{x}}_n is Cauchy for each xx, so by completeness of R\R, there exists a number f(x)Rf\p{x} \in \R such that limnfn(x)=f(x)\lim_{n\to\infty} f_n\p{x} = f\p{x}.

There are two more things to show: (i) that {fn}n\set{f_n}_n converges to ff with respect to dd, (ii) and that ff is actually in C([0,1])C\p{\br{0,1}}, i.e., that ff is continuous.

To show (i), let ε>0\epsilon > 0. Because {fn}n\set{f_n}_n is Cauchy, there exists NN such that for any x[0,1]x \in \br{0, 1},

fn(x)fm(x)supx[0,1]fn(x)fm(x)=d(f,g)<ε2\begin{aligned} \abs{f_n\p{x} - f_m\p{x}} &\leq \sup_{x \in \br{0,1}} \abs{f_n\p{x} - f_m\p{x}} \\ &= d\p{f, g} \\ &< \frac{\epsilon}{2} \end{aligned}

whenever n,mNn, m \geq N. If we fix nNn \geq N and send mm \to \infty, we get

fn(x)f(x)=limmfn(x)fm(x)ε2    d(fn,f)=supx[0,1]fn(x)f(x)ε2<ε,\begin{gathered} \abs{f_n\p{x} - f\p{x}} = \lim_{m\to\infty} \abs{f_n\p{x} - f_m\p{x}} \leq \frac{\epsilon}{2} \\ \implies d\p{f_n, f} = \sup_{x \in \br{0,1}} \abs{f_n\p{x} - f\p{x}} \leq \frac{\epsilon}{2} < \epsilon, \end{gathered}

and this inequality is true for any nNn \geq N. In other words, {fn}n\set{f_n}_n converges to ff with respect to dd.

Finally, we need to show (ii). But this is immediate: convergence with respect to dd is exactly uniform convergence. Thus, {fn}n\set{f_n}_n is a sequence of continuous functions which converges uniformly to ff, so ff itself must be continuous (this is a fact from MATH 131A).

Remark.

When proving (i), you cannot write the following:

supx[0,1]fn(x)f(x)=supx[0,1]limmfn(x)fm(x)=limmsupx[0,1]fn(x)fm(x)<ε.\begin{aligned} \sup_{x \in \br{0,1}} \abs{f_n\p{x} - f\p{x}} &= \sup_{x \in \br{0,1}} \lim_{m\to\infty} \abs{f_n\p{x} - f_m\p{x}} \\ &= \lim_{m\to\infty} \sup_{x \in \br{0,1}} \abs{f_n\p{x} - f_m\p{x}} \\ &< \epsilon. \end{aligned}

The second equality is not true in general: Consider fn(x)=xnf_n\p{x} = x^n on [0,1)\pco{0, 1}. Then

limnsupx[0,1)xn=1butsupx[0,1)limnxn=0.\lim_{n\to\infty} \sup_{x \in \pco{0,1}}{x^n} = 1 \quad\text{but}\quad \sup_{x \in \pco{0,1}} \lim_{n\to\infty} x^n = 0.

This means that you cannot swap sup\sup and lim\lim without additional justification.

Homework Hints

Here's a useful proposition (that's listed as an exercise in Terry's book) for Problem 2, 3(a), and 5:

Proposition (1.2.5(h))

If EE is any subset of XX, then IntE\Int{E} is open, and given any other open set VEV \subseteq E, we have VIntEV \subseteq \Int{E}. Similarly, E\cl{E} is closed, and given any other closed set KEK \supseteq E, we have KEK \supseteq \cl{E}.

Proof.

There are a number of things to prove:

IntE\Int{E} is open:

Let xIntEx \in \Int{E}. By definition, this means there exists r>0r > 0 such that B(x,r)EB\p{x, r} \subseteq E. We'll show that B(x,r)IntEB\p{x, r} \subseteq \Int{E} also, which shows by definition that IntE\Int{E} is open.

B(x,r)B\p{x, r} is an open set, so given any yB(x,r)y \in B\p{x, r}, there exists r>0r' > 0 such that B(y,r)B(x,r)EB\p{y, r'} \subseteq B\p{x, r} \subseteq E. In other words, yIntEy \in \Int{E}, so B(x,r)IntEB\p{x, r} \subseteq \Int{E}.

IntE\Int{E} is the largest open set in EE:

Assume VEV \subseteq E and that VV is open. Given xVx \in V, this means there exists r>0r > 0 such that B(x,r)VEB\p{x, r} \subseteq V \subseteq E. Thus, xIntEx \in \Int{E} by definition, so VIntEV \subseteq \Int{E}.

E\cl{E} is closed:

This was proven in lecture.

E\cl{E} is the smallest closed set containing EE:

Assume KEK \supseteq E and KK is closed. Given xEx \in \cl{E} and r>0r > 0,

B(x,r)EB(x,r)K.\emptyset \neq B\p{x, r} \cap E \subseteq B\p{x, r} \cap K.

Moreover, KK is closed, so xK=Kx \in \cl{K} = K, which shows that EK\cl{E} \subseteq K. \square

You can use this proposition freely as long as you cite it properly (i.e., write down the proposition number every time you use it).