Diagram showing a curve f with tangent-line and cubic Taylor polynomial approximations hugging it near a point a

Taylor Polynomials: How Calculus Finds the Best Polynomial Approximation

Polynomials are, in a very real sense, the only functions a calculator can actually compute. Give a polynomial p(x) = a₀ + a₁x + ⋯ + aₙxⁿ any number x and it spits out an answer using nothing but addition and multiplication. Ask for sin x, log x, or eˣ, though, and there's no such shortcut — you're stuck approximating an integral or an infinite process and hoping the error stays small. So here's the question that opens Chapter 20 of Spivak's Calculus: if a complicated function is hard to compute directly, what's the best polynomial to stand in for it near a given point — and how do you know, precisely, how good that stand-in is?

Reading off a polynomial's DNA from its derivatives

Spivak's first move is almost sneaky: forget approximation for a moment and just study polynomials themselves. If p(x) = a₀ + a₁x + ⋯ + aₙxⁿ, differentiate it over and over and evaluate at 0. You get p(0) = a₀, p′(0) = a₁, p″(0) = 2a₂, and in general

p⁽ᵏ⁾(0) = k! · aₖ, so aₖ = p⁽ᵏ⁾(0) / k!

Every coefficient of a polynomial is secretly just a scaled-down derivative at a point. That's the whole trick. If you shift the base point to a and write p as a "polynomial in (x − a)," the identical argument gives aₖ = p⁽ᵏ⁾(a)/k!.

Now turn the idea around. Suppose f is any function — not a polynomial — whose derivatives up to order n exist at a point a. Nothing stops us from building a polynomial using exactly this recipe:

Pn,a(x) = f(a) + f′(a)(x − a) + f″(a)/2! · (x − a)² + ⋯ + f⁽ⁿ⁾(a)/n! · (x − a)ⁿ

Spivak calls this the Taylor polynomial of degree n for f at a. By construction, Pn,a and f agree in value and in their first n derivatives at a — and, as Spivak points out, it's the only polynomial of degree ≤ n with that property. For sin at 0, the derivatives cycle through 0, 1, 0, −1 forever, so the odd-degree Taylor polynomial is the alternating series x − x³/3! + x⁵/5! − ⋯; for eˣ at 0, every derivative at 0 is 1, giving the strikingly clean 1 + x + x²/2! + ⋯ + xⁿ/n!.

Matching derivatives isn't the same as matching well

Matching n derivatives at a single point sounds like a modest, local achievement. Spivak shows it's actually much stronger. Look at the degree-1 case, P₁,ₐ(x) = f(a) + f′(a)(x − a) — just the tangent line. A little algebra with the definition of the derivative gives

limx→a [f(x) − P₁,ₐ(x)] / (x − a) = 0

So the error doesn't just shrink as x → a — it shrinks faster than (x − a) itself. Spivak works out f(x) = eˣ at a = 0 concretely: dividing the error by x gives limit 0, exactly as promised, but dividing by x² gives limit ½ — not zero. The tangent-line approximation is "order 1" good, no better. Bring in the degree-2 Taylor polynomial 1 + x + x²/2, though, and the extra term compensates exactly enough that the error divided by x² now vanishes in the limit (two rounds of L'Hôpital confirm it). This generalizes completely as Theorem 1: for the degree-n Taylor polynomial,

limx→a [f(x) − Pn,a(x)] / (x − a)ⁿ = 0

Spivak calls two functions with this property "equal up to order n at a," and proves (via a clean induction using Q(x) = the polynomial's own partial sum and repeated L'Hôpital) that Pn,a is, in fact, the unique polynomial of degree ≤ n equal to f up to order n at a. That uniqueness is what makes Taylor polynomials trustworthy tools rather than one guess among many.

Pinning down the error: Taylor's Theorem

Knowing the error vanishes in a limit is reassuring but not actionable — you can't compute eˣ to ten decimal places from a limit statement. So Spivak defines the remainder term outright: Rn,a(x) = f(x) − Pn,a(x), the exact gap between the function and its polynomial stand-in. The derivation is a small tour de force of repeated integration by parts, starting from the Fundamental Theorem of Calculus (R₀,ₐ(x) = ∫ₐˣ f′(t) dt) and inducting upward to the general integral form of the remainder:

Rn,a(x) = ∫ₐˣ f⁽ⁿ⁺¹⁾(t)/n! · (x − t)ⁿ dt

From there, a Cauchy Mean Value Theorem argument (proved by induction via a supporting lemma) converts this integral into something you can actually bound: the Lagrange form of the remainder, the heart of Taylor's Theorem (Spivak's Theorem 4):

Rn,a(x) = f⁽ⁿ⁺¹⁾(t) / (n+1)! · (x − a)ⁿ⁺¹, for some t between a and x

This single formula is what makes Taylor polynomials genuinely useful rather than just elegant. For sin and cos, every derivative is bounded by 1 in absolute value, so the error after n terms is at most |x|ⁿ⁺¹/(n+1)! — a quantity you can make as tiny as you like by taking n large, for any fixed x. Spivak runs the same idea on arctan by long-dividing 1/(1+t²) into a polynomial plus a leftover fraction, integrating term by term, and bounding the leftover integral by |x|²ⁿ⁺³/(2n+3). The upshot: for |x| ≤ 1, you can compute arctan x to any accuracy you want just by adding up more polynomial terms — a genuinely surprising payoff from what started as a question about tangent lines.

Why the rigor earns its keep

It would be easy to wave your hands and say "a polynomial with matching derivatives should be a good approximation" and move on. But "should be good" isn't the same as "is good to within ε," and only the second claim lets you actually compute something — a sine, a logarithm, an exponential — with a guaranteed number of correct digits. That's the real achievement of this chapter: it converts an intuitive idea (higher-degree agreement means closer fit) into a formula, the Lagrange remainder, that hands you a concrete error bound in terms of quantities you can control. This is precise, constructive mathematics doing exactly what it's for — not decoration on top of an already-obvious fact, but the machinery that turns "close" into "as close as you need." If you want to work through the full induction and the arctan and exponential estimates in detail, Chapter 20 of Spivak's Calculus, 4th Edition is where it all lives, remainder terms and all.

Further reading: How to self-study Spivak's Calculus · Table of contents · Index · Calculus, 4th Edition · Answer Book


Which elementary function would you most want a guaranteed-accuracy polynomial estimate for — and how many terms do you think you'd need to trust it to five decimal places? Tell us in the comments.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.