Skip to content

Taylor polynomials ​

Definition ​

Let f∈R→R, f∈Dn(a).

The polynomial

Tn(x)=f(a)+f′(a)(x−a)+f″(a)2!(x−a)2+…+f(n)(a)n!(x−a)n==∑k=0nf(k)(a)k!(x−a)k(x∈R)

is called the n-th Taylor polynomial of f at a.

Taylor's formula ​

Let I⊆R be an open interval, f:I→R, f∈Dn+1, a∈I.

Then ∀x∈I∖{a} there exists ξ=ξ(x)∈(a,x) such that

f(x)−Tn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1

The right-hand side of this equation is called Lagrangian remainder term.

Example 1 ​

Use Taylor polynomials for writing the polynomial

f(x)=(1+2x)3

by the powers of

a. x+1b. x−12c. x+12

Solution ​

f′(x)=3(1+2x)2⋅2=6(1+2x)2f″(x)=6⋅2(1+2x)⋅2=24(1+2x)f‴(x)=24⋅2=48f(4)(x)=0

a. ​

x−a=x+1⟹a=−1T3(x)=f(−1)+f′(−1)(x+1)+f″(−1)2!(x+1)2+f‴(−1)3!(x+1)3==(−1)+6(x+1)−12(x+1)2+8(x+1)3

b. ​

x−a=x−12⟹a=12T3(x)=f(12)+f′(12)(x−12)+f″(12)2!(x−12)2+f‴(12)3!(x−12)3==8+24(x−12)+24(x−12)2+8(x−12)3

c. ​

x−a=x+12⟹a=−12T3(x)=f(−12)+f′(−12)(x+12)+f″(−12)2!(x+12)2+f‴(−12)3!(x+12)3==0+0+0+8(x+12)3

Example 2 ​

Let

f(x)=ln⁡(1+x)(x>−1)

(a) Find the second Taylor polynomial of f at a=0.

(b) Estimate the error of the approximation of f(x)≈T2(x) for x>0 and for −1<x<0.

(c) Approximate ln⁡2 by means of T2(1), and estimate the error.

Solution ​

(a)

f′(x)=11+x⟹f′(0)=1f″(x)=−1(1+x)2⟹f″(0)=−1f‴(x)=2(1+x)3⟹f‴(c)=2(1+c)3T2(x)=f(0)+f′(0)x+f″(0)2!x2==0+x−x22=x−12x2(x∈R)

(b)

|f(x)−T2(x)|=|f‴(c)3!x3|=16⋅2|(1+c)3||x|3

With c between 0 and x.

So if x>0⟹0<c<x

|f(x)−T2(x)|≤13⋅1(1+0)3⋅|x|3=13x3

If −1<x<c<0

|f(x)−T2(x)|≤13⋅1(1+x⏟+)3⋅|x|3⏞<1<13(1+x)3

(c)

ln⁡2=ln⁡(1+1)⟹x=1ln⁡2=f(1)≈T2(1)=1−12=12

To estimate error let a=0, x=1⟹0<c<1

|f(x)−T2(x)|=16⋅2(1+c)3⋅13=13(1+c)316⋅2(1+c)3≤16⋅2(1+0)3=13