Taylor's Theorem with Remainder

How well can a polynomial imitate a complicated function near a single point? This is the question that Taylor's theorem answers with complete precision. Given a function that is differentiable enough times at a point, we build the polynomial that matches all its derivatives there. Taylor's theorem tells us exactly how large the error of this approximation is. This error is expressed as an explicit remainder term. This is one of the most consequential results in analysis. It underlies numerical approximation schemes, the definition of analytic functions, error estimates in physics and engineering, and the entire theory of power series. The idea traces back to an observation. A differentiable function is well-approximated by its tangent line. This is the content of the Mean Value Theorem in disguise. Taylor's theorem generalizes this linear approximation to approximation by polynomials of arbitrary degree. It replaces the crude statement "the error is small" with a precise formula. This formula pins down the error's exact size. It does so in terms of a higher derivative evaluated at some intermediate point. The proof strategy is elegant and self-contained. Rather than manipulating infinite series, we construct a single auxiliary function. We apply the The Cauchy Mean Value Theorem repeatedly. Or, in the cleanest packaging, just once to a cleverly chosen pair of functions. This produces the classical Lagrange form of the remainder. The logical backbone is the same machine that proves the ordinary Mean Value Theorem. It is simply iterated up the ladder of derivatives. This article states Taylor's theorem with the Lagrange remainder in full rigor. It proves the theorem completely using the Cauchy Mean Value Theorem. It works through two genuinely asymmetric examples. One approximates exe^{x} off-center. The other bounds the error of a sine approximation. Then it discusses exactly which hypothesis can fail and what goes wrong. It sets the stage for the Cauchy form of the remainder. Finally, it prepares the passage from Taylor polynomials to full Taylor series.

Key takeaways
  • Taylor's theorem approximates a function near a point aa by a polynomial built from its derivatives at aa.
  • The error of this approximation (the remainder) has an exact formula, not just an order-of-magnitude bound.
  • The Lagrange form Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1} pins the error to a single unknown point cc between aa and xx.
  • The proof needs only the The Cauchy Mean Value Theorem applied to a well-chosen auxiliary function — no series machinery required.
  • Requires ff to have n+1n+1 derivatives, with the nn-th derivative continuous up to the endpoints and differentiable in between.
  • Key idea: compare ff against its Taylor polynomial using an auxiliary function whose vanishing derivatives are forced by the Cauchy Mean Value Theorem, one order at a time.

Where this lives today

Taylor's theorem with the Lagrange remainder is the rigorous backbone of numerical analysis: every error bound for polynomial interpolation, finite-difference approximation of derivatives, and Runge–Kutta methods for ODEs ultimately traces back to a Taylor expansion with explicit remainder control. In physics, small-oscillation approximations (e.g. approximating sin⁡θ≈θ\sin\theta \approx \theta in the pendulum equation) are justified and error-bounded via Taylor's theorem, and perturbation theory in mechanics and quantum theory is built on truncated Taylor expansions with remainder estimates. In computer science and floating-point computing, Taylor's theorem certifies the accuracy of hardware and software implementations of transcendental functions like exp⁡\exp, sin⁡\sin, and log⁡\log using polynomial (or rational) approximations, since a chip's math library must guarantee a rigorous error bound, not just empirical closeness. In statistics, the delta method for approximating the distribution of a nonlinear function of an estimator is a first-order Taylor expansion, with the remainder controlling the accuracy of the resulting asymptotic normal approximation. In cryptography and root-finding algorithms, Newton's method for solving equations is derived from and analyzed via the linear (degree-1) Taylor approximation together with its quadratic remainder term, which governs the celebrated quadratic convergence rate. Finally, in pure analysis, Taylor's theorem is the precise stepping stone from finite polynomial approximation to the theory of Power Series and real-analytic functions, and it directly foreshadows the sharper Cauchy form of the remainder, useful when the Lagrange form's bound is too weak (e.g. near the edge of convergence of a series).

Ask the tutor: How does the proof change if I want the Cauchy form of the remainder instead of the Lagrange form?

DefinitionTaylor polynomial and Taylor's Theorem with Lagrange remainder

