Educerie

Educerie · AP · Calculus AB and BC

Unit 10 Infinite Sequences and Series · 10.15 Representing Functions as Power Series

BC only. This topic is on the AP Calculus BC exam and not on AB.

Big ideas: LIM (Limits). Few functions need a new series built from scratch. Take a series you know and change it by substitution, multiplication, differentiation or integration.

The question this unit answers: When does an endless sum settle on a number, and how do we tell, and how do we use it to approximate?

Where it is examined: Section I multiple choice: the first terms or the general term of a series obtained from a known one, or the radius after an operation. Section II free response (series question 6): start from a known Maclaurin series such as the one for sin⁡x\sin x, build the first few terms of the series for a related function, then differentiate or integrate that series and bound an error.


AP Calculus AB and BC 10.15

Representing Functions as Power Series

When does an endless sum settle on a number, and how do we tell, and how do we use it to approximate?

What you will learn

  • Understand how substituting, multiplying, differentiating or integrating a known series builds a new one.
  • Know how the radius changes under each operation.
  • Understand that a constant of integration is fixed by a known value.

You must be able to

  1. Substitute into a known Maclaurin series.
  2. Write a rational function as a geometric series.
  3. Differentiate or integrate a series term by term.
  4. Fix the constant of integration.
  5. Approximate an integral and bound the error.

1Substitution

If f(u)=∑anunf(u) = \sum a_n u^n, then putting u=g(x)u = g(x) gives f(g(x))=∑an[g(x)]nf(g(x)) = \sum a_n [g(x)]^n, for the xx values where g(x)g(x) is inside the radius.

Example: eu=∑unn!e^u = \sum \dfrac{u^n}{n!}. Put u=−x2u = -x^2:

e−x2=∑n=0∞(−x2)nn!=∑n=0∞(−1)nx2nn!=1−x2+x42−x66+⋯ e^{-x^2} = \sum_{n=0}^{\infty}\frac{(-x^2)^n}{n!} = \sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{n!} = 1 - x^2 + \frac{x^4}{2} - \frac{x^6}{6} + \cdots

The radius is ∞\infty, as for eue^u.

Example: 11−u=∑un\dfrac{1}{1-u} = \sum u^n for ∣u∣<1\lvert u\rvert < 1. Put u=−x2u = -x^2:

11+x2=∑n=0∞(−1)nx2n=1−x2+x4−x6+⋯ \frac{1}{1+x^2} = \sum_{n=0}^{\infty}(-1)^n x^{2n} = 1 - x^2 + x^4 - x^6 + \cdots

This holds when ∣−x2∣<1\lvert -x^2\rvert < 1, so ∣x∣<1\lvert x\rvert < 1.

Example: 11−3x\dfrac{1}{1-3x}, with u=3xu = 3x: ∑(3x)n=∑3nxn\sum (3x)^n = \sum 3^n x^n, valid for ∣3x∣<1\lvert 3x\rvert < 1, so ∣x∣<13\lvert x\rvert < \tfrac13. Substitution can shrink or stretch the radius.

Example: sin⁡(x2)=∑(−1)n(x2)2n+1(2n+1)!=∑(−1)nx4n+2(2n+1)!=x2−x66+⋯\sin(x^2) = \sum \dfrac{(-1)^n (x^2)^{2n+1}}{(2n+1)!} = \sum \dfrac{(-1)^n x^{4n+2}}{(2n+1)!} = x^2 - \dfrac{x^6}{6} + \cdots, for all xx.

2Multiplying by a power of xx

Multiply every term by the same factor, and the series is multiplied term by term. The radius is unchanged.

Example: x ex2x\,e^{x^2}. Start with ex2=∑x2nn!=1+x2+x42+⋯e^{x^2} = \sum \dfrac{x^{2n}}{n!} = 1 + x^2 + \dfrac{x^4}{2} + \cdots. Multiply by xx:

x ex2=∑n=0∞x2n+1n!=x+x3+x52+x76+⋯ x\,e^{x^2} = \sum_{n=0}^{\infty}\frac{x^{2n+1}}{n!} = x + x^3 + \frac{x^5}{2} + \frac{x^7}{6} + \cdots

The common slip is forgetting the factorial of nn, not of the power: the x5x^5 term has 12!\tfrac{1}{2!}, not 15!\tfrac{1}{5!}.

3Rewriting as a geometric series

Many rational functions are a geometric series in disguise. Aim for the form first term1−ratio\dfrac{\text{first term}}{1 - \text{ratio}}.

Example: 32−x\dfrac{3}{2-x}. Factor 2 out of the denominator:

32−x=3/21−x/2=32∑n=0∞(x2)n=∑n=0∞32n+1xn. \frac{3}{2-x} = \frac{3/2}{1 - x/2} = \frac32\sum_{n=0}^{\infty}\left(\frac{x}{2}\right)^n = \sum_{n=0}^{\infty}\frac{3}{2^{n+1}}x^n.

It converges for ∣x2∣<1\left\lvert\tfrac{x}{2}\right\rvert < 1, so R=2R = 2. The first terms are 32+34x+38x2+⋯\tfrac32 + \tfrac34 x + \tfrac38 x^2 + \cdots.

