\\[\begin{aligned}
& & n & \geqslant 1 \\\\
& \implies & 1 & \geqslant \frac1n \\\\
& \implies & -1 & \leqslant -\frac1n \\\\
& \implies & 0 & \leqslant 1-\frac1n
\end{aligned} \\]
\\[\begin{aligned}
& & 1 & > 0 \\\\
& \implies & \frac1n & > 0 \\\\
& \implies & -\frac1n & < 0 \\\\
& \implies & 1-\frac1n & < 1
\end{aligned} \\]
We have shown stronger statements than we needed.
---
## Deriving the proof of a bound
We aim to show that, for all $n\in\mathbb N$, $-1 \leqslant 1-\frac1n$.
The final proof is
\\[\begin{aligned}
& & n & \geqslant 1 \\\\
& \implies & 1 & \geqslant \frac1n \\\\
& \implies & -1 & \leqslant -\frac1n \\\\
& \implies & 0 & \leqslant 1-\frac1n
\end{aligned} \\]
But to work this out we do
\\[\begin{aligned}
& & -1 & \leqslant 1-\frac1n \\\\
& \implies & \frac1n & \leqslant 2 \\\\
& \implies & \frac12 & \leqslant n,
\end{aligned} \\]
which is true.
Then make this a proof by
\\[\begin{aligned}
& & -1 & \leqslant 1-\frac1n \\\\
& \impliedby & \frac1n & \leqslant 2 \\\\
& \impliedby & \frac12 & \leqslant n,
\end{aligned} \\]
which is true.
Then we can reorder and tighten the bound if we want, but it is not required.
---
## Deriving the proof of a bound: your turn
We aim to show that, for all $n\in\mathbb N$, $1-\frac1n \leqslant 1$.
The final proof is
\\[\begin{aligned}
& & 1 & > 0 \\\\
& \implies & \frac1n & > 0 \\\\
& \implies & -\frac1n & < 0 \\\\
& \implies & 1-\frac1n & < 1
\end{aligned} \\]
as required.
But to work this out we do
\\[\begin{aligned}
& & 1-\frac1n & \leqslant 1 \\\\
& \implies & &? \\\\
& & &\phantom{\leqslant 0,}
\end{aligned} \\]
But to work this out we do
\\[\begin{aligned}
& & 1-\frac1n & \leqslant 1 \\\\
& \implies & -\frac1n & \leqslant 0 \\\\
& \implies & \frac1n & \geqslant 0 \\\\
& \implies & 1 & \geqslant 0,
\end{aligned} \\]
which is true.
Then make this a proof by
\\[\begin{aligned}
& & 1-\frac1n & \leqslant 1 \\\\
& \phantom{\implies} & & ? \\\\
& & &\phantom{\leqslant 0,}
\end{aligned} \\]
Then make this a proof by
\\[\begin{aligned}
& & 1-\frac1n & \leqslant 1 \\\\
& \impliedby & -\frac1n & \leqslant 0 \\\\
& \impliedby & \frac1n & \geqslant 0 \\\\
& \impliedby & 1 & \geqslant 0,
\end{aligned} \\]
which is true.
Then we can reorder and tighten the bound.
---
## Distance between real numbers
Suppose $x,y\in\mathbb R$.
Then $\lvert x-y \rvert$ is the *distance* between them.
Note $\lvert x-y \rvert = \lvert y-x \rvert$, as appropriate for a distance.
So "$\lvert x-y \rvert < 5$" means "$x$ and $y$ are within $5$ of each other".
cf. vectors: $\lVert\mathbf x -\mathbf y\rVert$ is the distance between two vectors, the length of the vector starting from $\mathbf y$ and going to $\mathbf x$.
---
## Limit of a sequence
#### Definition
A sequence $\\{a_n\\}\_{n=1}^\infty$ *converges* to *limit* $\ell\in\mathbb R$ if
for all $\varepsilon>0$, $\exists k\in\mathbb N$ such that $n>k \implies$ $\lvert a_n-\ell \rvert < \varepsilon$.
If so, we say "$\displaystyle\lim\_{n\to\infty} a_n = \ell$" or "$a_n\to\ell$ as $n\to\infty$".
Informally, we think of a limit as "something that the terms in the sequence get closer and closer to".
But we need a more precise understanding for this course.
#### Examples
If $a_n = \frac{-1}n$, then $\displaystyle\lim\_{n\to\infty} a_n = 0$.
If $b_n = \frac{n+3}{5-2n}$, then $\displaystyle\lim\_{n\to\infty} b_n = \frac{-1}2$.
---
## Limit of a sequence
#### Definition
A sequence $\\{a_n\\}\_{n=1}^\infty$ *converges* to *limit* $\ell\in\mathbb R$ if
$\displaystyle a_n = n^2+5$
$\displaystyle b_n = \frac1n$
$\displaystyle c_n = 7$
$\displaystyle d_n = 5n-n^2$
$\displaystyle a_n$ is$\displaystyle \phantom{n^2}$
$\displaystyle b_n$ is$\displaystyle \phantom{\frac1n}$
$\displaystyle c_n$ is$\displaystyle \phantom{7}$
$\displaystyle d_n$ is$\displaystyle \phantom{n^2}$
---
## Monotonic sequences: Examples
#### Definition
If a sequence is (non-)increasing or (non-)decreasing, it is called *monotonic*.
#### Examples
For sequences $\\{a_n\\}\_{n=1}^\infty$, $\\{b_n\\}\_{n=1}^\infty$, $\\{c_n\\}\_{n=1}^\infty$, $\\{d_n\\}\_{n=1}^\infty$ defined by
$\displaystyle a_n = n^2+5$
$\displaystyle b_n = \frac1n$
$\displaystyle c_n = 7$
$\displaystyle d_n = 5n-n^2$
$\displaystyle a_n$ is increasing.$\displaystyle \phantom{n^2}$
$\displaystyle b_n$ is decreasing.$\displaystyle \phantom{\frac1n}$
$\displaystyle c_n$ is non-increasing and non-decreasing.$\displaystyle \phantom{7}$
$\displaystyle d_n$ is not monotonic.$\displaystyle \phantom{n^2}$
---
## Bounded monotonic sequences
#### Definition (recall)
A sequence $\\{a_n\\}\_{n=1}^\infty$ is *bounded* if there exists some $M\geq0$ such that, for all $n\in\mathbb N$, $\lvert a_n \rvert \leq M$.
We call $M$ a *bound* for $\\{a_n\\}\_{n=1}^\infty$.
#### Theorem
If a sequence is bounded and monotonic then it is convergent.
#### Theorem (more precise version):
If a sequence is bounded above and non-decreasing then it is convergent.
If a sequence is bounded below and non-increasing then it is convergent.
---
## Bounded monotonic sequences
#### Theorem
If a sequence is bounded and monotonic then it is convergent.
#### Examples
For sequences $\\{a_n\\}\_{n=1}^\infty$, $\\{b_n\\}\_{n=1}^\infty$, $\\{c_n\\}\_{n=1}^\infty$, $\\{d_n\\}\_{n=1}^\infty$ defined by
$\displaystyle a_n = n^2+5$
$\displaystyle b_n = \frac1n$
$\displaystyle c_n = 7$
$\displaystyle d_n = 5n-n^2$
$\displaystyle a_n$ is$\displaystyle \phantom{n^2}$
$\displaystyle b_n$ is$\displaystyle \phantom{\frac1n}$
$\displaystyle c_n$ is$\displaystyle \phantom{7}$
$\displaystyle d_n$ is$\displaystyle \phantom{n^2}$
---
## Bounded monotonic sequences
#### Theorem
If a sequence is bounded and monotonic then it is convergent.
#### Examples
For sequences $\\{a_n\\}\_{n=1}^\infty$, $\\{b_n\\}\_{n=1}^\infty$, $\\{c_n\\}\_{n=1}^\infty$, $\\{d_n\\}\_{n=1}^\infty$ defined by
$\displaystyle a_n = n^2+5$
$\displaystyle b_n = \frac1n$
$\displaystyle c_n = 7$
$\displaystyle d_n = 5n-n^2$
$\displaystyle a_n$ is increasing but not bounded above, so inconclusive.$\displaystyle \phantom{n^2}$
$\displaystyle b_n$ is decreasing but not bounded below, so convergent.$\displaystyle \phantom{\frac1n}$
$\displaystyle c_n$ is constant, so bounded & monotonic, so convergent.$\displaystyle \phantom{7}$
$\displaystyle d_n$ is not monotonic, so inconclusive.$\displaystyle \phantom{n^2}$
---
## Squeeze theorem
#### Theorem
If $\forall\\,n\in\mathbb N,\\, a_n \leqslant b_n \leqslant c_n$ and $\displaystyle\lim\_{n\to\infty} a_n = \ell = \lim\_{n\to\infty} c_n$, then also $\displaystyle\lim\_{n\to\infty} b_n = \ell$.
#### Example 1
For sequences $\\{a_n\\}\_{n=1}^\infty$, $\\{b_n\\}\_{n=1}^\infty$, $\\{c_n\\}\_{n=1}^\infty$ defined by
$\displaystyle a_n = 0$, $\displaystyle b_n = \frac1{n^3}$, $\displaystyle c_n = \frac1n$,
$\displaystyle a_n\to0$ and $\displaystyle c_n\to0$, so $\displaystyle b_n\to0$ also.

