The areas / V18. Measure and integration
Mathlib.Analysis.SpecialFunctions.Integrals.Basic
66 declarations and 1 deprecated aliases. Mathlib docs · Source
Integration of specific interval integrals
This file contains proofs of the integrals of various specific functions. This includes:
- Integrals of simple functions, such as
id,pow,inv,exp,log - Integrals of some trigonometric functions, such as
sin,cos,1 / (1 + x^2) - The integral of
cos x ^ 2 - sin x ^ 2 - Reduction formulae for the integrals of
sin x ^ nandcos x ^ nforn ≥ 2 - The computation of
∫ x in 0..π, sin x ^ nas a product for even and oddn(used in proving the Wallis product for pi) - Integrals of the form
sin x ^ m * cos x ^ n
With these lemmas, many simple integrals can be computed by simp or norm_num.
This file is still being developed.
Tags
integrate, integration, integrable
Integrals of the form c * ∫ x in a..b, f (c * x + d)
Integrals of simple functions
Integral of sin x ^ n
Integral of cos x ^ n
Integral of sin x ^ m * cos x ^ n
Integral of miscellaneous functions
theorem intervalIntegral.mul_integral_comp_mul_right E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c : ℝ), c * ∫ (x : ℝ) in a..b, f (x * c) = ∫ (x : ℝ) in a * c..b * c, f x
theorem intervalIntegral.mul_integral_comp_mul_left E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c : ℝ), c * ∫ (x : ℝ) in a..b, f (c * x) = ∫ (x : ℝ) in c * a..c * b, f x
theorem intervalIntegral.inv_mul_integral_comp_div E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c : ℝ), c⁻¹ * ∫ (x : ℝ) in a..b, f (x / c) = ∫ (x : ℝ) in a / c..b / c, f x
theorem intervalIntegral.mul_integral_comp_mul_add E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c * ∫ (x : ℝ) in a..b, f (c * x + d) = ∫ (x : ℝ) in c * a + d..c * b + d, f x
theorem intervalIntegral.mul_integral_comp_add_mul E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c * ∫ (x : ℝ) in a..b, f (d + c * x) = ∫ (x : ℝ) in d + c * a..d + c * b, f x
theorem intervalIntegral.inv_mul_integral_comp_div_add E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c⁻¹ * ∫ (x : ℝ) in a..b, f (x / c + d) = ∫ (x : ℝ) in a / c + d..b / c + d, f x
theorem intervalIntegral.inv_mul_integral_comp_add_div E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c⁻¹ * ∫ (x : ℝ) in a..b, f (d + x / c) = ∫ (x : ℝ) in d + a / c..d + b / c, f x
theorem intervalIntegral.mul_integral_comp_mul_sub E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c * ∫ (x : ℝ) in a..b, f (c * x - d) = ∫ (x : ℝ) in c * a - d..c * b - d, f x
theorem intervalIntegral.mul_integral_comp_sub_mul E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c * ∫ (x : ℝ) in a..b, f (d - c * x) = ∫ (x : ℝ) in d - c * b..d - c * a, f x
theorem intervalIntegral.inv_mul_integral_comp_div_sub E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c⁻¹ * ∫ (x : ℝ) in a..b, f (x / c - d) = ∫ (x : ℝ) in a / c - d..b / c - d, f x
theorem intervalIntegral.inv_mul_integral_comp_sub_div E0 #
∀ {a b : ℝ} {f : ℝ → ℝ} (c d : ℝ), c⁻¹ * ∫ (x : ℝ) in a..b, f (d - x / c) = ∫ (x : ℝ) in d - b / c..d - a / c, f x
theorem integral_cpow E1 #
∀ {a b : ℝ} {r : ℂ},
-1 < r.re ∨ r ≠ -1 ∧ 0 ∉ Set.uIcc a b → ∫ (x : ℝ) in a..b, ↑x ^ r = (↑b ^ (r + 1) - ↑a ^ (r + 1)) / (r + 1)
theorem integral_rpow E1 #
∀ {a b r : ℝ}, -1 < r ∨ r ≠ -1 ∧ 0 ∉ Set.uIcc a b → ∫ (x : ℝ) in a..b, x ^ r = (b ^ (r + 1) - a ^ (r + 1)) / (r + 1)
theorem integral_zpow E1 #
∀ {a b : ℝ} {n : ℤ},
0 ≤ n ∨ n ≠ -1 ∧ 0 ∉ Set.uIcc a b → ∫ (x : ℝ) in a..b, x ^ n = (b ^ (n + 1) - a ^ (n + 1)) / (↑n + 1)
theorem integral_pow E0 #
∀ {a b : ℝ} (n : ℕ), ∫ (x : ℝ) in a..b, x ^ n = (b ^ (n + 1) - a ^ (n + 1)) / (↑n + 1)
theorem integral_pow_abs_sub_uIoc E2 #
∀ {a b : ℝ} (n : ℕ), ∫ (x : ℝ) in Set.uIoc a b, |x - a| ^ n = |b - a| ^ (n + 1) / (↑n + 1)
Integral of |x - a| ^ n over Ι a b. This integral appears in the proof of the
Picard-Lindelöf/Cauchy-Lipschitz theorem.
theorem integral_id E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, x = (b ^ 2 - a ^ 2) / 2
theorem integral_one E1 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, 1 = b - a
theorem integral_const_on_unit_interval E1 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..a + 1, b = b
theorem integral_inv E0 #
∀ {a b : ℝ}, 0 ∉ Set.uIcc a b → ∫ (x : ℝ) in a..b, x⁻¹ = Real.log (b / a)
theorem integral_inv_of_pos E0 #
∀ {a b : ℝ}, 0 < a → 0 < b → ∫ (x : ℝ) in a..b, x⁻¹ = Real.log (b / a)
theorem integral_inv_of_neg E0 #
∀ {a b : ℝ}, a < 0 → b < 0 → ∫ (x : ℝ) in a..b, x⁻¹ = Real.log (b / a)
theorem integral_one_div E1 #
∀ {a b : ℝ}, 0 ∉ Set.uIcc a b → ∫ (x : ℝ) in a..b, 1 / x = Real.log (b / a)
theorem integral_one_div_of_pos E1 #
∀ {a b : ℝ}, 0 < a → 0 < b → ∫ (x : ℝ) in a..b, 1 / x = Real.log (b / a)
theorem integral_one_div_of_neg E1 #
∀ {a b : ℝ}, a < 0 → b < 0 → ∫ (x : ℝ) in a..b, 1 / x = Real.log (b / a)
theorem integral_exp E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.exp x = Real.exp b - Real.exp a
theorem integral_exp_mul_complex E1 #
∀ {a b : ℝ} {c : ℂ}, c ≠ 0 → ∫ (x : ℝ) in a..b, Complex.exp (c * ↑x) = (Complex.exp (c * ↑b) - Complex.exp (c * ↑a)) / c
theorem integral_exp_mul_I_eq_sin E1 #
∀ (r : ℝ), ∫ (t : ℝ) in -r..r, Complex.exp (↑t * Complex.I) = 2 * ↑(Real.sin r)
theorem integral_exp_mul_I_eq_sinc E1 #
∀ (r : ℝ), ∫ (t : ℝ) in -r..r, Complex.exp (↑t * Complex.I) = 2 * ↑r * ↑(Real.sinc r)
theorem integral_log_from_zero E2 #
∀ {b : ℝ}, ∫ (s : ℝ) in 0..b, Real.log s = b * Real.log b - b
Helper lemma for integral_log: case where a = 0.
theorem integral_log E0 #
∀ {a b : ℝ}, ∫ (s : ℝ) in a..b, Real.log s = b * Real.log b - a * Real.log a - b + a
theorem integral_sin E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.sin x = Real.cos a - Real.cos b
theorem integral_cos E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.cos x = Real.sin b - Real.sin a
theorem integral_cos_mul_complex E1 #
∀ {z : ℂ},
z ≠ 0 → ∀ (a b : ℝ), ∫ (x : ℝ) in a..b, Complex.cos (z * ↑x) = Complex.sin (z * ↑b) / z - Complex.sin (z * ↑a) / z
theorem integral_cos_sq_sub_sin_sq E1 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.cos x ^ 2 - Real.sin x ^ 2 = Real.sin b * Real.cos b - Real.sin a * Real.cos a
theorem integral_one_div_one_add_sq E1 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, 1 / (1 + x ^ 2) = Real.arctan b - Real.arctan a
theorem integral_inv_one_add_sq E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, (1 + x ^ 2)⁻¹ = Real.arctan b - Real.arctan a
theorem integral_inv_sq_add_sq E0 #
∀ {a b c : ℝ}, c ≠ 0 → ∫ (x : ℝ) in a..b, (c ^ 2 + x ^ 2)⁻¹ = c⁻¹ * (Real.arctan (b / c) - Real.arctan (a / c))
theorem integral_div_sq_add_sq E1 #
∀ {a b c : ℝ}, ∫ (x : ℝ) in a..b, c / (c ^ 2 + x ^ 2) = Real.arctan (b / c) - Real.arctan (a / c)
theorem integral_id_div_sq_add_sq E1 #
∀ {a b c : ℝ},
c ≠ 0 → ∫ (x : ℝ) in a..b, x / (c ^ 2 + x ^ 2) = (Real.log (c ^ 2 + b ^ 2) - Real.log (c ^ 2 + a ^ 2)) / 2
theorem integral_inv_div_log E0 #
∀ {a b : ℝ}, 1 < a → 1 < b → ∫ (t : ℝ) in a..b, t⁻¹ / Real.log t = Real.log (Real.log b) - Real.log (Real.log a)
The integrand is chosen to match the conclusion of Real.deriv_log_log.
theorem integral_inv_div_log_sq E0 #
∀ {a b : ℝ}, 1 < a → 1 < b → ∫ (t : ℝ) in a..b, t⁻¹ / Real.log t ^ 2 = (Real.log a)⁻¹ - (Real.log b)⁻¹
The integrand is chosen to match the conclusion of Real.deriv_inv_log.
theorem integral_mul_cpow_one_add_sq E1 #
∀ {a b : ℝ} {t : ℂ},
t ≠ -1 →
∫ (x : ℝ) in a..b, ↑x * (1 + ↑x ^ 2) ^ t =
(1 + ↑b ^ 2) ^ (t + 1) / (2 * (t + 1)) - (1 + ↑a ^ 2) ^ (t + 1) / (2 * (t + 1))
theorem integral_mul_rpow_one_add_sq E1 #
∀ {a b t : ℝ},
t ≠ -1 →
∫ (x : ℝ) in a..b, x * (1 + x ^ 2) ^ t =
(1 + b ^ 2) ^ (t + 1) / (2 * (t + 1)) - (1 + a ^ 2) ^ (t + 1) / (2 * (t + 1))
theorem integral_sin_pow_aux E0 #
∀ {a b : ℝ} (n : ℕ),
∫ (x : ℝ) in a..b, Real.sin x ^ (n + 2) =
(Real.sin a ^ (n + 1) * Real.cos a - Real.sin b ^ (n + 1) * Real.cos b +
(↑n + 1) * ∫ (x : ℝ) in a..b, Real.sin x ^ n) -
(↑n + 1) * ∫ (x : ℝ) in a..b, Real.sin x ^ (n + 2)
theorem integral_sin_pow E1 #
∀ {a b : ℝ} (n : ℕ),
∫ (x : ℝ) in a..b, Real.sin x ^ (n + 2) =
(Real.sin a ^ (n + 1) * Real.cos a - Real.sin b ^ (n + 1) * Real.cos b) / (↑n + 2) +
(↑n + 1) / (↑n + 2) * ∫ (x : ℝ) in a..b, Real.sin x ^ n
The reduction formula for the integral of sin x ^ n for any natural n ≥ 2.
theorem integral_sin_sq E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.sin x ^ 2 = (Real.sin a * Real.cos a - Real.sin b * Real.cos b + b - a) / 2
theorem integral_sin_pow_odd E1 #
∀ (n : ℕ), ∫ (x : ℝ) in 0..Real.pi, Real.sin x ^ (2 * n + 1) = 2 * ∏ i ∈ Finset.range n, (2 * ↑i + 2) / (2 * ↑i + 3)
theorem integral_sin_pow_even E1 #
∀ (n : ℕ), ∫ (x : ℝ) in 0..Real.pi, Real.sin x ^ (2 * n) = Real.pi * ∏ i ∈ Finset.range n, (2 * ↑i + 1) / (2 * ↑i + 2)
theorem integral_sin_pow_pos E1 #
∀ (n : ℕ), 0 < ∫ (x : ℝ) in 0..Real.pi, Real.sin x ^ n
theorem integral_sin_pow_succ_le E1 #
∀ (n : ℕ), ∫ (x : ℝ) in 0..Real.pi, Real.sin x ^ (n + 1) ≤ ∫ (x : ℝ) in 0..Real.pi, Real.sin x ^ n
theorem integral_sin_pow_antitone E1 #
Antitone fun n ↦ ∫ (x : ℝ) in 0..Real.pi, Real.sin x ^ n
theorem integral_cos_pow_aux E0 #
∀ {a b : ℝ} (n : ℕ),
∫ (x : ℝ) in a..b, Real.cos x ^ (n + 2) =
(Real.cos b ^ (n + 1) * Real.sin b - Real.cos a ^ (n + 1) * Real.sin a +
(↑n + 1) * ∫ (x : ℝ) in a..b, Real.cos x ^ n) -
(↑n + 1) * ∫ (x : ℝ) in a..b, Real.cos x ^ (n + 2)
theorem integral_cos_pow E1 #
∀ {a b : ℝ} (n : ℕ),
∫ (x : ℝ) in a..b, Real.cos x ^ (n + 2) =
(Real.cos b ^ (n + 1) * Real.sin b - Real.cos a ^ (n + 1) * Real.sin a) / (↑n + 2) +
(↑n + 1) / (↑n + 2) * ∫ (x : ℝ) in a..b, Real.cos x ^ n
The reduction formula for the integral of cos x ^ n for any natural n ≥ 2.
theorem integral_cos_sq E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.cos x ^ 2 = (Real.cos b * Real.sin b - Real.cos a * Real.sin a + b - a) / 2
theorem integral_sin_pow_mul_cos_pow_odd E1 #
∀ {a b : ℝ} (m n : ℕ),
∫ (x : ℝ) in a..b, Real.sin x ^ m * Real.cos x ^ (2 * n + 1) =
∫ (u : ℝ) in Real.sin a..Real.sin b, u ^ m * (1 - u ^ 2) ^ n
Simplification of the integral of sin x ^ m * cos x ^ n, case n is odd.
theorem integral_sin_mul_cos₁ E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.sin x * Real.cos x = (Real.sin b ^ 2 - Real.sin a ^ 2) / 2
The integral of sin x * cos x, given in terms of sin².
See integral_sin_mul_cos₂ below for the integral given in terms of cos².
theorem integral_sin_sq_mul_cos E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.sin x ^ 2 * Real.cos x = (Real.sin b ^ 3 - Real.sin a ^ 3) / 3
theorem integral_cos_pow_three E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.cos x ^ 3 = Real.sin b - Real.sin a - (Real.sin b ^ 3 - Real.sin a ^ 3) / 3
theorem integral_sin_pow_odd_mul_cos_pow E1 #
∀ {a b : ℝ} (m n : ℕ),
∫ (x : ℝ) in a..b, Real.sin x ^ (2 * m + 1) * Real.cos x ^ n =
∫ (u : ℝ) in Real.cos b..Real.cos a, u ^ n * (1 - u ^ 2) ^ m
Simplification of the integral of sin x ^ m * cos x ^ n, case m is odd.
theorem integral_sin_mul_cos₂ E1 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.sin x * Real.cos x = (Real.cos a ^ 2 - Real.cos b ^ 2) / 2
The integral of sin x * cos x, given in terms of cos².
See integral_sin_mul_cos₁ above for the integral given in terms of sin².
theorem integral_sin_mul_cos_sq E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.sin x * Real.cos x ^ 2 = (Real.cos a ^ 3 - Real.cos b ^ 3) / 3
theorem integral_sin_pow_three E0 #
∀ {a b : ℝ}, ∫ (x : ℝ) in a..b, Real.sin x ^ 3 = Real.cos a - Real.cos b - (Real.cos a ^ 3 - Real.cos b ^ 3) / 3
theorem integral_sin_pow_even_mul_cos_pow_even E1 #
∀ {a b : ℝ} (m n : ℕ),
∫ (x : ℝ) in a..b, Real.sin x ^ (2 * m) * Real.cos x ^ (2 * n) =
∫ (x : ℝ) in a..b, ((1 - Real.cos (2 * x)) / 2) ^ m * ((1 + Real.cos (2 * x)) / 2) ^ n
Simplification of the integral of sin x ^ m * cos x ^ n, case m and n are both even.
theorem integral_sin_sq_mul_cos_sq E0 #
∀ {a b : ℝ},
∫ (x : ℝ) in a..b, Real.sin x ^ 2 * Real.cos x ^ 2 = (b - a) / 8 - (Real.sin (4 * b) - Real.sin (4 * a)) / 32
theorem integral_sqrt_one_sub_sq E1 #
∫ (x : ℝ) in -1..1, √(1 - x ^ 2) = Real.pi / 2
Deprecated aliases
| Name | New name | Since |
|---|---|---|
integral_log_from_zero_of_pos | 2026-11-12 |