Joe Lertola · Mathematical Handbook Big idea 5 of 12

Curves as polynomials

From the handbook: Differential Calculus §270–272 and Series §399–401, pages 347–360 and 586–594

Know a curve's height, slope, bend and so on at one point, and you can rebuild it as a sum of simple powers.

Vygodsky's Mathematical Handbook
The true curve (white) and the polynomial built from point 0 (orange). Add powers with n.
What each term adds at the chosen x. The orange line is the running total; dashed is the true value.

The polynomial

At the chosen point

x
Polynomial gives
True value
Error

Rebuilding a curve from one point

Stand at one point on a smooth curve and measure everything you can there: its height, its slope (the derivative, idea 4), how fast the slope is changing (its bend, the second derivative), how fast the bend is changing, and so on. Brook Taylor showed in 1715 that these numbers, all taken at that one point, are enough to rebuild the curve around it as a sum of plain powers of x:

y ≈ c₀ + c₁x + c₂x² + c₃x³ + …

Each c is a fixed number, worked out from the measurements. A sum like this is called a polynomial. The first term gets the height right, the second adds the slope (together they make the tangent line), the third adds the bend, and each further term matches one more layer of detail. Here the point we start from is x = 0.

The recipe

The book's formula (§272), starting from the point 0, is

f(x) ≈ f(0) + f ′(0)·x + f ″(0)·x²/2! + f ‴(0)·x³/3! + …

Read it as “f of x is about: the height at zero, plus the slope at zero times x, plus the bend at zero times x squared over two factorial, and so on”. f(0) is the height at 0; f ′(0), f ″(0), f ‴(0) are the first, second and third derivatives there (one, two, three prime marks). The exclamation mark is factorial: 3! means 1 × 2 × 3 = 6, and 4! = 24. The factorials make each new term smaller, so the later terms only fine-tune.

Worked example: eˣ, and the number e again

The book's first example (§272) is y = ex. This curve is its own slope (idea 3), so its height, slope, bend and every further derivative at 0 are all exactly 1. The recipe becomes

ex ≈ 1 + x + x²/2 + x³/6 + x⁴/24 + …

Put in x = 1 and the left side is e itself. The right side, one term at a time: 1, then 2, then 2.5, then 2.6667, then 2.7083 (that is where the page opens, with powers up to 4), then 2.7167, 2.7181, 2.7183. Eight terms give e to four decimal places, far faster than the compounding of idea 3. That is the staircase of orange running totals in the right-hand picture.

How far does it reach?

A few terms hug the curve near the starting point and drift away further out. More terms hug a wider stretch. For eˣ, sin x and cos x, enough terms will reach any distance at all. For ln(1 + x) they never reach past x = 1: beyond it, adding terms makes things worse. The book warns about exactly this: the error does not always shrink as you add terms.

This is how a computer or calculator actually works out sin x: not from a triangle, but from the first several terms of x − x³/6 + x⁵/120 − …. And it is why the tangent line (the first two terms) and the circle of curvature (the bend, idea 7) are such good local stand-ins for a curve.

Try this

  1. Set n to 0, then 1, then 2. First a flat line at the right height, then the tangent line, then a parabola that bends the right way.
  2. On eˣ at x = 1, step n up and watch the running total close in on 2.71828.
  3. Choose sin x. Only odd powers appear, with alternating signs. Raise n and watch the polynomial wrap one more hump of the wave each time.
  4. Choose ln(1 + x) and drag the check point past x = 1. Now adding terms makes the error grow: the polynomial swings wildly.

In the book

Vygodsky, Mathematical Handbook: Higher Mathematics, chapters “Differential Calculus” and “Series”.

  • §270–271 Taylor's formula: where it came from, and the polynomial with its error term. p. 347–353
  • §272 Using it to compute values; the eˣ example and how many terms are needed. p. 353–360
  • §399–400 Taylor's series: letting the polynomial go on for ever. p. 586–589
  • §401 The series for eˣ, sin x, cos x, ln(1 + x) and others, and where each one works. p. 589–594