Let ff be a real-valued function defined on an interval II, let a∈Ia \in I, and suppose ff has derivatives f′,f′′,…,f(n)f', f'', \dots, f^{(n)} at aa (in particular on a neighborhood of aa up through order n−1n-1, existing at aa for order nn). The nn-th Taylor polynomial of ff centered at aa is

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

The remainder is defined by Rn(x):=f(x)−Pn(x)R_n(x) := f(x) - P_n(x), so that f(x)=Pn(x)+Rn(x)f(x) = P_n(x) + R_n(x) for every x∈Ix \in I.

Taylor's Theorem (the object this article proves) asserts that if in addition f(n)f^{(n)} is continuous on the closed interval with endpoints aa and xx, and f(n+1)f^{(n+1)} exists on the open interval between aa and xx, then there exists a point cc strictly between aa and xx such that

Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1.R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}.

This is the Lagrange form of the remainder.

Intuition

The zeroth-order case (n=0n=0) of Taylor's theorem is just the Mean Value Theorem in disguise: it says f(x)=f(a)+f′(c)(x−a)f(x) = f(a) + f'(c)(x-a) for some cc between aa and xx, i.e. the remainder after approximating ff by the constant f(a)f(a) is exactly f′(c)(x−a)f'(c)(x-a). The first-order case (n=1n=1) says that if we approximate ff by its tangent line P1(x)=f(a)+f′(a)(x−a)P_1(x) = f(a) + f'(a)(x-a), the error is 12f′′(c)(x−a)2\tfrac{1}{2}f''(c)(x-a)^2 — quadratic in (x−a)(x-a), controlled by the second derivative somewhere in between. Taylor's theorem is the statement that this pattern continues indefinitely: matching n+1n+1 pieces of local data (the value and nn derivatives) buys you an error that is one order smaller than the last matched term, with an exact constant of proportionality involving f(n+1)f^{(n+1)} at some unknown intermediate point. The key structural fact making the proof work is that PnP_n is precisely the unique degree-nn polynomial whose value and first nn derivatives agree with those of ff at aa: Pn(k)(a)=f(k)(a)P_n^{(k)}(a) = f^{(k)}(a) for k=0,1,…,nk = 0, 1, \dots, n, and Pn(n+1)≡0P_n^{(n+1)} \equiv 0. So the auxiliary function g(t)=f(t)−Pn(t)g(t) = f(t) - P_n(t) vanishes, along with its first nn derivatives, at t=at = a. Comparing gg against the simple monomial (t−a)n+1(t-a)^{n+1} — which has exactly the same vanishing pattern at aa — via repeated Cauchy Mean Value comparisons peels off one derivative at a time until only f(n+1)f^{(n+1)} remains, evaluated at a single mystery point cc.

Figure
Taylor polynomials of increasing degree hugging ff near aa
x y a f(x) P1(x) P2(x) (a, f(a))

Theorem and proof

TheoremTaylor's Theorem with Lagrange Remainder

Let a,xa, x be real numbers with a≠xa \neq x, and let II be the closed interval with endpoints aa and xx. Let n≥0n \geq 0 be an integer. Suppose: 1. f,f′,f′′,…,f(n)f, f', f'', \dots, f^{(n)} all exist and are continuous on II; 2. f(n+1)(t)f^{(n+1)}(t) exists for every tt strictly between aa and xx. Define Pn(t)=∑k=0nf(k)(a)k!(t−a)kP_n(t) = \sum_{k=0}^n \frac{f^{(k)}(a)}{k!}(t-a)^k. Then there exists cc strictly between aa and xx such that

f(x)=Pn(x)+f(n+1)(c)(n+1)!(x−a)n+1.f(x) = P_n(x) + \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}.
Proof

We use the Cauchy Mean Value Theorem, applied repeatedly to a family of auxiliary functions, together with the fact that a function with zero derivative on an interval is constant. Fix a≠xa \neq x as in the hypotheses; without loss of generality suppose a<xa < x (the case x<ax < a is identical with all inequalities reversed).

Step 1: Setup. Define two functions on I=[a,x]I = [a,x]:

F(t):=f(x)−Pn(t)=f(x)−∑k=0nf(k)(t)k!(x−t)k,G(t):=(x−t)n+1.F(t) := f(x) - P_n(t) = f(x) - \sum_{k=0}^n \frac{f^{(k)}(t)}{k!}(x-t)^k, \qquad G(t) := (x - t)^{n+1}.

