Documentation

Mathlib.Analysis.SpecialFunctions.Trigonometric.Series

Trigonometric functions as sums of infinite series #

In this file we express trigonometric functions in terms of their series expansion.

Main results #

cos and sin for ℝ and ℂ #

theorem Complex.hasSum_cos' (z : ℂ) :
HasSum (fun (n : ℕ) => (z * I) ^ (2 * n) / ↑(2 * n).factorial) (cos z)
theorem Complex.hasSum_sin' (z : ℂ) :
HasSum (fun (n : ℕ) => (z * I) ^ (2 * n + 1) / ↑(2 * n + 1).factorial / I) (sin z)
theorem Complex.hasSum_cos (z : ℂ) :
HasSum (fun (n : ℕ) => (-1) ^ n * z ^ (2 * n) / ↑(2 * n).factorial) (cos z)

The power series expansion of Complex.cos.

theorem Complex.hasSum_sin (z : ℂ) :
HasSum (fun (n : ℕ) => (-1) ^ n * z ^ (2 * n + 1) / ↑(2 * n + 1).factorial) (sin z)

The power series expansion of Complex.sin.

theorem Complex.cos_eq_tsum' (z : ℂ) :
cos z = ∑' (n : ℕ), (z * I) ^ (2 * n) / ↑(2 * n).factorial
theorem Complex.sin_eq_tsum' (z : ℂ) :
sin z = ∑' (n : ℕ), (z * I) ^ (2 * n + 1) / ↑(2 * n + 1).factorial / I
theorem Complex.cos_eq_tsum (z : ℂ) :
cos z = ∑' (n : ℕ), (-1) ^ n * z ^ (2 * n) / ↑(2 * n).factorial
theorem Complex.sin_eq_tsum (z : ℂ) :
sin z = ∑' (n : ℕ), (-1) ^ n * z ^ (2 * n + 1) / ↑(2 * n + 1).factorial
theorem Real.hasSum_cos (r : ℝ) :
HasSum (fun (n : ℕ) => (-1) ^ n * r ^ (2 * n) / ↑(2 * n).factorial) (cos r)

The power series expansion of Real.cos.

theorem Real.hasSum_sin (r : ℝ) :
HasSum (fun (n : ℕ) => (-1) ^ n * r ^ (2 * n + 1) / ↑(2 * n + 1).factorial) (sin r)

The power series expansion of Real.sin.

theorem Real.cos_eq_tsum (r : ℝ) :
cos r = ∑' (n : ℕ), (-1) ^ n * r ^ (2 * n) / ↑(2 * n).factorial
theorem Real.sin_eq_tsum (r : ℝ) :
sin r = ∑' (n : ℕ), (-1) ^ n * r ^ (2 * n + 1) / ↑(2 * n + 1).factorial

cosh and sinh for ℝ and ℂ #

theorem Complex.hasSum_cosh (z : ℂ) :
HasSum (fun (n : ℕ) => z ^ (2 * n) / ↑(2 * n).factorial) (cosh z)

The power series expansion of Complex.cosh.

theorem Complex.hasSum_sinh (z : ℂ) :
HasSum (fun (n : ℕ) => z ^ (2 * n + 1) / ↑(2 * n + 1).factorial) (sinh z)

The power series expansion of Complex.sinh.

theorem Complex.cosh_eq_tsum (z : ℂ) :
cosh z = ∑' (n : ℕ), z ^ (2 * n) / ↑(2 * n).factorial
theorem Complex.sinh_eq_tsum (z : ℂ) :
sinh z = ∑' (n : ℕ), z ^ (2 * n + 1) / ↑(2 * n + 1).factorial
theorem Real.hasSum_cosh (r : ℝ) :
HasSum (fun (n : ℕ) => r ^ (2 * n) / ↑(2 * n).factorial) (cosh r)

The power series expansion of Real.cosh.

theorem Real.hasSum_sinh (r : ℝ) :
HasSum (fun (n : ℕ) => r ^ (2 * n + 1) / ↑(2 * n + 1).factorial) (sinh r)

The power series expansion of Real.sinh.

theorem Real.cosh_eq_tsum (r : ℝ) :
cosh r = ∑' (n : ℕ), r ^ (2 * n) / ↑(2 * n).factorial
theorem Real.sinh_eq_tsum (r : ℝ) :
sinh r = ∑' (n : ℕ), r ^ (2 * n + 1) / ↑(2 * n + 1).factorial
theorem Real.cosh_le_exp_half_sq (x : ℝ) :
cosh x ≤ exp (x ^ 2 / 2)