Let f:[0,1]→R be given by f(x)=xsin(x1) when x=0 and f(0)=0. Observe that if ε>0, then on [ε,1],
f′(x)=sin(x1)−x1cos(x1)⟹∣f′(x)∣≤1+ε1,
so f is Lipschitz on [ε,1], hence absolutely continuous. To show that f is not absolutely continuous on [0,1], let
an=2π+2πn1andbn=−2π+2πn1,
i.e., so an<bn and these are essentially points of local maximum and minimum, respectively. Observe that
∣bn−an∣=4π2n2−4π2π≤n21∣f(bn)−f(an)∣=an+bn=4πn2−4π24πn.
Thus, for any δ>0, we can pick N∈N large enough so that
n=N∑∞∣bn−an∣<δ.
But
n=N∑∞∣f(bn)−f(an)∣=∞,
so we can pick M>N so large that
n=N∑M∣bn−an∣<δ,butn=N∑M∣f(bn)−f(an)∣≥1,
so f cannot be absolutely continuous.
We denote the variation of f on [a,b] via
Vf([a,b])=a=t1<⋯<tn=b;n∈Nsupi=1∑n−1∣f(ti+1−f(ti))∣.
First, we will show that x↦Vf([0,x]) is continuous. Let ε>0 and {0=t0<t1<⋯<tn=1} be a partition such that
i=1∑n−1∣f(ti+1−f(ti))∣≥Vf([0,1])−ε.
Since f is continuous at 0, we can pick δ∈(t0,t1) small enough so that ∣f(δ)−f(0)∣<ε. On the other hand, δ<t1<⋯<tn=1 is a partition of [δ,1], and so
Vf([0,1])−ε≤∣f(δ)−f(0)∣+∣f(t1)−f(δ)∣+i=2∑n−1∣f(ti+1−f(ti))∣≤ε+Vf([δ,1]).
Rearranging, we see Vf([0,δ])=Vf([0,1])−Vf([δ,1])<2ε, which proves the claim.
To show that f is absolutely continuous on [0,1], let ε>0 and let h>0 be such that Vf([0,h])≤ε. Since f is absolutely continuous on [0,1], let δ>0 come from the definition of absolute continuity.
Suppose a1<b1≤a2<b2≤⋯≤an<bn is such that ∑i=1n∣bi−ai∣<δ. Then shrinking h if necessary, we may assume without loss of generality that h∈[a1,b1] and so
i=1∑n∣f(bi)−f(ai)∣≤∣f(a1)−f(0)∣+∣f(h)−f(a1)∣+∣f(b1)−f(h)∣+i=2∑n∣f(bi)−f(ai)∣≤Vf([0,h])+∣f(b1)−f(h)∣+i=2∑n∣f(bi)−f(ai)∣≤2ε.
Indeed, {0,a1,h} gives a partition of [0,h], and {h,b1,a2,b2,…,an,bn} gives a disjoint collection of intervals in [h,1] with total length less than δ, and this completes the proof.