The fundamental theorem of calculus for nonnegative derivatives #
Mathlib's intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le evaluates ∫ x in a..b, f x as
F b - F a for an antiderivative F that is continuous on [a, b], provided f is interval
integrable. When f is nonnegative on (a, b) the integrability is automatic
(intervalIntegral.integrableOn_deriv_of_nonneg), which matters for integrands that are unbounded
at an endpoint, such as 1 / √(x - a). This file records the combined statement.
In the converse direction, FTC-1 recovers the derivative of a T-periodic function x from the
integral equation x(t) - x(0) = ∫₀ᵗ Y over a single period [0, T], when Y is continuous and
T-periodic: periodicity propagates the equation to all of ℝ.
It also records that along a loop f (with f a = f b) the integral of B (f x) (f' x) for a
continuous bilinear map B is unchanged by subtracting a constant from f, because ∫ f' = 0.
Main declarations #
FTC-2 for a nonnegative derivative. If F is continuous on [a, b] and has derivative
f x ≥ 0 at every x ∈ (a, b), then ∫ x in a..b, f x = F b - F a; the integrability of f
is a consequence rather than a hypothesis.
Periodic solutions of an integral equation. Let x and a continuous Y be T-periodic,
with T > 0. If x t - x 0 = ∫₀ᵗ Y for every t ∈ [0, T], then x has derivative Y t at every
t.
Along a loop f (that is, f a = f b) continuous on [a, b] with derivative f' in the
interior, subtracting a constant from the first argument does not change the integral of
B (f x) (f' x), since ∫ f' = f b - f a = 0.