From Total Variation to Monotone Components
A function can move both upward and downward while still having finite total variation. The variation function records the accumulated size of those movements. Its increase over any subinterval is at least the absolute change in the original function, which is exactly the inequality needed to build two nondecreasing functions whose difference recovers that change.
Let \(a\le b\) be real numbers, and let \(f:[a,b]\to\mathbb{R}\) be real-valued. For \(a\le u<v\le b\), define the variation of \(f\) on \([u,v]\) by \(V_u^v(f)=\sup\{\sum_{i=1}^n|f(x_i)-f(x_{i-1})|:u=x_0<x_1<\cdots<x_n=v\}\). Set \(V_u^u(f)=0\). The function \(f\) has bounded variation on \([a,b]\), written \(f\in BV[a,b]\), if \(V_a^b(f)<\infty\). Its variation function, based at \(a\), is \(v(x)=V_a^x(f)\) for \(x\in[a,b]\).
The construction rests on how variation behaves when an interval is split. We record that fact and its justification, including the case of intervals with coincident endpoints.
Proof. If \(u=w\) or \(w=z\), the assertion follows from \(V_r^r(f)=0\). Otherwise, take any partition of \([u,z]\) and insert \(w\) if it is not already a partition point. The triangle inequality shows that inserting a point cannot decrease the partition sum. The refined sum is the sum of a partition sum on \([u,w]\) and one on \([w,z]\), so it is at most \(V_u^w(f)+V_w^z(f)\). Taking the supremum over the original partitions gives \(V_u^z(f)\le V_u^w(f)+V_w^z(f)\). For the reverse inequality, let \(\varepsilon>0\). By the definition of the supremum, choose partitions of \([u,w]\) and \([w,z]\) whose sums exceed \(V_u^w(f)-\varepsilon/2\) and \(V_w^z(f)-\varepsilon/2\), respectively. Joining these partitions at \(w\) gives a partition of \([u,z]\), so \(V_u^z(f)>V_u^w(f)+V_w^z(f)-\varepsilon\). Since this holds for every \(\varepsilon>0\), the reverse inequality follows. \(\square\)
The Jordan Decomposition on a Compact Interval
Proof. For \(a\le x\le y\le b\), additivity of variation gives \(v(y)-v(x)=V_x^y(f)\). The one-interval partition of \([x,y]\) shows \(V_x^y(f)\ge |f(y)-f(x)|\); when \(x=y\), both sides are zero. Write \(\Delta v=v(y)-v(x)\) and \(\Delta f=f(y)-f(x)\). Then \(\Delta v\ge|\Delta f|\), so both \(\Delta v+\Delta f\ge0\) and \(\Delta v-\Delta f\ge0\). The definitions give \(P(y)-P(x)=(\Delta v+\Delta f)/2\ge0\) and \(N(y)-N(x)=(\Delta v-\Delta f)/2\ge0\). Thus \(P\) and \(N\) are nondecreasing. Since \(v(a)=0\), their values at \(a\) are both zero. Subtracting their definitions gives \(P(x)-N(x)=f(x)-f(a)\), which proves the stated identity at every \(x\), including both endpoints. The functions are real-valued: \(v(x)\le V_a^b(f)<\infty\), and \(f(x)\) is finite by assumption. If \(a=b\), then \(v(a)=P(a)=N(a)=0\), and the same identity reduces to \(f(a)=f(a)\). \(\square\)
The theorem gives an explicit existence construction. It does not require continuity: jumps are included in the variation measured up to each point. The normalization also makes the role of the initial value precise. The components record all changes after \(a\), while the constant \(f(a)\) supplies the starting value.
Worked Example: A Strictly Increasing Linear Function
Let \(f(x)=2x-1\) on \([0,2]\). For any partition, the increments \(2(x_i-x_{i-1})\) are nonnegative, so their absolute values sum to \(2(2-0)=4\). Thus \(V_0^2(f)=4\). On \([0,x]\), the same calculation gives \(v(x)=2x\), and \(f(0)=-1\). Therefore
Both components are nondecreasing, and \(f(0)+P(x)-N(x)=-1+2x=2x-1=f(x)\). Check: at \(x=2\), \(P(2)=4\), \(N(2)=0\), and \(-1+4-0=3=f(2)\); at \(x=0\), the decomposition gives \(-1+0-0=-1=f(0)\).
Worked Example: A Piecewise-Linear Function That Changes Direction
On \([0,3]\), define \(f(x)=x\) for \(0\le x\le1\), \(f(x)=2-x\) for \(1\le x\le2\), and \(f(x)=x-2\) for \(2\le x\le3\). The formulas agree at their shared endpoints. On each piece the function moves at speed one, upward on the first and third pieces and downward on the second. For \(0\le x\le1\), \(v(x)=x\). For \(1\le x\le2\), the accumulated variation is \(1+(x-1)=x\). For \(2\le x\le3\), it is \(1+1+(x-2)=x\). Hence \(v(x)=x\) throughout, and \(f(0)=0\). The components are therefore
On the first interval \(P\) increases from \(0\) to \(1\) while \(N=0\); on the second \(P=1\) while \(N\) increases from \(0\) to \(1\); on the third \(P\) increases from \(1\) to \(2\) while \(N=1\). Thus neither component decreases. Check: at \(x=3/2\), \(f=1/2\), \(P=1\), and \(N=1/2\), so \(f(0)+P-N=0+1-1/2=1/2\). At \(x=3\), the result is \(0+2-1=1=f(3)\).
Worked Example: A Step Function With Two Jumps
Define \(f:[0,3]\to\mathbb{R}\) by \(f(x)=0\) for \(0\le x<1\), \(f(x)=2\) for \(1\le x<2\), and \(f(x)=-1\) for \(2\le x\le3\). The function changes by \(2\) at \(1\) and by \(-3\) at \(2\), with no other changes. Directly from partition sums, the variation accumulated up to \(x\) is \(v(x)=0\) for \(0\le x<1\), \(v(x)=2\) for \(1\le x<2\), and \(v(x)=5\) for \(2\le x\le3\). In particular, the jump at an endpoint \(x\) is included in \(V_0^x(f)\), because \(f(x)\) is the value after the jump. Since \(f(0)=0\), the components are
Each component is nondecreasing, including at the jump points. Check: at \(x=1\), \(P-N=2-0=2=f(1)\); at \(x=2\), \(P-N=2-3=-1=f(2)\); and at \(x=5/2\), \(P-N=2-3=-1=f(5/2)\). The total final increase of \(P\) is \(2\), and that of \(N\) is \(3\), adding to the total variation \(5\).
What the Construction Tracks—and a Common Mistake
For any \(x\), \(v(x)\) is the total amount of movement up to \(x\), while \(f(x)-f(a)\) is the net change. The formulas split those two quantities into upward and downward movement: \(P(x)+N(x)=v(x)\) and \(P(x)-N(x)=f(x)-f(a)\). These identities follow by adding and subtracting the defining formulas. In particular, the components are not obtained by simply taking the positive and negative parts of the value \(f(x)\); they account for the path of changes from the initial point.
Common mistake: forgetting the initial value. For the constant function \(f(x)=3\) on \([0,1]\), the variation function is \(v(x)=0\) for all \(x\). The normalized formulas give \(P(x)=N(x)=0\). Thus \(P-N=0\), not \(f=3\). The corrected identity includes the starting value: \(f(x)=f(0)+P(x)-N(x)=3+0-0=3\). Equivalently, if the goal is an unshifted difference \(f=F-G\), take \(F=f(a)+P\) and \(G=N\); both remain nondecreasing, and \(F-G=f\) at every point.
This decomposition is useful because questions about a function that changes direction can be expressed through two functions that never decrease. The construction works for every real-valued function of bounded variation on a compact interval, whether or not it is continuous. Its central verification is local: on each \([x,y]\), the variation increase dominates the absolute function increment, forcing both component increments to be nonnegative.
Check Your Understanding
Use the variation function and the normalization at the left endpoint in each question.
- For \(f(x)=4-x\) on \([0,2]\), compute \(v\), \(P\), and \(N\), and verify the decomposition at both endpoints.
- Explain why \(V_x^y(f)\ge |f(y)-f(x)|\) implies that both \(P\) and \(N\) are nondecreasing.
- For the step function in the third worked example, what are \(v(1)\) and \(v(2)\), and why does each include the jump at that point?
- If \(f\) is constant with value \(c\) on \([a,b]\), determine its normalized components and state the decomposition including \(f(a)\).
- In the piecewise-linear example, verify directly that \(P(x)+N(x)=v(x)\) for \(x=3/2\) and for \(x=3\).