Taylor's Theorem and Error Bounds

⚡ Key Takeaways

Taylor's Theorem states that a sufficiently differentiable function can be approximated near a point by a polynomial built from its derivatives, with an explicit, controllable error term (the remainder). The key result: f(x)=Pn(x)+Rn(x)f(x) = P_n(x) + R_n(x), where PnP_n is the degree-nn Taylor polynomial and RnR_n is bounded by the size of the (n+1)(n{+}1)-th derivative. It applies wherever local polynomial approximation, error estimation, or series expansion is needed — numerical analysis, physics, engineering. Named for Brook Taylor (1715), with the remainder forms due to Lagrange, Cauchy, and Schlömilch (18th–19th c.).

💡 The Core Insight

The value, slope, curvature, and all higher derivatives of ff at a single point aa encode enough information to reconstruct ff approximately throughout a neighborhood. Matching the first n+1n+1 derivatives at aa forces the approximating polynomial to "hug" the curve, and the leftover error is governed entirely by the next derivative — the one we did not match. The remainder is not a vague fudge factor; it is a genuine equality of the form Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1} for some unknown ξ\xi between aa and xx.

Formal Statement

DefinitionTaylor Polynomial

Let ff be nn times differentiable at aa. The Taylor polynomial of degree nn of ff centered at aa is

1
Pn(x)=∑k=0nf(k)(a)k!(x−a)k=f(a)+f′(a)(x−a)+⋯+f(n)(a)n!(x−a)n.\quad P_n(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x-a)^k = f(a) + f'(a)(x-a) + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n.

Derivation hint: it is the unique degree-≤n\le n polynomial PP satisfying P(k)(a)=f(k)(a)P^{(k)}(a)=f^{(k)}(a) for k=0,…,nk=0,\dots,n; differentiate the sum kk times and evaluate at x=ax=a — only the kk-th term survives. Here f(k)(a)f^{(k)}(a) is the kk-th derivative of ff at aa, k!k! is the factorial, and (x−a)k(x-a)^k measures displacement from the base point aa. When a=0a=0 this is called the Maclaurin polynomial. The remainder is defined by Rn(x)=f(x)−Pn(x)R_n(x) = f(x) - P_n(x).

TheoremTaylor's Theorem with Lagrange Remainder

Let f:[a,x]→Rf:[a,x]\to\mathbb{R} (or [x,a][x,a]) be such that f,f′,…,f(n)f, f', \dots, f^{(n)} are continuous on the closed interval and f(n+1)f^{(n+1)} exists on the open interval. Then there exists a point ξ\xi strictly between aa and xx such that

2
f(x)=∑k=0nf(k)(a)k!(x−a)k+f(n+1)(ξ)(n+1)!(x−a)n+1.\quad f(x) = \sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k + \frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}.

