Week 8 Discussion Notes

Table of Contents

Sequences

Squeeze Theorem

This should be familiar from the squeeze theorem for functions:

Theorem (squeeze theorem for sequences)

Let {an},{bn},{cn}\set{a_n}, \set{b_n}, \set{c_n} be sequences such that bnancnb_n \leq a_n \leq c_n for all n1n \geq 1. Then

limnbn=limncn=L    limnan=L.\lim_{n\to\infty} b_n = \lim_{n\to\infty} c_n = L \implies \lim_{n\to\infty} a_n = L.

Note that this works even if L=±L = \pm\infty.

Generally, this is hard to apply since it's hard to find the "squeezing" sequences. Usually, we use this to show that something goes to 00. For example:

Example 1.

Show that limnsinnn=0\displaystyle \lim_{n\to\infty} \frac{\sin{n}}{n} = 0.

Solution.

To show that something goes to 00, we can just show that its absolute value goes to 00. So, since sinn1\abs{\sin{n}} \leq 1,

0sinnn1n.0 \leq \abs{\frac{\sin{n}}{n}} \leq \frac{1}{n}.

So, if we use the squeeze theorem with bn=0b_n = 0 and cn=1nc_n = \frac{1}{n}, we get

limnsinnn=0    limnsinnn=0.\lim_{n\to\infty} \abs{\frac{\sin{n}}{n}} = 0 \implies \lim_{n\to\infty} \frac{\sin{n}}{n} = \boxed{0}.

Bounded Monotone Sequences

Theorem

Let {an}\set{a_n} be a sequence.

  1. If {an}\set{a_n} is monotone increasing and bounded from above, then {an}\set{a_n} converges.
  2. If {an}\set{a_n} is monotone decreasing and bounded from below, then {an}\set{a_n} converges.

Notice that this just tells you that the sequences converges, but it doesn't tell you what it converges to. It can still be used to calculate limits though, especially for recursively defined sequences:

Example 2.
(11.1.88(c))

Consider the sequence defined by

a0=0andan+1=2+an.a_0 = 0 \quad\text{and}\quad a_{n+1} = \sqrt{2 + a_n}.

Determine limnan\displaystyle \lim_{n\to\infty} a_n.

Solution.

In part (a) and (b), you will show that {an}\set{a_n} is an increasing sequence bounded from above. By the theorem above, you know that there exists a (finite) number LL such that limnan=L\displaystyle \lim_{n\to\infty} a_n = L. Now that we know that the limit exists, we can apply limit laws:

limnan+1=limn2+an    limnan+1=2+limnan    L=2+L.\begin{aligned} \lim_{n\to\infty} a_{n+1} = \lim_{n\to\infty} \sqrt{2 + a_n} &\implies \lim_{n\to\infty} a_{n+1} = \sqrt{2 + \lim_{n\to\infty} a_n} \\ &\implies L = \sqrt{2 + L}. \end{aligned}

