Taylor Polynomials and Local Approximation
How well can a single polynomial mimic a complicated function, near one chosen point? This is the question that drives all of local approximation theory. A tangent line already answers it to first order. It matches the function's value and slope. But tangent lines are blind to curvature, to inflection, to the finer shape of a graph. Taylor polynomials generalize the tangent line by matching not just value and slope, but every derivative up to some order . This produces the unique polynomial of degree that hugs the function most tightly at that point. The subject matters because it converts transcendental, often intractable functions into concrete algebraic objects — polynomials. At the same time, it gives a precise, provable bound on the error committed. This is the mathematical backbone of numerical computation (how a calculator evaluates or ). It also underlies physics (small-oscillation and perturbative approximations). And it grounds the entire calculus of local behavior near critical points, inflection points, and singularities. The big picture is a hierarchy of increasingly refined local models. These are constant approximation (the function's value), linear approximation (the tangent line), quadratic approximation (adding curvature), and so on. Each step is characterized by a clean uniqueness and optimality statement. Among all degree- polynomials, the Taylor polynomial is the only one whose error vanishes faster than as . This is the qualitative, little-o companion to the quantitative Lagrange or integral remainder formulas. This article isolates and proves that qualitative optimality statement — the Peano remainder theorem. It shows exactly in what sense Taylor polynomials are the best local polynomial approximations, not merely a good one. We build the intuition with tangent-line and osculating-parabola pictures. We give a fully rigorous proof by induction using L'Hôpital's rule. We work two asymmetric examples. Finally, we show precisely which hypothesis (differentiability at the point, not just nearby) cannot be dropped.
- The degree- Taylor polynomial of at matches and its first derivatives at .
- Peano's theorem: as , provided exists.
- Uniqueness/optimality: is the only degree- polynomial achieving this little-o error rate.
- This is a purely local, qualitative statement — weaker than Lagrange/integral remainder, but requiring far less (no continuity of needed away from ).
- The proof is by induction on , applying L'Hôpital's rule at each step.
- Key idea: matching derivatives up to order at a single point forces the approximation error to vanish faster than any lower power of , and no other polynomial of that degree can do as well.
Where this lives today
Taylor polynomials with Peano's remainder underpin the classification of critical points via the second-derivative test and its higher-order generalizations, foreshadowing the study of Convexity and the Second Derivative, where the sign of (detected through the quadratic Taylor term) controls local convex/concave behavior. In numerical analysis, truncated Taylor expansions (paired with the quantitative Lagrange remainder, not Peano's qualitative one) drive root-finding methods such as Newton's method and the design of finite-difference schemes for solving differential equations. In physics, small-oscillation and perturbation theories — from the simple pendulum's approximation to perturbative expansions in quantum mechanics — are literal applications of low-order Taylor polynomials, with the little-o remainder justifying that higher-order "correction terms" are negligible in a rigorously specified asymptotic sense. In computer science and cryptography, Taylor-polynomial evaluation (via Horner's method) underlies software implementations of transcendental functions () in floating-point libraries, where controlling truncation error against machine precision is essential. In statistics, the delta method for approximating the variance of a nonlinear transformation of a random variable is a first-order Taylor expansion, and its refinements use the little-o remainder to justify asymptotic normality results. The concept of "little-o" itself, isolated cleanly in Peano's remainder theorem, is the prototype for the broader asymptotic notation () used throughout Asymptotic Analysis and algorithm complexity theory.
Ask the tutor: How does the Peano remainder theorem generalize to functions of several variables, and how is it used in the second-derivative test for local extrema?
Let be a real-valued function defined on an open interval containing , and suppose exists for (where ). The Taylor polynomial of degree for at is
The remainder is . By construction, for every ; this is immediate from term-by-term differentiation of a polynomial, since for and equals for .
Intuition
Think of building an approximation in layers. The th-order model is the constant function : it matches the value at but nothing else, and the error is only guaranteed to go to as — no rate is promised beyond continuity. The st-order model is the tangent line; by the very definition of the derivative, the error vanishes faster than itself, which is exactly the statement . The Taylor polynomial idea is to keep going: choose the coefficients of a degree- polynomial one at a time so that each new derivative also matches at , and each time you do so, the error picks up one more order of smallness. A parabola can bend the way bends (matching ), so it clings to the curve through a longer stretch near than any line can. A cubic can also match the rate of change of curvature (), clinging even longer, and so on. The picture below shows near , together with (the constant and the osculating parabola — note here since ), illustrating how each extra matched derivative buys a wider region of near-perfect agreement.
Central theorem
Let be an integer, let be an open interval containing , and let be a function such that:
- exist on all of (vacuous if ), and
- exists (as a derivative of at the single point ).
Let be the Taylor polynomial of degree at . Then
i.e. as . Moreover, this property characterizes among polynomials of degree : if is any polynomial of degree with
then .
If is a polynomial of degree , then equals its own degree- Taylor polynomial at ; i.e., writing , we have .
This is a direct computation. Write (possible since any polynomial of degree can be expanded in powers of by repeated division, or by the binomial theorem applied to each monomial , ). Differentiate times () term by term:
Evaluating at kills every term with (since there, in fact the factor is as makes for ), leaving only the term:
Hence , as claimed.
∎We prove the main theorem by induction on , using L'Hôpital's Rule at each inductive step, and then prove the uniqueness (characterization) statement separately using the Lemma.
Base case . Here , and the hypothesis is simply that is defined at — but to speak of a limit as we use that is defined on and (from the case of the hypothesis, reading " exists" as " is continuous at ", which we take as the intended meaning of the hypothesis, consistent with existing requiring one-sided existence of near and its derivative at ) is continuous at . Then
by continuity of at . This establishes the case .
Inductive step. Suppose the theorem holds for in place of , for every function satisfying the corresponding hypotheses (this is the induction hypothesis, applied below to ). Now let satisfy the hypotheses for : exist on , and exists. Since exists, in particular is differentiable at , hence continuous at ; and by hypothesis exists throughout . Also exist on automatically (these are lower-order derivatives implied by existence of on ; existence of the -th derivative at every point of presupposes existence of all lower derivatives on ). Both and vanish at : the numerator vanishes because directly from the definition of , and the denominator vanishes trivially. Both numerator and denominator, as functions of , are differentiable on (the numerator because and are, the denominator being a monomial), with
and
Now compute . Differentiating term by term (valid since it is a finite sum of monomials),
This is precisely the degree- Taylor polynomial of at ! Call it , the Taylor polynomial of of degree at . The function exists throughout by hypothesis, and exists by hypothesis. So satisfies exactly the hypotheses of the theorem for degree . By the induction hypothesis,
We now invoke L'Hôpital's rule for the original limit. We have shown:
- and as (the indeterminate form),
- both are differentiable near (except possibly at itself), with the derivative of the denominator, , nonzero for near , ,
- and the limit of the ratio of derivatives exists:
By L'Hôpital's rule, the original limit exists and equals the same value:
This completes the inductive step, and hence the proof of the main limit statement by induction on .
Uniqueness (characterization). Suppose is a polynomial of degree with . We already know from the part just proved that . Subtracting,
Let , a polynomial of degree (difference of two such). Write (expansion in powers of , as in the Lemma). We show every by strong induction on from upward. Since and , and is continuous (polynomials are continuous), we get ... more carefully: continuity of gives , and since while forces (by the product rule for limits, as the quotient stays bounded near ) as well; hence . Now suppose inductively for some . Then . Thus
If , the same continuity argument as above (the numerator polynomial in is continuous, and dividing by forces the numerator's value at , which is , to vanish) gives . If , the displayed limit is directly , forcing . By induction, , so , i.e. . This proves uniqueness.
∎Worked examples
Example 1 — an asymmetric transcendental function. Let and . We compute the degree- Taylor polynomial and confirm the little- remainder rate directly (i.e., without invoking the theorem, as a consistency check). First the derivatives at . Using the product rule repeatedly (or the fact that , though we proceed elementarily):
Differentiate again:
Differentiate once more:
Now evaluate at ():
So the degree- Taylor polynomial at is
Peano's theorem guarantees as , i.e. . We can sanity-check numerically at :
The remainder is , and , so — small, consistent with the ratio shrinking further as (one can check at the ratio is roughly an order of magnitude smaller, matching the prediction). This also matches the Lagrange remainder heuristic: the next term would be , contributing on the order of , consistent with .
Example 2 — a function that is smooth but whose Taylor polynomial is computed at a nonzero, non-nice point, exhibiting the general shift. Let and (not , to keep the arithmetic honest and avoid disguising the shift). We find the degree- Taylor polynomial at and verify the optimality/uniqueness statement concretely by comparing against a "close but wrong" competitor quadratic. Compute derivatives:
At : , , . So
By the Theorem, as . Now consider the competitor , which differs from only in the quadratic coefficient ( instead of ) — a small, easy-to-miss perturbation. We show fails to satisfy the little-o property, confirming the uniqueness clause of the theorem is not vacuous. Indeed,
since , so dividing by contributes the constant . As , the first term by the Theorem, so
So 's error is not — it is only , a strictly weaker statement, even though and agree in value and first derivative at (one checks and , but ). This confirms concretely that even an infinitesimally "close" wrong second derivative destroys the little-o rate — exactly what the uniqueness half of the theorem predicts.
The theorem's hypothesis is that exist on the interval and that exists at the point . One might wonder whether the weaker-looking hypothesis " exists on " is by itself enough to get an remainder for the naturally defined polynomial using one-sided or nearby derivative data — it is not: differentiability at itself is indispensable, not just nearby. Concretely, take , , and define
Then is differentiable everywhere (including at , where by the squeeze theorem), and for ,
This exists on all of , satisfying " exists on " — the hypothesis needed for the degree-1 theorem to apply to . But is not continuous at (indeed does not exist, since oscillates), so in particular is not differentiable at : does not exist. Thus fails the hypothesis needed to build a degree-2 Taylor polynomial at with the little-o guarantee — and indeed there is no reasonable way to assign a "curvature at " to this that would make a quadratic approximation beat the linear one in the o-rate sense, because has no derivative there at all. To see the consequence of trying to force the issue: the degree-1 (tangent line) polynomial is , and indeed , so the degree-1 statement holds fine (only 's absence is the problem). But if one tries to write down any candidate quadratic (matching , , for any real ) and test whether , we get
whose limit as does not exist for any choice of , since oscillates between and infinitely often near . So no quadratic polynomial achieves the remainder — the conclusion of the theorem genuinely fails, exactly because the hypothesis " exists" fails. This shows the point-hypothesis is not a technicality: dropping it can destroy the very existence of a best quadratic local model, not just its identity.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| exists, exist on | Peano remainder ; unique with this property | — |
| exists and is continuous on all of (stronger) | Peano holds, and Lagrange/integral remainder formulas also apply, giving quantitative bounds | Peano alone gives no explicit bound on how fast the error shrinks, only that it is eventually smaller than any fixed multiple of |
| exists on but fails to exist | No canonical degree- model with the property need exist | See the Weierstrass-type pathological function counterexample above |
| real-analytic at (Taylor series converges to nearby) | Peano holds for every , and remainders as for in the radius of convergence | Peano's theorem itself says nothing about convergence of the series; that is a separate, much stronger property |
| Uniqueness clause | Only guaranteed among polynomials of degree | A non-polynomial function can also satisfy without being — uniqueness is only among competitors that are polynomials |
The mathematician behind it
Origins · 1 minBrook Taylor and how this was discovered
An English mathematician and secretary of the Royal Society, Taylor published the general series expansion bearing his name in Methodus Incrementorum Directa et Inversa (1715), building on earlier special cases known to Gregory, Newton, and Leibniz. Taylor's original motivation was rooted in the calculus of finite differences: he derived the series as a continuous limit of interpolation formulas, rather than through a modern remainder-based derivation. The precise error analysis — including forms named after Lagrange and, much later, Peano — was developed over the subsequent century as the foundations of analysis were made rigorous.
Does Peano's theorem tell us the Taylor series of converges to ?
No. Peano's theorem is purely a statement about a fixed, finite : it says the degree- remainder shrinks faster than as , for that one . It says nothing about what happens as for a fixed . Convergence of the infinite Taylor series to on some interval is a separate and much stronger property called real-analyticity, which can fail even for infinitely differentiable functions — the classic example being (with ), whose Taylor series at is identically zero but which is not the zero function anywhere else. So "the Peano remainder for each " is compatible with "the Taylor series does not converge to at all" for .
If is a polynomial itself, what does Peano's theorem give us?
Nothing new beyond the trivial statement that a polynomial equals its own Taylor polynomial of matching or higher degree, which is exactly the content of the Lemma used inside the proof. If , then exactly, so the remainder , and the limit trivially. The theorem becomes interesting precisely when is not a polynomial (or has degree exceeding ), because then is generally a genuinely nonzero function, and the content of the theorem is the nontrivial claim that it still vanishes faster than .
Can the Peano remainder theorem be extended to functions of several variables?
Yes, and the extension is a cornerstone of multivariable calculus. If has all partial derivatives up to order near a point and all -th order partials exist at , one builds a multivariable Taylor polynomial (a sum of terms involving mixed partials and products of coordinate differences), and an analogous theorem shows the remainder is . The proof strategy is similar in spirit — reduce to the one-variable case along line segments through — though the bookkeeping of mixed partials is heavier. This multivariable version underlies, for instance, the second-derivative (Hessian) test for local extrema in several variables.
Why does the proof require induction rather than a single direct computation?
Because L'Hôpital's rule, the working tool at each stage, converts a limit about into a limit about — reducing the degree by exactly one each time, but at the cost of shifting attention to the derivative function . There is no direct one-step formula turning -th order derivative information into the estimate without passing through all the intermediate orders, because each application of L'Hôpital's rule needs its own indeterminate form and its own hypotheses verified at the next order down. Induction is the natural bookkeeping device for chaining such applications together rigorously.
Is Peano's remainder theorem still true if we only assume exists in a punctured neighborhood of , but not at itself?
No — the theorem can fail entirely, and worse, there may be no polynomial with the claimed property, as the article's counterexample demonstrates for . The existence of at the point is what supplies the coefficient used to build in the first place; without it, there is no natural degree- term to add, and even if one guesses a coefficient, the oscillatory or otherwise irregular behavior of near (but not at) can prevent any choice from achieving the rate.
How does this relate to the tangent line's optimality among all lines?
The case of Peano's theorem is precisely the statement that the tangent line is the unique line whose error vanishes faster than itself — which is just a repackaging of the definition of the derivative, . So Peano's theorem for general is best understood as the natural higher-order generalization of "the derivative is the slope of the best linear local approximation," with "best" now meaning "matching to order " rather than merely "matching to order ."
Does a smaller remainder for larger mean is always a numerically better approximation than at a fixed nearby ?
Usually, but not provably from Peano's theorem alone, and not universally. Peano's theorem is an asymptotic () statement; it guarantees that eventually, as gets sufficiently close to , outperforms any lower-degree polynomial, including , in the sense that its relative error decays faster. But at a fixed some distance from , it is entirely possible (especially for functions with small radius of convergence or with large higher derivatives) for to happen to be numerically closer to than is. Guaranteeing improvement at a specific fixed requires the quantitative Lagrange or integral remainder, not Peano's qualitative one.