University of Toronto – MAT237Y1 – LEC5201 Multivariable Darboux’s construction of Riemann’s in one variable

Jean-Baptiste Campesato

January 21st, 2020

Contents

1 Historical comments 2

2 Darboux’s construction of Riemann’s integral 3

3 The 휀-criterion for integrability 5

4 Properties of Riemann’s integral 6

5 Some sufficient conditions for integrability 9 5.1 Monotonicity ...... 9 5.2 Continuity ...... 10 5.3 Discontinuity set has zero content ...... 10

6 The MVT for Riemann’s integral 12

7 The Fundamental Theorem of Calculus 12

8 Riemann sums 14

A Supremum and Infimum 15

B 17

C Riemann’s integrability criterion in terms of oscillation (Addendum from Feb 3) 20

D Lebesgue criterion for Riemann integrability (Addendum from Feb 3, extra-curricular, not part of MAT237) 23 2 Darboux’s construction of Riemann’s integral

1 Historical comments

• Several methods allowing us to compute areas by finer approximations were already known in ancient Greece (Eudoxus’ method of exhaustion, Archimedes’ triangles…). • During the 17th century Gregory, Barrow, Newton on one side and Leibniz on the other side independently proved the FTC (where the integral was defined as the area under the curve for a continuous on a segment line). • Cauchy (”Résumé des Leçons sur le calcul infinitésimal”, 1823) gave a first constructive definition of “an integral” in terms of Cauchy sums (which are left-Riemann sumsusing today’s terminology) but he restricted himself to continuous functions. • Riemann (”La possibilité de représenter une fonction par une série trigonométrique” 1854 but published in 1873) generalized Cauchy’s definition and removed the continuous assump- tion. The question at this time was to determine the largest class of functions for which we can compute . He gave a non-constructible characterization of integrability in terms of “oscillation of a function” (this criterion has been superseded by Lebesgue’s criterion for Riemann integrability, in terms of discontinuity set, proved in the below cited paper). Riemann’s paper is very important because it allowed mathematicians to construct examples of continuous functions which are not differentiable. Indeed, if 푓 ∶ [푎, 푏] → ℝ is Riemann- 푥 integrable then 퐹 (푥) = ∫푎 푓(푡)푑푡 is uniformly continuous on [푎, 푏], but if we start with a non- continuous 푓, we may obtain a non-differentiable 퐹 ; hence such a 퐹 is continuous but not differentiable. Before that most mathematicians believed that continuity implies differentiability. • Darboux (”Mémoire sur les fonctions discontinues” 1875) gave a new definition equivalent to Riemann’s integral. This is the construction we are going to present in these notes. In this paper (§IX, pp. 109–110), among other results, Darboux also proved that a derivative may not be continuous (e.g. starting with 푓(푥) = 푥2 sin(1/푥) for 푥 ≠ 0 and 0 otherwise) but, nevertheless, the conclusion of the IVT always holds for a derivative (even if it is not contin- uous!). The latter result is usually called “Darboux’s theorem” and a function satisfying the IVT property while not being continuous (e.g. 푓 ′ for the above 푓) is usually called a “Dar- boux function”. He also constructed a function everywhere differentiable but whose derivative is not con- tinuous on the rational numbers: by Darboux’s theorem, such a function satisfies the IVT property while being discontinuous on any . • Lebesgue (”Leçons sur l’intégration et la recherche des fonctions primitives” 1904 after a CRAS note in 1901) gave an axiomatic definition of ”an” integral operator. This led himto introduce measure theory and Lebesgue’s integral (which is probably the common point of view of mathematicians nowadays). • There are other integration theories: • The Riemann–Stieltjes integral. It may be seen as a weighted version of Riemann’s in- tegral. It was introduced by Stieltjes in order to modelize mass distributions on the real line in 1894. • The Henstock–Kurzweil integral. It was first defined by Denjoy in 1912, but thereare several equivalent constructions (the nowadays common construction is due to Kurweil (1957) and was then developed by Henstock, it is similar to Riemann’s integral construc- tion with tagged partitions but it involves the notion of gauge). This integral is a little bit more difficult to construct than Riemann’s integral, but it admits some powerful results available in Lebesgue’s integral (e.g. monotone convergence theorem, dominated con- vergence theorem). Besides, the HK integral behaves well w.r.t. “improper integrals”. • … MAT237Y1 – LEC5201 – J.-B. Campesato 3

2 Darboux’s construction of Riemann’s integral

Definition 1. A partition 푃 of the segment line [푎, 푏] consists in breaking [푎, 푏] into finitely many closed subintervals. We simply describe it by giving the boundaries of the subintervals:

푃 = {푎 = 푥0 < 푥1 < ⋯ < 푥푛 = 푏}

Hence 푃 is a finite set of points of [푎, 푏] containing the endpoints 푎 and 푏.

푥 = 푎 푥 푥 푥 푥 0 1 2 3 푛−1 푥푛 = 푏

Definition 2. Let 푓 ∶ [푎, 푏] → ℝ be a bounded function and let 푃 = {푎 = 푥0 < 푥1 < ⋯ < 푥푛 = 푏} be a partition of [푎, 푏]. We define the upper Darboux sum of 푓 with respect to 푃 by

푛 푈 (푓) = (푥 − 푥 ) 푓 푃 ∑ 푘 푘−1 sup 푘=1 ( [푥푘−1,푥푘] ) and the lower Darboux sum of 푓 with respect to 푃 by

퐿푃 (푓) = (푥푘 − 푥푘−1) inf 푓 ∑ ( [푥 ,푥 ] ) 푘=1 푘−1 푘

In the following figure, the upper Darboux sum is the area of the light grey and the darkgrey rectangles together whereas the lower Darboux sum is the area of the dark grey rectangles only.

푥0 푥1 푥2 푥3 푥4

Remark 3. Notice that the assumption “푓 is bounded” ensures that the Darboux sums are well- defined. Indeed, then the infimum and the supremum on the subintervals exist thanks totheLUB and GLB principles.

Proposition 4. For any partition 푃 of [푎, 푏], we have 푈푃 (푓) ≥ 퐿푃 (푓). Proof.

푛 푈 (푓) = (푥 − 푥 ) 푓 푃 ∑ 푘 푘−1 sup 푘=1 ( [푥푘−1,푥푘] ) 푛

≥ (푥푘 − 푥푘−1) inf 푓 since 푥푘 > 푥푘−1 and sup 푓 ≥ inf 푓 ∑ ( [푥 ,푥 ] ) 푘=1 푘−1 푘

= 퐿푃 (푓) ■ 4 Darboux’s construction of Riemann’s integral

Definition 5. Let 푃 and 푄 be two partitions of [푎, 푏]. We say that 푄 is finer than 푃 if 푃 ⊂ 푄.

푃 푄

Proposition 6. If 푄 is finer than 푃 then

푈푄(푓) ≤ 푈푃 (푓) and 퐿푄(푓) ≥ 퐿푃 (푓) Proof. By induction, it is enough to see what happens if we break one subinterval into two subin- tervals. I am just doing it for the upper sum. Let 푐 ∈ (푥푘−1, 푥푘). Then

(푥푘 − 푥푘−1) sup 푓 = (푥푘 − 푐 + 푐 − 푥푘−1) sup 푓 [푥푘−1,푥푘] [푥푘−1,푥푘]

= (푐 − 푥푘−1) sup 푓 + (푥푘 − 푐) sup 푓 [푥푘−1,푥푘] [푥푘−1,푥푘]

≥ (푐 − 푥푘−1) sup 푓 + (푥푘 − 푐) sup 푓 [푥푘−1,푐] [푐,푥푘] ■

Proposition 7. For any partitions 푃 and 푄 of [푎, 푏], we have 퐿푃 (푓) ≤ 푈푄(푓). Proof. Indeed, set 푅 = 푃 ∪ 푄 then 푅 is finer than 푃 and finer than 푄, so

퐿푃 (푓) ≤ 퐿푅(푓) ≤ 푈푅(푓) ≤ 푈푄(푓) ■

Definition 8. Let 푓 ∶ [푎, 푏] → ℝ be a bounded function. We define the lower (Darboux) integral of 푓 by

푏 푓 = sup 퐿 (푓), ∀푃 partition of [a,b] ⨜ { 푃 } 푎 and the upper (Darboux) integral of 푓 by

