Let $c \in(a, b)$ and $f:[a, b] \rightarrow \mathbb{R}$ be given by
$$
f(x):=\left\{\begin{array}{ll}
(x-c) /(a-c) & \text { if } a \leq x \leq c, \\
(x-c) /(b-c) & \text { if } c<x \leq b
\end{array}\right.
$$
Show from first principles that $f$ is integrable on $[a, b] .$ Also, prove that this follows from Proposition $6.10$. (Hint: For $n \in \mathbb{N}$, consider the partition $P_{n}:=\{a, a+(c-a) / n, \ldots, a+(c-a)(n-1) / n, c, c+(b-c) / n, \ldots$
$c+(b-c)(n-1) / n, b\} .)$