6.4 Working with Taylor Series

In the preceding section, we defined Taylor series and showed how to find the Taylor series for several common functions by explicitly calculating the coefficients of the Taylor polynomials. In this section we show how to use those Taylor series to derive Taylor series for other functions. We then present two common applications of power series. First, we show how power series can be used to solve differential equations. Second, we show how power series can be used to evaluate integrals when the antiderivative of the integrand cannot be expressed in terms of elementary functions. In one example, we consider ∫e−x2dx, an integral that arises frequently in probability theory.

The Binomial Series

Our first goal in this section is to determine the Maclaurin series for the function f(x)=(1+x)r for all real numbers r. The Maclaurin series for this function is known as the binomial series. We begin by considering the simplest case: r is a nonnegative integer. We recall that, for r=0,1,2,3,4,f(x)=(1+x)r can be written as

f(x)=(1+x)0=1,f(x)=(1+x)1=1+x,f(x)=(1+x)2=1+2x+x2,f(x)=(1+x)3=1+3x+3x2+x3,f(x)=(1+x)4=1+4x+6x2+4x3+x4.

The expressions on the right-hand side are known as binomial expansions and the coefficients are known as binomial coefficients. More generally, for any nonnegative integer r, the binomial coefficient of xn in the binomial expansion of (1+x)r is given by

(rn)=r!n!(r−n)!6.6

and

f(x)=(1+x)r=(r0)1+(r1)x+(r2)x2+(r3)x3+⋯+(rr−1)xr−1+(rr)xr=∑n=0r(rn)xn.6.7

For example, using this formula for r=5, we see that

f(x)=(1+x)5=(50)1+(51)x+(52)x2+(53)x3+(54)x4+(55)x5=5!0!5!1+5!1!4!x+5!2!3!x2+5!3!2!x3+5!4!1!x4+5!5!0!x5=1+5x+10x2+10x3+5x4+x5.

We now consider the case when the exponent r is any real number, not necessarily a nonnegative integer. If r is not a nonnegative integer, then f(x)=(1+x)r cannot be written as a finite polynomial. However, we can find a power series for f. Specifically, we look for the Maclaurin series for f. To do this, we find the derivatives of f and evaluate them at x=0.

f(x)=(1+x)rf(0)=1f′(x)=r(1+x)r−1f′(0)=rf″(x)=r(r−1)(1+x)r−2f″(0)=r(r−1)f‴(x)=r(r−1)(r−2)(1+x)r−3f‴(0)=r(r−1)(r−2)f(n)(x)=r(r−1)(r−2)⋯(r−n+1)(1+x)r−nf(n)(0)=r(r−1)(r−2)⋯(r−n+1)

We conclude that the coefficients in the binomial series are given by

f(n)(0)n!=r(r−1)(r−2)⋯(r−n+1)n!.6.8

We note that if r is a nonnegative integer, then the (r+1)st derivative f(r+1) is the zero function, and the series terminates. In addition, if r is a nonnegative integer, then Equation 6.8 for the coefficients agrees with Equation 6.6 for the coefficients, and the formula for the binomial series agrees with Equation 6.7 for the finite binomial expansion. More generally, to denote the binomial coefficients for any real number r, we define

(rn)=r(r−1)(r−2)⋯(r−n+1)n!.

With this notation, we can write the binomial series for (1+x)r as

∑n=0∞(rn)xn=1+rx+r(r−1)2!x2+⋯+r(r−1)⋯(r−n+1)n!xn+⋯.6.9

We now need to determine the interval of convergence for the binomial series Equation 6.9. We apply the ratio test. Consequently, we consider

|an+1||an|=|r(r−1)(r−2)⋯(r−n)|x||n+1(n+1)!·n!|r(r−1)(r−2)⋯(r−n+1)||x|n=|r−n||x||n+1|.

Since

limn→∞|an+1||an|=|x|<1

if and only if |x|<1, we conclude that the interval of convergence for the binomial series is (−1,1). The behavior at the endpoints depends on r. It can be shown that for r≥0 the series converges at both endpoints; for −1<r<0, the series converges at x=1 and diverges at x=−1; and for r<−1, the series diverges at both endpoints. The binomial series does converge to (1+x)r in (−1,1) for all real numbers r, but proving this fact by showing that the remainder Rn(x)→0 is difficult.

Definition

For any real number r, the Maclaurin series for f(x)=(1+x)r is the binomial series. It converges to f for |x|<1, and we write

(1+x)r=∑n=0∞(rn)xn=1+rx+r(r−1)2!x2+⋯+r(r−1)⋯(r−n+1)n!xn+⋯

for |x|<1.

We can use this definition to find the binomial series for f(x)=1+x and use the series to approximate 1.5.