푏 푓 = inf {푈푃 (푓), ∀푃 partition of [a,b]} ⨛푎

lower sums upper sums

⨜푏 ≤ 푏 푎 푓 ⨛푎 푓

finer partitions finer partitions

Definition 9. Let 푓 ∶ [푎, 푏] → ℝ be a bounded function. ⨜푏 푏 We say that 푓 is integrable on [푎, 푏] if 푎 푓 = ⨛푎 푓. Then we denote this quantity by 푏 푓(푥)푑푥 ∫푎 MAT237Y1 – LEC5201 – J.-B. Campesato 5

3 The 휀-criterion for integrability

Theorem 10. Let 푓 ∶ [푎, 푏] → ℝ be a bounded function. Then 푓 is integrable on [푎, 푏] if and only if

∀휀 > 0, ∃ a partition 푃 of [푎, 푏], 푈푃 (푓) − 퐿푃 (푓) < 휀 Remark 11. This criterion is not constructible: it doesn’t give the value of the integral! Proof. ⇒∶ We know that 푓 is integrable on [푎, 푏], i.e.

푏 푏 (1) 푓 = 푓 ⨜ 푎 ⨛푎 푏 푏 where 푓 = sup 퐿 (푓), ∀푃 partition of [a,b] and 푓 = inf 푈 (푓), ∀푃 partition of [a,b] . ⨜ { 푃 } { 푃 } 푎 ⨛푎 We want to prove: ∀휀 > 0, ∃ a partition 푃 of [푎, 푏], 푈푃 (푓) − 퐿푃 (푓) < 휀

Let 휀 > 0.

푏 푏 Then 푓 + 휀 is greater than 푓 which is the greatest lower bound of the upper Darboux sums. ⨛푎 2 ⨛푎 푏 Hence 푓 + 휀 is not an lower bound of the upper Darboux sums. ⨛푎 2 That means that there exists a partition 푃1 of [푎, 푏] such that 푏 휀 푈 (푓) < 푓 + 푃1 ⨛푎 2 푏 푏 Similarly ⨜ 푓 − 휀 is less than ⨜ 푓 which is the least upper bound of the lower Darboux sums. 푎 2 푎 푏 Hence ⨜ 푓 − 휀 is not an upper bound of the lower Darboux sums. 푎 2 That means that there exists a partition 푃2 of [푎, 푏] such that 푏 휀 퐿 (푓) > 푓 − 푃2 ⨜ 푎 2

Let 푃 = 푃1 ∪ 푃2. Then 푃 is finer than 푃1, hence 푏 휀 (2) 푈 (푓) ≤ 푈 (푓) < 푓 + 푃 푃1 ⨛푎 2 and similarly 푃 is finer than 푃2, hence 푏 휀 (3) 퐿 (푓) ≥ 퐿 (푓) > 푓 − 푃 푃2 ⨜ 푎 2 We derive from (2) and (3) that 푏 푏 휀 휀 푈 (푓) − 퐿 (푓) < 푓 + − 푓 + 푃 푃 ⨜ ⨛푎 2 푎 2 Using (1), we obtain that the RHS of the above inequality is 휀. Therefore we have well obtained a partition 푃 of [푎, 푏] such that

푈푃 (푓) − 퐿푃 (푓) < 휀 6 Darboux’s construction of Riemann’s integral

⇐∶ We know that ∀휀 > 0, ∃ a partition 푃 of [푎, 푏], 푈푃 (푓) − 퐿푃 (푓) < 휀 and we want to prove that 푓 is integrable, i.e. that

푏 푏 푓 = 푓 ⨜ 푎 ⨛푎 It is enough to prove that 푏 푏 ∀휀 > 0, 0 ≤ 푓 − 푓 < 휀 ⨜ ⨛푎 푎

Let 휀 > 0. By our assumption, there exists a partition 푃 of [푎, 푏] such that 푈푃 (푓) − 퐿푃 (푓) < 휀. Then, we have 푏 푏 퐿 (푓) ≤ 푓 ≤ 푓 ≤ 푈 (푓) 푃 ⨜ 푃 푎 ⨛푎 Hence 푏 푏 0 ≤ 푓 − 푓 ≤ 푈 (푓) − 퐿 (푓) < 휀 ⨜ 푃 푃 ⨛푎 푎 We have well obtained 푏 푏 0 ≤ 푓 − 푓 < 휀 ⨜ ⨛푎 푎 ■

4 Properties of Riemann’s integral

Theorem 12. Let 푓, 푔 ∶ [푎, 푏] → ℝ be integrable and 푐 ∈ ℝ. Then

푏 푏 푏 1. (푓 + 푔) ∶ [푎, 푏] → ℝ is integrable too and (푓(푥) + 푔(푥)) 푑푥 = 푓(푥)푑푥 + 푔(푥)푑푥. ∫푎 ∫푎 ∫푎

푏 푏 2. (푐푓) ∶ [푎, 푏] → ℝ is integrable and 푐푓(푥)푑푥 = 푐 푓(푥)푑푥. ∫푎 ∫푎 3. (푓푔) ∶ [푎, 푏] → ℝ is integrable and we have the following Cauchy–Schwarz inequality

푏 2 푏 푏 푓(푥)푔(푥)푑푥 ≤ 푓(푥)2푑푥 푔(푥)2푑푥 (∫푎 ) ∫푎 ∫푎

푏 푏 4. If ∀푥 ∈ [푎, 푏], 푓(푥) ≤ 푔(푥) then 푓(푥)푑푥 ≤ 푔(푥)푑푥. ∫푎 ∫푎

푏 푏 5. |푓| ∶ [푎, 푏] → ℝ is integrable and 푓(푥)푑푥 ≤ |푓(푥)|푑푥. |∫푎 | ∫푎 Remark 13. There is no equality formula for the product! You can have a look at the following example: 푓, 푔 ∶ [0, 1] → ℝ defined by

