Key idea of this section
sin x = ∑ₙ₌₀∞ (−1)ⁿ x²ⁿ⁺¹/(2n+1)! cos x = ∑ₙ₌₀∞ (−1)ⁿ x²ⁿ/(2n)! These are the unique solutions of y″ = −y with (y(0), y′(0)) = (0, 1) and (1, 0).
The series definition
Define, for every complex number z,
sin z = z − z³/3! + z⁵/5! − z⁷/7! + ⋯ cos z = 1 − z²/2! + z⁴/4! − z⁶/6! + ⋯
By the ratio test both series have infinite radius of convergence, so they define entire functions; in particular they are infinitely differentiable on ℝ and may be differentiated term by term. Reading off the series immediately gives four basic facts: sin 0 = 0, cos 0 = 1, sin is odd, cos is even, and
(sin x)′ = cos x, (cos x)′ = −sin x.
For example, differentiating the cosine series term by term gives −z + z³/3! − z⁵/5! + ⋯ = −sin z. Comparing with the exponential series, we also obtain Euler's formula as a pure identity between power series:
exp(iz) = ∑ (iz)ⁿ/n! = ∑ (−1)ᵏ z²ᵏ/(2k)! + i ∑ (−1)ᵏ z²ᵏ⁺¹/(2k+1)! = cos z + i sin z.
Hence cos z = (eiz + e−iz)/2 and sin z = (eiz − e−iz)/(2i) for all z ∈ ℂ.
The Pythagorean identity
Theorem 1.1. For every real x, sin²x + cos²x = 1. Consequently |sin x| ≤ 1 and |cos x| ≤ 1 for real x.
Proof. Let F(x) = sin²x + cos²x. Then F′(x) = 2 sin x cos x − 2 cos x sin x = 0, so F is constant and F(x) = F(0) = 1. Since both terms are non-negative squares of real numbers, each is at most 1. ∎
Note that the bound fails off the real axis: cos(iy) = (e−y + ey)/2 = cosh y, which is unbounded. The identity sin²z + cos²z = 1 still holds for all complex z, by the identity theorem, or directly from the exponential forms.
The differential equation y″ = −y
The series definition has the defect of looking arbitrary. A more conceptual characterisation is through the simplest linear differential equation with oscillating solutions.
Theorem 1.2 (Uniqueness). Let y: ℝ → ℝ be twice differentiable with y″ + y = 0. Then y(x) = y(0) cos x + y′(0) sin x for all x.
Proof. Put u(x) = y(x) − y(0) cos x − y′(0) sin x. Then u″ + u = 0 and u(0) = u′(0) = 0. The energy E(x) = u(x)² + u′(x)² satisfies E′ = 2uu′ + 2u′u″ = 2u′(u + u″) = 0, so E is constant, equal to E(0) = 0. Hence u ≡ 0. ∎
This theorem is the engine behind almost every identity in the subject. One may take it as the definition of sine and cosine: S and C are the solutions of y″ = −y with S(0) = 0, S′(0) = 1 and C(0) = 1, C′(0) = 0. Existence is supplied by the power series (or by the Picard–Lindelöf theorem), and uniqueness by Theorem 1.2.
Corollary 1.3 (Addition formulas). For all real x and a,
sin(x + a) = sin x cos a + cos x sin a, cos(x + a) = cos x cos a − sin x sin a.
Proof. For fixed a, the function y(x) = sin(x + a) satisfies y″ = −y with y(0) = sin a and y′(0) = cos a. By Theorem 1.2, y(x) = sin a cos x + cos a sin x. Differentiating in x gives the cosine formula. ∎
Inequalities from the series
For real x, the series for sin and cos are alternating, and for |x| small the terms decrease in absolute value. The alternating series estimate then gives explicit two-sided bounds, which we need in Lesson 2. For instance, if 0 < x ≤ 2 the terms x2n/(2n)! of the cosine series are decreasing from n = 1 onward (the ratio of consecutive terms is x²/((2n+1)(2n+2)) < 1), so
1 − x²/2 < cos x < 1 − x²/2 + x⁴/24 (0 < x ≤ 2).
In the same way, grouping the sine series in pairs,
sin x = (x − x³/6) + (x⁵/5! − x⁷/7!) + ⋯,
each bracket x4k+1/(4k+1)! − x4k+3/(4k+3)! is positive whenever x² < (4k+2)(4k+3), which holds for 0 < x ≤ 2 and all k ≥ 0. Hence sin x > x − x³/6 > 0 on (0, 2]. A cruder but global bound is the Taylor estimate with Lagrange remainder: since |sin‴| = |cos| ≤ 1,
|sin x − x| ≤ |x|³/6 for all real x.
Worked example: computing cos(1/2)
Summing the cosine series through the x⁶ term at x = 1/2 gives 1 − 1/8 + 1/384 − 1/46080 = 0.8775824652… The first omitted term is (1/2)⁸/8! ≈ 9.69 × 10⁻⁸, and the alternating series estimate bounds the error by this amount. The true value is cos(1/2) = 0.8775825618…, which differs from the partial sum by 9.66 × 10⁻⁸, just below the bound.
Exercise
- (a)Using only y″ = −y and Theorem 1.2, prove that sin(−x) = −sin x.
- (b)Find the solution of y″ + y = 0 with y(0) = 2, y′(0) = −3, and write it in the form R cos(x + α) with R > 0.
- (c)Prove the identity sin²z + cos²z = 1 for complex z directly from the exponential formulas.
Show solution
Answers: (a) y(x) = −sin(−x) satisfies y″ = −y with y(0) = 0 and y′(0) = cos 0 = 1, so y = sin by uniqueness. (b) y = 2 cos x − 3 sin x = √13 cos(x + α) with cos α = 2/√13, sin α = 3/√13, so α = arctan(3/2) ≈ 0.9828. (c) Squaring, cos²z = (e2iz + 2 + e−2iz)/4 and sin²z = −(e2iz − 2 + e−2iz)/4; the sum is 4/4 = 1.