Derivation hint: apply the Cauchy Mean Value Theorem (or repeated Rolle's Theorem) to an auxiliary function chosen so its zeros pin down ξ\xi; see the proof below. The final term is the Lagrange form of the remainder, Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1R_n(x) = \dfrac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}.

DefinitionOther Forms of the Remainder

For f(n+1)f^{(n+1)} continuous, the integral (exact) form is

3
Rn(x)=1n!∫axf(n+1)(t) (x−t)n dt.\quad R_n(x) = \frac{1}{n!}\int_a^x f^{(n+1)}(t)\,(x-t)^n\,dt.

Derivation hint: start from f(x)−f(a)=∫axf′(t) dtf(x)-f(a)=\int_a^x f'(t)\,dt and integrate by parts repeatedly, each time differentiating the (x−t)(x-t) power and integrating the derivative factor. The Cauchy form (for some θ∈(0,1)\theta\in(0,1), with ξ=a+θ(x−a)\xi=a+\theta(x-a)) is

4
Rn(x)=f(n+1)(ξ)n!(x−ξ)n(x−a)=f(n+1)(a+θ(x−a))n!(1−θ)n(x−a)n+1.\quad R_n(x) = \frac{f^{(n+1)}(\xi)}{n!}(x-\xi)^n (x-a) = \frac{f^{(n+1)}(a+\theta(x-a))}{n!}(1-\theta)^n (x-a)^{n+1}.

Derivation hint: apply the ordinary Mean Value Theorem (not Cauchy's generalized one) to the integral form, or use the auxiliary function with a linear weight instead of a power weight.

DefinitionPeano Remainder — Qualitative Form

If only f(n)(a)f^{(n)}(a) exists (no (n+1)(n{+}1)-th derivative required), then

5
f(x)=Pn(x)+o((x−a)n)as x→a,\quad f(x) = P_n(x) + o\big((x-a)^n\big) \quad\text{as } x\to a,

Derivation hint: subtract PnP_n, apply L'Hôpital's rule nn times to Rn(x)/(x−a)nR_n(x)/(x-a)^n, using the matching of all derivatives up to order nn. meaning lim⁡x→aRn(x)/(x−a)n=0\lim_{x\to a} R_n(x)/(x-a)^n = 0. This is the weakest, purely local statement and underlies asymptotic analysis.

Why It Holds / Derivation

ProofLagrange Remainder via Auxiliary Function

Goal: Find ξ\xi between aa and xx with Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}. Fix xx and treat aa (renamed tt) as the variable. 1. Define an auxiliary function. For tt in the closed interval, set

g(t)=f(x)−∑k=0nf(k)(t)k!(x−t)k.g(t) = f(x) - \sum_{k=0}^{n}\frac{f^{(k)}(t)}{k!}(x-t)^k.

Then g(x)=0g(x) = 0 (only the k=0k=0 term survives, giving f(x)−f(x)f(x)-f(x)) and g(a)=Rn(x)g(a) = R_n(x). 2. Differentiate gg. Each term's derivative telescopes by the product rule:

g′(t)=−f(n+1)(t)n!(x−t)n.g'(t) = -\frac{f^{(n+1)}(t)}{n!}(x-t)^n.

All intermediate terms cancel pairwise — this is the engine of the proof. 3. Define a comparison function. Let h(t)=(x−tx−a)n+1h(t) = \left(\dfrac{x-t}{x-a}\right)^{n+1}, so h(a)=1h(a)=1, h(x)=0h(x)=0, and h′(t)=−(n+1)(x−t)n(x−a)n+1h'(t) = -\dfrac{(n+1)(x-t)^n}{(x-a)^{n+1}}. 4. Apply Cauchy's Mean Value Theorem to gg and hh on [a,x][a,x]: there is ξ\xi between aa and xx with

g(x)−g(a)h(x)−h(a)=g′(ξ)h′(ξ).\frac{g(x)-g(a)}{h(x)-h(a)} = \frac{g'(\xi)}{h'(\xi)}.

5. Substitute the endpoint values. The left side is 0−Rn(x)0−1=Rn(x)\dfrac{0 - R_n(x)}{0 - 1} = R_n(x). The right side simplifies:

g′(ξ)h′(ξ)=−f(n+1)(ξ)n!(x−ξ)n−(n+1)(x−ξ)n(x−a)n+1=f(n+1)(ξ)(n+1)!(x−a)n+1.\frac{g'(\xi)}{h'(\xi)} = \frac{-\frac{f^{(n+1)}(\xi)}{n!}(x-\xi)^n}{-\frac{(n+1)(x-\xi)^n}{(x-a)^{n+1}}} = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}.

6. Conclude. Equating both sides gives the Lagrange remainder. ■\blacksquare

∎
mathematician · Brook Taylor | 1685–1731

An English mathematician and member of the Royal Society, Taylor published the formula bearing his name in his 1715 treatise Methodus Incrementorum Directa et Inversa. He derived it as a limit of Newton's interpolation formula and used it to study vibrating strings and the motion of projectiles — though without any notion of convergence or remainder. The crucial error term came a generation later from Joseph-Louis Lagrange (1797), and the rigorous treatment with explicit remainders is largely the work of Cauchy in the 1820s. Taylor also founded the mathematical theory of linear perspective and contributed to the calculus of finite differences.

Building Intuition

🧠 Intuition

Think of building an approximation one derivative at a time. Start with a flat horizontal line at height f(a)f(a) — it gets the value right but ignores slope. Add a tilt f′(a)(x−a)f'(a)(x-a) — now the tangent line matches direction. Add curvature f′′(a)2(x−a)2\frac{f''(a)}{2}(x-a)^2 — now you bend the right way. Each new term corrects the highest unmatched derivative, and the error you have left is dominated by the first derivative you stopped matching, scaled by (x−a)n+1/(n+1)!(x-a)^{n+1}/(n+1)!. Two forces fight in the remainder: the factorial in the denominator crushes the error (it grows astronomically), while (x−a)n+1(x-a)^{n+1} explodes if ∣x−a∣>1|x-a|>1. Near the base point, the factorial wins decisively, which is why Taylor polynomials are local tools — superb close to aa, often useless far away.