1 if 푥 < 1 1 if 푥 > 1 푓(푥) = 2 and 푔(푥) = 2 { 0 otherwise { 0 otherwise MAT237Y1 – LEC5201 – J.-B. Campesato 7

Remark 14. The converse of 5 does not hold. Indeed, if we define 푓 ∶ [0, 1] → ℝ by

1 if 푥 ∈ ℚ 푓(푥) = { −1 otherwise then |푓| is integrable whereas 푓 is not.

Proof of Theorem 12.

1.

푏 푏 푏 푏 푓 + 푔 = 푓 + 푔 since 푓 and 푔 are integrable ⨜ ⨜ ∫푎 ∫푎 푎 푎 푏 ≤ (푓 + 푔) check it using lower Darboux sums and the definition ⨜ 푎 푏 ≤ (푓 + 푔) ⨛푎 푏 푏 ≤ 푓 + 푔 check it using upper Darboux sums and the definition ⨛푎 ⨛푎 푏 푏 = 푓 + 푔 since 푓 and 푔 are integrable ∫푎 ∫푎 Hence 푏 푏 푏 푏 (푓 + 푔) = (푓 + 푔) = 푓 + 푔 ⨜ ⨛푎 푎 ∫푎 ∫푎

2. If 푐 ≥ 0 then:

푏 푏 (푐푓) = 푐 푓 check if using Darboux sums ⨜ ⨜ 푎 푎 푏 = 푐 푓 since 푓 is integrable ⨛푎 푏 = (푐푓) check it using Darboux sums ⨛푎 Hence 푏 푏 푏 (푐푓) = (푐푓) = 푐 푓 ⨜ ⨛푎 푎 ∫푎 Then, in order to get the case 푐 < 0, it is enough to study 푐 = −1:

푏 푏 (−푓) = − (푓) since inf(−푓) = − sup(푓) ⨜ 푎 ⨛푎 푏 = − (푓) since 푓 is integrable ⨜ 푎 푏 = (−푓) since sup(−푓) = − inf(푓) ⨛푎 Hence 푏 푏 푏 (−푓) = (−푓) = − 푓 ⨜ 푎 ⨛푎 ∫푎 8 Darboux’s construction of Riemann’s integral

3. We are first going to prove that if 푓 is integrable then so is 푓 2. Since 푓 is bounded, there exists 푀 > 0 such that ∀푥 ∈ [푎, 푏], |푓(푥)| ≤ 푀. Then 2 2 |푓(푥) − 푓(푦) | = |푓(푥) + 푓(푦)| |푓(푥) − 푓(푦)| ≤ (|푓(푥)| + |푓(푦)|) |푓(푥) − 푓(푦)| by the Triangle Inequality ≤ 2푀 |푓(푥) − 푓(푦)| Hence, for a segment line 퐼,

2 2 sup (푓 ) − inf (푓 ) ≤ 2푀 sup(푓) − inf(푓) 퐼 퐼 ( 퐼 퐼 ) and hence for a partition 푃 , 2 2 푈푃 (푓 ) − 퐿푃 (푓 ) ≤ 2푀 (푈푃 (푓) − 퐿푃 (푓)) Then we may conclude that 푓 2 is integrable using the 휀-criterion (Theorem 10).

Next, 푓푔 = 1 (푓 + 푔)2 − 푓 2 − 푔2 is integrable from the previous points. 2 ( )

The Cauchy–Schwarz inequality can be proved using the proof of the usual Cauchy–Schwarz inequality seen on September 5: study the discriminant of the quadratic polynomial 휃(푡) = 푏 (푓(푥) + 푡푔(푥))2푑푥. ∫푎 푏 푏 푏 푏 4. 푔 − 푓 = (푔 − 푓) = (푔 − 푓) ≥ 0 ∫푎 ∫푎 ∫푎 ⨛푎 For the last inequality, use that ∀푥 ∈ [푎, 푏], 푔(푥) − 푓(푥) ≥ 0 together with the definition involving the upper Darboux sums. 5. From the reverse triangle inequality we have ∀푥, 푦 ∈ [푎, 푏], |푓(푥)| − |푓(푦)| ≤ |푓(푥) − 푓(푦)| ⟹ sup(|푓|) − inf(|푓|) ≤ sup(푓) − inf(푓) for a segment line 퐼 퐼 퐼 퐼 퐼

⟹ 푈푃 (|푓|) − 퐿푃 (|푓|) ≤ 푈푃 (푓) − 퐿푃 (푓) for a partition 푃 Then we may conclude that |푓| is integrable using the 휀-criterion (Theorem 10). For the remaining inequality, notice that 푏 푏 푏 푏 |푓| ≥ 푓 ⟹ |푓| ≥ 푓 and |푓| ≥ −푓 ⟹ |푓| ≥ − 푓 ∫푎 (∫푎 ) ∫푎 (∫푎 ) ■

Exercise 15. Prove that if 푓 ∶ [푎, 푏] → ℝ is integrable then 푓+, 푓− ∶ [푎, 푏] → ℝ defined by 푓+ = sup(푓, 0) and 푓− = − inf(푓, 0) are integrable too. Theorem 16. Let 푓 ∶ [푎, 푏] → ℝ be integrable and [푐, 푑] ⊂ [푎, 푏]. Then 푓 is integrable on [푐, 푑]. Theorem 17 (Chasles’ relation). Let 푓 ∶ [푎, 푏] → ℝ and 푐 ∈ (푎, 푏). If 푓 is integrable on [푎, 푐] and on [푐, 푏] then 푓 is integrable on [푎, 푏] and 푏 푐 푏 푓(푥)푑푥 = 푓(푥)푑푥 + 푓(푥)푑푥 ∫푎 ∫푎 ∫푐 Therefore it is natural to introduce the following notation: Notation 18. If 푓 ∶ [푎, 푏] → ℝ is integrable then we set 푎 푏 푓(푥)푑푥 ∶= − 푓(푥)푑푥 ∫푏 ∫푎 MAT237Y1 – LEC5201 – J.-B. Campesato 9

5 Some sufficient conditions for integrability

5.1 Monotonicity Theorem 19. If 푓 ∶ [푎, 푏] → ℝ is non-decreasing or non-increasing then 푓 is integrable on [푎, 푏]. Remark 20. Notice that we don’t assume that 푓 is continuous, only that 푓 is monotonic! Notice also that such a function is necessarily bounded! Proof. Let’s assume that 푓 is non-decreasing (then, for the other case, replace 푓 by −푓). First, notice that 푓 is bounded. Indeed, for any 푥 ∈ [푎, 푏] we have 푎 ≤ 푥 ≤ 푏 and hence, since 푓 is non-decreasing, we have 푓(푎) ≤ 푓(푥) ≤ 푓(푏) Hence, 푓 is bounded from above by 푓(푏) and from below by 푓(푎).

Then, according to the 휀-criterion (Theorem 10), it is enough to prove that

∀휀 > 0, ∃ a partition 푃 of [푎, 푏], 푈푃 (푓) − 퐿푃 (푓) < 휀

Let 휀 > 0. Set 푛 = (푓(푏)−푓(푎))(푏−푎) + 1. Then ⌊ 휀 ⌋ (푓(푏) − 푓(푎))(푏 − 푎) (4) < 휀 푛

Let 푃 = {푎 = 푥0 < 푥1 < ⋯ < 푥푛 = 푏} be the partition of [푎, 푏] consisting in 푛 subintervals of the same length, i.e. 푥 = 푎 + 푘 푏−푎 . 푘 푛

푏−푎 푏−푎 푏−푎 푏−푎 푏−푎 푛 푛 푛 푛 푛 푎 = 푥 푥 푥 푥 푥 푥 0 1 2 3 4 푛−1 푥푛 = 푏

Since 푓 is non-decreasing, we easily check (do it!) that

sup 푓 = 푓(푥푘) and inf 푓 = 푓(푥푘−1) [푥 ,푥 ] [푥푘−1,푥푘] 푘−1 푘 Then 푛 푛 푛 푏 − 푎 푏 − 푎 푈 (푓) = (푥 − 푥 ) sup 푓 = 푓(푥 ) = 푓(푥 ) 푃 ∑ 푘 푘−1 ∑ ( 푛 푘 ) 푛 ∑ 푘 푘=1 ( [푥푘−1,푥푘] ) 푘=1 푘=1 and 푛 푛 푛 푏 − 푎 푏 − 푎 퐿푃 (푓) = (푥푘 − 푥푘−1) inf 푓 = 푓(푥푘−1) = 푓(푥푘−1) ∑ ( [푥 ,푥 ] ) ∑ ( ) ∑ 푘=1 푘−1 푘 푘=1 푛 푛 푘=1 Therefore 푛 푏 − 푎 푈 (푓) − 퐿 (푓) = 푓(푥 ) − 푓(푥 ) 푃 푃 ∑ ( 푘 푘−1 ) 푛 푘=1 푏 − 푎 = 푓(푥 ) − 푓(푥 ) + 푓(푥 ) − 푓(푥 ) + 푓(푥 ) − 푓(푥 ) + ⋯ + 푓(푥 ) − 푓(푥 ) 푛 ( 1 0 2 1 3 2 푛 푛−1 ) 푏 − 푎 푏 − 푎 = (푓(푥 ) − 푓(푥 )) = (푓(푏) − 푓(푎)) 푛 푛 0 푛 We deduce from (4) that 푈푃 (푓) − 퐿푃 (푓) < 휀 which is what we wanted to prove! ■ 10 Darboux’s construction of Riemann’s integral

5.2 Continuity Theorem 21. If 푓 ∶ [푎, 푏] → ℝ is continuous then 푓 is integrable on [푎, 푏].

Remark 22. Notice that such a function is necessarily bounded.

Proof. First, notice that 푓 is bounded since its image is compact as the continuous image of a com- pact subset.

We are going to prove that 푓 is integrable using the 휀-criterion (Theorem 10).

Let’s 휀 > 0. Since 푓 is continuous on a segment line, it is uniformly continuous (Theorem 66). So there exists 훿 > 0 such that 휀 ∀푥 , 푥 ∈ [푎, 푏], |푥 − 푥 | < 훿 ⟹ |푓(푥 ) − 푓(푥 )| < 1 2 1 2 1 2 2(푏 − 푎)

Set 푛 = 2(푏−푎) and define a partition 푃 = {푎 = 푥 < ⋯ < 푥 = 푏} by 푥 = 푎 + 푘 푏−푎 so that the ⌈ 훿 ⌉ 0 푛 푘 푛 lengths of the intervals are less than 훿. Then

푈푃 (푓) − 퐿푃 (푓) = (푥푘 − 푥푘−1) sup 푓 − inf 푓 ∑ [푥 ,푥 ] 푘=1 ([푥푘−1,푥푘] 푘−1 푘 ) 푛 휀 ≤ (푥 − 푥 ) ∑ 푘 푘−1 푘=1 2(푏 − 푎) 휀 = 2 < 휀 ■

5.3 Discontinuity set has zero content Definition 23. A set 푆 ⊂ ℝ has zero content if for every 휀 > 0 there exists finitely many segment lines [푎1, 푏1], [푎2, 푏2], … , [푎푟, 푏푟] such that 푟 푆 ⊂ [푎 , 푏 ] (i) ⋃ 푖 푖 푖=1 푟 (푏 − 푎 ) < 휀 (ii) ∑ 푖 푖 푖=1 Proposition 24. 1. If 푆 has zero content then 푆 is bounded. 푆 has zero content 2. ⟹ 푆̃ has zero content 푆̃ ⊂ 푆 } 3. 푆 has zero content if and only if its closure 푆 has zero content. 푟 푆 , … , 푆 푆 = 푆 4. If 1 푟 have zero content then ⋃ 푖 has zero content. 푖=1 5. A finite set has zero content.

Proof. Exercise! ■

Exercise 25. Prove that 1 ∶ 푛 ∈ ℕ has zero content (even if it is not finite). { 푛 >0} MAT237Y1 – LEC5201 – J.-B. Campesato 11

Exercise 26. Prove that [0, 1] doesn’t have zero content. Theorem 27. Let 푓 ∶ [푎, 푏] → ℝ be a bounded a function. If the set {푥 ∈ [푎, 푏] ∶ 푓 is not continuous at 푥} has zero content then 푓 is integrable.

Proof. We are going to use the 휀-criterion (Theorem 10). Notice that if 푓 is constant then there is nothing to prove, so we may assume that 푓 is not constant. Let 휀 > 0. By assumption, we may find a partition {푎 = 푥0 < ⋯ < 푥푛 = 푏} of [푎, 푏] such that either [푥푘, 푥푘+1] has no discontinuity point or 휀 (푥 − 푥 ) < ∑ 푘+1 푘 푘 s.t. [푥푘,푥푘+1] has a discontinuity 2 (sup[푎,푏] 푓 − inf[푎,푏] 푓)

Notice that the denominator is not zero since we assumed that 푓 is not constant. Hence 휀 (푥푘+1 − 푥푘) sup 푓 − inf 푓 < ∑ ([푥 ,푥 ] [푥푘−1,푥푘] ) 2 푘 s.t. [푥푘,푥푘+1] has a discontinuity 푘−1 푘

Following the proof of Theorem 21, we may refine the partition by breaking the intervals [푥푘, 푥푘+1] with no discontinuity point in order to obtain

휀 (푥푘+1 − 푥푘) sup 푓 − inf 푓 < ∑ ([푥 ,푥 ] [푥푘−1,푥푘] ) 2 푘 s.t. [푥푘,푥푘+1] has no discontinuity 푘−1 푘

Then, if we denote 푃 = 푎 = 푥 < ⋯ < 푥 = 푏 the partition obtained, 푈 − 퐿 < 휀 + 휀 = 휀. { 0 푛 } 푃 푃 2 2 Hence 푓 is integrable. ■ Exercise 28 (Thomae’s function). Let 푓 ∶ ℝ → ℝ be defined by

1 if 푥 = 푝 , 푝 ∈ ℤ ⧵ {0}, 푞 ∈ ℕ , gcd(푝, 푞) = 1 ⎪⎧ 푞 푞 >0 푓(푥) = ⎨ 1 if 푥 = 0 ⎩⎪ 0 if 푥 ∉ ℚ

1. Prove that 푓 is discontinuous at all the rational points but is continuous at all irrational numbers. 2. Prove that 푓 is integrable on [0, 1] using the definition of integrability. 3. Prove that [0, 1] ∩ ℚ doesn’t have zero content (hint: compute [0, 1] ∩ ℚ). 4. Conclude that the converse of Theorem 27 is false.

Remark 29 (Lebesgue’s criterion for Riemann integrability, extra-curricular). If we replace “finitely many” by “countably many” in Definition 79, we obtain the notion of “set of measure zero”. Then we have the following characterization (not part of MAT237). Let 푓 ∶ [푎, 푏] → ℝ be a bounded function. Then 푓 is integrable if and only if {푥 ∈ [푎, 푏] ∶ 푓 is not continuous at 푥} is of measure 0. In this case, the converse is also true!

Exercise 30 (Dirichlet’s function). Let 푓 ∶ ℝ → ℝ be defined by

1 if 푥 ∈ ℚ 푓(푥) = { 0 otherwise

1. Prove that 푓 is nowhere continuous. 2. Prove that 푓 is not integrable on [0, 1] using the definition of integrability. 12 Darboux’s construction of Riemann’s integral

6 The MVT for Riemann’s integral

Theorem 31. Let 푓 ∶ [푎, 푏] → ℝ be a continuous function. Then there exists 푐 ∈ [푎, 푏] such that

푏 푓(푥)푑푥 = (푏 − 푎)푓(푐) ∫푎 Proof. Since 푓 ∶ [푎, 푏] → ℝ is continuous on a segment line, it has a min 푚 = 푓(푠) and a max 푀 = 푓(푆). It is also integrable as a continuous function, hence we deduce from

∀푥 ∈ [푎, 푏], 푚 ≤ 푓(푥) ≤ 푀 that (by taking the integral between 푎 and 푏)

푏 푚(푏 − 푎) ≤ 푓(푥)푑푥 ≤ 푀(푏 − 푎) ∫푎 and therefore that ∫푏 푓(푥)푑푥 푓(푠) = 푚 ≤ 푎 ≤ 푀 = 푓(푆) 푏 − 푎 Since 푓 is continuous, by the IVT, there exists 푐 ∈ [푎, 푏] such that

1 푏 푓(푐) = 푓(푥)푑푥 푏 − 푎 ∫푎 ■

7 The Fundamental Theorem of Calculus

Theorem 32 (FTC – Part 1). Let 푓 ∶ 퐼 → ℝ be a continuous function defined on an interval 퐼 and 푎 ∈ 퐼. 푥 Define 퐹 ∶ 퐼 → ℝ by 퐹 (푥) = 푓(푡)푑푡. Then 퐹 is differentiable and 퐹 ′ = 푓. ∫푎

Proof. Let 푥0, 푥 ∈ 퐼 with 푥 ≠ 푥0, then

푥 푥0 푥 퐹 (푥) − 퐹 (푥 ) = 푓(푡)푑푡 − 푓(푡)푑푡 = 푓(푡)푑푡 0 ∫ ∫ ∫ 푎 푎 푥0

Then, by Theorem 31, there exists 휉 ∈ [푥, 푥0] if 푥0 > 푥 or 휉 ∈ [푥0, 푥] otherwise such that

퐹 (푥) − 퐹 (푥0) = (푥 − 푥0)푓(푐) i.e. 퐹 (푥) − 퐹 (푥 ) 0 = 푓(푐) 푥 − 푥0

Notice that 푐 tends to 푥0 when 푥 tends to 푥0, hence, by continuity of 푓,

퐹 (푥) − 퐹 (푥0) lim = 푓(푥0) 푥→푥0 푥 − 푥0 ′ ■ Therefore 퐹 is differentiable at 푥0 and 퐹 (푥0) = 푓(푥0). Definition 33. Let 퐼 be an interval and 푓 ∶ 퐼 → ℝ be a function. We say that 퐹 ∶ 퐼 → ℝ is an antiderivative (or a primitive) of 푓 if 퐹 is differentiable and 퐹 ′ = 푓. Remark 34. Hence, the FTC Part 1 (Theorem 32) states that function which is continuous on an interval has an antiderivative. MAT237Y1 – LEC5201 – J.-B. Campesato 13

Corollary 35. Let 푓 ∶ 퐼 → ℝ be a continuous function defined on an interval 퐼 and let 푎 ∈ 퐼. If 퐹 ∶ 퐼 → ℝ is an antideriative of 푓 then there exists 퐶 ∈ ℝ such that 푥 ∀푥 ∈ 퐼, 퐹 (푥) = 푓(푡)푑푡 + 퐶 ∫푎 푥 Proof. Define 퐺 ∶ 퐼 → ℝ by 퐺(푥) = 퐹 (푥) − ∫푎 푓(푡)푑푡. Then, by the FTC Part 1 (Theorem 32) 퐺 is differentiable on 퐼 and 퐺′ = 푓 − 푓 = 0. Hence, by the MVT, 퐺 is constant on 퐼 (since it is an interval!), i.e. ∃퐶 ∈ ℝ, ∀푥 ∈ 퐼, 퐺(푥) = 퐶.

Otherwise stated 푐 ∀푥 ∈ 퐼, 퐹 (푥) = 푓(푡)푑푡 + 퐶 ∫푎 ■

Remark 36. Particularly, on an interval, two antiderivatives differ by a constant. Remark 37. The assumption that the domain is an interval is very important in the above result: otherwise we may find two antiderivatives which don’t differ by a constant. For instance define 퐹1, 퐹2 ∶ ℝ ⧵ {0} → ℝ by ln(|푥|) + 42 if 푥 > 0 퐹 (푥) = ln(|푥|) and 퐹 (푥) = 1 2 { ln(|푥|) − 휋 if 푥 < 0 then they are both antiderivatives of 푓 ∶ ℝ ⧵ {0} → ℝ defined by 푓(푥) = 1 but 퐹 − 퐹 is not 푥 1 2 constant! Theorem 38 (FTC – Part 2). Let 푓 ∶ [푎, 푏] → ℝ be a continuous function and 퐹 ∶ [푎, 푏] → ℝ be an antiderivative of 푓. Then 푏 푓(푥)푑푥 = 퐹 (푏) − 퐹 (푎) ∫푎 푥 Proof. By Corollary 35, there exists 퐶 ∈ ℝ such that ∀푥 ∈ [푎, 푏], 퐹 (푥) = 푓(푡)푑푡 + 퐶. ∫푎 푏 푎 푏 Then 퐹 (푏) − 퐹 (푎) = 푓(푡)푑푡 + 퐶 − 푓(푡)푑푡 − 퐶 = 푓(푡)푑푡. ■ ∫푎 ∫푎 ∫푎 Actually, the continuity assumption is superfluous in the above theorem. We can weaken the result by replacing the continuity assumption by integrability. Theorem 39. Assume that 퐹 ∶ [푎, 푏] → ℝ is an antiderivative of 푓 ∶ [푎, 푏] → ℝ. 푏 If 푓 is integrable then 푓(푥)푑푥 = 퐹 (푏) − 퐹 (푎). ∫푎 Proof. Let 휀 > 0. Since 푓 is integrable, by the 휀-criterion (Theorem 10), there exists a partition 푃 = {푎 = 푥0 < ⋯ < 푥푛 = 푏} such that 푈푃 (푓) − 퐿푃 (푓) < 휀. Next, notice that, 푛 퐹 (푏) − 퐹 (푎) = 퐹 (푥 ) − 퐹 (푥 ) ∑ 푘 푘−1 푘=1 푛 = (푥 − 푥 )퐹 ′(푐 ) 푐 ∈ [푥 , 푥 ] ∑ 푘 푘−1 푘 for some 푘 푘−1 푘 by the MVT 푘=1 ′ Since inf 푓 ≤ 퐹 (푐푘) ≤ sup 푓, we get that [푥 ,푥 ] 푘−1 푘 [푥푘−1,푥푘]

푛 푛

(푥푘 − 푥푘−1) inf 푓 ≤ 퐹 (푏) − 퐹 (푎) ≤ (푥푘 − 푥푘−1) sup 푓 ∑ [푥 ,푥 ] ∑ 푘=1 푘−1 푘 푘=1 [푥푘−1,푥푘] 14 Darboux’s construction of Riemann’s integral i.e. 퐿푃 (푓) ≤ 퐹 (푏) − 퐹 (푎) ≤ 푈푃 (푓) But we also know that 푏 퐿푃 (푓) ≤ 푓(푥)푑푥 ≤ 푈푃 (푓) ∫푎 Hence 푏 퐹 (푏) − 퐹 (푎) − 푓(푥)푑푥 ≤ 푈푃 (푓) − 퐿푃 (푓) < 휀 | ∫푎 | Hence we proved that 푏 ∀휀 > 0, 퐹 (푏) − 퐹 (푎) − 푓(푥)푑푥 < 휀 | ∫푎 | ■

Remark 40. The integrability assumption is necessary. It is not enough to have an antiderivative to be integrable!!! Indeed, define for instance 퐹 ∶ [0, 1] → ℝ by

푥2 sin 휋/푥2 if x≠0 퐹 (푥) = ( ) { 0 otherwise then 퐹 is differentiable but 푓 = 퐹 ′ is not integrable (whereas it has obviously an antiderivative).

8 Riemann sums

Definition 41. Let 푓 ∶ [푎, 푏] → ℝ be a bounded function. Let 푃 = {푎 = 푥0 < 푥1 < ⋯ < 푥푛 = 푏} be a partition of [푎, 푏]. ∗ For any 푘 = 1, 2, … , 푛, pick a point 푥푘 ∈ [푥푘−1, 푥푘] (then we say that 푃 is a tagged partition). Then the following sum 푛 푆∗ (푓) = (푥 − 푥 )푓(푥∗) 푃 ∑ ( 푘 푘−1 푘 ) 푘=1 is called a of 푓 with respect to 푃 .

Remark 42. Quite often (but not always!), we pick an endpoint of the subinterval [푥푘−1, 푥푘]: ∗ 1. If for all 푘, we fix 푥푘 = 푥푘, then we talk about the right Riemann sum of 푓 with respect to 푃 . ∗ 2. If for all 푘, we fix 푥푘 = 푥푘−1, then we talk about the left Riemann sum of 푓 with respect to 푃 .

Definition 43. Let 푃 = {푎 = 푥0 < 푥1 < ⋯ < 푥푛 = 푏} be a partition of [푎, 푏]. The norm of 푃 is the length of the longest subinterval of 푃 :

‖푃 ‖ = max {푥1 − 푥0, 푥2 − 푥1, … , 푥푛 − 푥푛−1}

Theorem 44. Let 푓 ∶ [푎, 푏] → ℝ be a bounded function. ∗ ∗ ∗ Let 푆 (푓), 푆 (푓), … , 푆 (푓), … be a sequence of Riemann sums such that lim ‖푃푛‖ = 0. 푃1 푃2 푃푛 푛→+∞ If 푓 is integrable on [푎, 푏] then 푏 ∗ lim 푆푃 (푓) = 푓(푥)푑푥 푛→+∞ 푛 ∫푎

Remark 45. Quite often (but not always!), we define 푃푛 as the partition breaking [푎, 푏] into 푛 closed subintervals of the same length. MAT237Y1 – LEC5201 – J.-B. Campesato 15

A Supremum and Infimum

Definition 46. Let 퐴 ⊆ ℝ and 푈 ∈ ℝ. We say that 푈 is an upper bound of 퐴 if ∀푥 ∈ 퐴, 푥 ≤ 푈 Definition 47. Let 퐴 ⊆ ℝ and 퐿 ∈ ℝ. We say that 퐿 is a lower bound of 퐴 if ∀푥 ∈ 퐴, 퐿 ≤ 푥 Definition 48. We say that a subset 퐴 ⊆ ℝ is bounded from above if it admits an upper bound. Definition 49. We say that a subset 퐴 ⊆ ℝ is bounded from below if it admits a lower bound. Definition 50. Let 퐴 ⊆ ℝ and 푆 ∈ ℝ. We say that 푆 is the supremum (or least upper bound) of 퐴 if 1. 푆 is an upper bound of 퐴, and, 2. for all upper bounds 푇 of 퐴, 푆 ≤ 푇 . Then we use the notation 푆 = sup(퐴). Definition 51. Let 퐴 ⊆ ℝ and 퐼 ∈ ℝ. We say that 퐼 is the infimum (or greatest lower bound) of 퐴 if 1. 퐼 is a lower bound of 퐴, and, 2. for all lower bounds 퐽 of 퐴, 퐽 ≤ 퐼. Then we use the notation 퐼 = inf(퐴). Remark 52. Notice that we talk about the supremum of a set but about an upper bound of a set. Indeed, if a set admits a supremum then it is unique (prove it!). Beware, it is possible for a set to not have a supremum. As already discussed (see the slides from September 24), the real line ℝ satisfies the following very fundamental property: we say that ℝ is Dedekind-complete. Theorem 53 (The least upper bound property). If a non-empty subset of ℝ is bounded from above then it admits a least upper bound (supremum). The following result is a direct corollary of the previous theorem. Theorem 54 (The greatest lower bound property). If a non-empty subset of ℝ is bounded from below then it admits a greatest lower bound (infimum). Remark 55. The “non-empty” assumption is essential here! The following characterizations may be very useful when writing proofs! Proposition 56. Let 퐴 ⊆ ℝ and 푆 ∈ ℝ. Then ∀푥 ∈ 퐴, 푥 ≤ 푆 푆 = sup(퐴) ⇔ { ∀휀 > 0, ∃푥 ∈ 퐴, 푆 − 휀 < 푥 Proposition 57. Let 퐴 ⊆ ℝ and 퐼 ∈ ℝ. Then ∀푥 ∈ 퐴, 퐼 ≤ 푥 퐼 = inf(퐴) ⇔ { ∀휀 > 0, ∃푥 ∈ 퐴, 푥 < 퐼 + 휀

We will only focus on the characterization of the supremum (that’s similar for the infimum).

Notice that the first line simply means that 푆 is an upper bound. Then the second line of the characterization means that 푆 is the smallest one! Indeed, for any 휀 > 0, even a very very very small one, 푆 − 휀 < 푆. So the fact that 푆 is the least upper bound means exactly that 푆 − 휀 isn’t an upper bound, or, equivalently, that there is at least one 푥 ∈ 퐴 such that 푆 − 휀 < 푥. 16 Darboux’s construction of Riemann’s integral

휀 퐴 ℝ 푆 − 휀 푆 푥

Beware, for simplicity I represented 퐴 as an interval in the above figure, but 퐴 may not be an interval! Proof of proposition 11. Let 퐴 ⊆ ℝ and 푆 ∈ ℝ. 1. Proof of ⇒. Assume that 푆 = sup(퐴).

Then 푆 is an upper bound of 퐴 so ∀푥 ∈ 퐴, 푥 ≤ 푆.

We know that if 푇 is an upper bound of 퐴 then 푆 ≤ 푇 . So, by taking the contrapositive, if 푇 < 푆 then 푇 isn’t an upper bound of 퐴. We are going to use this fact to prove the second part of the characterization. Let 휀 > 0. Since 푆 − 휀 < 푆, we know that 푆 − 휀 is not an upper bound of 퐴, meaning that there exists 푥 ∈ 퐴 such that 푆 − 휀 < 푥. 2. Proof of ⇐. We assume that ∀푥 ∈ 퐴, 푥 ≤ 푆 { ∀휀 > 0, ∃푥 ∈ 퐴, 푆 − 휀 < 푥 The first part of the characterization ensures that 푆 is an upper bound of 퐴.

We still have to prove that if 푇 is an upper bound of 퐴 then 푆 ≤ 푇 . We will show the contrapositive: if 푇 < 푆 then 푇 isn’t an upper bound. Let 푇 ∈ ℝ. Assume that 푇 < 푆. Let 휀 = 푆 − 푇 > 0. Then there exists 푥 ∈ 퐴 such that 푆 − 휀 < 푥, i.e. 푇 < 푥. Hence 푇 isn’t an upper bound. ■ MAT237Y1 – LEC5201 – J.-B. Campesato 17

B Uniform continuity

We first recall the definition of continuity:

Definition 58. Let 퐼 ⊂ ℝ be an interval, 푓 ∶ 퐼 → ℝ and 푥0 ∈ 퐼. We say that 푓 is continuous at 푥0 if

∀휀 > 0, ∃훿 > 0, ∀푥 ∈ 퐼, |푥 − 푥0| < 훿 ⟹ |푓(푥) − 푓(푥0)| < 휀

Definition 59. Let 퐼 ⊂ ℝ be an interval and 푓 ∶ 퐼 → ℝ. We say that 푓 is continuous if it is continuous everywhere, i.e.

∀푥0 ∈ 퐼, ∀휀 > 0, ∃훿 > 0, ∀푥 ∈ 퐼, |푥 − 푥0| < 훿 ⟹ |푓(푥) − 푓(푥0)| < 휀

Definition 60. Let 퐼 ⊂ ℝ be an interval and 푓 ∶ 퐼 → ℝ. We say that 푓 is uniformly continuous if

∀휀 > 0, ∃훿 > 0, ∀푥1, 푥2 ∈ 퐼, |푥1 − 푥2| < 훿 ⟹ |푓(푥1) − 푓(푥2)| < 휀

Let’s compare carefully these two definitions: 푓 is continuous when

∀휀 > 0, ∀푥1 ∈ 퐼, ∃훿 > 0, ∀푥2 ∈ 퐼, |푥1 − 푥2| < 훿 ⟹ |푓(푥1) − 푓(푥2)| < 휀

푓 is uniformly continuous when

∀휀 > 0, ∃훿 > 0, ∀푥1 ∈ 퐼, ∀푥2 ∈ 퐼, |푥1 − 푥2| < 훿 ⟹ |푓(푥1) − 푓(푥2)| < 휀

Hence the only difference is that we permuted two quantifiers: the universal quantifier for 푥1 and the existential quantifier for 훿. Therefore 훿 may depend on 푥1 for continuity whereas for uniform continuity we need to find a 훿 suitable for any 푥1 in the domain. Example 61. The following function is continuous but not uniformly continuous: for a given 휀, the more we look to the right the smaller 훿 should be for the graph to not leave the square from the top or the bottom.

푦 푦

2휀

2휀 푥 푥

2훿 18 Darboux’s construction of Riemann’s integral

Example 62. The following function is uniformly continuous.

Remark 63. Notice that continuity is a local notion whereas uniform continuity is a global notion. The following proposition is obvious: Proposition 64. A uniformly continuous function is continuous. Notice that the converse is false. Example 65. 푓 ∶ ℝ → ℝ defined by 푓(푥) = 푥2 is continuous but not uniformly continuous. However we have the following result for a continuous function defined on a segment line. Theorem 66 (Heine–Cantor theorem). If 푓 ∶ [푎, 푏] → ℝ is continuous then it is uniformly continuous. Proof. We are going to prove the contrapositive: if 푓 is not uniformly continuous then 푓 is not continuous.

Let’s assume that 푓 is not uniformly continuous. Then there exists 휀 > 0 such that

∀훿 > 0, ∃푥1, 푥2 ∈ [푎, 푏] , |푥1 − 푥2| < 훿 and |푓 (푥1) − 푓 (푥2)| ≥ 휀

Hence, for any 푛 ∈ ℕ>0 there exists 푥1,푛, 푥2,푛 ∈ [푎, 푏] such that 1 푥 − 푥 < and 푓 푥 − 푓 푥 ≥ 휀 | 1,푛 2,푛| 푛 | ( 1,푛) ( 2,푛)|

Since the sequence (푥1,푛) lies in the compact set [푎, 푏], it admits a subsequence (푥1,휑(푛)) convergent to ℓ ∈ [푎, 푏]. Notice that

|푥2,휑(푛) − ℓ| = |(푥2,휑(푛) − 푥1,휑(푛)) + (푥1,휑(푛) − ℓ)|

≤ |푥2,휑(푛) − 푥1,휑(푛)| + |푥1,휑(푛) − ℓ| 1 ≤ + 푥 − ℓ 휑(푛) | 1,휑(푛) | 1 ≤ + |푥1,휑(푛) − ℓ| −−−−−→ 0 푛 푛→+∞ MAT237Y1 – LEC5201 – J.-B. Campesato 19

Hence (푥2,휑(푛)) is also convergent to ℓ.

Assume by contradiction that 푓 is continuous at ℓ ∈ [푎, 푏] then from

∀푛, |푓 (푥1,휑(푛)) − 푓 (푥2,휑(푛))| ≥ 휀 we derive by taking the limit that 0 = |푓(ℓ) − 푓(ℓ)| ≥ 휀 > 0 which is impossible. So 푓 is not continuous at ℓ. ■

The following exercises are useful to check whether a function is uniformly continuous or not!

Exercise 67. Let 푓 ∶ 퐼 → ℝ be a function defined on an interval 퐼. Prove that if 푓 is Lipschitz then 푓 is uniformly continuous. Exercise 68. Let 푓 ∶ 퐼 → ℝ be a differentiable function defined on an interval 퐼. Prove that if 푓 ′ is bounded then 푓 is uniformly continuous. Exercise 69. Let 푓 ∶ 퐼 → ℝ where 퐼 = (푎, 푏) with 푎 ∈ ℝ and 푏 ∈ ℝ ∪ {+∞}. 1. Prove that if 푓 is uniformly continuous then lim 푓(푥) exists (and is finite!). 푥→푎+ 2. Prove that if lim 푓(푥) DNE then 푓 is not uniformly continuous. 푥→푎+ Exercise 70. Let 푓 ∶ [0, +∞) → ℝ. 1. Prove that if 푓 is uniformly continuous then ∃푎, 푏 ∈ ℝ, ∀푥 ∈ [0, +∞), 푓(푥) ≤ 푎푥 + 푏.

Remark: the above question remains true if the domain is (−∞, 0] but not if the domain is the entire real line ℝ, for instance 푓(푥) = |푥| is uniformly continuous but not upper bounded by an affine function. 푓(푥) 2. Prove that if lim = +∞ then 푓 is not uniformly continuous. 푥→+∞ 푥 푓(푥) 3. Prove that if lim = −∞ then 푓 is not uniformly continuous. 푥→+∞ 푥 Exercise 71. Let 푓 ∶ [푎, +∞) → ℝ. Prove that if 푓 is continuous and lim 푓(푥) = ℓ ∈ ℝ then 푓 is uniformly continuous. 푥→+∞ Exercise 72. 1. Prove that 푥2 ∶ ℝ → ℝ is not uniformly continuous. 2. Prove that tan ∶ − 휋 , 휋 → ℝ is not uniformly continuous. ( 2 2 ) 3. Prove that 1 ∶ (0, +∞) → ℝ is not uniformly continuous. 푥 4. Prove that exp ∶ ℝ → ℝ is not uniformly continuous. 5. Prove that exp ∶ [−휋, √42] → ℝ is uniformly continuous. 6. Prove that √⋅ ∶ [0, +∞) → ℝ is uniformly continuous. 7. Prove that √3 ⋅ ∶ ℝ → ℝ is uniformly continuous. 8. Prove that sin ∶ ℝ → ℝ is uniformly continuous. 9. Prove that sin(1/푥) ∶ (0, 1) → ℝ is not uniformly continuous. 휋 10. Prove that sin(푥2) ∶ ℝ → ℝ is not uniformly continuous (hint: lim 푛휋 + − √푛휋 = 0). 푛→+∞ (√ 2 ) 20 Darboux’s construction of Riemann’s integral

C Riemann’s integrability criterion in terms of oscillation (Addendum from Feb 3)

In this section we introduce the original integrability criterion due to Riemann, which is now su- perseded by the Lebesgue criterion (i.e. a function defined on a segment line is Riemann integrable if and only if its discontinuity set has measure 0).

Definition 73. Let 푓 ∶ 퐴 → ℝ be a bounded function defined on a subset 퐴 ⊂ ℝ and 푎 ∈ 퐴. The oscillation of 푓 at 푎 is defined by

표(푓, 푎) = lim sup 푓 − inf 푓 + 훿→0 (퐴∩(푎−훿,푎+훿) 퐴∩(푎−훿,푎+훿) )

Remark 74. Notice that 표(푓, 푎) is always well-defined (as soon as 푓 is bounded):

• For 훿 > 0, 푎 ∈ 퐴 ∩ (푎 − 훿, 푎 + 훿), hence 푓(푎) ∈ {푓(푥) ∶ 푥 ∈ 퐴 ∩ (푎 − 훿, 푎 + 훿)} and the latter set is not empty. Moreover it is bounded by assumption. Hence the supremum and the infimum are well-defined.

• And 푔(훿) = sup 푓 − inf 푓 decreases when 훿 decreases on (0, +∞) and is bounded (퐴∩(푎−훿,푎+훿) 퐴∩(푎−훿,푎+훿) ) from below by 0. Hence lim 푔(훿) is well defined by the monotone convergence theorem. 훿→0+ Proposition 75. Let 푓 ∶ 퐴 → ℝ be a bounded function defined on a subset 퐴 ⊂ ℝ and 푎 ∈ 퐴. Then 푓 is continuous at 푎 if and only if 표(푓, 푎) = 0.

Proof. ⇒∶ assume that 푓 is continuous at 푎. Let 휀 > 0. Then there exists 훿 > 0 such that for all 푥 ∈ 퐴, if |푥 − 푎| < 훿 then |푓(푥) − 푓(푎)| < 휀 . 2 Hence 표(푓, 푎) ≤ sup 푓 − inf 푓 ≤ 휀 (for the first inequality, use the monotonicity of 푔). 퐴∩(푎−훿,푎+훿) 퐴∩(푎−훿,푎+훿) Therefore we proved that ∀휀 > 0, 표(푓, 푎) ≤ 휀. So 표(푓, 푎) = 0.

⇐∶ assume that 표(푓, 푎) = 0. Let 휀 > 0. Then there exists 훿 > 0 such that sup 푓 − inf 푓 < 휀 (definition of lim 푔(훿) = 0). + 퐴∩(푎−훿,푎+훿) 퐴∩(푎−훿,푎+훿) 훿→0 If 푥 ∈ (푎 − 훿, 푎 + 훿) ∩ 퐴 then |푓(푥) − 푓(푎)| ≤ sup 푓 − inf 푓 < 휀. 퐴∩(푎−훿,푎+훿) 퐴∩(푎−훿,푎+훿) Hence ∀휀 > 0, ∃훿 > 0, ∀푥 ∈ 퐴, |푥 − 푎| < 훿 ⟹ |푓(푥) − 푓(푎)| < 휀 i.e. 푓 is continuous at 푎. ■

Remark 76. When 표(푓, 푎) > 0 then this number quantify “how far” is 푓 to be continuous at 푎.

The following proposition will be useful to prove Lebesgue’s criterion (Theorem 80).

Proposition 77. Assume that 퐴 ⊂ ℝ is closed and that 푓 ∶ 퐴 → ℝ is bounded. Let 휀 > 0. Then {푥 ∈ 퐴 ∶ 표(푓, 푥) ≥ 휀} is closed.

Proof. Notice that 퐵 = ℝ ⧵ {푥 ∈ 퐴 ∶ 표(푓, 푥) ≥ 휀} = (ℝ ⧵ 퐴) ∪ {푥 ∈ 퐴 ∶ 표(푓, 푥) < 휀}. It is enough to prove that 퐵 is open.

Let 푥0 ∈ 퐵. MAT237Y1 – LEC5201 – J.-B. Campesato 21

• First case: 푥0 ∈ ℝ ⧵ 퐴. Since ℝ ⧵ 퐴 is open by assumption, there exists 훿 > 0 such that (푥0 − 훿, 푥0 + 훿) ⊂ (ℝ ⧵ 퐴) ⊂ 퐵.

• Second case: 푥0 ∈ 퐴 and 표(푓, 푥0) < 휀. Then there exists ⋆ 훿 > 0 such that sup 푓 − inf 푓 < 휀. 퐴∩(푥 −훿,푥 +훿) 퐴∩(푥0−훿,푥0+훿) 0 0 Let 푦 ∈ 푥 − 훿 , 푥 + 훿 ∩ 퐴. ( 0 2 0 2 ) If 푧 ∈ 푦 − 훿 , 푦 + 훿 then |푥 − 푧| = |푥 − 푦 + 푦 − 푧| ≤ |푥 − 푦| + |푦 − 푧| < 훿 + 훿 = 훿. ( 2 2 ) 0 0 0 2 2 Hence 푦 − 훿 , 푦 + 훿 ⊂ 푥 − 훿, 푥 + 훿 . ( 2 2 ) ( 0 0 ) So sup 푓 − inf 푓 ≤ sup 푓 − inf 푓 < 휀. 퐴∩(푦−훿/2,푎+훿/2) 퐴∩(푥 −훿,푥 +훿) 퐴∩(푦−훿/2,푎+훿/2) 퐴∩(푥0−훿,푥0+훿) 0 0 Then 표(푓, 푦) < 휀 (again, use that 푔(훿) is monotonic). Therefore 푥 − 훿 , 푥 + 훿 ∩ 퐴 ⊂ {푥 ∈ 퐴 ∶ 표(푓, 푥) < 휀}. ( 0 2 0 2 ) Hence 푥 − 훿 , 푥 + 훿 ⊂ (ℝ ⧵ 퐴) ∪ {푥 ∈ 퐴 ∶ 표(푓, 푥) < 휀} = 퐵. ( 0 2 0 2 ) ■

Theorem 78 (Riemann’s criterion for integrability). Let 푓 ∶ [푎, 푏] → ℝ be a bounded function. Then 푓 is integrable if and only if for every 휀 > 0, {푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ 휀} has zero content, i.e. for every 휀 > 0, for very 훼 > 0 there exists finitely many segment lines 퐼1 = [푎1, 푏1] , … , 퐼푞 = [푎푞, 푏푞] 푞 푞 (푏 − 푎 ) < 훼 {푥 ∈ 퐴 ∶ 표(푓, 푥) ≥ 휀} ⊂ [푎 , 푏 ] such that ∑ 푖 푖 and ⋃ 푖 푖 . 푖=1 푖=1

Proof. ⇒∶ assume that 푓 is integrable. Let 휀 > 0 and 훼 > 0. By the 휀-criterion (Theorem 10) there exists a partition 푃 = {푎 = 푥0 < ⋯ < 푥푛 = 푏} of [푎, 푏] such that 푈 (푓) − 퐿 (푓) < 휀훼 . 푃 푃 2 † We define 풦 = {푘 = 0, … , 푛 ∶ (푥푘, 푥푘+1) ∩ {푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ 휀} ≠ ∅}. Then

휀 (푥 − 푥 ) = (푥 − 푥 )휀 ∑ 푘+1 푘 ∑ 푘+1 푘 푘∈풦 푘∈풦

≤ (푥푘+1 − 푥푘) sup 푓 − inf 푓 ∑ [푥 ,푥 ] 푘∈풦 ([푥푘,푥푘+1] 푘 푘+1 ) 푛−1

≤ (푥푘+1 − 푥푘) sup 푓 − inf 푓 ∑ [푥 ,푥 ] 푘=1 ([푥푘,푥푘+1] 푘 푘+1 )

= 푈푃 (푓) − 퐿푃 (푓) 휀훼 < 2

> 0 ⋆ Use the definition of limit: 표(푓, 푥0) = lim 푔(훿), so there exits 훿 > 0 such that: 훿→0+ 휀 표(푓, 푥0) 푔(훿) Here it is important that 푥0 ∈ 퐴 so that 푔(훿) is well-defined (to avoir taking the supremum/infimum of an empty set). † Notice that we excluded the endpoints here: to compute 표(푓, 푥푘) in order to obtain the first inequality we need to work on a small interval around 푥푘 and hence to leave [푥푘, 푥푘+1] or [푥푘−1, 푥푘]. Indeed define 푓 ∶ [0, 2] → ℝ by 푓(푥) = 0 on [0, 1) and 푓(푥) = 휋 on [1, 2], then 표(푓, 1) = 휋 and 1 ∈ [1, 2] but sup 푓−inf 푓 = [1,2] [1,2] 0, so it is false that sup 푓 − inf 푓 ≥ 휋. [1,2] [1,2] But there are only finitely many endpoints so we will take care of them later. 22 Darboux’s construction of Riemann’s integral

훼 (푥 − 푥 ) < {푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ 휀} ⧵ {푥 , … , 푥 } ⊂ [푥 , 푥 ] Hence ∑ 푘+1 푘 and 0 푛 ⋃ 푘 푘+1 . 푘∈풦 2 푘∈풦 Since {푥0, … , 푥푛} is finite, there exists finitely many segment lines [푎1, 푏1] … [푎푚, 푏푚] such that 푚 푚 훼 (푏 − 푎 ) < {푥 , … , 푥 } ⊂ [푎 , 푏 ] ∑ 푖 푖 and 0 푛 ⋃ 푖 푖 . 푖=1 2 푖=1 푚 푚 {푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ 휀} ⊂ [푥 , 푥 ] ∪ [푎 , 푏 ] (푥 −푥 )+ (푏 −푎 ) < 훼 Then ⋃ 푘 푘+1 ⋃ 푖 푖 and ∑ 푘+1 푘 ∑ 푖 푖 . (푘∈풦 ) (푖=1 ) 푘∈풦 푖=1

⇐∶ assume that for any 휀 > 0, {푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ 휀} has zero content. Let 휀 > 0. Then we may find a partition 푃 = {푎 = 푥0 < ⋯ < 푥푛 = 푏} = 풦 ⊔ ℒ of [푎, 푏] such that

휀 휀 푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ ⊂ (푥 , 푥 ) and (푥 − 푥 ) < { } ⋃ 푘 푘+1 ∑ 푘+1 푘 2(푏 − 푎) 푘∈풦 푘∈풦 2 sup 푓 − inf 푓 ( [푎,푏] [푎,푏] )

Moreover, by Heine–Borel theorem ⋆ , we may refine 푃 so that for 푘 ∈ ℒ, 휀 sup 푓 − inf 푓 < [푥 ,푥 ] 2(푏 − 푎) [푥푘,푥푘+1] 푘 푘+1

Then

푛−1

푈푃 (푓) − 퐿푃 (푓) = (푥푘+1 − 푥푘) sup 푓 − inf 푓 ∑ [푥 ,푥 ] 푘=0 ([푥푘,푥푘+1] 푘 푘+1 )

= (푥푘+1 − 푥푘) sup 푓 − inf 푓 + (푥푘+1 − 푥푘) sup 푓 − inf 푓 ∑ [푥 ,푥 ] ∑ [푥 ,푥 ] 푘∈풦 ([푥푘,푥푘+1] 푘 푘+1 ) 푘∈ℒ ([푥푘,푥푘+1] 푘 푘+1 ) 휀 < (푥푘+1 − 푥푘) sup 푓 − inf 푓 + (푥푘+1 − 푥푘) ∑ [푎,푏] ∑ 푘∈풦 ( [푎,푏] ) 푘∈ℒ 2(푏 − 푎) 휀 휀 < + 2 2 = 휀

Hence, according to the 휀-criterion (Theorem 10), 푓 is integrable. ■

⋆ If 푘 ∈ ℒ then for any 푥 ∈ [푥 , 푥 ] we have 표(푓, 푥) < 휀 so we can find an interval [푥 − 훿, 푥 + 훿] having the expected 푘 푘+1 2(푏−푎) property. By Heine-Borel theorem, we may take a finite subcover to refine [푥푘, 푥푘+1] in finitely many interval with the wanted property. MAT237Y1 – LEC5201 – J.-B. Campesato 23

D Lebesgue criterion for Riemann integrability (Addendum from Feb 3, extra-curricular, not part of MAT237)

Definition 79. A set 푆 ⊂ ℝ has measure zero if for every 휀 > 0 there exists countably many (possibly empty) segment lines ([푎푛, 푏푛])푛∈ℕ such that 푆 ⊂ [푎 , 푏 ] (i) ⋃ 푛 푛 푛∈ℕ (푏 − 푎 ) < 휀 (ii) ∑ 푛 푛 푛≥0

Theorem 80 (Lebesgue’s Criterion). Let 푓 ∶ [푎, 푏] → ℝ be a bounded a function. Then 푓 is integrable if and only if the set {푥 ∈ [푎, 푏] ∶ 푓 is not continuous at 푥} has measure zero. Proof. ⇒∶ assume that 푓 is integrable. Then, by Theorem 78, for any 푛 ∈ ℕ , 푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ 1 has measure 0. >0 { 푛 } 1 Hence {푥 ∈ [푎, 푏] ∶ 푓 is not continuous at 푥} = 푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ has measure 0. ⋃ { 푛} 푛∈ℕ>0 ⇐∶ assume that 퐷 = {푥 ∈ [푎, 푏] ∶ 푓 is not continuous at 푥} has measure zero. Then, for any 휀 > 0, 퐸 = {푥 ∈ [푎, 푏] ∶ 표(푓, 푥) ≥ 휀} has measure zero as a subset of 퐷. But 퐸 is also compact by Proposition 77 and hence has content zero by Heine–Borel theorem. Hence 푓 is integrable by Theorem 78. ■