shaun ault

ap calculus bc review: taylor and maclaurin series

taylor and maclaurin series are like polynomials, except that there are infinitely many terms. what makes these important is that they can often be used in place of other, more complicated functions. read on to find out how!

taylor and maclaurin polynomials

first of all, let’s recall taylor polynomials for a function f. you might want to read up on the topic here: ap calculus bc review: taylor polynomials

assume n ≥ 0 is a fixed whole number. (this is the degree, or order, of the polynomial.)

moreover, let’s assume c is a fixed real number (called the center).

then the taylor polynomial of f is:

taylor polynomial definition

and the maclaurin polynomial is just the taylor polynomial centered at c = 0.

maclaurin polynomial

approximating functions

taylor and maclaurin polynomials can approximate a function to any desired level of accuracy.

for example, see the figure below for graphs of the first few maclaurin polynomials for f(x) = sin x.

taylor polynomial approximations to a curve
the graphs of the taylor polynomials of a function tend to match the original function’s graph closer and closer as the degree increases.

taylor and maclaurin series

but taylor and maclaurin polynomials can only approximate functions. the approximation gets better and better with the inclusion of more terms. if you want an exact answer, then you have to include all the terms — all of the infinitely many terms!

taylor series include all the terms!

so a taylor series is really just taking a taylor polynomial to its logical extreme — what happens when we let a taylor polynomial’s degree increase without ever stopping?

note, we still use the same formula for the taylor coefficients as we did for taylor polynomials:

formula for the taylor coefficients

(remember, the superscript (n) means the nth derivative, not the nth power, of the function.)

here’s the complete formula for the taylor series of f, with center c (taylor’s formula):

taylor series for a function f

the maclaurin series is the same thing, but with c = 0 plugged in.

convergence issues

because there are an infinite number of terms in a typical taylor series, we have to address questions of convergence.

the convergence of a taylor or maclaurin series depends on the value of x. a given series will do one of three things:

  1. it may converge (have a finite value) regardless of x.
  2. there may be a finite number r (called the radius of convergence) so that the series converges within r units of the center c, and diverges outside of those bounds.
  3. the series may converge only at the center x = c, diverging at every other x-value.

but wait, it gets worse!

sometimes, even if a taylor series for f converges at some x-value, it may not actually have the same value as f(x)!

don’t worry, though. on the ap calculus bc exam, you will only see situations in which the taylor series converges to the function within some finite radius or for all x.

in this article, we’ll just focus on producing taylor and maclaurin series, leaving their convergence properties to another post.

differentiation and integration

taylor series are a type of power series. as such, you can do term-by-term differentiation and integration.

the following derivative and integral formulas apply to any power series — not just taylor series.

derivative formula

derivative of a power series

integral formula

integral of a power series

common power series

some functions are so common and useful that it just makes sense to memorize their power series.

common maclaurin series

there is no maclaurin series for ln(x), because ln(0) is undefined. however, there’s a quick and easy fix. just shift the function itself over by one unit.

power series for ln(1+x)

example: hyperbolic functions

the two functions, hyperbolic sine (sinh x) and hyperbolic cosine (cosh x) show up often in engineering.

hyperbolic sine and cosine functions

find the maclaurin series for each one. then i’ll show you two methods. you can pick which one seems better for you.

solution #1

first, let’s see if we can use taylor’s formula.

we’ll need to know the derivatives of both sinh x and cosh x. fortunately, there is a very simple pattern.

derivative of sinh x

derivative of cosh x

notice anything?

the derivative of sinh x is just cosh x, and vice versa!

next, we’ll also need to know the values at c = 0.

values of sinh(0) = 0, and cosh(0) = 1

now we have everything we need to put together the power series.

k f(k)(x) f(k)(1)/k!
0 f(x) = sinh x sinh 0 = 0
1 f '(x) = cosh x cosh 0 = 1
2 f ''(x) = sinh x (sinh 0)/2! = 0
3 f '''(x) = cosh x (cosh 0)/3! = 1/6
4 f(4)(x) = sinh x (sinh 0)/4! = 0
5 f(5)(x) = cosh x (cosh 0)/5! = 1/120

only the odd degree terms are nonzero. here’s what it looks like when you put it all together.

power series for sinh x

the power series for cosh x follows much the same pattern, except that now it’s the even degree terms that are nonzero.

power series for cosh x

solution #2

now let’s use the known power (maclaurin) series for ex to derive a power series for sinh x and cosh x.

remember: power series for e^x.

then, in the formula for sinh x, you can just use the series for ex everywhere you see an “ex.”

showing the steps to work out sinh x as a series

that last line may be simplified further. there is a pattern at work here.

  • if n is even, then 1 – (-1)n – 1 – 1 = 0.
  • but if n is odd, then 1 – (-1)n – 1 – (-1) = 2.

so actually, only the odd degree terms survive in the sum. (sound familiar?)

and in that case, the 1/2 cancels with the 2, so that only the power of x and the factorial remains in each term.

steps for producing the maclaurin series for sinh x

finally, by re-indexing the sum in terms of odd whole numbers (2n + 1), we get the proper maclaurin series for sinh x.

power series for sinh x

you can do the same sort of work to derive the series for cosh x. the first few steps are shown below, but the result will be the same series that we got before for hyperbolic cosine.

working out the cosh x series

graphs of hyperbolic functions

finally, to round out this example problem, let’s take a look at the graphs of each hyperbolic function. it would be a great exercise for you to plot the first few taylor polynomials of each series and compare the results against these graphs.

graph of hyperbolic sine
graph of y = sinh x from wolfram mathworld.
graph of cosh x
graph of y = cosh x from wolfram mathworld.

author

  • shaun ault

    shaun earned his ph. d. in mathematics from the ohio state university in 2008 (go bucks!!). he received his ba in mathematics with a minor in computer science from oberlin college in 2002. in addition, shaun earned a b. mus. from the oberlin conservatory in the same year, with a major in music composition. shaun still loves music — almost as much as math! — and he (thinks he) can play piano, guitar, and bass. shaun has taught and tutored students in mathematics for about a decade, and hopes his experience can help you to succeed!

more from magoosh