Finding Binomial Series
  1. Find the binomial series for f(x)=1+x.
  2. Use the third-order Maclaurin polynomial p3(x) to estimate 1.5. Use Taylor’s theorem to bound the error. Use a graphing utility to compare the graphs of f and p3.
  1. Here r=12. Using the definition for the binomial series, we obtain
    1+x=1+12x+(1/2)(−1/2)2!x2+(1/2)(−1/2)(−3/2)3!x3+⋯=1+12x−12!122x2+13!1·323x3−⋯+(−1)n+1n!1·3·5⋯(2n−3)2nxn+⋯=1+∑n=1∞(−1)n+1n!1·3·5⋯(2n−3)2nxn.
  2. From the result in part a. the third-order Maclaurin polynomial is
    p3(x)=1+12x−18x2+116x3.

    Therefore,
    1.5=1+0.5≈1+12(0.5)−18(0.5)2+116(0.5)3≈1.2266.

    From Taylor’s theorem, the error satisfies
    R3(0.5)=f(4)(c)4!(0.5)4

    for some c between 0 and 0.5. Since f(4)(x)=−1524(1+x)7/2, and the maximum value of |f(4)(x)| on the interval (0,0.5) occurs at x=0, we have
    |R3(0.5)|≤154!24(0.5)4≈0.00244.

    The function and the Maclaurin polynomial p3 are graphed in Figure 6.10.
    This graph has two curves. The first one is f(x)= the square root of (1+x) and the second is psub3(x). The curves are very close at y = 1.
    Figure 6.10 The third-order Maclaurin polynomial p3(x) provides a good approximation for f(x)=1+x for x near zero.

Find the binomial series for f(x)=1(1+x)2.

∑n=0∞(−1)n(n+1)xn

Hint

Use the definition of binomial series for r=−2.

Common Functions Expressed as Taylor Series

At this point, we have derived Maclaurin series for exponential, trigonometric, and logarithmic functions, as well as functions of the form f(x)=(1+x)r. In Table 6.1, we summarize the results of these series. We remark that the convergence of the Maclaurin series for f(x)=ln(1+x) at the endpoint x=1 and the Maclaurin series for f(x)=tan−1x at the endpoints x=1 and x=−1 relies on a more advanced theorem than we present here. (Refer to Abel’s theorem for a discussion of this more technical point.)

Table 6.1 Maclaurin Series for Common Functions
FunctionMaclaurin SeriesInterval of Convergence
f(x)=11−x∑n=0∞xn−1<x<1
f(x)=ex∑n=0∞xnn!−∞<x<∞
f(x)=sinx∑n=0∞(−1)nx2n+1(2n+1)!−∞<x<∞
f(x)=cosx∑n=0∞(−1)nx2n(2n)!−∞<x<∞
f(x)=ln(1+x)∑n=1∞(−1)n+1xnn−1<x≤1
f(x)=tan−1x∑n=0∞(−1)nx2n+12n+1−1≤x≤1
f(x)=(1+x)r∑n=0∞(rn)xn−1<x<1

This table has seven rows and three columns. The header row labels the columns “function” , “Maclaurin” and “interval of convergence”. The first row is the function 1/(1-x). The Maclaurin series is the sum of x^n and the interval of convergence is -1<x<1. The second row is the function e^x. The Maclaurin series is the sum of x^n/n! and the interval of convergence is all real numbers. The third row is the function sin(x). The Maclaurin series is the sum of (-1)^n times x^(2n+1)/(2n+1)! and the interval of convergence is all real numbers. The fourth row is the function cos(x). The Maclaurin series is the sum of (-1)^n times x^(2n)/(2n)! and the interval of convergence is all real numbers. The fifth row is the function ln(1+x). The Maclaurin series is the sum of (-1)^n+1 times x^n/(n) and the interval of convergence is -1<x<1. The sixth row is the function arctan(x). The Maclaurin series is the sum of (-1)^n times x^(2n+1)/(2n+1) and the interval of convergence is between -1 and 1 inclusive. The seventh row is the function (1+x)^r. The Maclaurin series is the sum of the combinations of r choose n times x^n and the interval of convergence is -1<x<1.

Earlier in the chapter, we showed how you could combine power series to create new power series. Here we use these properties, combined with the Maclaurin series in Table 6.1, to create Maclaurin series for other functions.

Deriving Maclaurin Series from Known Series

Find the Maclaurin series of each of the following functions by using one of the series listed in Table 6.1.

  1. f(x)=cosx
  2. f(x)=sinhx
  1. Using the Maclaurin series for cosx we find that the Maclaurin series for cosx is given by
    ∑n=0∞(−1)n(x)2n(2n)!=∑n=0∞(−1)nxn(2n)!=1−x2!+x24!−x36!+x48!−⋯.

    This series converges to cosx for all x in the domain of cosx; that is, for all x≥0.
  2. To find the Maclaurin series for sinhx, we use the fact that
    sinhx=ex−e−x2.

    Using the Maclaurin series for ex, we see that the nth term in the Maclaurin series for sinhx is given by
    xnn!−(−x)nn!.

    For n even, this term is zero. For n odd, this term is 2xnn!. Therefore, the Maclaurin series for sinhx has only odd-order terms and is given by
    ∑n=0∞x2n+1(2n+1)!=x+x33!+x55!+⋯.

Find the Maclaurin series for sin(x2).

∑n=0∞(−1)nx4n+2(2n+1)!

Hint

Use the Maclaurin series for sinx.

We also showed previously in this chapter how power series can be differentiated term by term to create a new power series. In Example 6.19, we differentiate the binomial series for 1+x term by term to find the binomial series for 11+x. Note that we could construct the binomial series for 11+x directly from the definition, but differentiating the binomial series for 1+x is an easier calculation.

Differentiating a Series to Find a New Series

Use the binomial series for 1+x to find the binomial series for 11+x.

The two functions are related by

ddx1+x=121+x,

so the binomial series for 11+x is given by

11+x=2ddx1+x=1+∑n=1∞(−1)nn!1·3·5⋯(2n−1)2nxn.

