Taylor or Maclaurin Series for a Function (College Board AP® Calculus BC): Revision Note

Roger B

Written by: Roger B

Reviewed by: Mark Curtis

Updated on

Taylor or Maclaurin series for a function

What is the Taylor series for a function?

  • Let f be a function

    • If the function exists at x=a

    • and if the function is infinitely differentiable at x=a

      • i.e. if the derivative f(n)(a) exists for all n=1, 2, 3, 4, ...

    • then the Taylor series for f about x=a is

 n=0f(n)(a)n!(xa)n=f(a)+f'(a)(xa)+f''(a)2!(xa)2+...+f(n)(a)n!(xa)n+...

  • Note that

    • The Taylor series is a power series

    • The Taylor series can be seen as a Taylor polynomial that 'goes on forever'

      • I.e. the nth degree Taylor polynomial is a truncated Taylor series, which stops at a particular value of n

      • A Taylor polynomial for f is a partial sum of the Taylor series for f

What is the relationship between Taylor series and power series?

  • A power series about a is any series of the form

    • n=0cn(xa)n=c0+c1(xa)+c2(xa)2+...+cn(xa)n+...

      • where the coefficients cn can be any sequence of real numbers

  • A Taylor series about a is the series

    •  n=0f(n)(a)n!(xa)n=f(a)+f'(a)(xa)+f''(a)2!(xa)2+...+f(n)(a)n!(xa)n+...

      • where the coefficients must have the specific form f(n)(a)n!

  • All Taylor series about a for the function f(x) are power series

    • As a Taylor series is a power series, it may converge

      • at a single point (i.e. at x=a only)

      • over a finite interval of x values

      • or for all real numbers

    • On its interval of convergence, a Taylor series is exactly equal to its function

      • It only becomes an approximation if it is truncated at some value of n

  • Not all power series about a are Taylor series for the function f(x)

    • If, however, a power series about x=a is found such that it converges to the function f(x) on some interval of convergence (i.e. has a positive radius of convergence), then that power series is the Taylor series for f(x) about a

    • This means that the Taylor series for a function is unique

      • I.e., there is no other power series that will also be exactly equal to the function

What is the Maclaurin series for a function?

  • A Maclaurin series for a function is a special case of a Taylor series

  • It is the Taylor series for a function about the point x=0

    • I.e. if the function f and all its derivatives exist at x=0, then the Maclaurin series for f about x=0 is

     n=0f(n)(0)n!xn=f(0)+f'(0)x+f''(0)2!x2+...+f(n)(0)n!xn+...

Examiner Tips and Tricks

In practice Maclaurin series are the most commonly encountered form of Taylor series. For the exam, however, make sure you are able to handle Taylor series about any point x=a.

What standard power series should I be familiar with?

  • You should know the following four Maclaurin series for standard functions

  • 11x = n=0xn=1+x+x2+x3+...

    • This series converges for |x|<1, i.e. 1<x<1

    • Note that this is a geometric series with common ratio x

      • Remember that the geometric series sum is n=0arn=a1r for |r|<1

      • The power series version can be found by

        • dividing both sides of that by a

        • and substituting r=x

  • sinx = n=0(1)nx2n+1(2n+1)!=xx33!+x55!x77!+...

    • This series converges for all real numbers, i.e. for <x<

    • Note that this is an alternating series and x is in radians

  • cosx = n=0(1)nx2n(2n)!=1x22!+x44!x66!+...

    • This series converges for all real numbers, i.e. for <x<

    • Note that this is an alternating series and x is in radians

  • ex = n=0xnn!=1+x+x22!+x33!+...

    • This series converges for all real numbers, i.e. <x<

  • These results are summarized in the table below

function

Maclaurin series

convergence

11x 

1+x+x2+x3+...

1<x<1

sinx

xx33!+x55!x77!+...

all x

cosx

1x22!+x44!x66!+...

all x

ex

1+x+x22!+x33!+...

all x

Worked Example

Show that the first four non-zero terms of the Maclaurin series for f(x)=sinx are given by xx33!+x55!x77!.

Answer:

Start by calculating the derivatives

f'(x)=cosx

f''(x)=sinx

f'''(x)=cosx

The Maclaurin series is the Taylor series about x=0, and f(x) and f''(x) are both equal to zero at x=0, so we're going to need more derivatives

Note however that the derivatives of sinx 'cycle back around' at this point

f(4)(x)=sinx

f(5)(x)=cosx

f(6)(x)=sinx

f(7)(x)=cosx

Now calculate the values of f(x) and those derivatives at x=0

Remember⁣ sin(0)=0 and cos(0)=1

f(0)=0        f'(0)=1         f''(0)=0         f'''(0)=1

f(4)(0)=0        f(5)(0)=1         f(6)(0)=0         f(7)(0)=1

Now substitute those values into the Maclaurin series formula  n=0f(n)(0)n!xn=f(0)+f'(0)x+f''(0)2!x2+...+f(n)(0)n!xn+...

f(0)+f'(0)x+f''(0)2!x2+f'''(0)3!x3+f(4)(0)4!x4+f(4)(0)4!x4+f(5)(0)5!x5+f(6)(0)6!x6+f(7)(0)7!x7=0+1·x+02!x2+13!x3+04!x4+15!x5+06!x6+17!x7=0+x+013!x3+0+15!x5+017!x7=xx33!+x55!x77!

The first four non-zero terms of the Maclaurin series for f(x)=sinx are xx33!+x55!x77!

Do all Taylor series have an infinite number of non-zero terms?

  • For some functions, the derivatives all become zero after a certain point

    • In particular, this is true of polynomial functions

  • For example, if you try to calculate the Taylor series for f(x)=x2 about x=a

    • The derivatives are f'(x)=2x, f''(x)=2, f'''(x)=0, f(4)(x)=0, f(5)(x)=0, etc.

    • When you put that into the Taylor series formula you get

       n=0f(n)(a)n!(xa)n=a2+2a(xa)+22!(xa)2+0+0+0+...=a2+2a(xa)+(xa)2

      • Expanding gives a2+2ax2a2+x22ax+a2 which simplifies to x2

      • The Taylor series for x2 is just x2

  • The Taylor series for a polynomial function is always just equal to the polynomial function

  • For more 'interesting' functions, however, the Taylor series will generally go on forever

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Roger B

Author: Roger B

Expertise: Development Editor

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

Mark Curtis

Reviewer: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.