---
title: Monotone and Cauchy sequences
heading: Proving a sequence converges without knowing its limit
eyebrow: A14 · Lesson 4 · Monotone and Cauchy sequences
xp: 40
---

::: hook
The ε–N definition needs the limit L in advance. Often you don't have it: the limit of an iteration is what you're computing, and $e$ is defined as a limit. Two theorems prove convergence without naming L. A sequence that only ever increases and never passes some ceiling must converge, to its supremum (the **monotone convergence theorem**). And a sequence whose terms eventually stay arbitrarily close to *each other* must converge (the **Cauchy criterion**). The second is the real basis of every stopping rule that compares successive iterates, and both depend on completeness.
:::

::: play
- The stems are $\left(1 + \frac xn\right)^n$. For x > 0 they increase with n, and they're bounded, so they must converge. The dashed line is their limit, $e^x$.
- The readout gives how far the 60th term still is below the limit: the convergence is slow, with a gap of about $\frac{x^2e^x}{2n}$.
- For x < 0 the terms still converge to $e^x$, increasing toward it once n > |x|.
:::
:::

```sim plot
view: graph
x: n = 1..60
y: a = 0..5
slider: x = -1..2 step 0.1 = 1
plot: (1 + x/n)^n | stems | label: (1 + x/n)ⁿ
plot: exp(x) + 0*n | dashed | label: eˣ
readout: gap at the 60th term = exp(x) - (1 + x/60)^60
readout: estimate x²eˣ/(2n) = x^2*exp(x)/120
```

::: predict
## The sequence $x_1 = 0$, $x_{n+1} = \sqrt{2 + x_n}$ is increasing and bounded above by 2. What does it converge to?

- [ ] $\sqrt2$
- [x] 2
- [ ] It doesn't converge
- [ ] 4

::: reveal
2. By the monotone convergence theorem it has a limit L, and taking limits on both sides of the recursion gives $L = \sqrt{2 + L}$, so $L^2 - L - 2 = 0$ and L = 2 (the other root, −1, is impossible for positive terms). The theorem supplies existence; the recursion supplies the value.
:::
:::

::: nameit
## Monotone convergence

A sequence that is increasing and bounded above converges, to $\sup\{a_n\}$. (Decreasing and bounded below: to the infimum.) Proof: let $s = \sup a_n$, which exists by completeness. Given ε, some $a_N > s - \varepsilon$, and for n > N, $s - \varepsilon < a_N \le a_n \le s$.

## Bolzano–Weierstrass

Every bounded sequence has a convergent subsequence. (Every sequence has a monotone subsequence, and a bounded monotone one converges.)

## Cauchy sequences

$(a_n)$ is **Cauchy** if for every ε > 0 there's an N with $\lvert a_m - a_n\rvert < \varepsilon$ for all m, n > N. In $\mathbb R$:

$$\text{convergent} \iff \text{Cauchy}$$

The forward direction is easy; the reverse needs completeness (Cauchy sequences are bounded, so a subsequence converges by Bolzano–Weierstrass, and the whole sequence follows it).

## Contractions give Cauchy sequences

If $\lvert x_{n+1} - x_n\rvert \le q\lvert x_n - x_{n-1}\rvert$ with $q < 1$, then the steps shrink geometrically and

$$\lvert x_n - L\rvert \le \frac{q^n}{1 - q}\lvert x_1 - x_0\rvert$$

an **a priori** bound: before computing anything, it says how many steps guarantee a tolerance. (Lesson 33 builds the contraction mapping theorem on this.)
:::

::: example
## Show $a_n = \sum_{k=1}^n\frac{1}{k^2}$ is Cauchy and find N for ε = 0.001.

::: solution
1. **Telescope the difference.** For m > n,
   $$\begin{aligned} a_m - a_n &= \sum_{k=n+1}^m\frac{1}{k^2} \\ &< \sum_{k=n+1}^m\left(\frac{1}{k - 1} - \frac1k\right) \\ &= \frac1n - \frac1m \\ &< \frac1n \end{aligned}$$
2. **Find N.** So $\lvert a_m - a_n\rvert < \varepsilon$ once $n > \frac1\varepsilon$. For ε = 0.001,
   $$N = 1000$$
3. **It converges.** The sequence converges, to $\frac{\pi^2}{6}$ as it happens, though the argument never needed that.