Find the binomial series for f(x)=1(1+x)3/2

∑n=1∞(−1)nn!1·3·5⋯(2n−1)2nxn

Hint

Differentiate the series for 11+x.

In this example, we differentiated a known Taylor series to construct a Taylor series for another function. The ability to differentiate power series term by term makes them a powerful tool for solving differential equations. We now show how this is accomplished.

Solving Differential Equations with Power Series

Consider the differential equation

y′(x)=y.

Recall that this is a first-order separable equation and its solution is y=Cex. This equation is easily solved using techniques discussed earlier in the text. For most differential equations, however, we do not yet have analytical tools to solve them. Power series are an extremely useful tool for solving many types of differential equations. In this technique, we look for a solution of the form y=∑n=0∞cnxn and determine what the coefficients would need to be. In the next example, we consider an initial-value problem involving y′=y to illustrate the technique.

Power Series Solution of a Differential Equation

Use power series to solve the initial-value problem

y′=y,y(0)=3.

Suppose that there exists a power series solution

y(x)=∑n=0∞cnxn=c0+c1x+c2x2+c3x3+c4x4+⋯.

Differentiating this series term by term, we obtain

y′=c1+2c2x+3c3x2+4c4x3+⋯.

If y satisfies the differential equation, then

c0+c1x+c2x2+c3x3+⋯=c1+2c2x+3c3x2+4c3x3+⋯.

Using Differentiating and Integrating Power Series on the uniqueness of power series representations, we know that these series can only be equal if their coefficients are equal. Therefore,

c0=c1,c1=2c2,c2=3c3,c3=4c4,⋮.

Using the initial condition y(0)=3 combined with the power series representation

y(x)=c0+c1x+c2x2+c3x3+⋯,

we find that c0=3. We are now ready to solve for the rest of the coefficients. Using the fact that c0=3, we have

c1=c0=3=31!,c2=c12=32=32!,c3=c23=33·2=33!,c4=c34=34·3·2=34!.

Therefore,

y=3[1+11!x+12!x2+13!x3+14!x4+⋯]=3∑n=0∞xnn!.

You might recognize

∑n=0∞xnn!

as the Taylor series for ex. Therefore, the solution is y=3ex.

Use power series to solve y′=2y,y(0)=5.

y=5e2x

Hint

The equations for the first several coefficients cn will satisfy c0=2c1,c1=2·2c2,c2=2·3c3,…. In general, for all n≥0,cn=2(n+1)Cn+1.

We now consider an example involving a differential equation that we cannot solve using previously discussed methods. This differential equation

y″−xy=0

is known as Airy’s equation. It has many applications in mathematical physics, such as modeling the diffraction of light. Here we show how to solve it using power series.

Power Series Solution of Airy’s Equation

Use power series to solve

y″−xy=0

with the initial conditions y(0)=a and y′(0)=b.

We look for a solution of the form

y=∑n=0∞cnxn=c0+c1x+c2x2+c3x3+c4x4+⋯.

Differentiating this function term by term, we obtain

y′=c1+2c2x+3c3x2+4c4x3+⋯,y″=2·1c2+3·2c3x+4·3c4x2+⋯.

If y satisfies the equation y″=xy, then

2·1c2+3·2c3x+4·3c4x2+⋯=x(c0+c1x+c2x2+c3x3+⋯).

Using Differentiating and Integrating Power Series on the uniqueness of power series representations, we know that coefficients of the same degree must be equal. Therefore,

2·1c2=0,3·2c3=c0,4·3c4=c1,5·4c5=c2,⋮.

More generally, for n≥3, we have n·(n−1)cn=cn−3. In fact, all coefficients can be written in terms of c0 and c1. To see this, first note that c2=0. Then

c3=c03·2,c4=c14·3.

For c5,c6,c7, we see that

c5=c25·4=0,c6=c36·5=c06·5·3·2,c7=c47·6=c17·6·4·3.

Therefore, the series solution of the differential equation is given by

y=c0+c1x+0·x2+c03·2x3+c14·3x4+0·x5+c06·5·3·2x6+c17·6·4·3x7+⋯.

The initial condition y(0)=a implies c0=a. Differentiating this series term by term and using the fact that y′(0)=b, we conclude that c1=b. Therefore, the solution of this initial-value problem is

y=a(1+x33·2+x66·5·3·2+⋯)+b(x+x44·3+x77·6·4·3+⋯).

Use power series to solve y″+x2y=0 with the initial condition y(0)=a and y′(0)=b.

y=a(1−x43·4+x83·4·7·8−⋯)+b(x−x54·5+x94·5·8·9−⋯)

Hint

The coefficients satisfy c0=a,c1=b,c2=0,c3=0, and for n≥4,n(n−1)cn=−cn−4.

Evaluating Nonelementary Integrals

Solving differential equations is one common application of power series. We now turn to a second application. We show how power series can be used to evaluate integrals involving functions whose antiderivatives cannot be expressed using elementary functions.

One integral that arises often in applications in probability theory is ∫e−x2dx. Unfortunately, the antiderivative of the integrand e−x2 is not an elementary function. By elementary function, we mean a function that can be written using a finite number of algebraic combinations or compositions of exponential, logarithmic, trigonometric, or power functions. We remark that the term “elementary function” is not synonymous with noncomplicated function. For example, the function f(x)=x2−3x+ex3−sin(5x+4) is an elementary function, although not a particularly simple-looking function. Any integral of the form ∫f(x)dx where the antiderivative of f cannot be written as an elementary function is considered a nonelementary integral.

