How to build the polynomial that matches a function and its first n derivatives at a point, and how the Lagrange and integral remainders give a guaranteed bound on its error.
A calculator cannot compute 4.1 or e0.1 directly. It can only add and multiply, so it evaluates a polynomial. The tangent line is the first such polynomial, matching the value and the slope at one point. Matching the second, third and later derivatives as well gives better and better polynomials, and Taylor’s theorem tells you exactly how far off each one can be.
Key terms
Higher derivatives
Definition The derivatives of f of higher order are defined one after another by f(0)=f and f(n+1)=(f(n))′, wherever that derivative exists. So f(1)=f′, f(2)=f′′, f(3)=f′′′. A function is n times differentiable at a if f(n)(a) exists, and it is of class Cn on an interval if f(n) exists and is continuous there.
In plain words Keep differentiating. Each new derivative describes a finer feature of the graph near a point.
Definition The expansion center is the point a at which a polynomial approximation is built. It must be a point where f has as many derivatives as the polynomial uses, so f(n)(a) must exist for a polynomial of degree n.
In plain words Choose the center where you know everything about f and close to the x you care about. The approximation is best near the center.
Example To approximate 4.1, center at a=4, where 4=2 and the derivatives are easy. Centering at a=0 would fail, since x is not differentiable at 0.
Taylor polynomial
Definition Let f be n times differentiable at a. The Taylor polynomial of degree n of f at a is
It is the unique polynomial of degree at most n with Tn(k)(a)=f(k)(a) for k=0,1,…,n. For n=1 it is the tangent line.
In plain words It is the polynomial whose value, slope, bending and so on up to order n agree with those of f at a.
Example Take f(x)=x at a=4. Then f(4)=2 and
f′(4)=241=41,f′′(4)=−41⋅4−3/2=−321.
So
T2(x)=2+4x−4−64(x−4)2,T2(4.1)=2.02484375,
while 4.1=2.0248456….
Maclaurin polynomial
Definition A Maclaurin polynomial is a Taylor polynomial with center a=0,
Tn(x)=k=0∑nk!f(k)(0)xk.
In plain words It is the special case centered at the origin, which is the most common choice when f is well behaved at 0.
Example Every derivative of ex is ex, which equals 1 at 0. So the Maclaurin polynomial of degree 3 is
T3(x)=1+x+2x2+6x3.
At x=0.1 it gives 1.1051666…, and e0.1=1.1051709…. You can reproduce this in the Taylor polynomial explorer by choosing ex with degree 3 and x=0.1, and its error readout shows the gap of about 4.25×10−6.
Lagrange remainder
Definition The remainder is Rn(x)=f(x)−Tn(x). Taylor’s theorem with Lagrange remainder says the following. Let f be n+1 times differentiable on an open interval I containing a. Then for each x∈I with x=a there is a number z strictly between a and x such that
Rn(x)=(n+1)!f(n+1)(z)(x−a)n+1.
For n=0 this is the mean value theorem.
In plain words The error looks exactly like the next term of the polynomial, except that the derivative is taken at some unknown point between a and x.
Example For ex with n=3, a=0 and x=0.1, there is a z in (0,0.1) with
R3(0.1)=24ez(0.1)4.
Since 1<ez<e0.1, the error lies between about 4.167×10−6 and 4.605×10−6. The true error is about 4.25×10−6.
Integral remainder
Definition Let f(n+1) be continuous on an interval containing a and x. Then
Rn(x)=∫axn!f(n+1)(t)(x−t)ndt.
For n=0 this is the fundamental theorem of calculus,
f(x)=f(a)+∫axf′(t)dt,
and the general case follows by integrating by parts n times.
In plain words This form gives the error exactly as an integral, with no unknown point in it. It needs a little more smoothness than the Lagrange form.
which is exactly ex−(1+x). At x=1 the error is e−2≈0.718.
Derivative bounds on the interval
Definition To estimate Rn(x) from either form you need a number M with
f(n+1)(t)≤Mfor every t between a and x,
or for every t in a fixed interval ∣t−a∣≤d that contains x. The bound must hold on the whole interval, not only at a, because the point z in the Lagrange form is unknown.
In plain words You do not know where z is, so bound the next derivative everywhere it could be.
Example For lnx on [1,1.5] we have f′′(t)=−t21, so ∣f′′(t)∣≤1 with the largest value at t=1. For sinx every derivative is ±sinx or ±cosx, so M=1 works on any interval for every n.
Taylor’s inequality
Definition Let f be n+1 times differentiable on [a−d,a+d], where d>0, and suppose f(n+1)(t)≤M for all t in that interval. Then
∣Rn(x)∣≤(n+1)!M∣x−a∣n+1for all x with ∣x−a∣≤d.
In plain words The error is at most the bound on the next derivative, times the distance to the center to the power n+1, divided by (n+1)!.
Example For sinx at a=0 the polynomials T3 and T4 are both x−6x3, since sin(4)(0)=0. Using n=4 and M=1,
sin0.5−(0.5−60.53)≤1200.55≈0.000260.
The actual error is 0.4794255−0.4791667≈0.000259, just under the bound.
Check yourself
Find the Taylor polynomial of degree 2 of lnx at a=1, and use it to estimate ln1.2.
Show the answer
The values are f(1)=0, f′(1)=1 and f′′(1)=−1, so
T2(x)=(x−1)−2(x−1)2.
Then T2(1.2)=0.2−0.02=0.18, while ln1.2≈0.1823.
Bound the error of ex≈1+x+2x2 for 0≤x≤0.5.
Show the answer
Here n=2 and f′′′(t)=et≤e0.5<2 on [0,0.5]. Taylor’s inequality gives
∣R2(x)∣≤3!2(0.5)3=241≈0.042.
What is the Maclaurin polynomial of degree 3 of cosx?
Show the answer
The derivatives at 0 are 1,0,−1,0, so T3(x)=1−2x2. The cubic coefficient is 0.
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details