Here Pn(t)P_n(t) is not the fixed Taylor polynomial from the theorem statement; it is a function of the variable tt, reflecting the derivatives of ff at tt, expanded around tt evaluated at the fixed point xx. (When t=at = a this equals the actual Taylor polynomial value: Pn(a)=∑kf(k)(a)k!(x−a)kP_n(a) = \sum_k \frac{f^{(k)}(a)}{k!}(x-a)^k, matching the theorem's Pn(x)P_n(x).) This is the standard device that converts the theorem into a one-shot application of the Cauchy Mean Value Theorem.

Step 2: Differentiate FF. We claim FF is differentiable on II (using hypothesis 1 for the closed interval and hypothesis 2 for the open interval), with

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

To see this, write out Pn(t)P_n(t) as a finite sum and differentiate term by term with respect to tt, treating xx as constant. For each kk with 1≤k≤n1 \le k \le n, the term f(k)(t)k!(x−t)k\frac{f^{(k)}(t)}{k!}(x-t)^k has derivative, by the product rule,

ddt[f(k)(t)k!(x−t)k]=f(k+1)(t)k!(x−t)k−f(k)(t)(k−1)!(x−t)k−1.\frac{d}{dt}\left[\frac{f^{(k)}(t)}{k!}(x-t)^k\right] = \frac{f^{(k+1)}(t)}{k!}(x-t)^k - \frac{f^{(k)}(t)}{(k-1)!}(x-t)^{k-1}.

Summing this over k=1,…,nk = 1, \dots, n produces a telescoping sum: the term −f(k)(t)(k−1)!(x−t)k−1-\frac{f^{(k)}(t)}{(k-1)!}(x-t)^{k-1} from index kk exactly cancels the term f(k)(t)(k−1)!(x−t)k−1\frac{f^{(k)}(t)}{(k-1)!}(x-t)^{k-1} arising from index k−1k-1 in the sum (relabeling), for every kk from 11 to nn, leaving only the top term from k=nk=n and the bottom term from k=1k=1's companion at k=0k=0. Concretely: the k=0k=0 term of Pn(t)P_n(t) is f(t)f(t), with derivative f′(t)f'(t). Adding this to the sum for k=1,…,nk=1,\dots,n, every intermediate term cancels in pairs, and we are left with

ddtPn(t)=f(n+1)(t)n!(x−t)n.\frac{d}{dt}P_n(t) = \frac{f^{(n+1)}(t)}{n!}(x-t)^n.

(This is the standard cancellation computation for Taylor polynomials; it uses only the product rule, hence only differentiability of f(k)f^{(k)} for k≤nk \le n on the interior, and continuity up to the endpoint aa where a one-sided derivative suffices, both guaranteed by hypotheses 1–2.) Since F(t)=f(x)−Pn(t)F(t) = f(x) - P_n(t) and xx is a constant, F′(t)=−ddtPn(t)=−f(n+1)(t)n!(x−t)nF'(t) = -\frac{d}{dt}P_n(t) = -\frac{f^{(n+1)}(t)}{n!}(x-t)^n, as claimed. This derivative exists for t∈(a,x)t \in (a,x) by hypothesis 2, and FF itself is continuous on [a,x][a,x] because each f(k)f^{(k)}, k≤nk \le n, is continuous there by hypothesis 1.

Step 3: Differentiate GG. The function G(t)=(x−t)n+1G(t) = (x-t)^{n+1} is a polynomial in tt, hence differentiable everywhere, with

G′(t)=−(n+1)(x−t)n.G'(t) = -(n+1)(x-t)^n.

In particular G′(t)≠0G'(t) \neq 0 for every t∈(a,x)t \in (a, x), since x−t>0x - t > 0 there.

Step 4: Apply the Cauchy Mean Value Theorem. Both FF and GG are continuous on [a,x][a,x] and differentiable on (a,x)(a,x) (Steps 2–3), and G′(t)≠0G'(t) \neq 0 on (a,x)(a,x) (Step 3). By The Cauchy Mean Value Theorem, there exists c∈(a,x)c \in (a,x) such that

F(x)−F(a)G(x)−G(a)=F′(c)G′(c).\frac{F(x) - F(a)}{G(x) - G(a)} = \frac{F'(c)}{G'(c)}.

Step 5: Evaluate both sides. First, G(x)=(x−x)n+1=0G(x) = (x-x)^{n+1} = 0 and G(a)=(x−a)n+1G(a) = (x-a)^{n+1}, so G(x)−G(a)=−(x−a)n+1G(x) - G(a) = -(x-a)^{n+1}. Second, F(x)=f(x)−Pn(x)F(x) = f(x) - P_n(x) where Pn(x)P_n(x) (the function from Step 1 evaluated at t=xt=x) collapses: every term with k≥1k \geq 1 has a factor (x−x)k=0(x-x)^k = 0, leaving only the k=0k=0 term f(x)f(x). So F(x)=f(x)−f(x)=0F(x) = f(x) - f(x) = 0. Third, F(a)=f(x)−Pn(a)F(a) = f(x) - P_n(a), and Pn(a)=∑k=0nf(k)(a)k!(x−a)kP_n(a) = \sum_{k=0}^n \frac{f^{(k)}(a)}{k!}(x-a)^k is exactly the Taylor polynomial value Pn(x)P_n(x) from the theorem statement (a fixed number). So F(a)=f(x)−Pn(x)=Rn(x)F(a) = f(x) - P_n(x) = R_n(x), the remainder we want to compute. Therefore

F(x)−F(a)G(x)−G(a)=0−Rn(x)−(x−a)n+1=Rn(x)(x−a)n+1.\frac{F(x)-F(a)}{G(x)-G(a)} = \frac{0 - R_n(x)}{-(x-a)^{n+1}} = \frac{R_n(x)}{(x-a)^{n+1}}.

Fourth, from Step 2 and Step 3,

F′(c)G′(c)=−f(n+1)(c)n!(x−c)n−(n+1)(x−c)n=f(n+1)(c)n! (n+1)=f(n+1)(c)(n+1)!.\frac{F'(c)}{G'(c)} = \frac{-\dfrac{f^{(n+1)}(c)}{n!}(x-c)^n}{-(n+1)(x-c)^n} = \frac{f^{(n+1)}(c)}{n!\,(n+1)} = \frac{f^{(n+1)}(c)}{(n+1)!}.

(Division is valid since (x−c)n≠0(x-c)^n \neq 0 because c∈(a,x)c \in (a,x) so c≠xc \ne x.)

Step 6: Conclude. Equating the two evaluations from Step 4,

Rn(x)(x−a)n+1=f(n+1)(c)(n+1)!,\frac{R_n(x)}{(x-a)^{n+1}} = \frac{f^{(n+1)}(c)}{(n+1)!},

which rearranges to

Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1.R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}.

