Suppose that $f : (a, b) \to \R$ is differentiable with $f'(x) \gt 0$ for all $x \in (a, b)$.
Let $f : [0,1] \to \R$ be defined as follows: \[ f(x) = \begin{cases} 0 & \text{ if } x \notin \Q \\ 1 & \text{ if } x = 0 \\ \frac1q & \text{ if } x = \frac{p}{q} \text{ with } p \in \Z, q \in \N, \text{ and } p, q \text{ have no common factor}.\end{cases}\] (For example, $f(0) = f(1) = 1$, $f(1/2) = 1/2$, $f(1/4) = f(3/4) = 1/4$.)
Prove that $f$ is integrable, and find its integral.
Next week, we will prove that linear combinations of integrable functions are integrable, and that when $f, g : [a, b] \to \R$ are integrable and $\lambda \in \R$, we have \[\int_a^b f(x) + \lambda g(x) \,dx = \int_a^b f(x)\,dx + \lambda \int_a^b g(x)\,dx.\] We will also prove that continuous functions are integrable. These facts may come in useful in this problem.
Here are some further problems to think about out of interest. You do not need to attempt them, nor should you submit them with the assignment.
Suppose that $f : [a, b] \to \R$ is monotonically increasing, i.e., if $a \leq t \lt s \leq b$ then $f(t) \leq f(s)$. Prove that $f$ is integrable.
Suppose that $f : [0, 1] \times [0, 1] \to \R$ is continuous. Notice that for each $y_0 \in [0, 1]$, we have a function \begin{align*} [0, 1] &\longrightarrow \R \\ x &\longmapsto f(x, y_0). \end{align*} Each of these functions is continuous, and so integrable; this can be checked directly from the definition, or by using the sequential characterisation of continuity.
Suppose that $f : \R \to \R$ is differentiable, and $f'(0) \gt 0$.
Let $f : [0, 1]\times[0, 1] \to \R$.
Suppose that $f : \R \to \R$ is differentiable with bounded derivative. Prove that $f$ is uniformly continuous.
Let $a \lt b$ be real numbers, and suppose $f : [a, b] \to \R$ is bounded.
A tagged partition of $[a, b]$ is a pair $(\cP, \cT)$ where $\cP = \set{x_0 \lt x_1 \lt \cdots \lt x_n}$ is a partition of $[a, b]$, and $\cT = \set{t_1, \ldots, t_n}$ is a finite set so that $t_i \in [x_{i-1}, x_i]$. The Riemann sum of $f$ associated to $(\cP, \cT)$ is the number \[R(f, \cP, \cT) = \sum_{i=1}^n f(t_i) (x_i - x_{i-1}).\]
We say that $f$ is Riemann integrable with Riemann integral $I$ if for any $\epsilon \gt 0$ there is a partition $\cP$ of $[a, b]$ so that for any tagged partition $(\cQ, \cT)$ where $\cQ$ is a refinement of $\cT$, we have \[\abs{R(f, \cQ, \cT) - I} \lt \epsilon.\]
Prove that a function is Riemann integrable if and only if it is integrable (in the sense from class, that $L(f) = U(f)$), and in this case its Riemann integral is $\int_a^b f(t)\,dt$.
A partially ordered set $(\Lambda, \leq)$ is called a directed set if every pair of elements has an upper bound; i.e., if for any $\alpha, \beta \in \Lambda$ there is some $\gamma \in \Lambda$ so that $\alpha \leq \gamma$ and $\beta \leq \gamma$. If $X$ is a set, a net along $\Lambda$ in $X$ is a function $\Lambda \to X$; we will sometimes denote it by writing $(x_\alpha)_{\alpha \in \Lambda}$ for the net defined by $\alpha \mapsto x_\alpha$. Nets should be though of as generalizations of sequences; in particular, $\N$ is a directed set and a sequence in $X$ is just a net in $X$ along $\N$.
Suppose now that $X$ is a metric space, $\Lambda$ is a directed set, and $(x_\alpha)_{\alpha \in \Lambda}$ is a net. If $x \in X$, a neighbourhood of $x$ is an open set $U \subseteq X$ with $x \in U$. We say that the net converges to a limit $x \in X$ if for every neighbourhood $U$ of $x$, there is some $\lambda \in \Lambda$ so that whenever $\alpha \in \Lambda$ with $\alpha \geq \lambda$, we have $x_\alpha \in U$. In this case, we write \[\lim_{\alpha\in\Lambda} x_\alpha = x.\] (It turns out that nets are to arbitrary topological spaces what sequences are to metric spaces; sequences are in a certain sense not rich enough to capture the entire structure of a topology which does not come from a metric, but nets can. For example, its possible for a subset of a topological space to contain the limit of every convergent sequence with terms drawn from that set, but not be closed; such a set will contain the terms of some convergent net but not its limit. Likewise it's possible that a function commutes with the limit of every sequence but is not continuous, because it fails to commute with the limit of some net.)