# Real Analysis/Riemann integration

| ←Applications of Derivatives | Real Analysis Riemann integration | Fundamental Theorem of Calculus→ |

## Definition

Riemann integration is the formulation of integration most people think of if they ever think about integration. It is the only type of integration considered in most calculus classes; many other forms of integration, notably Lebesgue integrals, are extensions of Riemann integrals to larger classes of functions. The Riemann integral was developed by Bernhard Riemann in 1854 and was, when invented, the first rigorous definition of integration applicable to not necessarily continuous functions.
We will first define some preliminary ideas.

## Partitions
### Definition

Let $a,b\in \mathbb {R}$
A Partition ${\mathcal {P}}$ is defined as the ordered $n$-tuple of real numbers ${\mathcal {P}}=(x_{0},x_{1},\ldots ,x_{n})$ such that $a=x_{0}<x_{1}<\ldots <x_{n}=b$

### Norm of a Partition

Let ${\mathcal {P}}$ be a partition given by ${\mathcal {P}}=(x_{0},x_{1},x_{2},\ldots ,x_{n})$
Then, the Norm (or the "mesh") of ${\mathcal {P}}$ is defined as $\|{\mathcal {P}}\|=\sup {\Big \{\big |}x_{k}-x_{k-1}{\big |}:1\leq k\leq n{\Big \}}$

### Tagged Partition

Let ${\mathcal {P}}=(x_{0},x_{1},\ldots ,x_{n})$ be a partition
A Tagged Partition ${\mathcal {\dot {P}}}$ is defined as the set of ordered pairs ${\mathcal {\dot {P}}}={\Big \{\big[x_{k-1},x_{k}],t_{k}{\big )}{\Big \}}_{k=1}^{n}$ such that $x_{k-1}\leq t_{k}\leq x_{k}$ . The points $t_{k}$ are called Tags.

## Riemann
### Riemann Sums

Let $f:[a,b]\to \mathbb {R}$
Let ${\mathcal {\dot {P}}}={\Big \{\big[x_{k-1},x_{k}],t_{k}{\big )}{\Big \}}_{k=1}^{n}$ be a tagged partition of $[a,b]$
The Riemann Sum of $f$ over $[a,b]$ with respect to ${\mathcal {\dot {P}}}$ is given by
$S(f,{\mathcal {\dot {P}}})=\sum _{k=1}^{n}f(t_{k})(x_{k}-x_{k-1})$

### Riemann Integral

Let $f:[a,b]\to \mathbb {R}$
Let $L\in \mathbb {R}$
We say that $f$ is Integrable on $[a,b]$ if and only if, for every $\varepsilon >0$ there exists $\delta >0$ such that for every partition ${\mathcal {\dot {P}}}$ satisfying $\|{\mathcal {\dot {P}}}\|<\delta$ , we have that $|S(f,{\mathcal {\dot {P}}})-L|<\varepsilon$
$L$ is said to be the integral of $f$ over $[a,b]$ , and is written as
$L=\int \limits _{a}^{b}f(x)dx$ or as $L=\int \limits _{a}^{b}f$

## Properties
### Theorem (Uniqueness)

Let $f:[a,b]\to \mathbb {R}$ be integrable on $[a,b]$
Then the integral $L$ of $f$ is unique

#### Proof