This holds for some cc strictly between aa and xx, which is exactly the assertion of the theorem. ■\blacksquare

∎
CorollaryThe case n=0n=0 recovers the Mean Value Theorem

Taking n=0n = 0: P0(x)=f(a)P_0(x) = f(a), and the theorem gives cc between aa and xx with f(x)−f(a)=f′(c)(x−a)f(x) - f(a) = f'(c)(x-a), which is precisely the Mean Value Theorem. This confirms the theorem is a genuine generalization and gives a consistency check on the formula's normalization (no stray factorial or sign).

CorollaryPeano-type qualitative remainder

Under the stronger hypothesis that f(n+1)f^{(n+1)} is additionally continuous at aa, the Lagrange form implies

lim⁡x→aRn(x)(x−a)n=0,\lim_{x \to a} \frac{R_n(x)}{(x-a)^n} = 0,

i.e. Rn(x)=o((x−a)n)R_n(x) = o\big((x-a)^n\big) as x→ax \to a. Indeed, Rn(x)(x−a)n=f(n+1)(c)(n+1)!(x−a)\frac{R_n(x)}{(x-a)^n} = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a) where cc lies between aa and xx, hence c→ac \to a as x→ax \to a; continuity of f(n+1)f^{(n+1)} at aa makes f(n+1)(c)f^{(n+1)}(c) bounded near aa, and the extra factor (x−a)→0(x-a) \to 0 forces the whole expression to 00.

Worked examples

