Math

Taylor Series

Compare sin(x) with its Taylor polynomials. Add terms and watch the approximation become accurate over a wider interval.

6 minLevel 3/3The interactive stage stays ad-free.
Terms4Degree7Max error30.159

The dashed gold curve is sin(x). The cyan curve is the Taylor polynomial centred at 0. Add terms to widen the accurate interval; away from the centre you need many more terms.

What you are seeing

1

The dashed line is the true function; the cyan line is the Taylor polynomial of degree N.

2

Each new term uses a higher derivative at the expansion point, improving local accuracy.

3

Near the center the approximation is excellent; farther away, more terms are needed.

Why it matters

Taylor series are how calculators evaluate trig functions, how physics linearizes nonlinear systems, and how numerical methods estimate error.

Complexity & details

An N-term polynomial costs O(N) per evaluation. Error depends on the next derivative and the distance from the expansion point.

Frequently asked questions

Why does the approximation fail far from the center?+

A Taylor polynomial is local information dressed up as a global function. Its error grows with distance; the radius of convergence limits where the series is valid.

What does the factorial do?+

Each derivative term is divided by n! so that the polynomial matches the function’s derivatives at the expansion point.