Calculus I · Building a Function From Its Derivatives

The other flagships: sine and cosine

Two functions belong beside exe^x in any honest account of Taylor series, and now that you can differentiate them (Chapter 4), they fall out just as cleanly. Center both at 00.

Figure 7.7
Figure 7.7

For sin⁡x\sin x, the derivatives cycle: sin⁡x→cos⁡x→−sin⁡x→−cos⁡x→sin⁡x→⋯\sin x \to \cos x \to -\sin x \to -\cos x \to \sin x \to \cdots, repeating every four. Evaluated at 00 they read 0,1,0,−1,0,1,0,−1,…0, 1, 0, -1,\ 0, 1, 0, -1, \ldots — every even derivative is 00, every odd one is ±1\pm 1. So only odd powers survive, with alternating signs:

sin⁡x=x−x33!+x55!−x77!+⋯\boxed{\;\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots\;}

For cos⁡x\cos x, the same cycle evaluated at 00 reads 1,0,−1,0,…1, 0, -1, 0, \ldots — only even powers survive:

cos⁡x=1−x22!+x44!−x66!+⋯\boxed{\;\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots\;}

Two things to notice. First, sin\sin keeps only odd powers and cos\cos only even ones — which is exactly the statement that sin\sin is an odd function (symmetric through the origin) and cos\cos is even (mirror-symmetric across the yy-axis). The symmetry of the function and the parity of its surviving powers are the same fact. Second, the leading term of sin⁡x\sin x is just xx — so sin⁡xx=1−x26+⋯→1\tfrac{\sin x}{x} = 1 - \tfrac{x^2}{6} + \cdots \to 1, which is the famous limit from Chapter 2, now visible as nothing more than “the first Taylor term is xx.” (Figure 7.6: sin⁡x\sin x overlaid with its 11-, 33-, 55-term Taylor polynomials, each tracking the wave over more humps before peeling off.)

Figure 7.6
Figure 7.6

◆ Layer 2 — Euler’s formula: where exponential meets trigonometry (and Book 1 pays off)

Lay the three series side by side and something extraordinary appears. We have ex=1+x+x22!+x33!+x44!+⋯e^x = 1 + x + \tfrac{x^2}{2!} + \tfrac{x^3}{3!} + \tfrac{x^4}{4!} + \cdots Now feed in an imaginary input — replace xx with ixix, where i2=−1i^2 = -1 (the number you built in Book 1). The powers of ii cycle i,−1,−i,1,i,…i, -1, -i, 1, i, \ldots, so the terms split into a real group and an imaginary group: eix=(1−x22!+x44!−⋯)⏟cos⁡x+i(x−x33!+x55!−⋯)⏟sin⁡x.e^{ix} = \underbrace{\left(1 - \tfrac{x^2}{2!} + \tfrac{x^4}{4!} - \cdots\right)}_{\cos x} + \; i\underbrace{\left(x - \tfrac{x^3}{3!} + \tfrac{x^5}{5!} - \cdots\right)}_{\sin x}. The real part is exactly the cosine series; the imaginary part is exactly the sine series. So eix=cos⁡x+isin⁡x\boxed{\;e^{ix} = \cos x + i\sin x\;} This is Euler’s formula, and it is one of the deepest sentences in mathematics: the exponential that governs growth and decay, the circular functions that govern waves and rotation, and the imaginary unit from Book 1 are the same object seen from three sides. Set x=πx = \pi and, since cos⁡π=−1\cos\pi = -1 and sin⁡π=0\sin\pi = 0, it collapses to Euler’s identity, eiπ=−1e^{i\pi} = -1 — the single equation tying together ee, π\pi, ii, 11, and 00. The complex numbers you met in Book 1, which had no payoff in single-variable real calculus, were waiting for exactly this moment.

A door left ajar. A Taylor series builds a function out of powers of xx — 1,x,x2,x3,…1, x, x^2, x^3, \ldots — and is at its best near a single point. But there is a second great expansion, just as important, that builds a repeating function out of waves — sin⁡x,cos⁡x,sin⁡2x,cos⁡2x,…\sin x, \cos x, \sin 2x, \cos 2x, \ldots — and is at its best across a whole interval. It is called a Fourier series, and through Euler’s formula those waves are exactly the complex exponentials einxe^{inx} you just met. Where Taylor asks “what polynomial matches this curve right here?”, Fourier asks “what mixture of pure tones makes up this signal?” — which is why it underlies music, images, data compression, and the analysis of anything that vibrates or repeats. The tools to build it (and to make sense of infinitely many waves added together) belong to Book 3; for now, just notice that powers are not the only basis a function can be written in, and file the word away.


All 12 chapters of Calculus I · Foundations · All courses