Taylor Series
How to approximate any smooth function with an infinite polynomial.
On this page
The problem with transcendental functions#
You know how to evaluate or for any number. Polynomials are just arithmetic — multiplication and addition. But , , and are different beasts. They're transcendental functions: no finite combination of basic arithmetic produces them exactly.
So when a calculator displays , it's not doing something magical. It's doing arithmetic. It's using a polynomial that looks so much like near that point that the difference is smaller than any digit it could show you.
The machinery behind this is the Taylor series — one of the most powerful ideas in mathematics.
A polynomial that matches perfectly at one point#
Start with a simple question: can I find a polynomial that behaves exactly like at ?
"Exactly like" means matching not just the value, but the slope, the curvature, the rate of change of curvature — every derivative, forever. This is surprisingly achievable. The Taylor series around (also called the Maclaurin series) is:
Each term captures one more layer of how behaves at 0. Adding more terms doesn't just make the approximation better at 0 — it extends accurate behavior further and further from 0.
Sine, cosine, and eˣ#
For , the derivatives cycle: , , , , and repeat. At , , , so every other coefficient vanishes:
For , every derivative of is . At , every derivative equals 1:
Watch what happens when you add terms one by one — the polynomial starts matching the true function near 0 and gradually extends its accuracy outward.
Notice how behaves differently from . The exponential grows unboundedly, so the polynomial needs more terms to keep up at larger . The sine, bounded between −1 and 1, is easier — ten terms give nearly perfect accuracy across many full cycles.
Why factorials in the denominator?#
The in the denominator isn't an arbitrary choice — it's forced by the requirement that derivatives match. To ensure the -th derivative of our polynomial matches , we need:
Taking the -th derivative of gives . Setting that equal to gives .
The factorial is the natural normalizer that falls out of repeated differentiation.
Convergence and radius#
Not every Taylor series converges everywhere. The series for and converge for all real numbers. But the series for :
only converges for . Outside this radius of convergence, the partial sums fly off to infinity instead of settling. The complex analysis reason is that has a singularity at , and a circle of convergence centered at 0 can only extend as far as that nearest singularity.
Add terms and watch the split personality of the partial sums: inside the shaded interval the polynomial hugs ever more tightly, but cross either edge of the radius and more terms make things worse, the curve swinging off violently. More terms only ever help inside the radius of convergence — beyond it, the series is simply the wrong tool.
Practical power: fast computation#
The reason Taylor series matter to every programmer, physicist, and engineer is that they turn transcendental functions into arithmetic. A modern CPU can't compute natively — but it can multiply and add numbers incredibly fast. The standard library implementation of sin() in C is essentially a carefully chosen polynomial (often using a variant of CORDIC or a minimax polynomial) accurate to 64-bit precision.
The same idea underlies numerical methods, signal processing, and differential equation solvers. Whenever you approximate a smooth function near a known point, you're implicitly using Taylor's idea — that smoothness creates a polynomial fingerprint.
- A Taylor series matches a function's value and every derivative at one point, turning transcendental functions into pure arithmetic.
- The coefficient — factorial and all — is forced by requiring the -th derivatives to agree.
- , , and converge everywhere; others, like , only converge inside a radius set by the nearest singularity.
- Outside that radius, adding terms makes the approximation worse, not better.
- This is how calculators and CPUs evaluate , , and friends — carefully chosen polynomials accurate to full machine precision.
Share this article