Lesson 18 - Taylor Series

Overview of Taylor/Maclaurin Series

Consider a function f that has a power series representation at x=a. Then the series has the form

n=0Cn(xa)n=C0+C1(xa)+C2(xa)2+

What should the coefficients be? If the series above is a representation for f at x=a, we certainly want the series to equal f(a) at x=a. Evaluating the series at x=a, we see that

n=0Cn(xa)n=C0+C1(aa)+C2(aa)2+=c0

Thus, the series equals f(a) if the coefficient C0=f(a). In addition, we would like the first derivative of the power series to equal f(a) at x=a. Differentiating the equation above term-by-term, we see that

ddx(n=0Cn(xa)n)=C1+2C2(xa)+3C3(xa)2+

Therefore, at x=a, the derivative is

ddx(n=0Cn(xa)n)=C1+2C2(aa)+3C3(aa)2+=C1.

Therefore, the derivative of the series equals f(a) if the coefficient C1=f(a). Continuing in this way, we look for coefficients Cn such that all the derivatives of the power series above will agree with all the corresponding derivatives of f at x=a. The second and third derivatives of the equation are given by

d2dx2(n=0Cn(xa)n)=2C2+3×2C3(xa)+4×3C4(xa)2+andd3dx3(n=0Cn(xa)n)=3×2C3+4×3×2C4(xa)+5×4×3C5(xa)2+

Therefore, at x=a, the second and third derivatives.

d2dx2(n=0Cn(xa)n)=2C2+3×2C3(aa)+4×3C4(aa)2+

and

d3dx3(n=0Cn(xa)mn)=3×2C3+4×3×2C4(aa)+5×4×3C5(aa)2+=3×2C3

equal f(a) and f(a), respectively, if C2=f(a)2 and C3=f(a)3×2. More generally, we see that if f we has a power series representation at x=a, then the coefficients should be given by Cn=f(n)(a)n!. That is, the series should be

n=0f(n)(a)n!(xa)n=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3+

This power series for f is known as the Taylor series for f at a. If a=0, then this series is known as the Maclaurin series for f.

Theorem: Uniqueness of Taylor Series

If a function f has a power series at a that converges to f on some open interval containing a, then that power series is the Taylor series for f at a.

Taylor Polynomials

The nth partial sum of the Taylor series for a function f at a is known as the nth Taylor polynomial. Here are the first 4 partial sums of the Taylor series.

p0(x)=f(a)p1(x)=f(a)=f(a)(xa)p2(x)=f(a)+f(a)(xa)+f(a)2!(xa)2p3(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3+

If f has n derivatives at x=a, then the nth Taylor polynomial for f at a is

pn(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3++fn(a)n!

Example: Finding Taylor Polynomials

Find the Taylor polynomials p0,p1,p2 and p3 for f(x)=lnx at x=1.

Solution

To find these Taylor polynomials, we need to evaluate f and its first three derivatives at x=1.

f(x)=lnxf(1)=0f(x)=1xf(1)=1f(x)=1x2f(1)=1f(x)=2x2f(1)=2

Therefore,

p0(x)=f(1)=0,p1(x)=f(1)+f(1)(x1)=x1p2(x)=f(1)+f(1)(x1)+f(1)2(x1)2+f(1)3!(x1)3=(x1)12(x1)2+13(x1)3

Example: Try For Yourself

Find the Taylor polynomials p0,p1,p2 and p3 for f(x)=1x2 at x=1.

Next Lesson: Lesson 19 - Taylor Polynomial, Power Series and Shifting Index

Table of Contents: Table of Contents