Nonelementary integrals cannot be evaluated using the basic integration techniques discussed earlier. One way to evaluate such integrals is by expressing the integrand as a power series and integrating term by term. We demonstrate this technique by considering ∫e−x2dx.

Using Taylor Series to Evaluate a Definite Integral
  1. Express ∫e−x2dx as an infinite series.
  2. Evaluate ∫01e−x2dx to within an error of 0.01.
  1. The Maclaurin series for e−x2 is given by
    e−x2=∑n=0∞(−x2)nn!=1−x2+x42!−x63!+⋯+(−1)nx2nn!+⋯=∑n=0∞(−1)nx2nn!.

    Therefore,
    ∫e−x2dx=∫(1−x2+x42!−x63!+⋯+(−1)nx2nn!+⋯)dx=C+x−x33+x55·2!−x77·3!+⋯+(−1)nx2n+1(2n+1)n!+⋯.
  2. Using the result from part a. we have
    ∫01e−x2dx=1−13+110−142+1216−⋯.

    The sum of the first four terms is approximately 0.74. By the alternating series test, this estimate is accurate to within an error of less than 1216≈0.0046296<0.01.

Express ∫cosxdx as an infinite series. Evaluate ∫01cosxdx to within an error of 0.01.

C+∑n=1∞(−1)n+1xnn(2n−2)! The definite integral is approximately 0.514 to within an error of 0.01.

Hint

Use the series found in Example 6.18.

As mentioned above, the integral ∫e−x2dx arises often in probability theory. Specifically, it is used when studying data sets that are normally distributed, meaning the data values lie under a bell-shaped curve. For example, if a set of data values is normally distributed with mean μ and standard deviation σ, then the probability that a randomly chosen value lies between x=a and x=b is given by

1σ2π∫abe−(x−μ)2/(2σ2)dx.6.10

(See Figure 6.11.)

This graph is the normal distribution. It is a bell-shaped curve with the highest point above mu on the x-axis. Also, there is a shaded area under the curve above the x-axis. The shaded area is bounded by alpha on the left and b on the right.
Figure 6.11 If data values are normally distributed with mean μ and standard deviation σ, the probability that a randomly selected data value is between a and b is the area under the curve y=1σ2πe−(x−μ)2/(2σ2) between x=a and x=b.

To simplify this integral, we typically let z=x−μσ. This quantity z is known as the z score of a data value. With this simplification, integral Equation 6.10 becomes

12π∫(a−μ)/σ(b−μ)/σe−z2/2dz.6.11

In Example 6.23, we show how we can use this integral in calculating probabilities.

Using Maclaurin Series to Approximate a Probability

Suppose a set of standardized test scores are normally distributed with mean μ=100 and standard deviation σ=50. Use Equation 6.11 and the first six terms in the Maclaurin series for e−x2/2 to approximate the probability that a randomly selected test score is between x=100 and x=200. Use the alternating series test to determine how accurate your approximation is.

Since μ=100,σ=50, and we are trying to determine the area under the curve from a=100 to b=200, integral Equation 6.11 becomes

12π∫02e−z2/2dz.

The Maclaurin series for e−x2/2 is given by

e−x2/2=∑n=0∞(−x22)nn!=1−x221·1!+x422·2!−x623·3!+⋯+(−1)nx2n2n·n!+⋯=∑n=0∞(−1)nx2n2n·n!.

Therefore,

12π∫e−z2/2dz=12π∫(1−z221·1!+z422·2!−z623·3!+⋯+(−1)nz2n2n·n!+⋯)dz=12π(C+z−z33·21·1!+z55·22·2!−z77·23·3!+⋯+(−1)nz2n+1(2n+1)2n·n!+⋯)12π∫02e−z2/2dz=12π(2−86+3240−128336+5123456−21111·25·5!+⋯).

Using the first five terms, we estimate that the probability is approximately 0.4922. By the alternating series test, we see that this estimate is accurate to within

12π21313·26·6!≈0.00546.
Analysis

If you are familiar with probability theory, you may know that the probability that a data value is within two standard deviations of the mean is approximately 95%. Here we calculated the probability that a data value is between the mean and two standard deviations above the mean, so the estimate should be around 47.5%. The estimate, combined with the bound on the accuracy, falls within this range.

Use the first five terms of the Maclaurin series for e−x2/2 to estimate the probability that a randomly selected test score is between 100 and 150. Use the alternating series test to determine the accuracy of this estimate.

The estimate is approximately 0.3414. This estimate is accurate to within 0.0000094.

Hint

Evaluate ∫01e−z2/2dz using the first five terms of the Maclaurin series for e−z2/2.

Another application in which a nonelementary integral arises involves the period of a pendulum. The integral is

∫0π/2dθ1−k2sin2θ.

An integral of this form is known as an elliptic integral of the first kind. Elliptic integrals originally arose when trying to calculate the arc length of an ellipse. We now show how to use power series to approximate this integral.

Period of a Pendulum

The period of a pendulum is the time it takes for a pendulum to make one complete back-and-forth swing. For a pendulum with length L that makes a maximum angle θmax with the vertical, its period T is given by

T=4Lg∫0π/2dθ1−k2sin2θ

