Documentation

Books.IntroductiontoRealAnalysisVolumeI_JiriLebl_2025.Chapters.Chap05.section03

theorem intervalIntegral_deriv_eq_sub {a b : } {F f : } (hab : a b) (hcont : ContinuousOn F (Set.Icc a b)) (hderiv : xSet.Ioo a b, HasDerivAt F (f x) x) (hinteg : IntervalIntegrable f MeasureTheory.volume a b) :
(x : ) in a..b, f x = F b - F a

Theorem 5.3.1 (Fundamental theorem of calculus, first form). If F is continuous on [a, b], differentiable on (a, b) with derivative f, and f is Riemann integrable on [a, b], then ∫_{a}^{b} f = F b - F a.

theorem integral_square_unit_interval :
(x : ) in 0..1, x ^ 2 = 1 / 3

Example 5.3.2: By the fundamental theorem of calculus, ∫_0^1 x^2 \\, dx = 1 / 3 using the antiderivative x ↦ x^3 / 3.

theorem fundamental_theorem_of_calculus_second {a b : } {f : } (hinteg : IntervalIntegrable f MeasureTheory.volume a b) :
ContinuousOn (fun (x : ) => (t : ) in a..x, f t) (Set.Icc a b) ∀ {c : }, c Set.Ioo a bContinuousAt f cHasDerivAt (fun (x : ) => (t : ) in a..x, f t) (f c) c

Theorem 5.3.3 (Fundamental theorem of calculus, second form). If f is Riemann integrable on [a, b] and F x = ∫_{a}^{x} f, then F is continuous on [a, b], and whenever f is continuous at c ∈ (a, b) the function F is differentiable at c with derivative F' c = f c.

theorem intervalIntegral_change_of_variables {a b c d : } {f g : } (hab : a b) (hg_diff : ContDiffOn 1 g (Set.Icc a b)) (hf_cont : ContinuousOn f (Set.Icc c d)) (hg_maps : Set.MapsTo g (Set.Icc a b) (Set.Icc c d)) :
(x : ) in a..b, f (g x) * deriv g x = (s : ) in g a..g b, f s

Theorem 5.3.5 (Change of variables). If g : [a,b] → ℝ is continuously differentiable and maps [a,b] into [c,d], and f : [c,d] → ℝ is continuous, then ∫_{a}^{b} f (g x) * g' x = ∫_{g a}^{g b} f.

Example 5.3.6: Using the substitution g(x) = x^2 and that the derivative of sin is cos, ∫_0^{√π} x * cos (x^2) = 0.

Example 5.3.7: The naive substitution g x = log |x| for ∫_{-1}^{1} (log |x|) / x fails because the integrand is unbounded and not continuous at 0, so the integral over [-1,1] is not well-defined as a Riemann (Lebesgue) integral.