From here, you can solve for LL using the quadratic formula. (This is a homework problem, so I don't want to do the problem entirely.)

Induction

An important proof technique for sequences is induction. The theorem statement is a little technical, so I think it's easier to just describe it.

Process

Let's say you want to prove something for natural numbers nn, e.g., an inequality like n22nn^2 \leq 2^n for n2n \geq 2. We'll represent the statement we want to prove by P(n)P\p{n}. There are two steps to use mathematical induction to prove it:

Base Case

You need to establish P(n)P\p{n} for some concrete nn, usually smallest possible value of nn. For example, if P(n)P\p{n} is the statement "n22nn^2 \leq 2^n", we want to prove P(2)P\p{2} first, i.e., prove the inequality is true when we set n=2n = 2.

Inductive Step

Next, you need to prove that P(k)    P(k+1)P\p{k} \implies P\p{k+1}, i.e., prove that if the statement is true for some number kk, then it's true for the next number, k+1k + 1. In our example, this means that we need to assume that k22kk^2 \leq 2^k, and somehow use this to show that (k+1)22k+1\p{k+1}^2 \leq 2^{k+1}. In this step, we call P(k)P\p{k} the inductive hypothesis.

After you complete both steps, you set up an "implication chain" like this:

P(1)    P(2)    P(3)        P(k)    P(k+1)    P\p{1} \implies P\p{2} \implies P\p{3} \implies \cdots \implies P\p{k} \implies P\p{k+1} \implies \cdots

You can think of it as dominoes: the inductive step is putting the dominoes next to each other, and the base case is knocking over the first domino. Once you do both, you will end up knocking over every dominoes.

Example 3.
(11.1.88(a))

Consider the sequence defined by

a0=0andan+1=2+an.a_0 = 0 \quad\text{and}\quad a_{n+1} = \sqrt{2 + a_n}.

Show that an<2a_n < 2 for all n1n \geq 1.

Solution.

Here, the statement we want to prove is "an<2a_n < 2", and we will do this by induction.

Base case: n=0n = 0

We already know that a0=0<2a_0 = 0 < 2, so we have established the base case.

Inductive step: P(k)    P(k+1)P\p{k} \implies P\p{k+1}

To prove an implication, we assume P(k)P\p{k} is true, and we need to show that P(k+1)P\p{k+1} is true. In this example, we assume ak<2a_k < 2, and we need to show that ak+1<2a_{k+1} < 2 also. Whenever you have a recursively defined sequence, it's always a good idea to write out the recursion:

ak+1=2+ak<2+2=4=2.a_{k+1} = \sqrt{2 + a_k} < \sqrt{2 + 2} = \sqrt{4} = 2.

This proves P(k+1)P\p{k+1}, so the inductive step is complete.

It doesn't look like we did anything, but we've prove that an<2a_n < 2 for all n1n \geq 1.

Infinite Series

Definition

Infinite series are a lot like improper integrals. For instance, they're both defined through limits:

Definition

Let {an}\set{a_n} be a sequence, and consider the sequence {SN}\set{S_N} defined by

SN=n=0Nan=a0+a1++aN.S_N = \sum_{n=0}^N a_n = a_0 + a_1 + \cdots + a_N.

If {SN}\set{S_N} converges, then we say that n=0an\displaystyle \sum_{n=0}^\infty a_n converges, and we write

n=0an=limNSN.\sum_{n=0}^\infty a_n = \lim_{N\to\infty} S_N.

Otherwise, if {SN}\set{S_N} diverges, we say that the infinite series diverges.

The main example we have is the geometric series:

Example 4.
(Geometric series)

Determine when n=0crn\displaystyle \sum_{n=0}^\infty cr^n converges, and calculate the sum when it does.

Solution.

Whenever you need to calculate the sum explicitly, it's a good idea to look at the partial sums first:

SN=n=0Ncrn=c+cr+cr2++crNrSN=n=0Ncrn+1=cr+cr2+cr3++crN+crN+1.\begin{aligned} S_N &= \sum_{n=0}^N cr^n = c + cr + cr^2 + \cdots + cr^N \\ rS_N &= \sum_{n=0}^N cr^{n+1} = cr + cr^2 + cr^3 + \cdots + cr^N + cr^{N+1}. \end{aligned}

If we subtract these, we get

SNrSN=ccrN+1    (1r)SN=c(1rN+1)    SN=c(1rN+11r).\begin{aligned} S_N - rS_N = c - cr^{N+1} &\implies \p{1 - r}S_N = c\p{1 - r^{N+1}} \\ &\implies S_N = c\p{\frac{1 - r^{N+1}}{1 - r}}. \end{aligned}

From here, there are several cases:

r<1\abs{r} < 1: limNrN+1=0    limNSn=c1r\displaystyle \lim_{N\to\infty} r^{N+1} = 0 \implies \lim_{N\to\infty} S_n = \frac{c}{1 - r}.

r=1r = 1: Our calculation doesn't apply here. Instead, we just get SN=cNS_N = cN, which diverges.

r=1r = -1: limNrN+1\displaystyle \lim_{N\to\infty} r^{N+1} doesn't exist in this case, so {SN}\set{S_N} diverges.

r>1\abs{r} > 1: limNrN+1\displaystyle \lim_{N\to\infty} r^{N+1} doesn't exist in this case, either.

In summary, the series converges only if r<1\abs{r} < 1, in which case

n=0crn=c1r.\sum_{n=0}^\infty cr^n = \boxed{\frac{c}{1 - r}}.

As a warning, the starting index is very important when calculating the sum of a geometric series. For example,

n=212n=(n=012n)112=1112112=12.\sum_{n=2}^\infty \frac{1}{2^n} = \p{\sum_{n=0}^\infty \frac{1}{2^n}} - 1 - \frac{1}{2} = \frac{1}{1 - \frac{1}{2}} - 1 - \frac{1}{2} = \frac{1}{2}.

Divergence Test

Theorem (divergence test for series)

If n=0an\displaystyle \sum_{n=0}^\infty a_n converges, then limnan=0\displaystyle \lim_{n\to\infty} a_n = 0.

The contrapositive is usually how you'll use this, i.e., if limnan0\displaystyle \lim_{n\to\infty} a_n \neq 0 or doesn't exist, then the series diverges.

Example 5.

Determine whether n=0e1/n\displaystyle \sum_{n=0}^\infty e^{1/n} converges or not.

Solution.

Notice that limne1/n=10\lim_{n\to\infty} e^{1/n} = 1 \neq 0, so by the divergence test, the series diverges.

Warning: If limnan=0\displaystyle \lim_{n\to\infty} a_n = 0, this does not mean that the series converges. For example,

limn1n=0, but n=11n diverges.\lim_{n\to\infty} \frac{1}{n} = 0, \text{ but } \sum_{n=1}^\infty \frac{1}{n} \text{ diverges}.

Telescoping Series

Telescoping series are series where a lot of terms cancel out. Generally, they'll be rational functions with linear factors in the denominator.

Example 6.
(slightly modified 11.2.14)

Calculate n=11n(n+2)\displaystyle \sum_{n=1}^\infty \frac{1}{n\p{n+2}}.

Solution.

Whenever you run into something like this, you'll want to start off with partial fraction decomposition:

1n(n+2)=12(1n1n+2).\frac{1}{n\p{n+2}} = \frac{1}{2}\p{\frac{1}{n} - \frac{1}{n + 2}}.

Then if we look at the partial sums,

SN=n=1N12(1n1n+2)=12(n=1N1nn=1N1n+2)=12[1+12+13+14++1N(13+14++1N+1N+1+1N+2)]=12(1+121N+11N+2).\begin{aligned} S_N &= \sum_{n=1}^N \frac{1}{2}\p{\frac{1}{n} - \frac{1}{n + 2}} \\ &= \frac{1}{2} \p{\sum_{n=1}^N \frac{1}{n} - \sum_{n=1}^N \frac{1}{n + 2}} \\ &= \frac{1}{2} \br{1 + \frac{1}{2} + \colorbox{red}{$\displaystyle \frac{1}{3} + \frac{1}{4} + \cdots + \frac{1}{N}$} - \p{\colorbox{red}{$\displaystyle \frac{1}{3} + \frac{1}{4} + \cdots + \frac{1}{N}$} + \frac{1}{N + 1} + \frac{1}{N + 2}}} \\ &= \frac{1}{2} \p{1 + \frac{1}{2} - \frac{1}{N + 1} - \frac{1}{N + 2}}. \end{aligned}

The highlighted terms cancel each other out, so in the end, we get

limNSN=limN12(1+121N+11N+2)=12(1+12)=34.\lim_{N\to\infty} S_N = \lim_{N\to\infty} \frac{1}{2} \p{1 + \frac{1}{2} - \frac{1}{N + 1} - \frac{1}{N + 2}} = \frac{1}{2} \p{1 + \frac{1}{2}} = \boxed{\frac{3}{4}}.

Integral Test

Another very useful convergence test is the integral test:

Theorem (integral test)

Let {an}\set{a_n} be a sequence and suppose that there is a function ff such that f(n)=anf\p{n} = a_n for all n1n \geq 1. If f(x)f\p{x} is positive, decreasing, and continuous on [1,)\pco{1, \infty}, then

n=1an converges    1f(x)dx converges.\sum_{n=1}^\infty a_n \text{ converges} \iff \int_1^\infty f\p{x} \,\diff{x} \text{ converges}.

The "    \iff" symbol means "if and only if", and in this case, this means that the infinite series and the improper integral converge together or diverge together. In other words, if one converges, then the other converges, and if one diverges, then the other diverges also. The picture looks like this:

On [0,1]\br{0, 1}, you can see that a2f(x)a1a_2 \leq f\p{x} \leq a_1, so if you integrate both sides from 11 to 22, you get

12a2dx12f(x)dx12a1dx    a212f(x)dxa1.\int_1^2 a_2 \,\diff{x} \leq \int_1^2 f\p{x} \,\diff{x} \leq \int_1^2 a_1 \,\diff{x} \implies a_2 \leq \int_1^2 f\p{x} \,\diff{x} \leq a_1.

As you can imagine, on a general interval [n,n+1]\br{n, n+1}, you get

an+1nn+1f(x)dxan.a_{n+1} \leq \int_n^{n+1} f\p{x} \,\diff{x} \leq a_n.

If you add everything up, you end up with

n=2an=n=1an+11f(x)dxn=1an.\sum_{n=2}^\infty a_n = \sum_{n=1}^\infty a_{n+1} \leq \int_1^\infty f\p{x} \,\diff{x} \leq \sum_{n=1}^\infty a_n.

From here, if you use comparison, it shouldn't be too hard to see why the integral test is true.

Example 7.

Determine whether n=21nlnn\displaystyle \sum_{n=2}^\infty \frac{1}{n\ln{n}}.

Solution.

Here, f(x)=1xlnx\displaystyle f\p{x} = \frac{1}{x\ln{x}}. For x3x \geq 3, f(x)>0f\p{x} > 0, so it's positive. It's also continuous, and

f(x)=1xlnx=lnx1(xlnx)20,f'\p{x} = \frac{1}{x\ln{x}} = -\frac{\ln{x} - 1}{\p{x\ln{x}}^2} \leq 0,

so it's a decreasing function. This means we can apply the integral test:

n=31nlnn converges    3dxxlnx converges.\sum_{n=3}^\infty \frac{1}{n\ln{n}} \text{ converges} \iff \int_3^\infty \frac{\diff{x}}{x\ln{x}} \text{ converges}.

We can use the substitution u=lnxu = \ln{x} to turn the integral into

3dxxlnx=ln3duu,\int_3^\infty \frac{\diff{x}}{x\ln{x}} = \int_{\ln{3}}^\infty \frac{\diff{u}}{u},

and this diverges since it's a pp-integral with p=1p = 1. So,

n=31nlnn diverges    n=21nlnn diverges.\sum_{n=3}^\infty \frac{1}{n\ln{n}} \text{ diverges} \implies \sum_{n=2}^\infty \frac{1}{n\ln{n}} \text{ diverges}.

Homework

11.1.72

See #156.

11.1.88

I covered (a) and (c).

11.2.14

I solved a slightly modified version of this problem.