Kolton Ndoj

Taylor series: sin as a polynomial

A wavy function is secretly an endless polynomial whose terms fix more and more of its shape at 0.

sin⁡x=x−x33!+x55!−x77!+…\sin x=x-\frac{x^{3}}{3!}+\frac{x^{5}}{5!}-\frac{x^{7}}{7!}+\dots

What the symbols mean

n!n!
n factorial, 1x2x3x...xn
xnx^{n}
powers of x, the building blocks

Why it works — the picture

Start with a straight line through 0 that has the same slope as sine: y = x. Add a cubic term to match how the curve bends. Add a fifth power to match the next derivative. Each new term corrects the error left by the last. The polynomial hugs sine longer and longer before it runs away. The factorials, which grow wildly, are what keep the terms small enough to work.

Graph for Taylor series: sin as a polynomial -441.5-1.5
The error: sin t minus its polynomial. Turn all three terms off and the error is just sin t minus t; turn them on one at a time and watch the flat region around 0 widen. (drawn with the default slider values — move the sliders live)

Try it yourself

Where it’s used in real life

It is how calculators compute sine, and how physicists approximate complicated systems near a stable point.

The story behind it

Brook Taylor published the general method in 1715, though mathematicians in the Kerala school in India found the sine series centuries earlier.

Related

Play with it live →

Math · Calculus · Stretch