Why Monotonicity Determines Variation
Total variation measures the total size of a function’s changes along an interval, counting both increases and decreases. In general, the endpoint values alone do not record all those changes: a function may rise and then fall while returning to its starting value. For a monotone function, however, all changes have the same direction. The increments along any partition therefore have a common sign, and their absolute values add by telescoping. This gives an exact formula, even when the function is discontinuous.
Throughout, let \(a,b\in\mathbb{R}\) with \(a\le b\), and let \(f:[a,b]\to\mathbb{R}\) be real-valued. No measure space or integral is involved in this topic. A partition of \([a,b]\), when \(a<b\), is a finite sequence \(P=(x_0,\ldots,x_n)\) with \(a=x_0<x_1<\cdots<x_n=b\). Its variation sum is the sum of the absolute increments of \(f\) across the partition.
The total variation of \(f\) on \([a,b]\) is the supremum of these sums over all partitions. If \(a=b\), we define the variation to be zero; the sum for the partition consisting of the single endpoint is empty and equals zero.
The function \(f\) is nondecreasing if \(f(x)\le f(y)\) whenever \(x\le y\). It is nonincreasing if \(f(x)\ge f(y)\) whenever \(x\le y\). “Monotone” will mean either nondecreasing or nonincreasing; strict inequalities are not required. Thus constant portions are allowed. Since \(f\) is real-valued, its endpoint values are finite. Monotonicity also gives \(f(a)\le f(x)\le f(b)\) for every \(x\in[a,b]\) in the nondecreasing case, with the inequalities reversed in the nonincreasing case.
The Exact Variation Formula
Proof. First suppose \(a<b\) and \(f\) is nondecreasing. For any partition \(P=(x_0,\ldots,x_n)\), the ordering of the partition points implies \(f(x_{i-1})\le f(x_i)\) for every \(i\). Therefore \(\left|f(x_i)-f(x_{i-1})\right|=f(x_i)-f(x_{i-1})\). Summing these increments gives $$ S_P(f)=\sum_{i=1}^{n}\bigl(f(x_i)-f(x_{i-1})\bigr) =f(x_n)-f(x_0)=f(b)-f(a). $$ The middle equality follows because each interior value \(f(x_i)\) appears once with a plus sign and once with a minus sign. This holds for every partition, so the supremum of the variation sums is \(f(b)-f(a)=|f(b)-f(a)|\).
Now suppose \(f\) is nonincreasing. Then \(f(x_{i-1})\ge f(x_i)\) at every partition step, so \(\left|f(x_i)-f(x_{i-1})\right|=f(x_{i-1})-f(x_i)\). Thus $$ S_P(f)=\sum_{i=1}^{n}\bigl(f(x_{i-1})-f(x_i)\bigr) =f(a)-f(b)=|f(b)-f(a)|. $$ Again this value is the same for every partition, and hence is its supremum. If \(a=b\), both the defined variation and \(|f(b)-f(a)|\) equal zero. This proves the formula in all cases. \(\square\)
The proof gives more than finiteness: refining a partition cannot change the sum for a monotone function, because the refined increments still have the same sign and still telescope. No continuity, differentiability, or strict monotonicity has been assumed. In particular, jumps and flat stretches do not obstruct the formula.
Proof. The restriction of a nondecreasing function to \([c,d]\) is nondecreasing, and the restriction of a nonincreasing function is nonincreasing. Applying the theorem on \([c,d]\) gives the claimed formula when \(c<d\). When \(c=d\), both sides are zero by the definition of variation and because \(f(d)-f(c)=0\). \(\square\)
Worked Computations
Worked Example: An Increasing Linear Function
Let \(f(x)=2x-3\) on \([-1,4]\). Since \(2x-3\) is increasing, the theorem applies. Compute the endpoint values directly: $$ f(-1)=2(-1)-3=-2-3=-5,\qquad f(4)=2(4)-3=8-3=5. $$ Therefore $$ V_{-1}^{4}(f)=|f(4)-f(-1)|=|5-(-5)|=10. $$
We can check the value using the partition \((-1,0,2,4)\). The function values are \(f(-1)=-5\), \(f(0)=2(0)-3=-3\), \(f(2)=2(2)-3=1\), and \(f(4)=5\). The partition sum is $$ |-3-(-5)|+|1-(-3)|+|5-1|=2+4+4=10. $$ This agrees with the endpoint formula.
Worked Example: A Decreasing Linear Function
Let \(g(x)=7-3x\) on \([0,2]\). For \(x<y\), \(g(y)-g(x)=-3(y-x)<0\), so \(g\) is decreasing. Its endpoint values are $$ g(0)=7-3(0)=7,\qquad g(2)=7-3(2)=7-6=1. $$ Thus $$ V_0^2(g)=|1-7|=6. $$
For a direct check, take the partition \((0,\tfrac12,2)\). The intermediate value is \(g(\tfrac12)=7-3(\tfrac12)=7-\tfrac32=\tfrac{11}{2}\). The sum is $$ \left|\frac{11}{2}-7\right|+\left|1-\frac{11}{2}\right| =\left|-\frac{3}{2}\right|+\left|-\frac{9}{2}\right| =\frac{3}{2}+\frac{9}{2}=6. $$ The decreasing increments are negative before taking absolute values; the sum of their magnitudes equals the total drop from \(7\) to \(1\).
Worked Example: A Monotone Function with Jumps
Define \(h:[0,3]\to\mathbb{R}\) by $$ h(x)= \begin{cases} 0,&0\le x<1,\\ 2,&1\le x<2,\\ 5,&2\le x\le3. \end{cases} $$ The endpoint conventions matter: \(h(1)=2\) and \(h(2)=5\). The function is nondecreasing, because its successive values are \(0\), \(2\), and \(5\), with no downward change. Since \(h(0)=0\) and \(h(3)=5\), the theorem gives $$ V_0^3(h)=|5-0|=5. $$
For a check, use the partition \((0,\tfrac12,\tfrac32,\tfrac52,3)\). The function values are \(0,0,2,5,5\), respectively, so the variation sum is $$ |0-0|+|2-0|+|5-2|+|5-5|=0+2+3+0=5. $$ The jumps contribute their full sizes, \(2\) and \(3\), while the constant stretches contribute zero. Their total \(2+3=5\) matches the endpoint difference.
What Monotonicity Does—and Does Not—Give
For a monotone function, every partition step moves in one direction or stays level. Absolute values therefore remove the same sign from every increment, and the resulting sum telescopes. This is the whole reason the endpoint formula works. It also shows that a monotone real-valued function on a closed bounded interval has bounded variation: its variation is the finite number \(|f(b)-f(a)|\).
A common mistake is to use the endpoint formula for any function. For example, define \(q:[0,2]\to\mathbb{R}\) by \(q(0)=0\), \(q(1)=1\), and \(q(2)=0\), with linear interpolation on \([0,1]\) and \([1,2]\). This function first increases and then decreases, so it is not monotone. Its endpoint difference is \(|q(2)-q(0)|=|0-0|=0\), but the partition \((0,1,2)\) gives $$ |q(1)-q(0)|+|q(2)-q(1)|=|1-0|+|0-1|=1+1=2. $$ Consequently \(V_0^2(q)\ge2\), and the endpoint difference cannot be its variation. The corrected calculation counts both changes; in this example every partition sum is at most \(2\), since the total increase on the first half is \(1\) and the total decrease on the second half is \(1\). Hence \(V_0^2(q)=2\).
Another potential confusion is to think that “monotone” must mean strictly increasing or strictly decreasing. The theorem requires only nondecreasing or nonincreasing behavior. A constant function is both: if \(f(x)=c\) for every \(x\in[a,b]\), then every increment is \(c-c=0\), and the formula gives \(|c-c|=0\). Likewise, a nondecreasing function may have intervals on which it is constant, as the jump example illustrates.
Check Your Understanding
For each question, use the direction of monotonicity to determine the signs of the partition increments before applying the exact variation formula.
- Let \(r(x)=4x+1\) on \([-2,3]\). Is \(r\) nondecreasing or nonincreasing, and what is \(V_{-2}^{3}(r)\)?
- Let \(s(x)=10-2x\) on \([1,5]\). Compute both endpoint values and then find \(V_1^5(s)\).
- A nondecreasing function \(u\) on \([a,b]\) satisfies \(u(a)=-4\) and \(u(b)=3\). What is the variation sum for an arbitrary partition of \([a,b]\)?
- Let \(v\) be nonincreasing on \([2,6]\), with \(v(2)=8\) and \(v(6)=8\). What can you conclude about its variation, and why?
- For the function \(q\) in the pitfall example, why does the endpoint difference fail to equal the variation?