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=0∞Cn(x−a)n=C0+C1(x−a)+C2(x−a)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=0∞Cn(x−a)n=C0+C1(a−a)+C2(a−a)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=0∞Cn(x−a)n)=C1+2C2(x−a)+3C3(x−a)2+…

Therefore, at x=a, the derivative is

ddx(∑n=0∞Cn(x−a)n)=C1+2C2(a−a)+3C3(a−a)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=0∞Cn(x−a)n)=2C2+3×2C3(x−a)+4×3C4(x−a)2+…andd3dx3(∑n=0∞Cn(x−a)n)=3×2C3+4×3×2C4(x−a)+5×4×3C5(x−a)2+…

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

d2dx2(∑n=0∞Cn(x−a)n)=2C2+3×2C3(a−a)+4×3C4(a−a)2+…

and

d3dx3(∑n=0∞Cn(x−a)mn)=3×2C3+4×3×2C4(a−a)+5×4×3C5(a−a)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=0∞f(n)(a)n!(x−a)n=f(a)+f′(a)(x−a)+f″(a)2!(x−a)2+f‴(a)3!(x−a)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)(x−a)p2(x)=f(a)+f′(a)(x−a)+f″(a)2!(x−a)2p3(x)=f(a)+f′(a)(x−a)+f″(a)2!(x−a)2+f‴(a)3!(x−a)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)(x−a)+f″(a)2!(x−a)2+f‴(a)3!(x−a)3+⋯+fn(a)n!

Example: Finding Taylor Polynomials

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

Solution

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

f(x)=ln⁡xf(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)(x−1)=x−1p2(x)=f(1)+f′(1)(x−1)+f″(1)2(x−1)2+f‴(1)3!(x−1)3=(x−1)−12(x−1)2+13(x−1)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