In calculus, Taylor's theorem gives an approximation of a k-times differentiable function around a given point by a polynomial of degree k, called the k-th-order Taylor polynomial. For a smooth function, the Taylor polynomial is the truncation at the order k of the Taylor series of the function. The first-order Taylor polynomial is the linear approximation 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 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:
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.) 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.) 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.)
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 𝒌-th order Taylor polynomial Pk(x)=f(a)+f′(a)(x−a)+f″(a)2!(x−a)2+⋯+f(k)(a)k!(x−a)k 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 hk:ℝ→ℝ and a k-th order polynomial p such that f(x)=p(x)+hk(x)(x−a)k,limx→ahk(x)=0, then p=Pk. Taylor's theorem describes the asymptotic behavior of the remainder term Rk(x)=f(x)−Pk(x), which is the approximation error when approximating f with its Taylor polynomial. Using the little-o notation, the statement in Taylor's theorem reads as Rk(x)=o(|x−a|k),x→a.
Explicit formulas for the remainder Under stronger regularity assumptions on f there are several precise formulas for the remainder term Rk of the Taylor polynomial, the most common ones being the following.
… excerpt ends here. Continue reading the full article.