**Answer:** the sequence is Cauchy, because $\lvert a_m - a_n\rvert < \frac1n$, and N = 1000 works for ε = 0.001.
:::
:::

::: example
## An iteration has $q = 0.5$ and its first step changes x by 0.4. How many steps guarantee an error below $10^{-6}$?

::: solution
1. **Set up the error bound.** Need
   $$\frac{0.5^n}{0.5} \times 0.4 < 10^{-6}$$
2. **Simplify.**
   $$0.5^n < 1.25 \times 10^{-6}$$
3. **Take logs.**
   $$\begin{aligned} n &> \frac{\ln(1.25 \times 10^{-6})}{\ln 0.5} \\ &= 19.6 \end{aligned}$$
4. **Round up.** The count of steps is a whole number, so it's 20.

**Answer:** 20 steps guarantee an error below $10^{-6}$.
:::
:::

::: example
## Show that $x_{n+1} = \frac12\left(x_n + \frac{2}{x_n}\right)$ with $x_1 = 2$ converges, and find its limit.

::: solution
1. **Bounded below.** By the AM–GM inequality,
   $$\begin{aligned} \frac12\left(x + \frac2x\right) &\ge \sqrt{x\cdot\frac2x} \\ &= \sqrt2 \end{aligned}$$
   so every term after the first is at least $\sqrt2$.
2. **Decreasing.**
   $$\begin{aligned} x_{n+1} - x_n &= \frac{2 - x_n^2}{2x_n} \\ &\le 0 \end{aligned}$$
   so the sequence decreases.
3. **It converges.** Decreasing and bounded below, it converges by the monotone convergence theorem.
4. **Find the limit.** Its limit L satisfies
   $$L = \frac12\left(L + \frac2L\right)$$
   so $L^2 = 2$ and $L = \sqrt2$.
5. **Check.** The terms 2, 1.5, 1.416667, 1.414216 show it: completeness guaranteed a limit before we knew what it was.

**Answer:** the sequence decreases and stays at or above $\sqrt2$, so it converges, and its limit is $\sqrt2$.
:::
:::

::: check
given: c = 2 | 6 | 12
answer: (1 + sqrt(1 + 4*c))/2
tolerance: 0.01%

## The sequence $x_1 = 0$, $x_{n+1} = \sqrt{\given{c} + x_n}$ increases and is bounded. What's its limit?

::: right
Right. $L = \sqrt{c + L}$ gives $L = \frac{1 + \sqrt{1 + 4c}}{2}$ = {answer}.
:::

::: misses
- [sqrt(c)] That's only the second term; the limit solves $L^2 = c + L$.
- [any] Not yet. Take limits in the recursion.
:::
:::

::: check
given: q = 0.5 | 0.8 | 0.3; d = 0.4 | 1; n = 10 | 30
answer: q^n/(1 - q)*d
tolerance: 0.5%

## A contraction with factor q = {q} first moves x by {d}. What's the a priori error bound after {n} steps?

::: right
Right. $\frac{q^n}{1 - q}\lvert x_1 - x_0\rvert$ = {answer}.
:::

::: misses
- [q^n*d] Include the $\frac{1}{1 - q}$: all the remaining steps add up.
- [any] Not yet. Sum the geometric tail of the steps.
:::
:::

::: check
given: q = 0.5 | 0.9; d = 0.4 | 2; e = 0.000001 | 0.0000000013
answer: ceil(ln(e*(1 - q)/d)/ln(q))
tolerance: 0

## How many steps does that bound need to guarantee an error below {e}, with q = {q} and a first step of {d}?

::: right
Right. The smallest n with $\frac{q^n d}{1 - q} < \varepsilon$: {answer}.
:::

::: misses
- [ceil(ln(e/d)/ln(q))] Don't drop the $\frac{1}{1 - q}$ factor.
- [any] Not yet. Solve $q^n < \frac{\varepsilon(1 - q)}{d}$.
:::
:::

::: check
given: e = 0.03 | 0.0007 | 0.000013
answer: floor(1/e)
tolerance: 0

## For $a_n = \sum_{k=1}^n 1/k^2$, the Cauchy bound is $\lvert a_m - a_n\rvert < \frac1n$. What N makes every pair beyond it closer than {e}?

::: right
Right. N = {answer}.
:::

::: misses
- [any] Not yet. Need $\frac1n < \varepsilon$ for every n > N.
:::
:::