Example 1 — Approximating exe^x off-center, with an explicit error bound. Let f(x)=exf(x) = e^x, and take the base point a=1a = 1 (not 00, to keep the example genuinely asymmetric). We compute the degree-33 Taylor polynomial P3P_3 centered at a=1a=1 and bound the error at x=2x = 2. Since f(k)(x)=exf^{(k)}(x) = e^x for every kk, we have f(k)(1)=ef^{(k)}(1) = e for all k≥0k \geq 0. Thus

P3(x)=e+e(x−1)+e2!(x−1)2+e3!(x−1)3=e[1+(x−1)+(x−1)22+(x−1)36].P_3(x) = e + e(x-1) + \frac{e}{2!}(x-1)^2 + \frac{e}{3!}(x-1)^3 = e\left[1 + (x-1) + \frac{(x-1)^2}{2} + \frac{(x-1)^3}{6}\right].

At x=2x = 2: (x−1)=1(x-1) = 1, so

P3(2)=e[1+1+12+16]=e⋅6+6+3+16=e⋅166=8e3.P_3(2) = e\left[1 + 1 + \tfrac12 + \tfrac16\right] = e \cdot \frac{6+6+3+1}{6} = e\cdot\frac{16}{6} = \frac{8e}{3}.

Numerically, e≈2.718281828e \approx 2.718281828, so P3(2)≈2.718281828×2.66‾≈7.24875P_3(2) \approx 2.718281828 \times 2.6\overline{6} \approx 7.24875. The true value is f(2)=e2≈7.389056f(2) = e^2 \approx 7.389056. By Taylor's theorem (all hypotheses hold trivially: exe^x is infinitely differentiable and continuous everywhere), there exists c∈(1,2)c \in (1,2) with

R3(2)=f(2)−P3(2)=f(4)(c)4!(2−1)4=ec24.R_3(2) = f(2) - P_3(2) = \frac{f^{(4)}(c)}{4!}(2-1)^4 = \frac{e^{c}}{24}.

Since c∈(1,2)c \in (1,2), we know e1<ec<e2e^1 < e^c < e^2, so

e24<R3(2)<e224.\frac{e}{24} < R_3(2) < \frac{e^2}{24}.

Numerically e24≈0.11326\frac{e}{24} \approx 0.11326 and e224≈0.30788\frac{e^2}{24} \approx 0.30788. Checking directly: R3(2)=e2−8e3≈7.389056−7.248752=0.140304R_3(2) = e^2 - \tfrac{8e}{3} \approx 7.389056 - 7.248752 = 0.140304, which indeed lies in (0.11326, 0.30788)(0.11326,\ 0.30788) — consistent with the theorem, and in fact we can solve ec=24×0.140304=3.3673e^c = 24 \times 0.140304 = 3.3673 to get c=ln⁡(3.3673)≈1.2144c = \ln(3.3673) \approx 1.2144, safely inside (1,2)(1,2) as required. This example illustrates the practical power of the Lagrange form: even without knowing cc exactly, bounding f(n+1)f^{(n+1)} over the whole interval gives a rigorous two-sided error bound for the polynomial approximation.

Example 2 — Bounding the error of a sine approximation at an asymmetric point. Let f(x)=sin⁡xf(x) = \sin x, centered at a=0a = 0, and estimate sin⁡(0.3)\sin(0.3) using the degree-44 Taylor polynomial, bounding the error rigorously. The derivatives cycle: f(x)=sin⁡xf(x) = \sin x, f′(x)=cos⁡xf'(x) = \cos x, f′′(x)=−sin⁡xf''(x) = -\sin x, f′′′(x)=−cos⁡xf'''(x) = -\cos x, f(4)(x)=sin⁡xf^{(4)}(x) = \sin x, f(5)(x)=cos⁡xf^{(5)}(x) = \cos x. At a=0a=0: f(0)=0f(0)=0, f′(0)=1f'(0)=1, f′′(0)=0f''(0)=0, f′′′(0)=−1f'''(0)=-1, f(4)(0)=0f^{(4)}(0) = 0. So the degree-44 Taylor polynomial is

P4(x)=0+1⋅x+0−16x3+0=x−x36.P_4(x) = 0 + 1\cdot x + 0 - \frac{1}{6}x^3 + 0 = x - \frac{x^3}{6}.

