Suppose $f: [a,b] \rightarrow \mathbb{R}$ is differentiable on all $ [a,b]$, and $f'$ is Riemann integrable on $[a,b]$. Denote the total variation of $f$ on $[a,b]$ by \begin{equation} V_a^b(f) = \text{ sup } \{\sum_P |f(x_k) - f(x_{k-1})| : P \text{ is a partition on } [a,b] \} \end{equation} Prove that $V_a^b(f) = \int_a^b |f'(x)|dx$.
My attempt:
We know $f'$ exists everywhere, therefore $f$ is continuous. Also, $f'$ is bounded since $f'$ is Riemann integrable. Therefore $f$ is a function of bounded variation ($f \in BV[a,b]$) which means the total variation is certainly finite.
Since $f \in BV[a,b]$ we can write $f$ as a difference of two strictly increasing functions. Let $f = u - v.$ Then $f' = u' - v'$ and $|f'| \leq |u'| + |v'|$. Since $u,v$ are strictly increasing this implies $|f'| \leq u' + v'$.
Then by comparison theorem for integrals, \begin{equation} \int_a^b |f'|dx \leq \int_a^b (u' + v')dx = \int_a^b u'dx + \int_a^b v'dx \end{equation}
I don't know how to progress from here and conclude $\int_a^b|f'|dx \leq V_a^b(f)$. Do we know that $u', v'$ are Riemann integrable?
Then after that I don't see how you would show $\int_a^b|f'|dx \geq V_a^b(f)$. Could anyone please suggest a better way to go about this?