Taylor polynomials
Match derivative data at a centre to obtain a local polynomial approximation.
This page approximates near a point by the polynomial in powers of that matches its value, slope, curvature and higher derivatives up to a chosen degree. Interpolation is the other polynomial construction in the course: it matches values at distinct nodes rather than derivatives at one centre.
The degree-one Taylor model is the tangent-line step used by Euler's method. The degree-two term, built from , is the one-variable version of the quadratic Hessian model used for functions of several variables.
Build a local model from derivative data
The centre is the point where the approximation is anchored. Matching only the value gives a constant model; matching the first derivative as well gives the tangent line. Each further matched derivative makes the polynomial share more of the local behaviour of .
Taylor polynomial
If has derivatives through order at , its Taylor polynomial of degree at most about is
The polynomial is centred at : its powers measure displacement from , not from the origin. The factorial occurs because the -th derivative of at is . In this chapter names the Taylor polynomial; the similar notation in vector spaces denotes the whole space of polynomials of degree at most over a field .
Maclaurin polynomial
The Maclaurin polynomial of degree at most is the Taylor polynomial about :
Maclaurin polynomials are convenient when the derivatives at zero have a simple pattern.
Why the coefficients are forced
Matching derivatives determines the coefficients
Suppose is a polynomial of degree at most satisfying
Then , where is the Taylor polynomial of about .
How accurate this model is away from the centre is measured by the remainder in Taylor's theorem.
- [1]:Taylor polynomial
- [2]:Proof
Write in powers of :
Evaluating at gives . After differentiating once, evaluating at gives and after differentiating times it gives
The matching condition therefore forces
for every . These are exactly the coefficients of , so .
Construct the polynomial in practice
Choose a centre close to the values of you care about, so that the powers stay small.
Construct a Taylor polynomial
To construct the degree- Taylor polynomial of about :
- choose the centre and degree ;
- calculate ;
- substitute those values into
- use Taylor's theorem to quantify the error of the approximation.
Read the pattern in standard functions
At zero, parity and repeating derivative cycles often make the coefficients visible at once. At a nonzero centre the same rule applies, but every power is a power of the displacement .
[routine]
A Maclaurin polynomial for
The derivatives cycle as
At zero, the odd derivatives vanish. Therefore
Only even powers occur, as expected for the even function .
[routine]
Moving the centre to
Let . Since
the degree-three Taylor polynomial is
The coefficient rule is unchanged from the Maclaurin case; only the displacement changes from to .
[exam]
When derivatives repeat, record the pattern instead of differentiating each order from scratch.
Standard finite expansions
For , every derivative is , so every derivative at zero is :
For and ,
so
Replacing by gives the finite expansion
for .
[routine]
All of these are finite approximations. For a fixed , increasing produces a sequence of approximations whose error is the remainder in Taylor's theorem. Passing to the infinite Taylor series needs a convergence argument and a proof that this remainder tends to zero.