(Note P4=P3P_4 = P_3 here since the degree-4 coefficient vanishes — this is normal and does not affect the remainder analysis, since we use n=4n=4 to access f(5)f^{(5)} in the Lagrange remainder, giving a sharper bound than stopping at n=3n=3.) At x=0.3x = 0.3:

P4(0.3)=0.3−(0.3)36=0.3−0.0276=0.3−0.0045=0.2955.P_4(0.3) = 0.3 - \frac{(0.3)^3}{6} = 0.3 - \frac{0.027}{6} = 0.3 - 0.0045 = 0.2955.

By Taylor's theorem with n=4n=4 (hypotheses hold: sin⁡\sin is entire and all derivatives are continuous everywhere), there is cc strictly between 00 and 0.30.3 with

R4(0.3)=f(5)(c)5!(0.3)5=cos⁡c120(0.3)5.R_4(0.3) = \frac{f^{(5)}(c)}{5!}(0.3)^5 = \frac{\cos c}{120}(0.3)^5.

Since c∈(0,0.3)c \in (0, 0.3), we have cos⁡(0.3)<cos⁡c<cos⁡(0)=1\cos(0.3) < \cos c < \cos(0) = 1 (as cos⁡\cos is decreasing on [0,π/2][0,\pi/2]), and cos⁡(0.3)≈0.955336\cos(0.3) \approx 0.955336. So

0.955336120(0.00243)<R4(0.3)<1120(0.00243).\frac{0.955336}{120}(0.00243) < R_4(0.3) < \frac{1}{120}(0.00243).

Computing: (0.3)5=0.00243(0.3)^5 = 0.00243. So the upper bound is 0.00243120≈2.025×10−5\frac{0.00243}{120} \approx 2.025 \times 10^{-5}, and the lower bound is ≈0.955336×2.025×10−5≈1.935×10−5\approx 0.955336 \times 2.025\times 10^{-5} \approx 1.935\times 10^{-5}. Hence sin⁡(0.3)∈(0.2955+1.935×10−5, 0.2955+2.025×10−5)\sin(0.3) \in (0.2955 + 1.935\times 10^{-5},\ 0.2955 + 2.025\times 10^{-5}), i.e. sin⁡(0.3)∈(0.295519, 0.295520)\sin(0.3) \in (0.295519,\ 0.295520) approximately. Checking against the true value sin⁡(0.3)=0.29552020…\sin(0.3) = 0.29552020\ldots, the bound is correct and remarkably tight — illustrating that Taylor's theorem, applied even with a modest degree, gives error control accurate to five decimal places here.

CounterexampleDropping continuity of f(n)f^{(n)} on the closed interval

Taylor's theorem requires f(n)f^{(n)} to be continuous on the closed interval [a,x][a,x] (hypothesis 1), not merely that f(n+1)f^{(n+1)} exists on the open interval. If we only assume f(n+1)f^{(n+1)} exists on (a,x)(a,x) but allow f(n)f^{(n)} to be discontinuous at an endpoint, the conclusion can fail. Take n=0n = 0, a=0a = 0, and define

f(x)={xx≠01x=0.f(x) = \begin{cases} x & x \neq 0 \\ 1 & x = 0. \end{cases}

Here f(0)=ff^{(0)} = f itself must be continuous on [a,x][a,x] for the n=0n=0 case (this is the base hypothesis, since "f(n)f^{(n)} continuous" for n=0n=0 just means ff continuous), and indeed ff is discontinuous at 00. Consider x=1x = 1. The theorem, if it applied, would assert the existence of c∈(0,1)c \in (0,1) with

f(1)−f(0)=f′(c)(1−0),i.e. 1−1=f′(c),f(1) - f(0) = f'(c)(1-0), \quad\text{i.e. } 1 - 1 = f'(c),

so f′(c)=0f'(c) = 0 for some c∈(0,1)c \in (0,1). But for t≠0t \neq 0, f(t)=tf(t) = t, so f′(t)=1f'(t) = 1 everywhere on (0,1)(0,1) — there is no point where f′(c)=0f'(c) = 0. The conclusion fails precisely because continuity of f=f(0)f = f^{(0)} at the endpoint x=0x=0 was violated, breaking the very first step of the proof (Step 2, where FF's continuity on the closed interval is needed to invoke the Cauchy Mean Value Theorem). This shows the closed-interval continuity hypothesis is not a technicality: without it, FF in the proof is not continuous on [a,x][a,x], the Cauchy Mean Value Theorem does not apply, and indeed the conclusion demonstrably fails.

