← Return to lesson

Class materials · 10.15

Representing Functions as Power Series

Lecture transcript

0:00

Last time, we learned the series for e to the x, sine x, cosine x, and one over one minus x. For a new function, we could take derivative after derivative again. But that gets slow, and messy, very fast. Today we build new series from the ones we already know, with almost no differentiation. Idea one: substitute. Start from a series we know, written with the letter u.

0:31

e to the u is one, plus u, plus u squared over two factorial, plus u cubed over three factorial, and so on. Suppose we want the series for e to the negative x squared. Put negative x squared in for u, everywhere, and keep it in parentheses. e to the negative x squared is one, plus negative x squared, plus negative x squared, squared, over two factorial, plus negative x squared, cubed, over three factorial, and so on. Now simplify each power. e to the negative x squared is one, minus x squared, plus x to the fourth over two factorial, minus x to the sixth over three factorial, and so on.

1:17

Do the same to the general term. u to the n, over n factorial, becomes negative x squared, to the n, over n factorial. Split off the sign: negative one to the n, times x squared to the n, over n factorial. Then multiply the exponents: the power of x is two n. And the interval comes along. The series for e to the u works for every u, so the new series works for every x.

1:46

We never took a derivative. Idea two: differentiate or integrate, term by term. From last time: where the size of x minus A is less than R, a power series can be differentiated or integrated term by term, like a polynomial. Each of those gives a new series, with almost no work. For differentiation, start with a series we know well. One over one minus x is one, plus x, plus x squared, plus x cubed, and so on.

2:19

Differentiate both sides. The function becomes one over one minus x, squared. The series, term by term, becomes zero, plus one, plus two x, plus three x squared, and so on. The zero is what the constant turned into. Now integrate. We use a new example, and it starts from a derivative you already know.

2:45

The derivative of arctangent x is one over one plus x squared. Turn that around. Arctangent x is the integral from zero to x of one over one plus t squared, d t. Inside we use the letter t, because x is on top, as the limit. Starting at zero matters: arctangent of zero is zero, so nothing extra appears. We need a series for one over one plus t squared. Start from the geometric series: one over one minus u is one, plus u, plus u squared, and so on.

3:21

Put negative t squared in for u. One minus negative t squared is one plus t squared. So one over one plus t squared is one, minus t squared, plus t to the fourth, and so on. Integrate term by term, with the power rule. t squared gives t cubed over three. t to the fourth gives t to the fifth over five.

3:46

Those are plain numbers underneath, not factorials. Integrate the series term by term. Arctangent x is x, minus x cubed over three, plus x to the fifth over five, and so on. There is another way, and you'll use it in example two. Integrate without limits, and a constant C appears. Find it by plugging in the center, zero, where every positive power of x vanishes.

4:15

Idea three: the interval of the new series. A new series needs its own interval. A series we have never met gets the ratio test. But if you built it by substituting into a known series, translate the old condition into a condition on x. For one over one plus x squared, the geometric series needs the size of u less than one, and u was negative x squared. So the size of negative x squared must be less than one.

4:44

That means x squared is less than one. So negative one is less than x, and x is less than one. From last time: differentiating or integrating keeps the radius R, but the endpoints must be tested again. Test the arctangent series. At x equals one, it's one, minus one third, plus one fifth, and so on. That alternating series converges.

5:12

At x equals negative one, it's negative one, plus one third, minus one fifth, and so on. That series also converges. So the interval from negative one to one became closed after we integrated. Never copy the old endpoints: test them in the new series. Example one is a free response question. Write the first three nonzero terms and the general term of the Maclaurin series for f of x equals x times sine of three x.

5:46

The plan: start from the sine series. Put three x in for u. Then multiply everything by x. Sine of u is u, minus u cubed over three factorial, plus u to the fifth over five factorial, and so on. Put three x in for u, in parentheses. Sine of three x is three x, minus three x, cubed, over three factorial, plus three x, to the fifth, over five factorial, and so on.

6:17

The whole three x is raised to each power. That gives three x, minus twenty-seven x cubed over six, plus two hundred forty-three x to the fifth, over one hundred twenty, and so on. This line earns the point. Multiply by x, and reduce the fractions. x sine of three x is three x squared, minus nine halves x to the fourth, plus eighty-one over forty, x to the sixth, and so on. The plan: take the general term of the sine series, substitute, and multiply by x.

6:54

The sine series has general term negative one to the n, times u to the two n plus one, over two n plus one factorial, starting at n equals zero. Put three x in for u, and multiply by x. That's x, times negative one to the n, times three x, to the two n plus one, over two n plus one factorial. Do it in two moves. Three x, to the two n plus one, is three to the two n plus one, times x to the two n plus one. And x, times x to the two n plus one, is x to the two n plus two.

7:33

This line earns the point. Split the power, and collect the x's: negative one to the n, times three to the two n plus one, times x to the two n plus two, over two n plus one factorial. Let's check it with n equals one. You get negative twenty-seven x to the fourth, over six, and that matches the terms we wrote. Example two is a free response question. Let f be the function with f of zero equal to two, and f prime of x equal to e to the negative x squared.

8:08

Write the first four nonzero terms of the Maclaurin series for f. The plan: write the series for f prime. Integrate it term by term. Then find the constant C from f of zero. We already have it. f prime of x, e to the negative x squared, is one, minus x squared, plus x to the fourth over two factorial, and so on.

8:34

Integrate term by term. f of x is a constant C, plus x, minus x cubed over three, plus x to the fifth, over five times two factorial, and so on. Now plug in zero. Every positive power of x vanishes, so f of zero is C. And f of zero is two, so C is two. This line earns the point.

9:00

f of x is two, plus x, minus x cubed over three, plus x to the fifth over ten, and so on. Stay with that integral for a moment. When you integrate a series, it's easy to focus on the terms and forget one piece of the answer. This is where people lose points. A common answer is x, minus x cubed over three, plus x to the fifth over ten. But then f of zero would be zero, not two.

9:30

Keep the constant C, and find it from f of zero equals two. So the series starts with two, plus x, minus x cubed over three. Example three is multiple choice. Which choice gives a power series for two over three minus x and its interval of convergence? The plan: we want the form one over one minus u, because that is the geometric series we know. Factor a three out of three minus x: it is three, times one minus x over three.

10:07

So two over three minus x is two thirds, times one over one minus x over three. Use the geometric series with ratio x over three. That's two thirds, times the sum of x over three, to the n. Distribute the two thirds: two thirds, times x to the n over three to the n. In the denominator, three times three to the n is three to the n plus one. So it's the sum of two x to the n, over three to the n plus one.

10:39

For this geometric series to converge, the absolute value of x over three has to be less than one. Multiply both sides by three and you get the absolute value of x less than three. So the answer is A. Choice C kept the old interval: the size of x less than one. So, how do we get a new series without starting over? Substitute into a series you know, and keep what you substitute in parentheses.

11:09

Differentiate or integrate term by term, and when you integrate without limits, find the constant C at the center. And every new series gets its own interval. Translate the condition, and test the endpoints again. Did integrating ever change which endpoints you could include? Tell me in the comments. That's the end of unit ten: from adding numbers forever, to writing functions as series.