Figure
Degree-1, -2, and -3 Taylor approximations of a curve at base point aa, with the error (remainder) shown as the vertical gap.
x y a x f P1 P2 R1(x) Higher degree → tighter fit; error R_n shrinks like (x−a)^(n+1)

Worked Examples

ExampleEstimating e0.1e^{0.1} with a Maclaurin Polynomial

Given: Approximate e0.1e^{0.1} using the degree-2 Maclaurin polynomial of f(x)=exf(x)=e^x, and bound the error.

Setup. Here a=0a=0, x=0.1x=0.1. Since f(k)(x)=exf^{(k)}(x)=e^x, all derivatives at 00 equal 11:

P2(x)=1+x+x22.P_2(x) = 1 + x + \frac{x^2}{2}.

Compute the approximation.

P2(0.1)=1+0.1+0.012=1.105.P_2(0.1) = 1 + 0.1 + \frac{0.01}{2} = 1.105.

Bound the error (Lagrange). With n=2n=2,

R2(0.1)=f(3)(ξ)3!(0.1)3=eξ6(0.001),0<ξ<0.1.R_2(0.1) = \frac{f^{(3)}(\xi)}{3!}(0.1)^3 = \frac{e^{\xi}}{6}(0.001), \quad 0<\xi<0.1.

Since eξ<e0.1<1.2e^\xi < e^{0.1} < 1.2,

∣R2(0.1)∣<1.26(0.001)=0.0002.|R_2(0.1)| < \frac{1.2}{6}(0.001) = 0.0002.

Answer.

e0.1≈1.105,error<2×10−4\boxed{e^{0.1} \approx 1.105, \quad \text{error} < 2\times 10^{-4}}

(The true value e0.1=1.10517…e^{0.1}=1.10517\ldots, so the actual error is ≈1.7×10−4\approx 1.7\times10^{-4} — consistent with the bound.) Units are dimensionless.

ExampleHow Many Terms for sin⁡(0.5)\sin(0.5) to 10−610^{-6}?

Given: Find the degree nn of the Maclaurin polynomial of sin⁡x\sin x needed to compute sin⁡(0.5)\sin(0.5) with error below 10−610^{-6}.

Setup. For sin⁡x\sin x, every derivative satisfies ∣f(n+1)(ξ)∣≤1|f^{(n+1)}(\xi)|\le 1. The Lagrange bound is

∣Rn(0.5)∣≤∣0.5∣ n+1(n+1)!.|R_n(0.5)| \le \frac{|0.5|^{\,n+1}}{(n+1)!}.

Test values.

n+1n+1(0.5)n+1/(n+1)!(0.5)^{n+1}/(n+1)!
40.0625/24≈2.6×10−30.0625/24 \approx 2.6\times10^{-3}
60.015625/720≈2.2×10−50.015625/720 \approx 2.2\times10^{-5}
80.00390625/40320≈9.7×10−80.00390625/40320 \approx 9.7\times10^{-8}

So n+1=8n+1=8, i.e. n=7n=7, gives error <10−6<10^{-6}. (Because sin⁡\sin has only odd-power terms, this means using terms up to x7x^7.)

Compute.

P7(0.5)=0.5−0.536+0.55120−0.575040≈0.479425539.P_7(0.5) = 0.5 - \frac{0.5^3}{6} + \frac{0.5^5}{120} - \frac{0.5^7}{5040} \approx 0.479425539.

Answer.

n=7 suffices;sin⁡(0.5)≈0.4794255,error<10−6\boxed{n=7 \text{ suffices}; \quad \sin(0.5)\approx 0.4794255, \quad \text{error} < 10^{-6}}

(True value sin⁡0.5=0.4794255386…\sin 0.5 = 0.4794255386\ldots.)

Common Misconceptions

⚠️ Common mistake

"Infinitely differentiable" does NOT imply "equals its Taylor series." Many students assume that if all derivatives exist, the Taylor series converges to the function. Convergence of the series and the series summing to ff are separate questions — the remainder Rn(x)R_n(x) must tend to 00 as n→∞n\to\infty, and this can fail even when the series converges to a different value. Also beware: the point ξ\xi in the Lagrange remainder is unknown — you do not get to choose it. You can only bound ∣f(n+1)∣|f^{(n+1)}| over the whole interval to get a usable error estimate.

