Lably
Skip to content

Taylor's theorem

Approximation of a function by a polynomial

  • 17 min read
  • 5 chapters

Related on Lably

Through Calculus, Differentiable function and Polynomial

Taylor's theorem is named after Brook Taylor, who stated a version of it in 1715, although an earlier version of the result was already mentioned in 1671 by James Gregory.

Taylor's theorem is taught in introductory-level calculus courses and is one of the central elementary tools in mathematical analysis. It gives simple arithmetic formulas to accurately compute values of many transcendental functions such as the exponential function and trigonometric functions. It is the starting point of the study of analytic functions, and is fundamental in various areas of mathematics, as well as in numerical analysis and mathematical physics. Taylor's theorem also generalizes to multivariate and vector valued functions. It provided the mathematical basis for some landmark early computing machines: Charles Babbage's difference engine calculated sines, cosines, logarithms, and other transcendental functions by numerically integrating the first 7 terms of their Taylor series.

Motivation

If a real-valued function f(x) is differentiable at the point x=a, then it has a linear approximation near this point. This means that there exists a function h1(x) such that

f(x)=f(a)+f′(a)(x−a)+h1(x)(x−a),limx→ah1(x)=0.

Here

P1(x)=f(a)+f′(a)(x−a)

is the linear approximation of f(x) for x near the point a, whose graph y=P1(x) is the tangent line to the graph y=f(x) at x = a. The error in the approximation is: R1(x)=f(x)−P1(x)=h1(x)(x−a).

As x tends to a, this error goes to zero much faster than (x−a), making f(x)≈P1(x) a useful approximation.

For a better approximation to f(x), we can fit a quadratic polynomial instead of a linear function:

P2(x)=f(a)+f′(a)(x−a)+f″(a)2(x−a)2.

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,

f(x)=P2(x)+h2(x)(x−a)2,limx→ah2(x)=0.

Here the error in the approximation is

R2(x)=f(x)−P2(x)=h2(x)(x−a)2,

which, given the limiting behavior of h2, goes to zero faster than (x−a)2 as x tends to a.

Similarly, we might get still better approximations to f if we use polynomials 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 (x−a)k 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 Rk in an approximation by a k-th order Taylor polynomial Pk tends to zero faster than any nonzero k-th degree polynomial 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:

  1. Estimate the error for a polynomial Pk(x) of degree k estimating f(x) on a given interval (a – r, a + r). (Given the interval and degree, we find the error.)
  2. Find the smallest degree k for which the polynomial Pk(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.)
  3. Find the largest interval (a − r, a + r) on which Pk(x) approximates f(x) to within a given error tolerance. (Given the degree and error tolerance, we find the interval.)

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Calculus and analysis