Scope, edge cases & common traps

SituationWhat Taylor's theorem givesCommon error
f(n+1)f^{(n+1)} bounded by MM on [a,x][a,x]∣Rn(x)∣≤M(n+1)!∣x−a∣n+1\lvert R_n(x)\rvert \le \frac{M}{(n+1)!}\lvert x-a\rvert^{n+1}Forgetting the bound only holds if MM bounds f(n+1)f^{(n+1)} on the whole interval between aa and xx, not just at endpoints
x<ax < aSame formula; cc lies between xx and aa (i.e. x<c<ax < c < a)Assuming c∈(a,x)c \in (a,x) literally when x<ax<a; the correct statement is "cc strictly between aa and xx"
f(n+1)f^{(n+1)} exists but is not continuousTheorem still holds — continuity of f(n+1)f^{(n+1)} is not required, only its existence on the open intervalBelieving f(n+1)f^{(n+1)} must be continuous; this is a strictly stronger and unnecessary hypothesis
Infinitely differentiable ffRn(x)→0R_n(x) \to 0 as n→∞n \to \infty is not automatic; needs extra control (e.g. uniformly bounded derivatives)Concluding the Taylor series converges to ff just because all derivatives exist (false in general — see the standard example e−1/x2e^{-1/x^2})
The point ccExists, but generally not unique and not computable in closed formTreating cc as a specific known point, or assuming it is the midpoint

The mathematician behind it

Origins · 1 minBrook Taylor and how this was discovered
BT
Brook Taylor
1685–1731 · Early 18th-century England, Newtonian calculus circle

Brook Taylor was an English mathematician and a member of the Royal Society who worked within the Newtonian tradition of calculus, in direct scientific correspondence and occasional priority disputes with contemporaries developing the calculus in Britain and on the Continent. He is remembered almost entirely for the theorem that bears his name, published in his 1715 treatise Methodus Incrementorum Directa et Inversa, though the special case centered at 00 (later called the Maclaurin series) and various precursors had circulated informally among Newton, Gregory, and others before Taylor's systematic statement. Taylor also contributed to the mathematical theory of vibrating strings and to perspective drawing, but it is the general expansion of a function in powers of (x−a)(x-a) that secured his lasting place in the canon of analysis.

History
- 1671: James Gregory and, independently, Isaac Newton develop early series expansion techniques equivalent to special cases of Taylor's formula, without a general remainder theory.
- 1715: Brook Taylor publishes Methodus Incrementorum Directa et Inversa, stating the general expansion of a function into a series of derivatives at a point.
- 1742: Colin Maclaurin popularizes the special case centered at a=0a=0 in his Treatise of Fluxions, giving rise to the name "Maclaurin series."
- 1797: Joseph-Louis Lagrange, in Théorie des fonctions analytiques, gives the rigorous remainder formula Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1} using mean-value-type arguments, the form proved in this article.
- 1823: Augustin-Louis Cauchy, developing the modern rigorous foundations of calculus, supplies an alternative integral-type and mean-value-type remainder (the Cauchy form), sharpening the analysis of convergence for Taylor series.
Does Taylor's theorem require ff to be infinitely differentiable?

No. Taylor's theorem as stated here for a fixed degree nn only requires f,f′,…,f(n)f, f', \dots, f^{(n)} to exist and be continuous on the closed interval between aa and xx, and f(n+1)f^{(n+1)} to exist on the open interval between them. It says nothing about derivatives beyond order n+1n+1. Infinite differentiability becomes relevant only when you want to let n→∞n \to \infty and ask whether the resulting Taylor series converges to ff, which is a separate, stronger question requiring separate justification (typically a uniform bound on all derivatives, or an integral remainder estimate). Many C∞C^\infty functions have Taylor series that converge but not to ff itself.

Is the point cc in the Lagrange remainder unique?