Example: x21−x\dfrac{x^2}{1-x}. Multiply the series for 11−x\tfrac{1}{1-x} by x2x^2: x2+x3+x4+⋯x^2 + x^3 + x^4 + \cdots, with R=1R = 1.

4Differentiating term by term

A power series with radius RR can be differentiated term by term inside its open interval, and the result has the same radius.

Example: 1(1−x)2=ddx[11−x]\dfrac{1}{(1-x)^2} = \dfrac{d}{dx}\left[\dfrac{1}{1-x}\right]. Differentiate 1+x+x2+x3+⋯1 + x + x^2 + x^3 + \cdots:

1(1−x)2=1+2x+3x2+4x3+⋯=∑n=1∞n xn−1,∣x∣<1. \frac{1}{(1-x)^2} = 1 + 2x + 3x^2 + 4x^3 + \cdots = \sum_{n=1}^{\infty} n\,x^{n-1}, \quad \lvert x\rvert < 1.

Check at x=0.1x = 0.1: the sum of the first nine terms is 1.23456789, and 10.92≈1.2345679\dfrac{1}{0.9^2} \approx 1.2345679. The two agree.

Note the index. The constant term 11 of the original series differentiates to 0, so the new series starts at n=1n = 1, and its general term has the power xn−1x^{n-1}.

5Integrating term by term

A power series can be integrated term by term inside its open interval, with the same radius. Remember the constant, and fix it with a value.

Example: ln⁡(1+x)\ln(1+x). Since ddxln⁡(1+x)=11+x=∑(−1)nxn\dfrac{d}{dx}\ln(1+x) = \dfrac{1}{1+x} = \sum (-1)^n x^n, integrate:

ln⁡(1+x)=C+∑n=0∞(−1)nxn+1n+1. \ln(1+x) = C + \sum_{n=0}^{\infty}\frac{(-1)^n x^{n+1}}{n+1}.

At x=0x = 0, ln⁡1=0\ln 1 = 0, so C=0C = 0. Re-index with n+1n+1 as the new nn:

ln⁡(1+x)=∑n=1∞(−1)n+1xnn=x−x22+x33−⋯ ,∣x∣<1 (and x=1). \ln(1+x) = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}x^n}{n} = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots, \quad \lvert x\rvert < 1 \text{ (and } x = 1\text{)}.

Example: arctan⁡x\arctan x. Integrate 11+x2=∑(−1)nx2n\dfrac{1}{1+x^2} = \sum (-1)^n x^{2n}, with arctan⁡0=0\arctan 0 = 0:

arctan⁡x=∑n=0∞(−1)nx2n+12n+1=x−x33+x55−⋯ ,∣x∣<1. \arctan x = \sum_{n=0}^{\infty}\frac{(-1)^n x^{2n+1}}{2n+1} = x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots, \quad \lvert x\rvert < 1.

The radius is 1 for each, the same as the series integrated. The endpoints are tested separately (10.13).

6Using a series to approximate an integral

A function with no elementary antiderivative can be integrated through its series.

Example: ∫01e−x2 dx\displaystyle\int_0^1 e^{-x^2}\,dx. Integrate the series for e−x2e^{-x^2} term by term:

∫01e−x2dx=∑n=0∞(−1)nn! (2n+1)=1−13+110−142+1216−⋯ \int_0^1 e^{-x^2}dx = \sum_{n=0}^{\infty}\frac{(-1)^n}{n!\,(2n+1)} = 1 - \frac13 + \frac{1}{10} - \frac{1}{42} + \frac{1}{216} - \cdots

This is an alternating series whose terms decrease to 0, so the alternating series error bound applies. The first four terms give 1−0.3333+0.1−0.0238≈0.74291 - 0.3333 + 0.1 - 0.0238 \approx 0.7429. The first omitted term is 1216≈0.0046\tfrac{1}{216} \approx 0.0046, so the error is at most 0.0046. The true value is about 0.7468, so the actual error is about 0.0039.

Example: arctan⁡12\arctan\tfrac12. Use the first three terms of x−x33+x55−⋯x - \tfrac{x^3}{3} + \tfrac{x^5}{5} - \cdots at x=12x = \tfrac12:

0.5−0.041667+0.00625≈0.46458. 0.5 - 0.041667 + 0.00625 \approx 0.46458.

The series alternates with decreasing terms, and the next term is (1/2)77≈0.00112\tfrac{(1/2)^7}{7} \approx 0.00112, so the error is at most 0.0012. The true value is 0.46365, so the actual error is about 0.0009.

7How the radius changes

OperationRadius
Multiply by a constant or by a power of xxUnchanged
Differentiate or integrate term by termUnchanged (endpoints may change)
Substitute u=kxu = kxRR divided by ∣k∣\lvert k\rvert
Substitute u=x2u = x^2R\sqrt R
Add two series with radii R1R_1, R2R_2At least the smaller of the two

For example, 11−3x\dfrac{1}{1-3x} has R=13R = \tfrac13, and 11+x2\dfrac{1}{1+x^2} has R=1R = 1, because ∣x2∣<1\lvert x^2\rvert < 1 means ∣x∣<1\lvert x\rvert < 1.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.