::: check
given: n = 10 | 30 | 100
answer: exp(1) - (1 + 1/n)^n
tolerance: 0.5%

## How far below e is $\left(1 + \frac1{\given{n}}\right)^{\given{n}}$?

::: right
Right. {answer}, close to $\frac{e}{2n}$.
:::

::: misses
- [exp(1)/(2*n)] That's the estimate; compute the actual gap.
- [any] Not yet. Compute $(1 + 1/n)^n$ and subtract from e.
:::
:::

::: check
kind: order

## Put the steps of the proof of the monotone convergence theorem (increasing case) in order.

1. Let $(a_n)$ be increasing and bounded above, and let ε > 0.
2. By completeness, $s = \sup\{a_n\}$ exists.
3. Since $s - \varepsilon$ isn't an upper bound, some term $a_N > s - \varepsilon$.
4. For n > N, $s - \varepsilon < a_N \le a_n \le s$, because the sequence increases and s is an upper bound.
5. So $\lvert a_n - s\rvert < \varepsilon$ for all n > N, and $a_n \to s$.

::: right
Right. Completeness supplies the candidate limit; the definition of supremum supplies N.
:::
:::

::: check
kind: parts
given: r = 0.5 | 0.9; e = 0.001 | 0.000001

## The partial sums $s_n$ of $\sum r^k$ with r = {r}.

::: part
answer: r^11/(1 - r)
tolerance: 0.5%

### What bound holds on $\lvert s_m - s_{10}\rvert$ for every m > 10?

::: misses
- [r^10/(1 - r)] The terms after $s_{10}$ start at $r^{11}$.
- [any] $\sum_{k>10}r^k$.
:::
:::

::: part
answer: floor(ln(e*(1 - r))/ln(r))
tolerance: 0

### What is the smallest n for which $\frac{r^{n+1}}{1 - r} < \given{e}$, making the sequence ε-Cauchy from there?

::: misses
- [any] Solve $r^{n+1} < \varepsilon(1 - r)$; logarithms flip the inequality since ln r < 0.
:::
:::
:::

::: check
kind: derivation
vars: c = 0.5..10

## $x_{n+1} = \sqrt{c + x_n}$ increases to a limit L.

::: step
answer: (1 + sqrt(1 + 4*c))/2

### What is L?
:::

::: step
answer: 1/(1 + sqrt(1 + 4*c))

### What is $g'(L)$ for $g(x) = \sqrt{c + x}$, the eventual rate of convergence?
:::

::: right
Right. $g'(L) = \frac{1}{2L}$, below 1, so the convergence is linear at that rate.
:::
:::

::: explain
## Why is "successive iterates are close" not enough to stop an iteration, while the Cauchy condition is?

::: model
Two successive terms being close says only that one step was small. A sequence can take ever smaller steps and still go nowhere useful: the partial sums of $\sum\frac1n$ change by $\frac1n$ each step but grow without bound. The Cauchy condition is stronger: from some point on, *all* pairs of terms are close, however far apart they are in the sequence, which rules out slow drift. That's why practical stopping rules either use a contraction factor (so the remaining steps are known to sum to a small amount, $\frac{q}{1 - q}$ times the last step) or check the residual of the equation being solved, rather than trusting one small step.
:::
:::

::: practice

::: check
given: c = 2..30 int
answer: (1 + sqrt(1 + 4*c))/2
tolerance: 0.01%

## Limit of $x_{n+1} = \sqrt{\given{c} + x_n}$?

::: misses
- [any] $\frac{1 + \sqrt{1 + 4c}}{2}$.
:::
:::

::: check
given: q = 0.6 | 0.95; d = 0.5 | 3; n = 20 | 100
answer: q^n/(1 - q)*d
tolerance: 0.5%

## A priori bound, q = {q}, first step {d}, after {n} steps?

::: misses
- [any] $\frac{q^n}{1 - q}d$.
:::
:::

::: check
given: q = 0.4 | 0.75; d = 1 | 5; e = 0.0001 | 0.00000013
answer: ceil(ln(e*(1 - q)/d)/ln(q))
tolerance: 0

## Steps for error below {e}, q = {q}, first step {d}?

::: misses
- [any] Smallest n with $\frac{q^nd}{1 - q} < \varepsilon$.
:::
:::
:::
