Math 112 f22 Lab 10 Representing Functions As Power Series
Math 112 f22 Lab 10 Representing Functions As Power Series
Math 112
Lab 10
c x
n=0
n
n
= c0 + c1 x + c2 x 2 + c3 x 3 + ... (1)
is called a power series. It is a function of x whose domain is the set of all x for which it converges.
ar
n =1
n −1
= a + ar + ar 2 + ar 3 + ... + ar n + ... a0, (2)
a
is a geometric series that converges to the sum, s = , if r 1 .
1− r
If we let c n = 1 in (1), the power series becomes the geometric series where a = 1 and r = x . It
1
follows, if x 1 , the power series converges to the sum, s = . Thus, we see a function that can
1− x
be represented as a power series:
f (x ) =
1
= x n = 1 + x + x 2 + x 3 + ... + x n + ... whose domain is x 1 (3)
1 − x n =0
By manipulating the expressions in equation (3), we can represent other functions as powers series.
This manipulation includes algebra, substitution, differentiation and integration. The following three
examples demonstrate how this works. Simpler examples are in your textbook on pages 747-750.
2
Example 1: Express f (x ) =
x
as a power series.
2x + 3
2
At first glance, this shows no resemblance to the function in (3) but we use algebra to manipulate f ( x )
and create a substitution for x in the geometric series x n . Generally, we want the form:
n =0
f ( x ) = h( x ) = g ( x ) h( x ) . For the function above we factor out x from the numerator
1 n
1 − g ( x ) n =0
2 2
and 3 from the denominator. Then, replace x in equation (3) with − x . So,
3
n
n n
x 2 2
2 2 x n 12
f (x ) = 2 = − x = − x = (− 1) x 2 n +1
x
x 1
=
2x + 3 3 2 3 n =0 3 n =0 3 3 n =0 3 3
1− − x2
3
n
12
The power series representation for f (x ) = 2 is (− 1) x 2 n +1 .
x n
2 x + 3 n =0 3 3
Rules for differentiation and integration of functions can be applied in power series problems.
d 1
(1 − x ) d (1) − (1)
d
(1 − x)
1
= dx dx =
dx 1 − x (1 − x) 2
(1 − x )2
We can also differentiate a power series term-by-term to obtain:
d 1 d n d
1
(1 − x )2
= = x =
dx 1 − x dx n =0 dx
1 + x + x 2
+ x 3
+ ... = 0 + 1 + 2 x + 3 x 2
+ ... =
n =1
nx n −1
1
B. Using the indefinite integral x dx = ln x + C along with substitution we see
1
1 − x dx = − ln 1 − x + C
We can also integrate a power series term-by-term to obtain:
− ln (1 − x ) =
1 1 1 1 n +1
dx = x n dx = 1 + x + x 2 + x 3 + ... dx = x + x 2 + x 3 + ... + C = x
1− x n =0 2 3 n =0 n + 1
3
d 1 (2 x + 3)(0) − 1(2) −2
= =
dx 2 x + 3 (2 x + 3)2
(2 x + 3)2
Now that we know what the derivative looks like, we can write f(x) in terms of this derivative.
−2 x d 1
f (x ) =
x x
= =−
(2 x + 3)
2
− 2 (2 x + 3)2
2 dx 2 x + 3
Why do we go through all these manipulations? We can now create a power series for 1/(2x+3) and
x
differentiate it to create another power series. We then include the factor − in the power series.
2
x d 1 x d 2
n
x d
n
n 2
f (x ) = − ( )
x d 1 1
2 dx 2 x + 3
= −
2 dx 3
2
= − − x
6 dx n =0 3
= −
6 dx n =0
− 1
3
x n
1 − − 3 x
n n
x n 2
n +1 1 2
= − (− 1) nx n −1 = (− 1) nx
n
6 n =0 3 n =0 6 3
n
n +1 1 2
The power series representation for f ( x ) = is (− 1)
x
nx n .
(2 x + 3) 2
n =1 6 3
1. The derivative of a power series IS another power series! The same is true for the integral of a
power series.
2. The radius of convergence remains the same when a power series is differentiated or integrated
but the interval of convergence might change.
4
Once again, there is a connection between 1/(2x+3) and the given function. Integration provides this
connection so a good starting point in creating the power series for f(x) is to integrate 1/(2x+3).
1 1
2 x + 3 dx = 2 ln 2 x + 3 + C
Now that we see the integral only differs from f(x) by a factor of 1/2, we can write f(x) in terms of this
integral.
f (x ) = ln (2 x + 3) = 2 ln 2 x + 3 = 2
1 1
dx
2 2x + 3
We can now create a power series for 1/(2x+3) and integrate it to create the power series for f(x). We
then include the factor 2 in the power series.
n n
2 2 2 n 2
f (x ) = 2 dx = − x dx = (− 1) x n dx
1 1 1
dx = 2
2x + 3 3 2 3 n =0 3 3 n =0 3
1− − x
3
n +1 n +1
x n +1
n
2 n 2 x
n 2
= (− 1) = (− 1)
3 n =0 3 n + 1 n =0 3 n +1
n
2 x
n
The power series representation for f (x ) = ln (2 x + 3) is (− 1)
n −1
.
n =1 3 n
We learned in 11.3 that any partial sum s n can approximate the sum of a convergent series. How does
this relate to our power series representations of a function? Suppose we want to approximate the sum
1
of the convergent geometric power series x n = 1 + x + x 2 + x 3 + ... at x = (remember, this series
n =0 4
1 5
only converges for − 1 x 1 ). Using the 2nd partial sum, we get s s 2 = 1 + = . We know the
4 4
1 4 1
exact sum is s = = since = x n = 1 + x + x 2 + x 3 + ... Calculating s 2 amounts to summing
1 3 1 − x n =0
1−
4
the first two terms in the series. So, if we do not fix the value of x, the approximation of the sum is a
1
linear equation in x. That is 1 + x for x 1 .
1− x
5
In Math 111, we learned a formula for the linear approximation of a function near a point x = a.
Question 1. Since s 3 provides a better approximation than s 2 for the sum of a convergent series, does
adding another term in the power series also show a better approximation (graphically)?
1
Adding the next term of the power series for an approximation yields 1 + x + x 2 . We can see
1− x
this quadratic approximation is better.
6
Question 2. Is there a connection to the linear approximation formula in the box above and the power
series representation of a function? If so, does this connection extend to the quadratic approximation
as well?
The answer is “yes” and we will investigate.
1
The linear approximation formula 1 + x , satisfies the following conditions:
1− x
The general formula that satisfies these conditions (for a = 0) is f (x ) = f (0) + f (0) x (5)
1
The quadratic approximation formula 1 + x + x 2 , satisfies the following conditions:
1− x
Question 3. Adding more terms to s n yields a better approximation of the sum; does adding more
terms in the power series yield a better approximation to the function f ( x ) ? Does the general formula
for the approximating polynomial continue to have a pattern? The answers are “yes” and “yes”.
Each higher degree polynomial that approximates f ( x ) will satisfy the previous conditions analogous
to the tangent line and the tangent parabola as well as:
• The nth derivatives of f ( x ) and the tangent nth degree polynomial are equal at x = 0.
You may use your textbook, lab and notes. Students may work cooperatively but must submit their
own set of Lab Exercises. No calculators unless noted.
n n
n +1 1 2 1 2
(− 1) nx n = (− 1)
n +1
nx
n
n =0 6 3 n =1 6 3
(− 1) 2 n −1 2 x
n
= (− 1)
n
n =0 3 n + 1 n =1 3 n
1
(c) It is said (in class, in the textbook and in this lab) that = 1 + x + x 2 + x 3 + ... but there
1− x
1
seems to be a problem. For example, if x = 2 we have 1 + 2 + 4 + 8 + ... . Explain what
1− 2
1
your instructor, the textbook and this lab mean when they say = 1 + x + x 2 + x 3 + ... .
1− x
x
2. Find the power series representation for f ( x ) = by first manipulating equation (3).
9 − x2
8
x
3. Find the power series representation for f ( x ) = by first manipulating equation (3).
(9 − x )
2
1+ x
4. Find the power series representation for f ( x ) = ln by manipulating equation (3). Hint:
1− x
begin by simplifying f ( x ) using Laws of Logs then create two power series to combine. Your final
answer should be a single power series.
9
1
5. (a) Complete the table then find the first four terms of the Maclaurin Series for f ( x ) = using
1− 2x
equation (7). Simplify each table entry and each coefficient of the series.
n f n
(x ) f n ( 0)
0
1
(b) On the coordinate plane below, sketch the graphs of f ( x ) = as well as the linear and
1− 2x