Definition 4.7.1 (Trigonometric functions): for each z : ℂ,
cos z = (exp (i z) + exp (-i z)) / 2 and
sin z = (exp (i z) - exp (-i z)) / (2i).
Helper for Proposition 4.7.1: the signed cosine and sine coefficient series are
summable over ℝ.
Helper for Proposition 4.7.1: assemble the final conjunction for the let-bound series definitions.
Proposition 4.7.1 (Reality and absolute convergence on ℝ): for every x : ℝ,
the series ∑' n, (-1)^n * x^(2n) / (2n)! and ∑' n, (-1)^n * x^(2n+1) / (2n+1)!
converge absolutely. Consequently, defining cos(x) and sin(x) by these series
gives real-valued quantities for each real input.
Helper for Proposition 4.7.2: a nonzero derivative at x₀ forces nearby punctured
points to have function value different from f x₀.
Proposition 4.7.2: If f : ℝ → ℝ is differentiable at x₀, with f x₀ = 0
and f' x₀ ≠ 0, then there exists c > 0 such that for every y : ℝ,
0 < |y - x₀| < c implies f y ≠ 0.
Theorem 4.7.4: For all real numbers x, y,
cos(x + y) = cos(x)cos(y) - sin(x)sin(y) and
sin(x + y) = sin(x)cos(y) + cos(x)sin(y).
Definition 4.7.3: The tangent function is the map
tan : (-π/2, π/2) → ℝ defined by tan(x) = sin x / cos x.
Equations
- tangentFunction x = Real.sin ↑x / Real.cos ↑x
Instances For
Definition 4.7.4: Define f : ℝ → ℝ by
f(x) = ∑' n = 1..∞, 4^{-n} * cos(32^n * π * x).
Equivalently (reindexing by n : ℕ),
f(x) = ∑' n, (1 / 4^(n+1)) * cos(32^(n+1) * π * x).
Equations
Instances For
Helper for Proposition 4.7.8: the infimum defining firstPositiveSineZero equals π.
Proposition 4.7.8: Define tan : (-π/2, π/2) → ℝ by
tan(x) = sin x / cos x. Then tan is differentiable on (-π/2, π/2) and
(d/dx) tan(x) = 1 + tan(x)^2 for x ∈ (-π/2, π/2).
In particular, tan is strictly increasing on (-π/2, π/2),
lim_{x→(π/2)^-} tan(x) = +∞, lim_{x→(-π/2)^+} tan(x) = -∞, and hence
tan is a bijection from (-π/2, π/2) onto ℝ.
Helper for Proposition 4.7.9: Real.arctan is differentiable on all real numbers.
Helper for Proposition 4.7.9: pointwise derivative formula for Real.arctan.
Helper for Proposition 4.7.9: alternate pointwise derivative formula from
Real.deriv_arctan.
Proposition 4.7.9: Let tan⁻¹ : ℝ → (-π/2, π/2) be the inverse of
tan : (-π/2, π/2) → ℝ. Then Real.arctan is differentiable on ℝ and
for every x : ℝ, (d/dx) arctan(x) = 1 / (1 + x^2).
Proposition 4.7.10: For every real number x with |x| < 1,
the arctangent function has the power series expansion
arctan x = ∑' n, (-1)^n * x^(2n+1) / (2n+1).
Helper for Proposition 4.7.4: the positive-zero set used in the definition of
firstPositiveSineZero is nonempty and bounded below.
Helper for Proposition 4.7.4: the definition of firstPositiveSineZero agrees with
the standard constant Real.pi.
Helper for Proposition 4.7.4: uniqueness of the angle in (-π, π] with fixed
sin and cos values.
Helper for Proposition 4.7.5: the norm of exp(i x) is 1 for real x.
Helper for Proposition 4.7.5: equality of scaled polar exponentials with positive radii forces equality of radii.
Helper for Proposition 4.7.5: after identifying radii, one can cancel the nonzero real scalar and deduce equality of the exponential factors.
Proposition 4.7.5: if r, s > 0 and θ, α : ℝ satisfy
(r : ℂ) * exp(iθ) = (s : ℂ) * exp(iα), then r = s and
θ = α + 2πk for some k : ℤ.
Helper for Proposition 4.7.6: the canonical witness (‖z‖, arg z) satisfies
the required positivity, interval, and reconstruction properties.
Helper for Proposition 4.7.6: if two angles lie in (-π, π] and differ by
an integer multiple of 2π, then the integer shift is zero.
Helper for Proposition 4.7.6: two admissible polar representations of the same nonzero complex number have identical radius and angle.
Proposition 4.7.6: for every nonzero complex number z, there exists a unique
pair (r, θ) with r > 0 and θ ∈ (-π, π] (where π is firstPositiveSineZero)
such that z = r * exp(iθ).
Theorem 4.7.6: for every real number x,
exp(ix) = cos(x) + i sin(x) and exp(-ix) = cos(x) - i sin(x).
In particular, cos(x) = Re(exp(ix)) and sin(x) = Im(exp(ix)).
Helper for Proposition 4.7.7: identify cos(nθ) and sin(nθ) as the real
and imaginary parts of (cos θ + i sin θ)^n.
Proposition 4.7.7 (de Moivre identities): for every θ : ℝ and n : ℤ,
cos(nθ) and sin(nθ) are the real and imaginary parts of
(cos θ + i sin θ)^n; equivalently,
(cos θ + i sin θ)^n = cos(nθ) + i sin(nθ).
Helper for Theorem 4.7.7: the definition of firstPositiveSineZero agrees with Real.pi.
Helper for Theorem 4.7.7: transport π-identities to firstPositiveSineZero.
Theorem 4.7.7: For every real number x (with π from Definition 4.7.2), cos (x + π) = -cos x and sin (x + π) = -sin x. In particular, cos (x + 2π) = cos x and sin (x + 2π) = sin x, so sin and cos are periodic with period 2π.
Helper for Theorem 4.7.8: firstPositiveSineZero is nonzero.
Helper for Theorem 4.7.8: divide-by-firstPositiveSineZero form equals
integer-multiple-of-π form.
Helper for Theorem 4.7.8: the integer-existence formulations using
division by firstPositiveSineZero and multiplication by π are equivalent.