Jordan decomposition of a function of bounded variation (source code)

= Jordan decomposition of a function of bounded variation
{c}
{title2=$f=f(a)+P-N,\quad V_a^t(f)=P(t)+N(t)$}

Every real <function> on $[a,b]$ has <bounded variation> if and only if it is a difference of two <nondecreasing functions>. For a normalized version, let $v(t)=V_a^t(f)$ and $v(a)=0$. Its accumulated positive and negative variations are
$$
P(t)=\frac{v(t)+f(t)-f(a)}2,\qquad
N(t)=\frac{v(t)-f(t)+f(a)}2.
$$
Both are <nondecreasing functions>, $P(a)=N(a)=0$, and
$$
f(t)=f(a)+P(t)-N(t),\qquad v(t)=P(t)+N(t).
$$
This is the <Jordan decomposition of a function of bounded variation>.<Real Analysis Lecture Notes: 3.5 Functions of Bounded Variation by Christopher E. Heil>[§3.5.2, Definition 9, Lemma 12, Exercise 13 and Theorem 14, printed pp. 3–5: positive and negative variation and Jordan decomposition]{ref} Equivalently one may write $f=f_+-f_-$ with $f_+=(v+f)/2$ and $f_-=(v-f)/2$; those functions need not vanish at $a$.

For the <piecewise linear function> in <partition example of total variation>, the successive values of $P$ are $0,2,2,6,6$, while those of $N$ are $0,0,3,3,5$. At $t=4$, the total rise is $6$ and the total fall is $5$: their difference gives the net change $1$, and their sum gives the total variation $11$. A declining segment increases $N$ while $P$ stays constant; an ascending segment does the opposite.

For a short proof outline, total variation is additive over adjacent <intervals>, because any two <partitions of an interval> have a common <partition refinement>. Thus $v(t)-v(s)=V_s^t(f)\geq|f(t)-f(s)|$ for $s<t$. Substituting this inequality into the formulas for $P$ and $N$ shows their increments are nonnegative. Conversely, if $f=g-h$ for two <nondecreasing functions>, the <triangle inequality> bounds each partition sum by $g(b)-g(a)+h(b)-h(a)$. This proves finite total variation without restricting the number of changes of direction.