CounterexampleA Smooth Function Whose Taylor Series Is Useless

Consider

f(x)={e−1/x2x≠00x=0.f(x) = \begin{cases} e^{-1/x^2} & x\neq 0 \\ 0 & x=0.\end{cases}

This function is C∞C^\infty (infinitely differentiable) everywhere, and one can show by induction that f(k)(0)=0f^{(k)}(0) = 0 for every kk. Therefore its Maclaurin series is identically 00:

∑k=0∞f(k)(0)k!xk=0+0⋅x+0⋅x2+⋯=0.\sum_{k=0}^\infty \frac{f^{(k)}(0)}{k!}x^k = 0 + 0\cdot x + 0\cdot x^2 + \cdots = 0.

The series converges everywhere — but to the zero function, not to ff, which is positive for all x≠0x\neq 0. The remainder Rn(x)=f(x)R_n(x) = f(x) never shrinks. This shows smoothness is not enough; such non-analytic functions are central to the study of Analytic Functions.

Connections

connection

Taylor's Theorem sits at the junction of several core ideas. It generalizes the Mean Value Theorem — indeed the case n=0n=0 of equation [2] is the Mean Value Theorem f(x)=f(a)+f′(ξ)(x−a)f(x)=f(a)+f'(\xi)(x-a). Letting n→∞n\to\infty leads to Taylor Series and the theory of Power Series, where the radius of convergence governs validity. The integral remainder [3] is a direct consequence of Integration by Parts and the Fundamental Theorem of Calculus. In several variables it generalizes to expansions involving the Hessian Matrix and higher tensors, foundational to Optimization. The Peano form [5] is the bridge to Asymptotic Expansions and the theory of Big-O Notation used throughout numerical analysis.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1671 — James Gregory discovers special cases of Taylor series (for arctan⁡\arctan, tan⁡\tan, sec⁡\sec) decades before Taylor, unpublished in full.
- 1715 — Brook Taylor publishes the general formula in Methodus Incrementorum, derived via finite differences, with no remainder or convergence theory.
- 1742 — Colin Maclaurin popularizes the special case a=0a=0 in his Treatise of Fluxions; the name "Maclaurin series" sticks despite his crediting Taylor.
- 1772 — Lagrange begins promoting Taylor expansions as the foundation of calculus, hoping to eliminate limits and infinitesimals.
- 1797 — Lagrange introduces the explicit remainder term in Théorie des fonctions analytiques, giving the Lagrange form.
- 1821 — Augustin-Louis Cauchy, in Cours d'analyse and later works, supplies rigorous definitions of limits, derives the Cauchy form of the remainder, and exposes that the series need not equal the function.
- 1823 — Cauchy publishes the e−1/x2e^{-1/x^2} counterexample, demolishing Lagrange's program of founding calculus on Taylor series alone.
- 1880s — Oskar Schlömilch & Roché give the general (parametrized) remainder form unifying the Lagrange and Cauchy versions.
- 20th c. — Giuseppe Peano formalizes the qualitative o((x−a)n)o((x-a)^n) remainder, central to modern asymptotic analysis.

Subtleties & Limits

open-problem

The boundary between "has a Taylor series" and "equals its Taylor series" defines the class of real-analytic functions, and characterizing this class intrinsically is subtle. A deep result (Pringsheim, Borel) shows that for any prescribed sequence of real numbers {ak}\{a_k\} — no matter how wildly it grows — there exists a C∞C^\infty function with f(k)(0)=akf^{(k)}(0)=a_k (Borel's theorem). Thus the Taylor coefficients place essentially no constraint on a smooth function. Quantifying how a smooth-but-non-analytic function's remainder behaves leads to the theory of Gevrey classes and quasi-analytic functions (Denjoy–Carleman theorem), which gives sharp conditions on the growth of ∣f(n)∣|f^{(n)}| guaranteeing that a function is determined by its derivatives at a point. These questions remain active in PDE regularity theory and the study of divergent asymptotic series, where optimal truncation ("superasymptotics") squeezes useful accuracy out of series that never converge.

See Also

Mean Value Theorem · Taylor Series · Power Series · Analytic Functions · Numerical Analysis · Asymptotic Expansions · Big-O Notation · L'Hôpital's Rule · Multivariable Taylor Theorem