14.13. DIFFERENTIATION OF INCREASING FUNCTIONS 347

whenever yn ↓ x. Therefore, it would follow that the limit of these difference quotientswould exist and f would have a right derivative at x. Therefore, D+ f (x)> D+ f (x) if andonly if there is no right derivative. Similarly D− f (x) > D− f (x) if and only if there is noderivative from the left at x. Also, there is a derivative if and only if there is a derivativefrom the left, right and the two are equal. Thus this happens if and only if all Dini derivatesare equal.

The Lebesgue measure of single points is 0 and so we do not need to worry aboutwhether the intervals are closed in using Corollary 14.12.9.

Let ∆ f (I) = f (b)− f (a) if I is an interval having end points a < b. Now suppose{

J j}

are disjoint intervals contained in I. Then, since f is increasing, ∆ f (I)≥∑ j ∆ f (J j). In thisnotation, the above lemma implies that if D− f (x)> b or D+ f (x)> b, then for each ε > 0there is an interval J of length less than ε which is centered at x and ∆ f (J)

m(J) > b where m(J)is the Lebesgue measure of J which is the length of J. If either D− f (x) or D+ f (x) < a,the above lemma implies that for each ε > 0 there exists I centered at x with m(I)< ε and∆ f (I)m(I) < a. For example, if D− f (x)< a, there exists a sequence yn ↑ x with

f (yn)− f (x)yn− x

=f (x)− f (yn)

x− yn< a

so let In be the interval (yn,x) . For large n it is smaller than ε .

Theorem 14.13.3 Let f :R→R be increasing. Then f ′ (x) exists for all x off a setof measure zero.

Proof: Let Nab for 0 < a < b denote either{x : D+ f (x)> b > a > D+ f (x)

},{

x : D− f (x)> b > a > D− f (x)},

or {x : D− f (x)> b > a > D+ f (x)

},{

x : D+ f (x)> b > a > D− f (x)}.

The function f is increasing and so it is a Borel measurable function. Indeed, f−1 (a,∞)is either open or closed. Therefore, all these derivates are also Borel measurable, henceLebesgue measurable. Assume that Nab is bounded and let V be open with

V ⊇ Nab, m(Nab)+ ε > m(V )

By Corollary 14.12.9 and the above discussion, there are open, disjoint intervals {In} , eachcentered at a point of Nab such that

∆ f (In)

m(In)< a, m(Nab) = m(Nab∩∪iIi) = ∑

im(Nab∩ Ii)

Now do for Nab∩ Ii what was just done for Nab and get disjoint intervals J ji contained in Ii

with∆ f(

J ji

)m(

J ji

) > b, m(Nab∩ Ii) = ∑j

m(

Nab∩ Ii∩ J ji

)

14.13. DIFFERENTIATION OF INCREASING FUNCTIONS 347whenever y, | x. Therefore, it would follow that the limit of these difference quotientswould exist and f would have a right derivative at x. Therefore, Dt f (x) > D4 (x) if andonly if there is no right derivative. Similarly D~ f (x) > D_f (x) if and only if there is noderivative from the left at x. Also, there is a derivative if and only if there is a derivativefrom the left, right and the two are equal. Thus this happens if and only if all Dini derivatesare equal. §fThe Lebesgue measure of single points is 0 and so we do not need to worry aboutwhether the intervals are closed in using Corollary 14.12.9.Let Af (1) = f (b) — f (a) if /is an interval having end points a < b. Now suppose {J;}are disjoint intervals contained in /. Then, since f is increasing, Af () >; Af (Jj). In thisnotation, the above lemma implies that if D~ f (x) > b or D* f (x) > b, then for each € > 0there is an interval J of length less than € which is centered at x and an) i > b where m v )is the Lebesgue measure of J which is the length of J. If either D_f (x) or Dy f (x) <the above lemma implies that for each € > 0 there exists J centered at x with m(I) < € andwe - <a. For example, if D~ f (x) < a, there exists a sequence y, +x withFOn) =F) _ FOF) — |Yn—Xx X—~Ynso let J, be the interval (y,,x). For large n it is smaller than e.Theorem 14.13.3 Let f :R > R be increasing. Then f' (x) exists for all x off a setof measure zero.Proof: Let N,, for 0 < a < b denote either{x:D' f(x) >b>a>Dzf(x)},{x:D f(x) >b>a>D_f(x)},or{x: D> f(x) >b>a>D,f(x)},{x: Di f(x) >b>a>D_f(x)}.The function f is increasing and so it is a Borel measurable function. Indeed, f—! (a,c0)is either open or closed. Therefore, all these derivates are also Borel measurable, henceLebesgue measurable. Assume that Nz, is bounded and let V be open withV2Nap, m(Nap) +€ > m(V)By Corollary 14.12.9 and the above discussion, there are open, disjoint intervals {J,,} , eachcentered at a point of Nz» such thatAf Un)m (In)<a, m (Nap) =m (Nab ia) Uli) = yim (Nab NT)iNow do for Na, OZ; what was just done for N,, and get disjoint intervals J! contained in J;withAf (4/ )m(J/)> b, m(Nap VE) =Em(n abd)