If Taylor polynomials get better as the degree goes up, what happens if you never stop? You get a Taylor series: a power series that, for the most important functions in calculus, equals the function exactly on its interval of convergence. A handful of these series are so useful that the AP exam expects you to know them by heart.
From polynomials to series
Definition
Taylor series
If f has derivatives of all orders at x=a, the Taylor series for f about x=a is
When a=0, it is called the Maclaurin series for f.
The nth partial sum of the Taylor series is just the Taylor polynomial Pn(x). For the functions in this lesson, the Lagrange remainder Rn(x) goes to 0 as n→∞ for every x in the interval of convergence, so the series really does equal the function there.
cos x with Maclaurin polynomials of degree 2, 4 and 8. Adding terms extends the good fit farther from 0; the full series equals cos x for every x.Open in grapher →
Does the series equal the function?
Having a Taylor series isn't quite the same as having the function. The series is built only from derivatives at a single point, and there are two separate questions to ask:
Where does the series converge? Answer this with the ratio test, as in the previous lesson.
Where it converges, does it converge to f(x)? Answer this by showing the Lagrange remainder goes to 0.
For ex, for instance, the remainder after n terms is at most (n+1)!M∣x∣n+1, where M is the largest value of et between 0 and x. Factorials outgrow powers, so this goes to 0 for every x, and the series equals ex everywhere. The same argument, with M=1, works for sinx and cosx. For 1−x1 you already know the answer from geometric series. On the AP exam, you can take for granted that the standard series below equal their functions on their intervals of convergence.
Some patterns make these easier to remember. The series for sinx has only odd powers, matching the fact that sin is an odd function; cosx has only even powers because cos is even. Both alternate in sign. The series for ex has every power, all positive. And 1−x1 is the geometric series.
Two more series, which you'll derive in the next lesson, round out the list:
You rarely need to compute derivatives from scratch. Instead, substitute into a known series. To get the Maclaurin series for e3x, replace x by 3x in the series for ex:
e3x=1+3x+2!(3x)2+3!(3x)3+⋯=1+3x+29x2+29x3+⋯.
You can also multiply a series by a power of x: xcosx=x−2!x3+4!x5−⋯.
Common mistake
When you substitute, put the whole replacement in parentheses and raise it to the power. (3x)2=9x2, not 3x2. And (−x2)n=(−1)nx2n: the sign and the exponent both change.
Recognizing a series
Running the process backward is a common exam question: identify the function whose series you are looking at, then evaluate it. For example,
Solution. Every derivative is ex, so f(n)(2)=e2 for all n:
ex=n=0∑∞n!e2(x−2)n=e2+e2(x−2)+2e2(x−2)2+⋯.
Worked example: Summing a series by recognition
Find the exact sum of n=0∑∞n!3n and of n=0∑∞(2n)!(−1)n.
Solution. The first matches ∑n!xn with x=3, so it equals e3. The second matches the cosine series with x=1 (since 12n=1), so it equals cos1.
Worked example: A coefficient deep in the series
Find the coefficient of x10 in the Maclaurin series for cos(x2).
Solution. Substitute x2 into the cosine series: cos(x2)=∑(2n)!(−1)nx4n. The power x10 would need 4n=10, which has no whole-number solution. So the coefficient is 0. (Only powers x0,x4,x8,x12,… appear.)
Tip
Since the Taylor coefficient of (x−a)n is n!f(n)(a), a series gives you every derivative at the center for free: f(n)(a)=n!⋅cn. For example, from e−x2 above, the x6 coefficient is −61, so the sixth derivative at 0 is 6!⋅(−61)=−120.
Practice
Practice 1
What is the coefficient of x6 in the Maclaurin series for cosx?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 2
What is the coefficient of x6 in the Maclaurin series for e−x2?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
What is the coefficient of (x−2)3 in the Taylor series for ex about x=2? Give an exact value.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Find the exact sum of n=0∑∞(2n)!(−1)nπ2n.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
Find the exact sum of n=0∑∞n!2n.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
Which is the Maclaurin series for xsinx?
Practice 7
Let f(x)=e−x2. Use the Maclaurin series to find f(6)(0).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 8
The Maclaurin series for f is n=0∑∞(2n+1)!(−1)n22n+1x2n+1. Which function is f?