where g is the acceleration due to gravity and k=sin(θmax2) (see Figure 6.12). (We note that this formula for the period arises from a non-linearized model of a pendulum. In some cases, for simplification, a linearized model is used and sinθ is approximated by θ.) Use the binomial series

11+x=1+∑n=1∞(−1)nn!1·3·5⋯(2n−1)2nxn

to estimate the period of this pendulum. Specifically, approximate the period of the pendulum if

  1. you use only the first term in the binomial series, and
  2. you use the first two terms in the binomial series.
    This figure is a pendulum. There are three positions of the pendulum shown. When the pendulum is to the far left, it is labeled negative theta max. When the pendulum is in the middle and vertical, it is labeled equilibrium position. When the pendulum is to the far right it is labeled theta max. Also, theta is the angle from equilibrium to the far right position. The length of the pendulum is labeled L.
    Figure 6.12 This pendulum has length L and makes a maximum angle θmax with the vertical.

We use the binomial series, replacing x with −k2sin2θ. Then we can write the period as

T=4Lg∫0π/2(1+12k2sin2θ+1·32!22k4sin4θ+⋯)dθ.
  1. Using just the first term in the integrand, the first-order estimate is
    T≈4Lg∫0π/2dθ=2πLg.

    If θmax is small, then k=sin(θmax2) is small. We claim that when k is small, this is a good estimate. To justify this claim, consider
    ∫0π/2(1+12k2sin2θ+1·32!22k4sin4θ+⋯)dθ.

    Since |sinx|≤1, this integral is bounded by
    ∫0π/2(12k2+1.32!22k4+⋯)dθ<π2(12k2+1·32!22k4+⋯).

    Furthermore, it can be shown that each coefficient on the right-hand side is less than 1 and, therefore, that this expression is bounded by
    πk22(1+k2+k4+⋯)=πk22·11−k2,

    which is small for k small.
  2. For larger values of θmax, we can approximate T by using more terms in the integrand. By using the first two terms in the integral, we arrive at the estimate
    T≈4Lg∫0π/2(1+12k2sin2θ)dθ=2πLg(1+k24).

The applications of Taylor series in this section are intended to highlight their importance. In general, Taylor series are useful because they allow us to represent known functions using polynomials, thus providing us a tool for approximating function values and estimating complicated integrals. In addition, they allow us to define new functions as power series, thus providing us with a powerful tool for solving differential equations.

Key Concepts

In the following exercises, use appropriate substitutions to write down the Maclaurin series for the given binomial.

(1−x)1/3

(1+x2)−1/3

(1+x2)−1/3=∑n=0∞(−13n)x2n

(1−x)1.01

(1−2x)2/3

(1−2x)2/3=∑n=0∞(−1)n2n(23n)xn

In the following exercises, use the substitution (b+x)r=(b+a)r(1+x−ab+a)r in the binomial expansion to find the Taylor series of each function with the given center.

x+2 at a=0

x2+2 at a=0

2+x2=∑n=0∞2(1/2)−n(12n)x2n;(|x2|<2)

x+2 at a=1

2x−x2 at a=1 (Hint: 2x−x2=1−(x−1)2)

2x−x2=1−(x−1)2 so 2x−x2=∑n=0∞(−1)n(12n)(x−1)2n

(x−8)1/3 at a=9

x at a=4

x=21+x−44 so x=∑n=0∞21−2n(12n)(x−4)n

x1/3 at a=27

x at α=9

x=∑n=0∞31−2n(12n)(x−9)n

In the following exercises, use the binomial theorem to estimate each number, computing enough terms to obtain an estimate accurate to an error of at most 1/1000.

[T] (15)1/4 using (16−x)1/4

[T] (1001)1/3 using (1000+x)1/3

10(1+x1000)1/3=∑n=0∞101−3n(13n)xn. Using, for example, a fourth-degree estimate at x=1 gives (1001)1/3≈10(1+(131)10−3+(132)10−6+(133)10−9+(134)10−12)=10(1+13.103−19.106+581.109−10243.1012)=10.00333222... whereas (1001)1/3=10.00332222839093.... Two terms would suffice for three-digit accuracy.

In the following exercises, use the binomial approximation 1−x≈1−x2−x28−x316−5x4128−7x5256 for |x|<1 to approximate each number. Compare this value to the value given by a scientific calculator.

[T] 12 using x=12 in (1−x)1/2

[T] 5=5×15 using x=45 in (1−x)1/2

The approximation is 2.3152; the CAS value is 2.23….

[T] 3=33 using x=23 in (1−x)1/2

[T] 6 using x=56 in (1−x)1/2

The approximation is 2.583…; the CAS value is 2.449….

Integrate the binomial approximation of 1−x to find an approximation of ∫0x1−tdt.

[T] Recall that the graph of 1−x2 is an upper semicircle of radius 1. Integrate the binomial approximation of 1−x2 up to order 8 from x=−1 to x=1 to estimate π2.


1−x2=1−x22−x48−x616−5x8128+⋯. Thus

∫−111−x2dx=x−x36−x540−x77·16−5x99·128+⋯|−11≈2−13−120−156−109·128+error=1.590... whereas π2=1.570...

In the following exercises, use the expansion (1+x)1/3=1+13x−19x2+581x3−10243x4+⋯ to write the first five terms (not necessarily a quartic polynomial) of each expression.

(1+4x)1/3;a=0

(1+4x)4/3;a=0

(1+4x)4/3=(1+4x)(1+4x)1/3=(1+4x)(1+4x3-16x39+320x381-2560x4243)=1+163x+329x2-25681x3+1280243x4-10240243x5