---
## Squeeze theorem
#### Theorem
If $\forall\\,n\in\mathbb N,\\, a_n \leqslant b_n \leqslant c_n$ and $\displaystyle\lim\_{n\to\infty} a_n = \ell = \lim\_{n\to\infty} c_n$, then also $\displaystyle\lim\_{n\to\infty} b_n = \ell$.
#### Example 2
For sequences $\\{a_n\\}\_{n=1}^\infty$, $\\{b_n\\}\_{n=1}^\infty$, $\\{c_n\\}\_{n=1}^\infty$ defined by
$\displaystyle a_n = \frac{-1}n$, $\displaystyle b_n = \frac{(-1)^n}n$, $\displaystyle c_n = \frac1n$,
again $\displaystyle a_n\to0$ and $\displaystyle c_n\to0$, so $\displaystyle b_n\to0$ also.

---
## Squeeze theorem
#### Theorem
If $\forall\\,n\in\mathbb N,\\, a_n \leqslant b_n \leqslant c_n$ and $\displaystyle\lim\_{n\to\infty} a_n = \ell = \lim\_{n\to\infty} c_n$, then also $\displaystyle\lim\_{n\to\infty} b_n = \ell$.
#### Your turn
For sequences $\\{a_n\\}\_{n=1}^\infty$, $\\{b_n\\}\_{n=1}^\infty$, $\\{c_n\\}\_{n=1}^\infty$ defined by
$\displaystyle a_n = ?$, $\displaystyle b_n = \frac{n^3+20}{n^7+1}$, $\displaystyle c_n = ?$,
we need $\displaystyle a_n\to0$ and $\displaystyle c_n\to0$, so that we can argue $\displaystyle b_n\to0$ also.
---
## Squeeze theorem
#### Theorem
If $\forall\\,n\in\mathbb N,\\, a_n \leqslant b_n \leqslant c_n$ and $\displaystyle\lim\_{n\to\infty} a_n = \ell = \lim\_{n\to\infty} c_n$, then also $\displaystyle\lim\_{n\to\infty} b_n = \ell$.
#### Your turn
For sequences $\\{a_n\\}\_{n=1}^\infty$, $\\{b_n\\}\_{n=1}^\infty$, $\\{c_n\\}\_{n=1}^\infty$ defined by
$\displaystyle a_n = ?$, $\displaystyle b_n = \frac{n^3+20}{n^7+1}$, $\displaystyle c_n = ?$,
we need $\displaystyle a_n\to0$ and $\displaystyle c_n\to0$, so that we can argue $\displaystyle b_n\to0$ also.
We can use $a_n=0\to0$ and $c_n = \frac{21}n$ because $\frac{21 n^3}{n^7} = \frac{21}{n^4} < \frac{21}n\to0$.
---
## 📷 Algebra of limits
#### Theorem
If $\displaystyle\lim\_{n\to\infty}a_n$, $\displaystyle\lim\_{n\to\infty}b_n$ exist and $c\in\mathbb R$, then
1. $\displaystyle\lim\_{n\to\infty}(a_n \pm b_n) = \left(\displaystyle\lim\_{n\to\infty}a_n\right) \pm \left(\displaystyle\lim\_{n\to\infty}b_n\right)$.