This is exercise 7.3.3 from Abbot's Understanding analysis. The section is Integrating functions with discontinuities.
I am struggling with this exercise. I can't either come up with any simple counterexamples or produce a satisfactory proof.
I was able to solve a), and here are some answers to b) that I don't understand well because they use a bit of measure theory: Answer 1, Answer 2. I still don't know whether c) is true or false.
Any hints to a proof, the proof itself, or simple counterexamples are highly appreciated.
The exercise reads:
Let $f$ and $g$ be functions defined on (possibly different) closed intervals, and assume the range of $f$ is contained in the domain of $g$ so that the composition $g \circ f$ is properly defined.
a) Show, by example, that it is not the case that if $f$ and $g$ are integrable, then $g\circ f$ is integrable.
Now decide on the validity of each of the following conjectures, supplying a proof or counterexample as appropriate.
b) If $f$ is increasing and $g$ is integrable, then $g\circ f$ is integrable.
c) If $f$ is integrable and $g$ is increasing, then $g\circ f$ is integrable.
EDIT
I found a solution to b) here, due to Chutong Wu. The solution seems to contradict the counterexamples from above, as it provides a proof of the statement. I reproduce the proof in full:
Fix $\epsilon > 0$. Because $g$ is integrable, we can find a partition $P_{g}=\{x_{0}<\cdots <x_{n}\}$ of $Rng(f)\subseteq Dom(g)$ such that $U(g\lvert_{Rng(f)}, P_{g})-L(g\lvert_{Rng(f)}, P_{g})<\epsilon$.
Because $f$ is increasing, it is one-to-one so $f^{-1}:Rng(f)\rightarrow Dom(f)$ is well-defined and also increasing. This means the set $P=\{f^{-1}(x_{0}),\cdots,f^{-1}(x_{n})\}$ is also a partition of $Dom(f)$.
We then have:
$ \begin{align} U(g\circ f, P)-L(g\circ f, P) &=\sum_{k=1}^{n}( \underbrace{\sup_{[x_{k-1},x_{k}]} g\circ f}_{=(g\circ f)(f^{-1}(x_{k}))=g(x_{k})} - \underbrace{\inf_{[x_{k-1},x_{k}]} g\circ f}_{=(g\circ f)(f^{-1}(x_{k}))=g(x_{k-1})}) [x_{k-1},x_{k}] \\ &= U(g\lvert_{Rng(f)}, P_{g})-L(g\lvert_{Rng(f)}, P_{g})<\epsilon \end{align} $