Exercise 11, chapter 6 from second edition of Baby Rudin:
Suppose $g$ is Riemann integrable on $[a,b]$, put $$\int_a^x g(t)dt,$$ and define $g^+(t)=\max(g(t),0)$, $g^-(t)=-\min(g(t),0)$. Prove that $f$ is of bounded variation on $[a,b]$ and that its variation functions are given by $v(x)=\int_a^x \left| g(t)\right|dt$, $p(x)=\int_a^x g^+(t)dt$ and $q(x)=\int_a^x g^-(t)dt$ where $p,q$ are positive and negative variation.
I'm aware of this question but I still have doubts, because he says "I also know that if F is BV, then F′ exists a.e.(almost everywhere)" I don't have the concept of almost everywhere yet. Also, I can't follow the proof because I don't know if $f$ is differentiable, that depends on $g$ being continuous!
I did this:
$$\left| f(x_i)-f(x_{i-1}) \right| = \left| \int_{x_{i-1}}^{x_i} g(t)dt \right| $$
My intention was to take sum at both sides and then limit as the diameter of the partition goes to zero but...If $g$ is continuous it's super easy using mean value theorem for integrals! Otherwise...I don't know which road to take here...
Also, if I could prove the last two equalities it'd be done, since: $|g|=g^-+g^+$, but doing that first was way harder...
My definition of $p$ is $p(x)=\frac{1}{2}(v(x)+f(x)-f(a))$, his answers shows that $v(x)=\int_a^x \left| g(t)\right|dt$ which implies that $v(x)=\int_a^xg_-+\int_a^x g_+$ (because $|g|=g^-+g^+$).
I have to show that indeed $f_+=p$
– Lotte May 07 '15 at 16:17