Good morning!
I'm reposting a message I posted a bit earlier because it was quite messy and I wanted to make it clearer. I have a continuously differentiable function $f$ on $[a,b]$, and I am trying to prove the following equality:
$\sup\limits_{\mathcal{P}} \displaystyle\sum_i |f(t_{i+1}) - f(t_i)| = \lim\limits_{||\mathcal{P}|| \to 0} \displaystyle\sum_i |f(t_{i+1}) - f(t_i)|$, where $\mathcal{P}$ ranges over the set of partitions, and the $t_i$'s are "tag-points" (ie, each $t_i$ belongs to the $i+1$-th interval of the partition).
I've already shown that $\sup\limits_{\mathcal{P}} \displaystyle\sum_i |f(t_{i+1}) - f(t_i)| = \displaystyle\int_a^b |f'(x)| \mathrm{d}x$, and it is obvious that $\lim\limits_{||\mathcal{P}|| \to 0} \displaystyle\sum_i |f(t_{i+1}) - f(t_i)| \leq \sup\limits_{\mathcal{P}} \displaystyle\sum_i |f(t_{i+1}) - f(t_i)|$. So I tried to show the second side of the inequality, but I think there might be a mistake in my reasoning, so I wanted to ask for some proof-checking. Here is how I went about it:
$|f'|$ is continuous, so its integral can be written as a limit of Riemann sums: \begin{align*} \displaystyle\int_a^b |f'(x)| \mathrm{d}x &= \lim\limits_{n \to +\infty} \displaystyle\sum_{i = 0}^{n-1} \dfrac{b-a}{n}|f'(a_i)| \, \, \left(a_i := a + \dfrac{i}{n}(b-a)\right) \\ &= \lim\limits_{n \to +\infty} \displaystyle\sum_i |f(a_i + \dfrac{b-a}{n}) - f(a_i) + o(\dfrac{1}{n})| \\ &\leq \lim\limits_{n \to +\infty} \displaystyle\sum_i |f(a_i + \dfrac{1}{n}) - f(a_i)| = \lim\limits_{||\mathcal{P}|| \to 0} \displaystyle\sum_{t_i \in \mathcal{P}} |f(t_{i+1}) - f(t_i)| \end{align*}
Now, the step I think is dodgy is the last one. I think it makes sense, because since $f$ is Riemann-integrable, two of its Riemann sums with a mesh going to $0$ should be equal, but I'm not $100\%$ sure, so I'm asking just in case :)