Sequences & Series · Lesson 4 of 4 · ~6 min

Functions as infinite polynomials

Predict

Build polynomials from the derivatives of $\sin$ at $0$: $P_1 = x$, then $P_3 = x - \frac{x^3}{6}$, and so on. Each new term improves the fit. How?

Hold that thought. Raise the degree and watch where the polynomial peels away.
Try
Try itAt $x = 2.00$, step through N = 1 to N = 9, watching the error. Then drag probe x to $6.00$.
Notice

At $x = 2.00$, $P_1$ misses by $1.0907$, $P_3$ by $0.2426$, $P_7$ by $0.0014$, $P_9$ by $5.00\text{e-}5$. But at $x = 6.00$, even $P_9$ misses by $7.3080$. The peel-away point moves out but never vanishes.

Explain

The recipe is Taylor's: match every derivative you can at one point. At $0$, the derivatives of $\sin$ cycle $1, 0, -1, 0, \dots$, so only odd powers survive, with alternating signs:

$$\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots$$

For $\sin$, the full series equals the function at every $x$. But a finite $P_N$ has error at most $\frac{|x|^{N+1}}{(N+1)!}$: microscopic near $0$, brutal at $x = 6$.

APPLICATIONHow machines evaluate sin: fold the input near 0, then run a short polynomial, or CORDIC shift-and-add in calculators.
About this model

What it represents: the exact Taylor polynomials of $\sin$ about $0$, degrees $1$ through $9$, and the exact pointwise error $|\sin x - P_N(x)|$ at the probe.

What it leaves out: every degree past $9$, and the remainder theory that bounds the error without ever computing $\sin$ — Lagrange's form gives $|\text{error}| \le \frac{|x|^{N+1}}{(N+1)!}$. One honesty note about the application: production math libraries do not use raw Taylor coefficients. They reduce the argument to a small interval, then evaluate a short polynomial whose coefficients are tuned to minimize worst-case error, with Taylor as the starting point.

Source: the theorem and the Lagrange remainder — Taylor's theorem.

Apply
Checkpoint — prove it to yourself

At $x = 2$, each term slashes the error. At $x = 6$, $P_9$ still misses by $7.3080$. What does a new term buy?

$P_3(x) = x - \dfrac{x^3}{6}$. Where does the $6$ come from?

Transfer: you need $\sin(0.1)$ to within $10^{-6}$. What is enough?

Key idea

A Taylor series rebuilds a function from its derivatives at one point. Every finite truncation is local: superb near the center, useless far away.

← All lessons