Assume, if possible that $L_{1}\neq L_{2}$ are both integrals of $f$ over $[a,b]$ . Consider $\varepsilon ={\tfrac {|L_{1}-L_{2}|}{2}}$
As $L_{1},L_{2}$ are integrals, there exist $\delta _{1},\delta _{2}>0$ such that $|S(f,{\mathcal {\dot {P}}})-L_{1}|<\varepsilon$ for all ${\mathcal {\dot {P}}}$ that satisfy $\|{\mathcal {\dot {P}}}\|<\delta _{1}$ and $|S(f,{\mathcal {\dot {P}}})-L_{2}|<\varepsilon$ for all ${\mathcal {\dot {P}}}$ that satisfy $\|{\mathcal {\dot {P}}}\|<\delta _{2}$
Let $\delta =\inf\{\delta _{1},\delta _{2}\}$ . Hence, if ${\mathcal {\dot {P}}}$ is a partition satisfying $\|{\mathcal {\dot {P}}}\|<\delta$ , then we have $|S(f,{\mathcal {\dot {P}}})-L_{1}|<\varepsilon$ and that $|S(f,{\mathcal {\dot {P}}})-L_{2}|<\varepsilon$
That is, $|L_{1}-L_{2}|<2\varepsilon =|L_{1}-L_{2}|$ , which is an obvious contradiction. Hence the integral $L$ of $f$ is unique.
We now state (without proof) two seemingly obvious properties of the integral.

### Theorem

Let $f,g:[a,b]\to \mathbb {R}$ be integrable and let $c\in (a,b)$
Then:
(i)$\int \limits _{a}^{b}f+\int \limits _{a}^{b}g=\int \limits _{a}^{b}(f+g)$
(ii)$\int \limits _{a}^{c}f+\int \limits _{c}^{b}f=\int \limits _{a}^{b}f$

### Theorem (Boundedness Theorem)

Let $f:[a,b]\to \mathbb {R}$ be Riemann integrable. Then $f$ is bounded over $[a,b]$

#### Proof

Assume if possible that $f$ is unbounded. For every $n\in \mathbb {N}$ divide the interval $[a,b]$ into $n$ parts. Hence, for every $n\in \mathbb {N}$ , $f$ is unbounded on at least one of these $n$ parts. Call it $I_{n}$ .
Now, let $\varepsilon >0$ be given. Consider an arbitrary $\delta >0$ . Let ${\mathcal {\dot {P}}}$ be a tagged partition such that $\|{\mathcal {\dot {P}}}\|<\delta$ and $(I_{n},t_{n})\in {\mathcal {\dot {P}}}$ , where $t_{n}$ is taken so as to satisfy $|f(t_{n})|>n\varepsilon$ .
Thus we have that $|S(f,{\mathcal {\dot {P}}})-L|>\varepsilon$. But as $\delta >0$ is arbitrary, we have a contradiction to the fact that $f$ is Riemann integrable.
Hence, $f$ is bounded.

## Integrability

We now study classes of Riemann integrable functions. The first "constraint" on Riemann integrable functions is provided by the Cauchy Integrability Criterion.

### Theorem (Cauchy Criterion)

Let $f:[a,b]\to \mathbb {R}$
Then,
(i)$f$ is Riemann integrable on $[a,b]$ if and only if
(ii) For every $\varepsilon >0$, there exists $\delta >0$ such that if ${\mathcal {\dot {P}}},{\mathcal {\dot {Q}}}$ are two partitions satisfying $\|{\mathcal {\dot {P}}}\|,\|{\mathcal {\dot {Q}}}\|<\delta$ then $|S(f,{\mathcal {\dot {P}}})-S(f,{\mathcal {\dot {Q}}})|<\varepsilon$

#### Proof

