
In
calculus
Calculus, originally called infinitesimal calculus or "the calculus of infinitesimals", is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizati ...
, Taylor's theorem gives an approximation of a ''k''-times
differentiable function
In mathematics, a differentiable function of one real variable is a function whose derivative exists at each point in its domain. In other words, the graph of a differentiable function has a non- vertical tangent line at each interior point in ...
around a given point by a
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An ex ...
of degree ''k'', called the ''k''th-order Taylor polynomial. For a
smooth function
In mathematical analysis, the smoothness of a function is a property measured by the number of continuous derivatives it has over some domain, called ''differentiability class''. At the very minimum, a function could be considered smooth if ...
, the Taylor polynomial is the truncation at the order ''k'' of the
Taylor series
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor se ...
of the function. The first-order Taylor polynomial is the
linear approximation
In mathematics, a linear approximation is an approximation of a general function using a linear function (more precisely, an affine function). They are widely used in the method of finite differences to produce first order methods for solving o ...
of the function, and the second-order Taylor polynomial is often referred to as the quadratic approximation. There are several versions of Taylor's theorem, some giving explicit estimates of the approximation error of the function by its Taylor polynomial.
Taylor's theorem is named after the mathematician
Brook Taylor
Brook Taylor (18 August 1685 – 29 December 1731) was an English mathematician best known for creating Taylor's theorem and the Taylor series, which are important for their use in mathematical analysis.
Life and work
Brook Taylor w ...
, who stated a version of it in 1715, although an earlier version of the result was already mentioned in
1671
Events
January–March
* January 1 – The Criminal Ordinance of 1670, the first attempt at a uniform code of criminal procedure in France, goes into effect after having been passed on August 26, 1670.
* January 5 – The ...
by
James Gregory.
Taylor's theorem is taught in introductory-level calculus courses and is one of the central elementary tools in
mathematical analysis
Analysis is the branch of mathematics dealing with continuous functions, limit (mathematics), limits, and related theories, such as Derivative, differentiation, Integral, integration, measure (mathematics), measure, infinite sequences, series (m ...
. It gives simple arithmetic formulas to accurately compute values of many
transcendental function
In mathematics, a transcendental function is an analytic function that does not satisfy a polynomial equation, in contrast to an algebraic function.
In other words, a transcendental function "transcends" algebra in that it cannot be expressed alg ...
s such as the
exponential function
The exponential function is a mathematical function denoted by f(x)=\exp(x) or e^x (where the argument is written as an exponent). Unless otherwise specified, the term generally refers to the positive-valued function of a real variable, ...
and
trigonometric function
In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in ...
s.
It is the starting point of the study of
analytic function
In mathematics, an analytic function is a function that is locally given by a convergent power series. There exist both real analytic functions and complex analytic functions. Functions of each type are infinitely differentiable, but complex ...
s, and is fundamental in various areas of mathematics, as well as in
numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods th ...
and
mathematical physics
Mathematical physics refers to the development of mathematics, mathematical methods for application to problems in physics. The ''Journal of Mathematical Physics'' defines the field as "the application of mathematics to problems in physics and t ...
. Taylor's theorem also generalizes to
multivariate and
vector valued functions.
Motivation

If a real-valued
function ''f''(''x'') is
differentiable at the point ''x'' = ''a'', then it has a
linear approximation
In mathematics, a linear approximation is an approximation of a general function using a linear function (more precisely, an affine function). They are widely used in the method of finite differences to produce first order methods for solving o ...
near this point. This means that there exists a function ''h''
1(''x'') such that
:
Here
:
is the linear approximation of ''f''(''x'') for ''x'' near the point ''a'', whose graph is the
tangent line
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points on the curve. More ...
to the graph y = ''f''(''x'') at . The error in the approximation is:
:
As ''x'' tends to ''a,'' this error goes to zero much faster than
, making
a useful approximation.

For a better approximation to ''f''(''x''), we can fit a
quadratic polynomial
In mathematics, a quadratic polynomial is a polynomial of degree two in one or more variables. A quadratic function is the polynomial function defined by a quadratic polynomial. Before 20th century, the distinction was unclear between a polynomia ...
instead of a linear function:
:
Instead of just matching one derivative of ''f''(''x'') at ''x'' = ''a'', this polynomial has the same first and second derivatives, as is evident upon differentiation.
Taylor's theorem ensures that the ''quadratic approximation'' is, in a sufficiently small neighborhood of ''x ='' ''a'', more accurate than the linear approximation. Specifically,
:
Here the error in the approximation is
:
which, given the limiting behavior of
, goes to zero faster than
as ''x'' tends to ''a''.

Similarly, we might get still better approximations to ''f'' if we use
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An ex ...
s of higher degree, since then we can match even more derivatives with ''f'' at the selected base point.
In general, the error in approximating a function by a polynomial of degree ''k'' will go to zero much faster than
as ''x'' tends to ''a''. However, there are functions, even infinitely differentiable ones, for which increasing the degree of the approximating polynomial does not increase the accuracy of approximation: we say such a function fails to be
analytic at ''x = a'': it is not (locally) determined by its derivatives at this point.
Taylor's theorem is of asymptotic nature: it only tells us that the error ''R
k'' in an
approximation
An approximation is anything that is intentionally similar but not exactly equal to something else.
Etymology and usage
The word ''approximation'' is derived from Latin ''approximatus'', from ''proximus'' meaning ''very near'' and the prefix '' ...
by a ''k''-th order Taylor polynomial ''P
k'' tends to zero faster than any nonzero ''k''-th degree
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An ex ...
as ''x'' → ''a''. It does not tell us how large the error is in any concrete
neighborhood of the center of expansion, but for this purpose there are explicit formulas for the remainder term (given below) which are valid under some additional regularity assumptions on ''f''. These enhanced versions of Taylor's theorem typically lead to
uniform estimates for the approximation error in a small neighborhood of the center of expansion, but the estimates do not necessarily hold for neighborhoods which are too large, even if the function ''f'' is
analytic. In that situation one may have to select several Taylor polynomials with different centers of expansion to have reliable Taylor-approximations of the original function (see animation on the right.)
There are several ways we might use the remainder term:
# Estimate the error for a polynomial ''P
k''(''x'') of degree ''k'' estimating ''f''(''x'') on a given interval (''a'' – ''r'', ''a'' + ''r''). (Given the interval and degree, we find the error.)
# Find the smallest degree ''k'' for which the polynomial ''P
k''(''x'') approximates ''f''(''x'') to within a given error tolerance on a given interval (''a'' − ''r'', ''a'' + ''r'') . (Given the interval and error tolerance, we find the degree.)
# Find the largest interval (''a'' − ''r'', ''a'' + ''r'') on which ''P
k''(''x'') approximates ''f''(''x'') to within a given error tolerance. (Given the degree and error tolerance, we find the interval.)
Taylor's theorem in one real variable
Statement of the theorem
The precise statement of the most basic version of Taylor's theorem is as follows:
The polynomial appearing in Taylor's theorem is the ''k''-th order Taylor polynomial
:
of the function ''f'' at the point ''a''. The Taylor polynomial is the unique "asymptotic best fit" polynomial in the sense that if there exists a function and a ''k''-th order polynomial ''p'' such that
:
then ''p'' = ''P
k''. Taylor's theorem describes the asymptotic behavior of the remainder term
:
which is the
approximation error
The approximation error in a data value is the discrepancy between an exact value and some ''approximation'' to it. This error can be expressed as an absolute error (the numerical amount of the discrepancy) or as a relative error (the absolute er ...
when approximating ''f'' with its Taylor polynomial. Using the
little-o notation
Big ''O'' notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann, Edmund Land ...
, the statement in Taylor's theorem reads as
:
Explicit formulas for the remainder
Under stronger regularity assumptions on ''f'' there are several precise formulas for the remainder term ''R
k'' of the Taylor polynomial, the most common ones being the following.
These refinements of Taylor's theorem are usually proved using the
mean value theorem
In mathematics, the mean value theorem (or Lagrange theorem) states, roughly, that for a given planar arc between two endpoints, there is at least one point at which the tangent to the arc is parallel to the secant through its endpoints. It ...
, whence the name. Additionally, notice that this is precisely the
mean value theorem
In mathematics, the mean value theorem (or Lagrange theorem) states, roughly, that for a given planar arc between two endpoints, there is at least one point at which the tangent to the arc is parallel to the secant through its endpoints. It ...
when ''k = 0''. Also other similar expressions can be found. For example, if ''G''(''t'') is continuous on the closed interval and differentiable with a non-vanishing derivative on the open interval between ''a'' and ''x'', then
:
for some number ''ξ'' between ''a'' and ''x''. This version covers the Lagrange and Cauchy forms of the remainder as special cases, and is proved below using
Cauchy's mean value theorem
In mathematics, the mean value theorem (or Lagrange theorem) states, roughly, that for a given planar arc between two endpoints, there is at least one point at which the tangent to the arc is parallel to the secant through its endpoints. It i ...
. The Lagrange form is obtained by taking
and the Cauchy form is obtained by taking
.
The statement for the integral form of the remainder is more advanced than the previous ones, and requires understanding of
Lebesgue integration theory for the full generality. However, it holds also in the sense of
Riemann integral
In the branch of mathematics known as real analysis, the Riemann integral, created by Bernhard Riemann, was the first rigorous definition of the integral of a function on an interval. It was presented to the faculty at the University of ...
provided the (''k'' + 1)th derivative of ''f'' is continuous on the closed interval
'a'',''x''
Due to
absolute continuity
In calculus, absolute continuity is a smoothness property of functions that is stronger than continuity and uniform continuity. The notion of absolute continuity allows one to obtain generalizations of the relationship between the two central op ...
of ''f'' on the
closed interval
In mathematics, a (real) interval is a set of real numbers that contains all real numbers lying between any two numbers of the set. For example, the set of numbers satisfying is an interval which contains , , and all numbers in between. Othe ...
between ''a'' and ''x'', its derivative ''f'' exists as an ''L''-function, and the result can be proven by a formal calculation using
fundamental theorem of calculus
The fundamental theorem of calculus is a theorem that links the concept of differentiating a function (calculating its slopes, or rate of change at each time) with the concept of integrating a function (calculating the area under its graph, ...
and
integration by parts
In calculus, and more generally in mathematical analysis, integration by parts or partial integration is a process that finds the integral of a product of functions in terms of the integral of the product of their derivative and antiderivative. ...
.
Estimates for the remainder
It is often useful in practice to be able to estimate the remainder term appearing in the Taylor approximation, rather than having an exact formula for it. Suppose that ''f'' is -times continuously differentiable in an interval ''I'' containing ''a''. Suppose that there are real constants ''q'' and ''Q'' such that
:
throughout ''I''. Then the remainder term satisfies the inequality
:
if , and a similar estimate if . This is a simple consequence of the Lagrange form of the remainder. In particular, if
:
on an interval with some
, then
:
for all The second inequality is called a
uniform estimate, because it holds uniformly for all ''x'' on the interval
Example

Suppose that we wish to find the approximate value of the function on the interval while ensuring that the error in the approximation is no more than 10
−5. In this example we pretend that we only know the following properties of the exponential function:
From these properties it follows that for all ''k'', and in particular, . Hence the ''k''-th order Taylor polynomial of ''f'' at 0 and its remainder term in the Lagrange form are given by
:
where ''ξ'' is some number between 0 and ''x''. Since ''e''
''x'' is increasing by (), we can simply use ''e
x'' ≤ 1 for ''x'' ∈
��1, 0to estimate the remainder on the subinterval
��1, 0 To obtain an upper bound for the remainder on
,1 we use the property for 0<''ξ''<''x'' to estimate
:
using the second order Taylor expansion. Then we solve for ''e
x'' to deduce that
:
simply by maximizing the
numerator
A fraction (from la, fractus, "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight ...
and minimizing the
denominator
A fraction (from la, fractus, "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight ...
. Combining these estimates for ''e
x'' we see that
:
so the required precision is certainly reached, when
:
(See
factorial
In mathematics, the factorial of a non-negative denoted is the product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial:
\begin
n! &= n \times (n-1) \times (n-2) ...
or compute by hand the values and .) As a conclusion, Taylor's theorem leads to the approximation
:
For instance, this approximation provides a
decimal expression ''e'' ≈ 2.71828, correct up to five decimal places.
Relationship to analyticity
Taylor expansions of real analytic functions
Let ''I'' ⊂ R be an
open interval. By definition, a function ''f'' : ''I'' → R is
real analytic
In mathematics, an analytic function is a function that is locally given by a convergent power series. There exist both real analytic functions and complex analytic functions. Functions of each type are infinitely differentiable, but complex ...
if it is locally defined by a convergent
power series
In mathematics, a power series (in one variable) is an infinite series of the form
\sum_^\infty a_n \left(x - c\right)^n = a_0 + a_1 (x - c) + a_2 (x - c)^2 + \dots
where ''an'' represents the coefficient of the ''n''th term and ''c'' is a con ...
. This means that for every ''a'' ∈ ''I'' there exists some ''r'' > 0 and a sequence of coefficients ''c
k'' ∈ R such that and
: