Kim’s Math NotesCourse index

Representing Functions as Power Series

How do I build new power series from the ones I know?

Build new power series from the ones you know: substitute, multiply, differentiate or integrate term by term, and find the new interval.

The missing constant

Common mistake x−x33+x510 → f(0)=0, not 2

Correction C=f(0)=2 → 2+x−x33+⋯

Idea 1: substitute

Idea one: substitute. Start from a series we know, written with the letter u. 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.

Watch this part of the concept lesson

Read the rest of this scene

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. 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. We never took a derivative.

Idea 2: term by term

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.

Differentiate both sides.

Watch this part of the concept lesson

Read the rest of this scene

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.

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. 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. 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.

Idea 3: the interval of the new series

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. That means x squared is less than one.

Watch this part of the concept lesson

Read the rest of this scene

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.

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 1: substitute, then multiply

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. 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.

Watch this part of the concept lesson

Read the rest of this scene

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. 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. 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. 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 2: integrate, then find the constant

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. 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.

Watch this part of the concept lesson

Read the rest of this scene

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. 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. f of x is two, plus x, minus x cubed over three, plus x to the fifth over ten, and so on.

Common mistake: the missing constant

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.

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.

Watch this part of the concept lesson

Example 3: into the geometric form

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. 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.

Watch this part of the concept lesson

Read the rest of this scene

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. 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.

Worked examples

Example 1

Write the first three nonzero terms and the general term of the Maclaurin series for f(x)=xsin(3x).
Hint

Put u=3x in the sine series, then multiply by x.

Answer and solution

Answer 3x2−92x4+8140x6; general term (−1)n32n+1x2n+2(2n+1)!

  1. sin(3x)=3x−(3x)33!+(3x)55!−⋯
  2. xsin(3x)=3x2−92x4+8140x6−⋯
  3. general term (−1)n32n+1x2n+2(2n+1)!

Example 2

Let f be the function with f(0)=2 and f′(x)=e−x2. Write the first four nonzero terms of the Maclaurin series for f.
Hint

Integrate the series for e−x2, then use f(0)=2.

Answer and solution

Answer 2+x−x33+x510

  1. f′(x)=1−x2+x42!−⋯→f(x)=C+x−x33+x510−⋯
  2. f(0)=C=2:2+x−x33+x510

Example 3

Which is a power series for 23−x, with its interval of convergence?
  1. ∑n=0∞2xn3n+1, |x|<3
  2. ∑n=0∞2xn3n, |x|<3
  3. ∑n=0∞2xn3n+1, |x|<1
  4. ∑n=0∞2⋅3nxn, |x|<13
Hint

Factor 3 out of the denominator.

Answer and solution

Answer A. ∑n=0∞2xn3n+1, |x|<3

  1. 23−x=23⋅11−x3=∑2xn3n+1,|x3|<1
  2. |x|<3.Answer A.

Workbook

Problem 1

Write the first four nonzero terms of the Maclaurin series for e2x.
Hint

Put 2x in for u, in parentheses.

Answer and solution

Answer 1+2x+2x2+43x3

  1. e2x=1+(2x)+(2x)22!+(2x)33!+⋯=1+2x+2x2+43x3+⋯

Common mistake Writing (2x)3 as 2x3.

Watch the worked solution to Problem 1

Problem 2

Which of the following gives the first three nonzero terms of the Maclaurin series for cos(x2)?
  1. 1−x22+x424
  2. x2−x66+x10120
  3. 1−x42+x824
  4. 1+x42+x824
Hint

A power of a power multiplies the exponents.

Answer and solution

Answer C. 1−x42+x824

  1. cosu=1−u22!+u44!−⋯,u=x2:1−x42+x824.Answer C.

Common mistake (A) is the series for cosx.

Watch the worked solution to Problem 2

Problem 3

Write the first three nonzero terms and the general term of the Maclaurin series for f(x)=x2e−x.
Hint

Substitute first, then multiply by x2.

Answer and solution

Answer x2−x3+x42; (−1)nxn+2n!

  1. e−x=1−x+x22−⋯⇒x2e−x=x2−x3+x42−⋯=∑n=0∞(−1)nxn+2n!

Common mistake Writing x2n instead of xn+2.

Watch the worked solution to Problem 3

Problem 4

The geometric series gives 11+t=1−t+t2−t3+⋯ for |t|<1. (a) Integrate the series from t=0 to t=x to write the first four nonzero terms of a power series for ln(1+x). (b) Find the interval of convergence of the new series. Justify your answer.
Hint

Same radius; test the endpoints again.

Answer and solution

Answer (a) x−x22+x33−x44 (b) (−1,1]

  1. ln(1+x)=∫0x11+tdt=x−x22+x33−x44+⋯
  2. R=1;x=1:1−12+13−⋯ converges;x=−1:−∑1n diverges⇒(−1,1]

Common mistake Keeping the old interval (−1,1).

Watch the worked solution to Problem 4

Problem 5

Use the Maclaurin series for cosx to find limx→01−cosxx2.
Hint

Subtract the series from 1, then divide by x2.

Answer and solution

Answer 12

  1. 1−cosx=x22!−x44!+⋯⇒1−cosxx2=12!−x24!+⋯→12

Common mistake Losing the sign change when subtracting.

Watch the worked solution to Problem 5

Problem 6

The geometric series gives 11−x=∑n=0∞xn for |x|<1. (a) Differentiate term by term to write a power series for 1(1−x)2. (b) Use your series to find the sum of ∑n=1∞n2n−1.
Hint

Pick the x that turns the series into the sum you want.

Answer and solution

Answer (a) ∑n=1∞nxn−1, |x|<1 (b) 4

  1. 1(1−x)2=∑n=1∞nxn−1,|x|<1;x=12:∑n=1∞n2n−1=1(1−12)2=4

Common mistake Using an x outside the interval.

Watch the worked solution to Problem 6