(3+2x)1/3;a=−1

(x2+6x+10)1/3;a=−3

(1+(x+3)2)1/3=1+13(x+3)2−19(x+3)4+581(x+3)6−10243(x+3)8+⋯

Use (1+x)1/3=1+13x−19x2+581x3−10243x4+⋯ with x=1 to approximate 21/3.

Use the approximation (1−x)2/3=1−2x3−x29−4x381−7x4243−14x5729+⋯ for |x|<1 to approximate 21/3=2.2−2/3.

Twice the approximation is 1.260… whereas 21/3=1.2599....

Find the 25th derivative of f(x)=(1+x2)13 at x=0.

Find the 99 th derivative at x=0 of f(x)=(1+x4)25.

f(99)(0)=0

In the following exercises, find the Maclaurin series of each function.

f(x)=xe2x

f(x)=2x

∑n=0∞(ln(2)x)nn!

f(x)=sinxx

f(x)=sin(x)x,(x>0),

For x>0,sin(x)=∑n=0∞(−1)nx(2n+1)/2x(2n+1)!=∑n=0∞(−1)nxn(2n+1)!.

f(x)=sin(x2)

f(x)=ex3

ex3=∑n=0∞x3nn!

f(x)=cos2x using the identity cos2x=12+12cos(2x)

f(x)=sin2x using the identity sin2x=12−12cos(2x)

sin2x=−∑k=1∞(−1)k22k−1x2k(2k)!

In the following exercises, find the Maclaurin series of F(x)=∫0xf(t)dt by integrating the Maclaurin series of f term by term. If f is not strictly defined at zero, you may substitute the value of the Maclaurin series at zero.

F(x)=∫0xe−t2dt;f(t)=e−t2=∑n=0∞(−1)nt2nn!

F(x)=tan−1x;f(t)=11+t2=∑n=0∞(−1)nt2n

tan−1x=∑k=0∞(−1)kx2k+12k+1

F(x)=tanh−1x;f(t)=11−t2=∑n=0∞t2n

F(x)=sin−1x;f(t)=11−t2=∑k=0∞(12k)t2kk!

sin−1x=∑n=0∞(12n)x2n+1(2n+1)n!

F(x)=∫0xsinttdt;f(t)=sintt=∑n=0∞(−1)nt2n(2n+1)!

F(x)=∫0xcos(t)dt;f(t)=∑n=0∞(−1)nxn(2n)!

F(x)=∑n=0∞(−1)nxn+1(n+1)(2n)!

F(x)=∫0x1−costt2dt;f(t)=1−costt2=∑n=0∞(−1)nt2n(2n+2)!

F(x)=∫0xln(1+t)tdt;f(t)=∑n=0∞(−1)ntnn+1

F(x)=∑n=1∞(−1)n+1xnn2

In the following exercises, compute at least the first three nonzero terms (not necessarily a quadratic polynomial) of the Maclaurin series of f.

f(x)=sin(x+π4)=sinxcos(π4)+cosxsin(π4)

f(x)=tanx

x+x33+2x515+⋯

f(x)=ln(cosx)

f(x)=excosx

1+x−x33−x46+⋯

f(x)=esinx

f(x)=sec2x

1+x2+2x43+17x645+⋯

f(x)=tanhx

f(x)=tanxx (see expansion for tanx)

Using the expansion for tanx gives 1+x3+2x215.

In the following exercises, find the radius of convergence of the Maclaurin series of each function.

ln(1+x)

11+x2

11+x2=∑n=0∞(−1)nx2n so R=1 by the ratio test.

tan−1x

ln(1+x2)

ln(1+x2)=∑n=1∞(−1)n−1nx2n so R=1 by the ratio test.

Find the Maclaurin series of sinhx=ex−e−x2.

Find the Maclaurin series of coshx=ex+e−x2.

Add series of ex and e−x term by term. Odd terms cancel and coshx=∑n=0∞x2n(2n)!.

Differentiate term by term the Maclaurin series of sinhx and compare the result with the Maclaurin series of coshx.

[T] Let Sn(x)=∑k=0n(−1)kx2k+1(2k+1)! and Cn(x)=∑n=0n(−1)kx2k(2k)! denote the respective Maclaurin polynomials of degree 2n+1 of sinx and degree 2n of cosx. Plot the errors Sn(x)Cn(x)−tanx for n=1,..,5 and compare them to x+x33+2x515+17x7315−tanx on (−π4,π4).


This graph has two curves. The first one is a decreasing function passing through the origin. The second is a broken line which is an increasing function passing through the origin. The two curves are very close around the origin.


The ratio Sn(x)Cn(x) approximates tanx better than does p7(x)=x+x33+2x515+17x7315 for N≥3. The dashed curves are SnCn−tan for n=1,2. The dotted curve corresponds to n=3, and the dash-dotted curve corresponds to n=4. The solid curve is p7−tanx.

Use the identity 2sinxcosx=sin(2x) to find the power series expansion of sin2x at x=0. (Hint: Integrate the Maclaurin series of sin(2x) term by term.)

If y=∑n=0∞anxn, find the power series expansions of xy′ and x2y″.

By the term-by-term differentiation theorem, y′=∑n=1∞nanxn−1 so y′=∑n=1∞nanxn−1xy′=∑n=1∞nanxn, whereas y′=∑n=2∞n(n−1)anxn−2 so xy″=∑n=2∞n(n−1)anxn.

