Taylor polynomials approximate a function by matching its value and derivatives at a chosen centre. A Taylor series continues that construction indefinitely. The finite approximation and the infinite representation answer different questions, and both need their assumptions stated.
A complete calculation states the coefficients, the point of evaluation, the truncation error and the range on which the representation is justified.
On this page
Taylor polynomials use derivative data
Suppose the derivatives through order exist at a centre . The order- Taylor polynomial is
Here and . The polynomial has degree at most : a coefficient can vanish. For example, the fourth-order Maclaurin polynomial for sine still has degree three, because its constant, quadratic and fourth-power coefficients are zero.
The factorials make the derivative matching work. Differentiating exactly times gives ; multiplying by therefore produces the required derivative at the centre. Lower powers disappear after enough derivatives, and higher powers still contain a factor when evaluated at .
When , the polynomial is called a Maclaurin polynomial. Changing the centre changes the derivative values and the powers being used.
Use a non-zero centre
For at , the first derivative values are , , and . Thus
This is a polynomial in the displacement , not in powers of centred at zero. At , it gives approximately ; is approximately . A small difference is useful, but a numerical comparison is not yet a proof of a general error guarantee.
From Taylor polynomial to Taylor series
If derivatives of every order exist at the centre, they define the formal Taylor series
Define the remainder of the finite polynomial by . The series equals at a given input precisely when there as . Convergence of the coefficient series alone does not establish equality with the original function.
For at zero, every derivative value is . This produces
The ratio test gives infinite radius. To justify equality with , Taylor's remainder bound can also be used: for each fixed , tends to zero. The factorial eventually dominates this fixed power. The Taylor-series reference explains the distinction between construction, convergence and representation.
Three core Maclaurin series
The derivative cycle for sine is , then it repeats. Evaluating at zero gives . The resulting series is
Cosine has derivative values at zero, so
Both series equal their functions for every real input. The arguments are in radians; the familiar derivative cycle has extra conversion factors for degree-valued arguments.
| Function | First non-zero terms | Real interval of representation |
|---|---|---|
| All real | ||
| All real | ||
| All real |
Using only the displayed terms gives a polynomial approximation. Writing an equality with the function requires the infinite series or an explicit remainder term.
Polynomial approximation
Approximate an exponential
At , the third-order Maclaurin polynomial for gives
A reference evaluation gives , so the actual absolute difference is about . Because all omitted terms are positive, the polynomial underestimates this value.
Approximate sine
For radians, use :
The function value is . The approximation is slightly high, by about . The next omitted sine term is negative, consistent with this direction.
Compare orders at several inputs
The table below evaluates the first-, third- and fifth-order Maclaurin polynomials for sine. Each input is in radians. Values are rounded to six decimal places; the formulas, rather than the rounded entries, determine the calculations.
| Input | ||||
|---|---|---|---|---|
The higher order helps for these examples, but the error of a fixed polynomial also grows as the evaluation moves away from the centre here. This table does not establish a universal rule of pointwise improvement. A remainder bound is the appropriate way to make a specific accuracy claim.
| Quantity | Polynomial value | Reference function value | Absolute difference, approximately |
|---|---|---|---|
| using | |||
| using |
The remainder measures what the polynomial misses
Suppose has a continuous derivative of order on an interval containing the centre and evaluation point . Taylor's theorem gives a point between them such that
If the derivative magnitude is at most throughout that interval, then
This is the Lagrange remainder bound. It requires a bound over the whole segment, not just the derivative's value at the centre.
Bound the exponential error without subtracting the true value
For on , the fourth derivative is . Hence the third-order error is at most , approximately . That valid bound is larger than the observed error. It does not by itself prove an error below .
A sharper bound is available from the positive series tail. The first omitted term is . Every subsequent ratio is at most . Bounding the tail by a geometric series gives
This proves the tighter accuracy claim without knowing the true function value first.
Use an alternating remainder for sine
At , the omitted sine terms alternate with decreasing magnitudes. The first omitted term bounds the error:
Thus the stated two-millionths tolerance follows from a theorem, not just a comparison with a calculator. The Taylor-series applications chapter develops this use of remainder estimates.
Series can evaluate otherwise difficult expressions
Substitute into the exponential series:
Its radius is infinite. Term-by-term integration is justified on the finite interval , yielding a series of elementary polynomial integrals. The first three terms give
This is approximately , while the full integral is approximately . To control the error, integrate the magnitude of the next omitted term:
On this interval, the pointwise exponential terms alternate with decreasing magnitudes, and the omitted first term is negative. Therefore
This connects representation, approximation and error control. The integral exists even though the integrand has no elementary antiderivative. A convergent series provides another way to calculate it.
Derivative data alone does not guarantee equality everywhere
A function can have derivatives of every order and still fail to equal its Taylor series away from the centre. A standard example is for , with .
Every derivative at zero is zero. Differentiating away from zero produces a polynomial in multiplied by ; the exponential tends to zero faster than every such power grows. This allows the derivatives to extend to zero with value zero at every order.
Its Maclaurin series is consequently the zero series, which converges everywhere. But for every , so that series does not represent the function away from zero. The example separates two claims: convergence of a Taylor series and equality of that sum with the function that supplied its coefficients.
For , sine and cosine, the remainder argument does establish equality for every real . For another function, state and justify the region where the remainder tends to zero rather than assuming that smoothness is enough.
Related topics
Return to Power Series for convergence intervals and legal term-by-term operations. Use Techniques of Integration to compare a series-based approximation with a numerical quadrature rule, and Convergence Tests for Series to justify an omitted-tail bound.
Practice questions
Write the first four non-zero terms of the Maclaurin series for .
Approximate using its third-order Maclaurin polynomial and give a justified error bound.
What additional condition makes a function equal to its Taylor series at a given input?
Check your answers
-
They are . Every derivative of has value at zero, which supplies these coefficients.
-
The polynomial gives . Its positive omitted tail is at most . The polynomial is therefore an underestimate within that tolerance.
-
The remainder must tend to zero as . Having derivatives of every order, or even having a convergent Taylor series, does not alone establish equality with the original function.
Sources and further reading
- OpenStax: Taylor and Maclaurin Series. Coefficient construction, representation and Taylor remainder theorem.
- OpenStax: Working with Taylor Series. Approximation, integration and error estimates.
- OpenStax: Properties of Power Series. Justification of term-by-term operations on interior intervals.
- Wolfram Language: Calculus. Independent symbolic, summation and limit verification.
