The first mean value theorem for integrals
ProvedFamousTheorems.first_mean_value_theorem_integralsThe first mean value theorem for integrals. Let be continuous on , and let be integrable on with respect to a measure . Then there is with
This weighted mean value theorem follows from the intermediate value theorem. It is used to estimate remainders, for example to derive the Lagrange form of the Taylor remainder from the integral form.
Formalization note. Mathlib's exists_eq_const_mul_intervalIntegral_of_nonneg. The endpoints may come in either order: Set.uIcc a b is the closed interval between them, and nonnegativity of is only needed on the half-open interval Set.uIoc a b. The integral ∫ x in a..b, _ ∂μ is the oriented interval integral.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem first_mean_value_theorem_integrals {a b : ℝ} {f g : ℝ → ℝ} {μ : MeasureTheory.Measure ℝ} (hf : ContinuousOn f (Set.uIcc a b))
(hg : IntervalIntegrable g μ a b) (hg0 : ∀ x ∈ Set.uIoc a b, 0 ≤ g x) :
∃ c ∈ Set.uIcc a b, ∫ x in a..b, f x * g x ∂μ = f c * ∫ x in a..b, g x ∂μ := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `exists_eq_const_mul_intervalIntegral_of_nonneg`. Proof here reduces to that Mathlib result.