[T] Suppose that y=∑k=0∞akxk satisfies y′=−2xy and y(0)=0. Show that a2k+1=0 for all k and that a2k+2=−a2kk+1. Plot the partial sum S20 of y on the interval [−4,4].

[T] Suppose that a set of standardized test scores is normally distributed with mean μ=100 and standard deviation σ=10. Set up an integral that represents the probability that a test score will be between 90 and 110 and use the integral of the degree 10 Maclaurin polynomial of 12πe−x2/2 to estimate this probability.

The probability is p=12π∫(a−μ)/σ(b−μ)/σe−x2/2dx where a=90 and b=100, that is, p=12π∫−11e−x2/2dx=12π∫−11∑n=05(−1)nx2n2nn!dx=22π∑n=05(−1)n1(2n+1)2nn!≈0.6827.

[T] Suppose that a set of standardized test scores is normally distributed with mean μ=100 and standard deviation σ=10. Set up an integral that represents the probability that a test score will be between 70 and 130 and use the integral of the degree 50 Maclaurin polynomial of 12πe−x2/2 to estimate this probability.

[T] Suppose that ∑n=0∞anxn converges to a function f(x) such that f(0)=1,f′(0)=0, and f″(x)=−f(x). Find a formula for an and plot the partial sum SN for N=20 on [−5,5].


This graph is a wave curve symmetrical about the origin. It has a peak at y = 1 above the origin. It has lowest points at -3 and 3.


As in the previous problem one obtains an=0 if n is odd and an=−(n+2)(n+1)an+2 if n is even, so a0=1 leads to a2n=(−1)n(2n)!.

[T] Suppose that ∑n=0∞anxn converges to a function f(x) such that f(0)=0,f′(0)=1, and f″(x)=−f(x). Find a formula for an and plot the partial sum SN for N=10 on [−5,5].

Suppose that ∑n=0∞anxn converges to a function y such that y″−y′+y=0 where y(0)=1 and y′(0)=0. Find a formula that relates an+2,an+1, and an and compute a0,...,a5.

y″=∑n=0∞(n+2)(n+1)an+2xn and y′=∑n=0∞(n+1)an+1xn so y″−y′+y=0 implies that (n+2)(n+1)an+2−(n+1)an+1+an=0 or an=an−1n−an−2n(n−1) for all n·y(0)=a0=1 and y′(0)=a1=0, so a2=12,a3=16,a4=0, and a5=−1120.

Suppose that ∑n=0∞anxn converges to a function y such that y″−y′+y=0 where y(0)=0 and y′(0)=1. Find a formula that relates an+2,an+1, and an and compute a1,...,a5.

The error in approximating the integral ∫abf(t)dt by that of a Taylor approximation ∫abPn(t)dt is at most ∫abRn(t)dt. In the following exercises, the Taylor remainder estimate Rn≤M(n+1)!|x−a|n+1 guarantees that the integral of the Taylor polynomial of the given order approximates the integral of f with an error less than 110.

  1. Evaluate the integral of the appropriate Taylor polynomial and verify that it approximates the CAS value with an error less than 1100.
  2. Compare the accuracy of the polynomial integral estimate with the remainder estimate.

[T] ∫0πsinttdt;Ps=1−x23!+x45!−x67!+x89! (You may assume that the absolute value of the ninth derivative of sintt is bounded by 0.1.)

a. (Proof) b. We have Rs≤0.1(9)!π9≈0.0082<0.01. We have ∫0π(1−x23!+x45!−x67!+x89!)dx=π−π33·3!+π55·5!−π77·7!+π99·9!=1.852..., whereas ∫0πsinttdt=1.85194..., so the actual error is approximately 0.00006.

[T] ∫02e−x2dx;p11=1−x2+x42−x63!+⋯−x2211! (You may assume that the absolute value of the 23rd derivative of e−x2 is less than 2×1014.)

The following exercises deal with Fresnel integrals.

The Fresnel integrals are defined by C(x)=∫0xcos(t2)dt and S(x)=∫0xsin(t2)dt. Compute the power series of C(x) and S(x) and plot the sums CN(x) and SN(x) of the first N=50 nonzero terms on [0,2π].


This graph has two curves. The first one is a solid curve labeled Csub50(x). It begins at the origin and is a wave that gradually decreases in amplitude. The highest it reaches is y = 1. The second curve is labeled Ssub50(x). It is a wave that gradually decreases in amplitude. The highest it reaches is 0.9. It is very close to the pattern of the first curve with a slight shift to the right.


Since cos(t2)=∑n=0∞(−1)nt4n(2n)! and sin(t2)=∑n=0∞(−1)nt4n+2(2n+1)!, one has S(x)=∑n=0∞(−1)nx4n+3(4n+3)(2n+1)! and C(x)=∑n=0∞(−1)nx4n+1(4n+1)(2n)!. The sums of the first 50 nonzero terms are plotted below with C50(x) the solid curve and S50(x) the dashed curve.

[T] The Fresnel integrals are used in design applications for roadways and railways and other applications because of the curvature properties of the curve with coordinates (C(t),S(t)). Plot the curve (C50,S50) for 0≤t≤2π, the coordinates of which were computed in the previous exercise.

Estimate ∫01/4x−x2dx by approximating 1−x using the binomial approximation 1−x2−x28−x316−5x42128−7x5256.

