Taylor Series, Visualised
Add one term at a time and watch a simple polynomial mould itself into sin x, eˣ, or 1/(1−x) — until it suddenly cannot.
How does a calculator find or ? It doesn’t “know” them — it adds up a polynomial. A Taylor series rebuilds almost any smooth function as an infinite sum of powers of , using only the function’s derivatives at a single point. Add terms one at a time and watch a plain polynomial mould itself into the curve.
The big idea
Suppose you want to copy a function near using a polynomial. Match the value there and you get a horizontal line at the right height. Also match the slope and you get the tangent line — better. Match the curvature (second derivative) too and a parabola hugs the curve more closely. Keep matching higher derivatives and the polynomial clings to the function over a wider and wider range.
A Taylor series is the polynomial that agrees with a function’s value and all its derivatives at one point.
Add terms, watch it fit
Slide the number of terms up and watch the gold approximation snap onto the navy curve. For , and the fit just keeps improving everywhere. For , something different happens — keep an eye on what occurs past .
Text description ↓Hide text description ↑
An interactive plot comparing a function (navy) with its Maclaurin polynomial (gold) as the number of terms increases. Maclaurin series used:
- sin x = x − x³/3! + x⁵/5! − … (converges for all x)
- cos x = 1 − x²/2! + x⁴/4! − … (converges for all x)
- eˣ = 1 + x + x²/2! + x³/3! + … (converges for all x)
- 1/(1−x) = 1 + x + x² + x³ + … (converges only for |x| < 1)
The Taylor formula
Centred at a point , the Taylor series of is
Each coefficient is a derivative divided by a factorial. The is what makes it work: differentiating exactly times produces , which the coefficient cancels, so the -th derivative of the series matches perfectly.
When it works — and when it fails
A truncated Taylor series is only an approximation, and it’s only trustworthy within the radius of convergence: the distance from the centre inside which the infinite sum actually equals the function. Outside it, adding terms makes things worse, not better.
The geometric series is the classic warning. It converges only for . At the function blows up, and the polynomial can never follow it there — which is exactly what you saw diverging in the interactive.
Worked examples
Every derivative of is , and , so every coefficient :
Using with :
The true value is — two terms already give five-figure accuracy near 0.
Write down the first three non-zero terms of the Maclaurin series for .
Show the answer ↓Hide the answer ↑
, i.e. .
Frequently asked questions
What is a Taylor series?+
What is the difference between a Taylor and a Maclaurin series?+
What is the radius of convergence?+
Why are Taylor series useful?+
The ScholarsGate Maths Team
Oxbridge & Russell Group maths tutors
Written and reviewed by ScholarsGate tutors who teach A-Level and undergraduate mathematics. Every explainer is checked for accuracy against the AQA, Edexcel and OCR specifications.
Keep exploring
Want a tutor to walk you through it?
Book a DBS-checked Undergraduate Mathematics tutor for a 1-on-1 lesson — online or in person.
Find a Undergraduate Mathematics tutor