Visual walkthrough — Taylor series approximation
We use one running example so every picture is comparable: the real function We pick because its derivatives are the friendliest possible (, so for every ), which lets the shape of the argument shine without messy arithmetic hiding it.
Before we start — the words we will use
Our plan: build a polynomial and choose the numbers one at a time so that matches 's value, then slope, then curvature, then higher bends. Why and not just ? Because measuring distance from the anchor point makes every term except the one we want vanish when we set — you'll see that trick fire in every step.
Step 1 — Match the value (the order-0 picture)
WHAT. Set in . Every term containing becomes and dies. Only the constant survives: We demand , so
WHY. The height at is controlled by alone — nothing else can touch it once every other term is switched off. So the very first fact we lock in is "start at the right height."
PICTURE. Our approximation is a flat horizontal line at height . It touches at the anchor dot but immediately drifts away — a value match and nothing more.

In the equation : the lone constant is the whole approximation so far.
Step 2 — Match the slope (the order-1 picture)
WHAT. Differentiate once: Now set : again every term dies, leaving . Demand :
WHY. A flat line gets the height right but points the wrong way. Matching the slope tilts our line so it touches tangentially instead of crossing — the approximation now agrees with to first order. This is exactly the picture Gradient Descent lives in: "know the value and the slope, step downhill."
PICTURE. The horizontal line rotates into the tangent line . Notice it stays glued to over a much wider stretch than the flat line did.

Term by term : the new piece is a straight ramp whose steepness is the slope and whose value is at — so it adjusts the tilt without disturbing the height we already fixed.
Step 3 — Where the factorial is born (match the curvature)
WHAT. Differentiate once more: Set : . Demand :
WHY. Here is the moment the factorial sneaks in. The term , differentiated twice, produces a (from ). To get the curvature to come out equal to we must divide by that to cancel it. The is not a fudge factor — it is literally , the number spits out.
PICTURE. The straight tangent line curls into a parabola that now bends the same way as . This is the exact picture Newton's Method uses: fit a parabola, jump to where its curvature says the bottom is.

: the new piece is and has zero slope at , so it fixes the bend without disturbing the value or slope already locked in. Each new term only touches the derivative it is responsible for.
Step 4 — See the general pattern
WHAT. Push the same idea to the -th term . Differentiate it times. Each differentiation peels off one power and multiplies by the exponent: At all lower terms have already vanished and all higher terms still carry a factor . So
WHY. The is the accumulated stack of exponents you unavoidably pick up while differentiating down to a constant. Dividing by undoes exactly that pile-up, so the -th coefficient carries the pure -th derivative of and nothing else.
PICTURE. Watch the exponent countdown produce as a staircase of multiplications.

Plugging every back gives the full series We derived it — no memorising — just "demand all derivatives match."
Step 5 — Watch accuracy improve, order by order
WHAT. Stack the approximations from Steps 1–3 plus the order-3 curve on top of the true .
WHY. Seeing them together makes the central claim visible: each extra derivative you match buys accuracy over a wider window. The order-0 line is right at one point, order-1 over a small arc, order-2 over more, order-3 more still.
PICTURE. Four coloured curves fanning out from the same anchor dot, each hugging longer than the last.

Step 6 — The degenerate & failure cases (never hit a surprise)
Approximation must survive its own edge cases, so we walk them.
Case A — a term contributes nothing. If , then and that power simply drops out. For at every even derivative is (because ), so the series is all odd powers: . Nothing breaks; the slot is just empty.
Case B — the series has a finite radius. Not every series matches its function everywhere. For the pictures agree only for ; at the partial sums blow up while the true curve stays calm. The approximation is local.
Case C — the ultimate warning. (with ) has every derivative equal to at . So every and its Taylor series is the flat line — yet itself is not . Matching all derivatives at one point does not guarantee matching the function away from it.
PICTURE. Left: and its order-6 series diverging past . Right: sitting stubbornly above its zero Taylor series.

The one-picture summary

One frame, the whole story: a flat line (value) tilts into a tangent (slope), curls into a parabola (curvature), then into a cubic — each matching one more derivative of at the anchor, each courtesy of the coefficient whose factorial cancels the that differentiation dumps on .
Recall Feynman retelling of the whole walkthrough
I want to fake a curve using only what I know at one spot. First I get the height right — that's a flat line, correct for exactly one point. Then I match how tilted it is — my line rotates to kiss the curve, and now it's right over a little stretch. Then I match how it bends — my line becomes a bowl that hugs the curve over a bigger stretch. Every time I add a fact (the next derivative), I add one more term shaped like , and I have to divide by because differentiating that shape times keeps coughing up a factor of that I need to cancel. The neat trick: because each new term is flat-and-level at the anchor, it fixes its own derivative without messing up the ones I already fixed. The catch: this magic only works near the anchor — go too far and the fake curve wanders off, and some sneaky functions ignore the trick entirely.
Recall
Why does setting kill every term but in Step 1?
Where does the factorial come from?
Why does each new term not spoil earlier matches?
How does the remainder scale near ?
What does warn us about?
Connections
- Derivatives and gradients — every coefficient is a derivative at .
- Gradient Descent — the Step 2 (order-1) picture.
- Newton's Method — the Step 3 (order-2 parabola) picture.
- Hessian matrix — the curvature term in the multivariable version.
- Convex functions — positive curvature everywhere.
- Approximation error and Big-O — formalises the Step 5 remainder.
- Hinglish version