Maclaurin Series for sin(x) and cos(x)
You'll learn: How to derive the beautiful alternating power series representations for sine and cosine by repeatedly differentiating and evaluating at zero.
The Core Idea
A Maclaurin series expresses a function as an infinite power series centered at x = 0. For sin(x) and cos(x), we follow the same recipe we used for e^x: compute successive derivatives, evaluate them at zero, and plug into the Taylor formula.
The magic happens because the derivatives of sine and cosine cycle in a predictable pattern:
For sin(x):
- f(x) = sin(x) → f(0) = 0
- f'(x) = cos(x) → f'(0) = 1
- f''(x) = -sin(x) → f''(0) = 0
- f'''(x) = -cos(x) → f'''(0) = -1
- f⁽⁴⁾(x) = sin(x) → f⁽⁴⁾(0) = 0 (pattern repeats)
Notice only the odd derivatives at zero are non-zero, alternating between 1 and -1.
For cos(x):
- f(x) = cos(x) → f(0) = 1
- f'(x) = -sin(x) → f'(0) = 0
- f''(x) = -cos(x) → f''(0) = -1
- f'''(x) = sin(x) → f'''(0) = 0
- f⁽⁴⁾(x) = cos(x) → f⁽⁴⁾(0) = 1 (pattern repeats)
Here only the even derivatives at zero are non-zero, also alternating in sign.
The Resulting Series
sin(x) = x - x³/3! + x⁵/5! - x⁷/7! + ...
cos(x) = 1 - x²/2! + x⁴/4! - x⁶/6! + ...
These alternating series converge for all real x. The alternating signs come from the cycling derivatives, while the factorials appear from the Taylor formula's 1/n! coefficients.
Key Takeaway: The Maclaurin series for sin(x) contains only odd powers with alternating signs, while cos(x) contains only even powers with alternating signs—patterns that emerge directly from their cyclic derivative behavior.