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:
and the maclaurin polynomial is just the taylor polynomial centered at c = 0.
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 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!
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:
(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):
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:
- it may converge (have a finite value) regardless of x.
- 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.
- 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
integral formula
common power series
some functions are so common and useful that it just makes sense to memorize their power 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.
example: hyperbolic functions
the two functions, hyperbolic sine (sinh x) and hyperbolic cosine (cosh x) show up often in engineering.
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.
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.
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.
the power series for cosh x follows much the same pattern, except that now it’s the even degree terms that are nonzero.
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: .
then, in the formula for sinh x, you can just use the series for ex everywhere you see an “ex.”
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.
finally, by re-indexing the sum in terms of odd whole numbers (2n + 1), we get the proper maclaurin 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.
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.
leave a reply