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 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.
- Taylor's theorem approximates a function near a point by a polynomial built from its derivatives at .
- The error of this approximation (the remainder) has an exact formula, not just an order-of-magnitude bound.
- The Lagrange form pins the error to a single unknown point between and .
- The proof needs only the The Cauchy Mean Value Theorem applied to a well-chosen auxiliary function — no series machinery required.
- Requires to have derivatives, with the -th derivative continuous up to the endpoints and differentiable in between.
- Key idea: compare 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 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 , , and 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?
Let be a real-valued function defined on an interval , let , and suppose has derivatives at (in particular on a neighborhood of up through order , existing at for order ). The -th Taylor polynomial of centered at is
The remainder is defined by , so that for every .
Taylor's Theorem (the object this article proves) asserts that if in addition is continuous on the closed interval with endpoints and , and exists on the open interval between and , then there exists a point strictly between and such that
This is the Lagrange form of the remainder.
Intuition
The zeroth-order case () of Taylor's theorem is just the Mean Value Theorem in disguise: it says for some between and , i.e. the remainder after approximating by the constant is exactly . The first-order case () says that if we approximate by its tangent line , the error is — quadratic in , controlled by the second derivative somewhere in between. Taylor's theorem is the statement that this pattern continues indefinitely: matching pieces of local data (the value and derivatives) buys you an error that is one order smaller than the last matched term, with an exact constant of proportionality involving at some unknown intermediate point. The key structural fact making the proof work is that is precisely the unique degree- polynomial whose value and first derivatives agree with those of at : for , and . So the auxiliary function vanishes, along with its first derivatives, at . Comparing against the simple monomial — which has exactly the same vanishing pattern at — via repeated Cauchy Mean Value comparisons peels off one derivative at a time until only remains, evaluated at a single mystery point .
Theorem and proof
Let be real numbers with , and let be the closed interval with endpoints and . Let be an integer. Suppose: 1. all exist and are continuous on ; 2. exists for every strictly between and . Define . Then there exists strictly between and such that
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 as in the hypotheses; without loss of generality suppose (the case is identical with all inequalities reversed).
Step 1: Setup. Define two functions on :
Here is not the fixed Taylor polynomial from the theorem statement; it is a function of the variable , reflecting the derivatives of at , expanded around evaluated at the fixed point . (When this equals the actual Taylor polynomial value: , matching the theorem's .) This is the standard device that converts the theorem into a one-shot application of the Cauchy Mean Value Theorem.
Step 2: Differentiate . We claim is differentiable on (using hypothesis 1 for the closed interval and hypothesis 2 for the open interval), with
To see this, write out as a finite sum and differentiate term by term with respect to , treating as constant. For each with , the term has derivative, by the product rule,
Summing this over produces a telescoping sum: the term from index exactly cancels the term arising from index in the sum (relabeling), for every from to , leaving only the top term from and the bottom term from 's companion at . Concretely: the term of is , with derivative . Adding this to the sum for , every intermediate term cancels in pairs, and we are left with
(This is the standard cancellation computation for Taylor polynomials; it uses only the product rule, hence only differentiability of for on the interior, and continuity up to the endpoint where a one-sided derivative suffices, both guaranteed by hypotheses 1–2.) Since and is a constant, , as claimed. This derivative exists for by hypothesis 2, and itself is continuous on because each , , is continuous there by hypothesis 1.
Step 3: Differentiate . The function is a polynomial in , hence differentiable everywhere, with
In particular for every , since there.
Step 4: Apply the Cauchy Mean Value Theorem. Both and are continuous on and differentiable on (Steps 2–3), and on (Step 3). By The Cauchy Mean Value Theorem, there exists such that
Step 5: Evaluate both sides. First, and , so . Second, where (the function from Step 1 evaluated at ) collapses: every term with has a factor , leaving only the term . So . Third, , and is exactly the Taylor polynomial value from the theorem statement (a fixed number). So , the remainder we want to compute. Therefore
Fourth, from Step 2 and Step 3,
(Division is valid since because so .)
Step 6: Conclude. Equating the two evaluations from Step 4,
which rearranges to
This holds for some strictly between and , which is exactly the assertion of the theorem.
∎Taking : , and the theorem gives between and with , 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).
Under the stronger hypothesis that is additionally continuous at , the Lagrange form implies
i.e. as . Indeed, where lies between and , hence as ; continuity of at makes bounded near , and the extra factor forces the whole expression to .
Worked examples
Example 1 — Approximating off-center, with an explicit error bound. Let , and take the base point (not , to keep the example genuinely asymmetric). We compute the degree- Taylor polynomial centered at and bound the error at . Since for every , we have for all . Thus
At : , so
Numerically, , so . The true value is . By Taylor's theorem (all hypotheses hold trivially: is infinitely differentiable and continuous everywhere), there exists with
Since , we know , so
Numerically and . Checking directly: , which indeed lies in — consistent with the theorem, and in fact we can solve to get , safely inside as required. This example illustrates the practical power of the Lagrange form: even without knowing exactly, bounding 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 , centered at , and estimate using the degree- Taylor polynomial, bounding the error rigorously. The derivatives cycle: , , , , , . At : , , , , . So the degree- Taylor polynomial is
(Note here since the degree-4 coefficient vanishes — this is normal and does not affect the remainder analysis, since we use to access in the Lagrange remainder, giving a sharper bound than stopping at .) At :
By Taylor's theorem with (hypotheses hold: is entire and all derivatives are continuous everywhere), there is strictly between and with
Since , we have (as is decreasing on ), and . So
Computing: . So the upper bound is , and the lower bound is . Hence , i.e. approximately. Checking against the true value , 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.
Taylor's theorem requires to be continuous on the closed interval (hypothesis 1), not merely that exists on the open interval. If we only assume exists on but allow to be discontinuous at an endpoint, the conclusion can fail. Take , , and define
Here itself must be continuous on for the case (this is the base hypothesis, since " continuous" for just means continuous), and indeed is discontinuous at . Consider . The theorem, if it applied, would assert the existence of with
so for some . But for , , so everywhere on — there is no point where . The conclusion fails precisely because continuity of at the endpoint was violated, breaking the very first step of the proof (Step 2, where '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, in the proof is not continuous on , the Cauchy Mean Value Theorem does not apply, and indeed the conclusion demonstrably fails.
Scope, edge cases & common traps
| Situation | What Taylor's theorem gives | Common error |
|---|---|---|
| bounded by on | Forgetting the bound only holds if bounds on the whole interval between and , not just at endpoints | |
| Same formula; lies between and (i.e. ) | Assuming literally when ; the correct statement is " strictly between and " | |
| exists but is not continuous | Theorem still holds — continuity of is not required, only its existence on the open interval | Believing must be continuous; this is a strictly stronger and unnecessary hypothesis |
| Infinitely differentiable | as is not automatic; needs extra control (e.g. uniformly bounded derivatives) | Concluding the Taylor series converges to just because all derivatives exist (false in general — see the standard example ) |
| The point | Exists, but generally not unique and not computable in closed form | Treating as a specific known point, or assuming it is the midpoint |
The mathematician behind it
Origins · 1 minBrook Taylor and how this was discovered
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 (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 that secured his lasting place in the canon of analysis.
Does Taylor's theorem require to be infinitely differentiable?
No. Taylor's theorem as stated here for a fixed degree only requires to exist and be continuous on the closed interval between and , and to exist on the open interval between them. It says nothing about derivatives beyond order . Infinite differentiability becomes relevant only when you want to let and ask whether the resulting Taylor series converges to , which is a separate, stronger question requiring separate justification (typically a uniform bound on all derivatives, or an integral remainder estimate). Many functions have Taylor series that converge but not to itself.
Is the point 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 in the open interval; there is no claim of uniqueness, and in fact for many functions multiple valid choices of exist. For example, in examples with even, the equality can hold at more than one because or 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 involving at an intermediate point , but they package the "leftover factor" differently. The Lagrange form is ; the Cauchy form is . Both arise from the same underlying auxiliary-function argument, differing in which comparison function 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 near .
Can Taylor's theorem be used when ?
The case is trivial and excluded from the interesting content: both sides of the formula reduce to , with no need for an intermediate point (there is no open interval between and itself). The theorem is only meaningful and non-vacuous for , which is why the hypothesis is stated explicitly. In practice, one applies the theorem for a fixed and lets vary, thinking of as an error function of that vanishes to high order as .
Does Taylor's theorem give a two-sided error bound automatically?
Not by itself — the raw statement only names an unknown . To get a usable numeric bound, you must separately bound over the entire closed interval between and (for instance by monotonicity, as with or in the worked examples, or by a global bound like ). This extra step — bounding — is what converts the existential Lagrange formula into the concrete numerical inequality used throughout numerical analysis.
Why is continuity of 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 , and that theorem's hypotheses require to be continuous on the closed interval and differentiable on the open interval . Since is built from , continuity of all these up through order on the closed interval is exactly what makes continuous on . 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 by linearizing at the current guess : the update is . Applying Taylor's theorem with centered at the true root , one gets for some between and . Solving for shows the error at each step is proportional to the square of the previous error, times a factor involving — this is exactly how Taylor's theorem certifies the quadratic convergence rate of Newton's method.