Generally no. The Cauchy Mean Value Theorem, the engine of the proof, only guarantees existence of at least one such cc in the open interval; there is no claim of uniqueness, and in fact for many functions multiple valid choices of cc exist. For example, in f(x)=sin⁡xf(x)=\sin x examples with nn even, the equality Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1} can hold at more than one cc because cos⁡\cos or sin⁡\sin takes the same value at multiple points in the interval. The theorem should be read as a pure existence statement, useful for bounding, not pinpointing, the error.

How does the Lagrange form differ from the Cauchy form of the remainder?

Both are exact formulas for Rn(x)R_n(x) involving f(n+1)f^{(n+1)} at an intermediate point cc, but they package the "leftover factor" differently. The Lagrange form is Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}; the Cauchy form is Rn(x)=f(n+1)(c)n!(x−c)n(x−a)R_n(x) = \frac{f^{(n+1)}(c)}{n!}(x-c)^n(x-a). Both arise from the same underlying auxiliary-function argument, differing in which comparison function G(t)G(t) is chosen in the Cauchy Mean Value Theorem step. The Cauchy form is sometimes sharper for bounding convergence of series expansions near the edge of an interval of convergence, particularly for functions like ln⁡(1+x)\ln(1+x) near x=−1x=-1.

Can Taylor's theorem be used when x=ax=a?

The case x=ax = a is trivial and excluded from the interesting content: both sides of the formula reduce to f(a)=f(a)f(a) = f(a), with no need for an intermediate point (there is no open interval between aa and itself). The theorem is only meaningful and non-vacuous for x≠ax \neq a, which is why the hypothesis a≠xa \neq x is stated explicitly. In practice, one applies the theorem for a fixed aa and lets xx vary, thinking of Rn(x)R_n(x) as an error function of xx that vanishes to high order as x→ax \to a.

Does Taylor's theorem give a two-sided error bound automatically?

Not by itself — the raw statement only names an unknown cc. To get a usable numeric bound, you must separately bound f(n+1)f^{(n+1)} over the entire closed interval between aa and xx (for instance by monotonicity, as with exe^x or cos⁡x\cos x in the worked examples, or by a global bound like ∣sin⁡∣,∣cos⁡∣≤1\lvert \sin \rvert, \lvert \cos\rvert \le 1). This extra step — bounding max⁡[a,x]∣f(n+1)∣\max_{[a,x]} \lvert f^{(n+1)}\rvert — is what converts the existential Lagrange formula into the concrete numerical inequality ∣Rn(x)∣≤M(n+1)!∣x−a∣n+1\lvert R_n(x) \rvert \le \frac{M}{(n+1)!}\lvert x - a\rvert^{n+1} used throughout numerical analysis.

Why is continuity of f(n)f^{(n)} on the closed interval essential, rather than just differentiability on the open interval?

The proof invokes the Cauchy Mean Value Theorem on the auxiliary function F(t)=f(x)−Pn(t)F(t) = f(x) - P_n(t), and that theorem's hypotheses require FF to be continuous on the closed interval [a,x][a,x] and differentiable on the open interval (a,x)(a,x). Since FF is built from f,f′,…,f(n)f, f', \dots, f^{(n)}, continuity of all these up through order nn on the closed interval is exactly what makes FF continuous on [a,x][a,x]. Dropping continuity at an endpoint breaks this chain and, as the counterexample shows, can make the conclusion literally false, not just harder to prove.

How does Taylor's theorem relate to Newton's method for root-finding?

Newton's method approximates a root of ff by linearizing ff at the current guess xnx_n: the update is xn+1=xn−f(xn)/f′(xn)x_{n+1} = x_n - f(x_n)/f'(x_n). Applying Taylor's theorem with n=1n=1 centered at the true root rr, one gets 0=f(r)=f(xn)+f′(xn)(r−xn)+f′′(c)2(r−xn)20 = f(r) = f(x_n) + f'(x_n)(r - x_n) + \frac{f''(c)}{2}(r-x_n)^2 for some cc between rr and xnx_n. Solving for r−xn+1r - x_{n+1} shows the error at each step is proportional to the square of the previous error, times a factor involving f′′(c)/f′(xn)f''(c)/f'(x_n) — this is exactly how Taylor's theorem certifies the quadratic convergence rate of Newton's method.

Before this

Where this leads