($\Rightarrow$)Let $\int _{a}^{b}f=L$ and let $\varepsilon >0$ be given.
Then, there exists $\delta >0$ such that for every partition ${\mathcal {\dot {P}}}$ satisfying $\|{\mathcal {\dot {P}}}\|<\delta$,we have $|S(f,{\mathcal {\dot {P}}})-L|<{\tfrac {\varepsilon }{2}}$
Now, let partitions ${\mathcal {\dot {P}}},{\mathcal {\dot {Q}}}$ be such that $\|{\mathcal {\dot {P}}}\|,\|{\mathcal {\dot {Q}}}\|<\delta$.
Thus we have that $|S(f,{\mathcal {\dot {P}}})-L|,|S(f,{\mathcal {\dot {Q}}})-L|<{\tfrac {\varepsilon }{2}}$, that is $|S(f,{\mathcal {\dot {P}}})-S(f,{\mathcal {\dot {Q}}})|<\varepsilon$
($\Leftarrow$) For every $n\in \mathbb {N}$, consider $\delta _{n}>0$ such that for all partitions ${\mathcal {\dot {P}}},{\mathcal {\dot {Q}}}$ satisfying $\|{\mathcal {\dot {P}}}\|,\|{\mathcal {\dot {Q}}}\|<\delta _{n}$, we have $|S(f,{\mathcal {\dot {P}}})-S(f,{\mathcal {\dot {Q}}})|<{\tfrac {1}{n}}$.
Without loss of generality, we can assume that $\delta _{m}>\delta _{n}$ when $m<n$. For every $\delta _{n}$, let ${\mathcal {\dot {P}}}_{n}$ be a partition such that $\|{\mathcal {\dot {P}}}_{n}\|<\delta _{n}$
The sequence $a_{n}=S(f,{\mathcal {\dot {P}}}_{n})$ is a Cauchy sequence, and hence it has a limit $L\in \mathbb {R}$.
Now, for every $\varepsilon >0$, we have a $\delta >0$ such that $\|{\mathcal {\dot {P}}}\|<\delta$ implies $|S(f,{\mathcal {\dot {P}}})-L|<\varepsilon$.
Thus $\int _{a}^{b}f=L$

### Theorem (Squeeze Theorem)

Let $f:[a,b]\to \mathbb {R}$
Then,
(i) $f$ is Riemann integrable on $[a,b]$ if and only if
(ii) For every $\varepsilon >0$, there exist Riemann integrable functions $\alpha _{\varepsilon },\omega _{\varepsilon }:[a,b]\to \mathbb {R}$ such that
$\alpha _{\varepsilon }(x)\leq f(x)\leq \omega _{\varepsilon }(x)$ for all $x\in [a,b]$ and
$\int _{a}^{b}(\omega _{\varepsilon }-\alpha _{\varepsilon })<\varepsilon$

#### Proof

($\Rightarrow$)Take $\alpha _{\varepsilon }(x)=f(x)=\omega _{\varepsilon }(x)$. It is easy to see that $\int _{a}^{b}(\omega _{\varepsilon }-\alpha _{\varepsilon })<\varepsilon$
($\Leftarrow$)Let $n\in \mathbb {N}$. Then, there exist functions $\alpha _{n},\omega _{n}$ such that $\int _{a}^{b}(\omega _{n}-\alpha _{n})<{\tfrac {1}{n}}$. Further, if $\int _{a}^{b}\alpha _{n}=A_{n}$ and $\int _{a}^{b}\omega _{n}=Z_{n}$, then there exist $\delta _{1},\delta _{2}>0$ such that if a partition ${\mathcal {\dot {P}}}$ satisfies $\|{\mathcal {\dot {P}}}\|<\delta _{1}$ then $|S(\alpha _{n},{\mathcal {\dot {P}}})-A_{n}|<{\tfrac {1}{n}}$ and $\|{\mathcal {\dot {P}}}\|<\delta _{2}$ then $|S(\omega _{n},{\mathcal {\dot {P}}})-Z_{n}|<{\tfrac {1}{n}}$
Now let ${\mathcal {\dot {P}}}_{n}$ be a partition satisfying $\|{\mathcal {\dot {P}}}_{n}\|<\inf\{\delta _{1},\delta _{2}\}$.
Now, we can easily see that $|S(f,{\mathcal {\dot {P}}}_{n})-S(f,{\mathcal {\dot {P}}}_{n-1})|<{\tfrac {1}{n}}$. Hence, $S(f,{\mathcal {\dot {P}}}_{n})$ is a Cauchy sequence, with a limit $L\in \mathbb {R}$, and as in the previous proof, we can show that $\int _{a}^{b}f=L$