![Rendered by QuickLaTeX.com \[\]](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-44bb697fe02fa5f8882797d5a1c5d443_l3.png)
The Riemann Integral
Take an interval
![Rendered by QuickLaTeX.com [a,b].](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-680fa8adf874c40654e0874dc3509d0f_l3.png)
Define a
partition 
to be a set

Define a
refinement 
of a partition

to be a set

where

for all
Proposition:
Any two partitions

have a common refinement.
Proof:
Take
For
![Rendered by QuickLaTeX.com f:[a,b] \to \mathbb{C},](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-4ecb0905a06edc4a4f701380a81aec32_l3.png)
we define the
lower and upper sums ![Rendered by QuickLaTeX.com \[L(f,\mathcal{P}) = \sum_{i=0}^{n-1} \inf_{x \in [x_i,x_{i+1}]} [f(x)](x_{i+1}-x_i)\]](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-4d2746ac9fb62c5ad24b5d7de2888379_l3.png)
and
![Rendered by QuickLaTeX.com \[U(f,\mathcal{P}) = \sum_{i=0}^{n-1} \sup_{x \in [x_i, x_{i+1}]} [f(x)](x_{i+1}-x_i).\]](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-fe28e3c5e9931391d6edb11d3a571e6f_l3.png)
Proposition:
If

is a refinement of

then

and
Proof:
Follows immediately from the fact that if
![Rendered by QuickLaTeX.com [y_j,y_{j+1}] \subseteq [x_i,x_{i+1}],](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-f35e579e0fd94a9654e676d4e26f6416_l3.png)
then
![Rendered by QuickLaTeX.com \inf_{[y_j,y_{j+1}]} f(x) \geq \inf_{[x_i,x_{i+1}]} f(x)](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-11ad7dc9b3af4fec9fe0054afedf49ef_l3.png)
and
Take partitions

and their common refinement

Then,
![Rendered by QuickLaTeX.com \[L(f,\mathcal{P}) \leq L(f,\mathcal{P'}) \leq U(f,\mathcal{P'}) \leq U(f,\mathcal{L}),\]](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-0c4369dc3ce939747099b402fabcc6bd_l3.png)
so

is bounded above and

is bounded below. Take

and if

is said to be
Riemann integrable with
![Rendered by QuickLaTeX.com \[\overline{I}(f)=\underbar{I}(f) = \int_a^b f(x) dx.\]](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-08376505eaa5ae10e9f03a647d746eee_l3.png)
Proposition:
A function is Riemann integrable if and only if for any

there exists a partition

such that
![Rendered by QuickLaTeX.com \[U(f,\mathcal{P}) - L(f,\mathcal{P}) < \epsilon.\]](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-5fb03ec14149f4498e110a3cf7946891_l3.png)
Proposition:
A continuous function
![Rendered by QuickLaTeX.com f:[a,b] \to \mathbb{R}](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-5e501dcbea4bc46bc42c1f16f49b3745_l3.png)
is Riemann integrable.
Multiple Metrics
Take

with the usual Euclidean metric. Then, the interior of

is

the exterior is empty, boundary is

and the closure is

Note that
![Rendered by QuickLaTeX.com \[\mathbb{R} = \text{interior} \cup \text{boundary} \cup \text{exterior}.\]](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-4b5833198cfc6fba9bbac00fd834d15a_l3.png)
Moreover, the interior of the closure is

and closure of the interior is
![Rendered by QuickLaTeX.com [-1,1],](https://www.stepanmalkov.com/wp-content/ql-cache/quicklatex.com-02dc07559171eb4d077e99c70236ce62_l3.png)
so the two operations are not interchangeable.
We can define two metrics on this space. Let

be the usual Euclidean metric, and let

be the discrete metric. Then, the two metrics are not equivalent, since

for any

What does an open ball in

look like? What does a closed ball look like?