∫01/4x(1−x2−x28−x316−5x4128−7x5256)dx

=232−3−12252−5−18272−7−116292−9−51282112−11−72562132−13=0.0767732...

whereas ∫01/4x−x2dx=0.076773.

[T] Use Newton’s approximation of the binomial 1−x2 to approximate π as follows. The circle centered at (12,0) with radius 12 has upper semicircle y=x1−x. The sector of this circle bounded by the x-axis between x=0 and x=12 and by the line joining (14,34) corresponds to 16 of the circle and has area π24. This sector is the union of a right triangle with height 34 and base 14 and the region below the graph between x=0 and x=14. To find the area of this region you can write y=x1−x=x×(binomial expansion of1−x) and integrate term by term. Use this approach with the binomial approximation from the previous exercise to estimate π.

Use the approximation T≈2πLg(1+k24) to approximate the period of a pendulum having length 10 meters and maximum angle θmax=π6 where k=sin(θmax2). Compare this with the small angle estimate T≈2πLg.

T≈2π109.8(1+sin2(θ/12)4)≈6.453 seconds. The small angle estimate is T≈2π109.8≈6.347. The relative error is around 2 percent.

Suppose that a pendulum is to have a period of 2 seconds and a maximum angle of θmax=π6. Use T≈2πLg(1+k24) to approximate the desired length of the pendulum. What length is predicted by the small angle estimate T≈2πLg?

Evaluate ∫0π/2sin4θdθ in the approximation T=4Lg∫0π/2(1+12k2sin2θ+38k4sin4θ+⋯)dθ to obtain an improved estimate for T.

∫0π/2sin4θdθ=3π16. Hence T≈2πLg(1+k24+9256k4).

[T] An equivalent formula for the period of a pendulum with amplitude θmax is T(θmax)=22Lg∫0θmaxdθcosθ−cos(θmax) where L is the pendulum length and g is the gravitational acceleration constant. When θmax=π3 we get 1cost−1/2≈2(1+t22+t43+181t6720). Integrate this approximation to estimate T(π3) in terms of L and g. Assuming g=9.806 meters per second squared, find an approximate length L such that T(π3)=2 seconds.

Chapter Review Exercises

True or False? In the following exercises, justify your answer with a proof or a counterexample.

If the radius of convergence for a power series ∑n=0∞anxn is 5, then the radius of convergence for the series ∑n=1∞nanxn−1 is also 5.

True

Power series can be used to show that the derivative of exisex. (Hint: Recall that ex=∑n=0∞1n!xn.)

For small values of x,sinx≈x.

True

The radius of convergence for the Maclaurin series of f(x)=3x is 3.

In the following exercises, find the radius of convergence and the interval of convergence for the given series.

∑n=0∞n2(x−1)n

ROC: 1; IOC: (0,2)

∑n=0∞xnnn

∑n=0∞3nxn12n

ROC: 12; IOC: (−12,12)

∑n=0∞2nen(x−e)n

In the following exercises, find the power series representation for the given function. Determine the radius of convergence and the interval of convergence for that series.

f(x)=x2x+3

∑n=0∞(−1)n3n+1xn+2; ROC: 3; IOC: (−3,3)

f(x)=8x+22x2−3x+1

In the following exercises, find the power series for the given function using term-by-term differentiation or integration.

f(x)=tan−1(2x)

integration: ∑n=0∞(−1)n2n+1(2x)2n+1

f(x)=x(2+x2)2

In the following exercises, evaluate the Taylor series expansion of degree four for the given function at the specified point. What is the error in the approximation?

f(x)=x3−2x2+4,a=−3

p4(x)=(x+3)3−11(x+3)2+39(x+3)−41; exact

f(x)=e1/(4x),a=4

In the following exercises, find the Maclaurin series for the given function.

f(x)=cos(3x)

∑n=0∞(−1)n(3x)2n2n!

f(x)=ln(x+1)

In the following exercises, find the Taylor series at the given value.

f(x)=sinx,a=π2

∑n=0∞(−1)n(2n)!(x−π2)2n

f(x)=3x,a=1

In the following exercises, find the Maclaurin series for the given function.

f(x)=e−x2−1

∑n=1∞(−1)nn!x2n

f(x)=cosx−xsinx

In the following exercises, find the Maclaurin series for F(x)=∫0xf(t)dt by integrating the Maclaurin series of f(x) term by term.

f(x)=sinxx

F(x)=∑n=0∞(−1)n(2n+1)(2n+1)!x2n+1

f(x)=1−ex

Use power series to prove Euler’s formula: eix=cosx+isinx

Answers may vary.

The following exercises consider problems of annuity payments.

For annuities with a present value of $1 million, calculate the annual payouts given over 25 years assuming interest rates of 1%,5%,and10%.

A lottery winner has an annuity that has a present value of $10 million. What interest rate would they need to live on perpetual annual payments of $250,000?

2.5%

Calculate the necessary present value of an annuity in order to support annual payouts of $15,000 given over 25 years assuming interest rates of 1%,5%,and10%.

Glossary

binomial series
the Maclaurin series for f(x)=(1+x)r; it is given by
(1+x)r=∑n=0∞(rn)xn=1+rx+r(r−1)2!x2+⋯+r(r−1)⋯(r−n+1)n!xn+⋯ for |x|<1
nonelementary integral
an integral for which the antiderivative of the integrand cannot be expressed as an elementary function