Unit 10 · Topic 10.15 · BC

Operate on power series

Builds on the interval of convergence and the standard Maclaurin series. 15 minutes.

  1. Example 1Differentiate a power series term by term
  2. Example 2Integrate a power series term by term
  3. Example 3Combine series to represent a new function
  4. Example 4Recheck the convergence interval
  5. Example 5Use the resulting series

A power series with center \(a\) and radius of convergence \(R>0\) defines a function on its interval of convergence:

\[\begin{aligned}f(x)&=\sum_{n=0}^{\infty}c_n(x-a)^n\\&=c_0+c_1(x-a)\\&\quad+c_2(x-a)^2+\cdots\end{aligned}\]

Topic 10.14 wrote five standard functions as such series. This topic shows that, inside the interval of convergence, a power series can be differentiated, integrated and multiplied like a polynomial. It also shows what these operations do to the interval, and how the new series give derivatives, values and integrals.

Differentiating and integrating term by term

Two graphs over x from −1.6 to 1.6. The upper graph has the chalk curve arctan x and an orange polynomial, a partial sum of the series x minus x cubed over 3 plus x to the fifth over 5 and so on, with faint dashed lines at x = −1 and x = 1. The lower graph has the chalk curve 1 over 1 plus x squared and the orange derivative of the polynomial, a partial sum of 1 minus x squared plus x to the fourth and so on, with a teal region under the chalk curve from 0 to x. Between −1 and 1 the orange curves follow the chalk curves, and outside that interval they swing away as the degree rises. At x, a red segment joins the chalk curve and the orange curve of the upper graph.

Figure 1The upper graph shows \(\arctan x\), and the lower graph shows its derivative \(\frac{1}{1+x^2}\). The orange curves are partial sums of their series, for the degree \(n\) on the slider. The teal region has area \(\arctan x\), and the red segment is the error of the upper partial sum at \(x\). Faint dashed lines mark \(x=-1\), \(x=1\) and the point \(x\).

The partial sum \(\cy{P_n}\) keeps the terms of the series up to the power \((x-a)^n\), so it is a polynomial. The sum rule and the power rule differentiate a polynomial one term at a time:

\[\begin{aligned}\cy{P_n'(x)}&=c_1+2c_2(x-a)+\cdots\\&\quad+nc_n(x-a)^{n-1}\end{aligned}\]

The constant \(c_0\) has the derivative 0, so the right side starts with \(c_1\). It is a partial sum of the series of the derivatives of the terms, \(\sum_{n=1}^{\infty}nc_n(x-a)^{n-1}\). In the same way, the antiderivatives of the terms of \(P_n\) add to an antiderivative of \(P_n\).

In Figure 1, the lower chalk curve is \(\frac{1}{1+x^2}\). Substituting \(-x^2\) for \(x\) in the geometric series \(\frac{1}{1-x}=1+x+x^2+\cdots\) gives its series, \(1-x^2+x^4-x^6+\cdots\), which converges when \(x^2<1\), that is, for \(|x|<1\). The upper chalk curve is \(\arctan x\), whose derivative is \(\frac{1}{1+x^2}\). Because \(\arctan 0=0\), the Fundamental Theorem of Calculus shows that its height at \(x\) equals the area of the teal region from 0 to \(x\).

The lower orange curve is a partial sum of that series, and the upper one is its antiderivative found term by term. For the degree \(n\) on the slider they are \(\cy{P_n'}\) and \(\cy{P_n}\), so at \(n=5\) they are \(1-x^2+x^4\) and \(x-\frac{x^3}{3}+\frac{x^5}{5}\). The readouts give their values at \(x\). Raise the degree. Between \(x=-1\) and \(x=1\), both orange curves approach the chalk curves. Outside that interval, both swing farther from the chalk curves as the degree rises. Move \(x\) to 1.4. Then raise the degree from its lowest value. The red error grows. At degrees 9 and 13, the orange dot is out of sight above the upper graph, so only part of the red segment shows.

The theorem on term-by-term differentiation and integration applies to every power series with \(R>0\). For \(|x-a|<R\), the function \(f\) is differentiable, and \(\sum nc_n(x-a)^{n-1}\) converges to \(f'(x)\). The series \(\sum\frac{c_n(x-a)^{n+1}}{n+1}\) converges to \(\int_a^x f(t)\,dt\), so every antiderivative of \(f\) is this series plus a constant \(C\). Both new series have the radius \(R\). The proof that their partial sums approach \(f'\) and the integral needs more than this course provides.

Integrating the series of \(\frac{1}{1+x^2}\) term by term therefore gives a series for \(\arctan x\) when \(|x|<1\). The constant is 0, because \(\arctan x\) is the integral of \(\frac{1}{1+t^2}\) from 0 to \(x\):

\[\begin{aligned}\arctan x&=\sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{2n+1}\\&=x-\frac{x^3}{3}+\frac{x^5}{5}-\cdots\end{aligned}\]

In general, every term of the integrated series is 0 at the center, so the antiderivative there equals \(C\). A known value of the antiderivative at \(a\) therefore gives \(C\).

The ratio test shows why the radius stays the same. For \(x\ne a\), differentiating turns the term \(u_n=c_n(x-a)^n\) into \(\frac{n\,u_n}{x-a}\), so the ratio of consecutive terms of the new series is

\[\left|\frac{(n+1)\,u_{n+1}}{n\,u_n}\right|=\frac{n+1}{n}\left|\frac{u_{n+1}}{u_n}\right|\]

The factor \(\frac{n+1}{n}\) approaches 1, so the new ratios have the same limit as the old ones. Integrating turns \(u_n\) into \(\frac{(x-a)\,u_n}{n+1}\), and the factor \(\frac{n+1}{n+2}\) also approaches 1. Where the ratio test gives the old series the radius \(R\), it gives the new series the same radius. If some powers are missing, as in the series of \(\arctan x\), compare each term with the next term that is present. The factor is then a quotient such as \(\frac{n+2}{n}\), which approaches 1 as well.

At the ends of the interval, where \(|x-a|=R\), the ratio test gives no conclusion. There, differentiating multiplies the size of each term by \(\frac{n}{R}\), which can make the series diverge. Integrating multiplies it by \(\frac{R}{n+1}\), which can make the series converge.

In Figure 1, move \(x\) to 1. Then raise the degree from its lowest value. The lower series becomes \(1-1+1-\cdots\), so \(\cy{P_n'(1)}\) alternates between 1 and 0, and the series diverges by the nth-term test. The upper series becomes \(1-\frac13+\frac15-\cdots\), which converges by the alternating series test, because the sizes \(1,\frac13,\frac15,\dots\) decrease to 0. At \(x=-1\), the lower series is the same, and the upper series is the negative of this one.

The series of \(\frac{1}{1+x^2}\) therefore has the interval of convergence \((-1,1)\). The series of \(\arctan x\) has the interval \([-1,1]\), so integration added both ends. After either operation, test each end again in the new series.

Sums, products and substitutions

Algebra also builds new series. The series in this section have center 0, but the rules hold for any center. Adding two series term by term adds their partial sums, so by the limit laws the new series converges to the sum of the functions:

\[\begin{aligned}&\sum b_nx^n+\sum c_nx^n\\&=\sum\left(b_n+c_n\right)x^n\end{aligned}\]

This holds wherever both series converge. In the same way, multiplying a series by a constant multiplies every coefficient. Multiplying it by \(x^2\) raises every exponent by 2. Substituting an expression such as \(-x^2\) or \(3x\) for \(x\) works as in topic 10.14. The new series equals the new function where the expression lies in the old interval of convergence.

To multiply two series, multiply each term of one by each term of the other, as for polynomials. The product of \(b_jx^j\) and \(c_kx^k\) is \(b_jc_kx^{j+k}\), so the products with \(j+k=n\) all have the power \(x^n\). Their sum, \(b_0c_n+b_1c_{n-1}+\cdots+b_nc_0\), is the coefficient of \(x^n\) in the product.

For two polynomials, such as two partial sums, this is the distributive law. The series found this way is called the Cauchy product of the two series. The theorem on multiplying power series shows that, inside both intervals of convergence, the Cauchy product converges to the product of the two sums. Its proof is beyond this course.

Using the new series

The theorem applies again to the series of \(f'\), which has the same radius, so a power series can be differentiated any number of times. After \(k\) derivatives, the term \(c_k(x-a)^k\) becomes the number \(k!\,c_k\), and the terms with lower powers become 0. Every term with a higher power keeps a factor \(x-a\). At \(x=a\), only \(k!\,c_k\) remains, so \(f^{(k)}(a)=k!\,c_k\).

A power series that equals \(f\) near \(a\) is therefore the Taylor series of \(f\) at \(a\) (topic 10.14), however it was found.

For a value \(f(x)\) with \(x\) inside the interval, add the first terms of the series at \(x\). If the terms alternate in sign and their sizes decrease to 0, the error is at most the size of the first omitted term. This is the alternating series error bound of topic 10.10. Otherwise, use the Lagrange error bound of topic 10.12, because each partial sum is a Taylor polynomial of \(f\).

For a definite integral over an interval inside the interval of convergence, integrate the series term by term. Then evaluate the result between the limits. By the Fundamental Theorem of Calculus, the constant cancels. The result is a series of numbers, even when the integrand has no antiderivative that you can find.

Example 1

Differentiate a power series term by term

The series \(\dfrac{1}{1-x}=\displaystyle\sum_{n=0}^{\infty}x^n\) converges for \(|x|<1\). Use it to find the Maclaurin series for \(\dfrac{1}{(1-x)^2}\), with its first four terms and its general term, and give its radius of convergence.

Solution

The series has radius 1, so it can be differentiated term by term for \(|x|<1\). By the chain rule, the derivative of \((1-x)^{-1}\) is \((1-x)^{-2}\). The term for \(n=0\) is a constant, whose derivative is 0, so the new sum starts at \(n=1\):

\[\begin{aligned}&\frac{1}{(1-x)^2}=\sum_{n=1}^{\infty}nx^{n-1}\\&=1+2x+3x^2+4x^3+\cdots\end{aligned}\]

For the general term with the power \(x^n\), write \(n+1\) in place of \(n\). The sum then starts at \(n=0\) again:

\[\frac{1}{(1-x)^2}=\sum_{n=0}^{\infty}(n+1)x^n\]

Differentiation keeps the radius, so the radius of convergence is 1.

Example 2

Integrate a power series term by term

The function \(h\) satisfies \(h(0)=2\) and \(h'(x)=e^{-x^2}\). Find the first four nonzero terms and the general term of the Maclaurin series for \(h\).

Solution

Substitute \(-x^2\) for \(x\) in the series of \(e^x\), which converges for every \(x\):

\[\begin{aligned}e^{-x^2}&=\sum_{n=0}^{\infty}\frac{(-1)^nx^{2n}}{n!}\\&=1-x^2+\frac{x^4}{2}-\frac{x^6}{6}+\cdots\end{aligned}\]

The radius is infinite, so the series can be integrated term by term for every \(x\). Each exponent rises by 1, each coefficient is divided by the new exponent, and a constant \(C\) is added:

\[h(x)=C+\sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{(2n+1)\,n!}\]

At \(x=0\), every term of the sum is 0, so \(h(0)=C\), and \(C=2\). The first four nonzero terms are

\[h(x)=2+x-\frac{x^3}{3}+\frac{x^5}{10}-\cdots\]

No antiderivative of \(e^{-x^2}\) can be found with the methods of this course, but the series describes \(h\) for every \(x\).

Example 3

Combine series to represent a new function

Multiply the Maclaurin series for \(\sin x\) and \(\cos x\) to find the first three nonzero terms of the Maclaurin series for \(\sin x\cos x\).

Solution

Both series converge for every \(x\), so their Cauchy product converges to \(\sin x\cos x\) for every \(x\). In the table, the columns hold the terms of \(\sin x\) through \(x^5\), the rows hold those of \(\cos x\), and each entry is a product. Products with powers above 5 are left out:

\[\begin{array}{c|ccc}&x&-\frac{x^3}{6}&\frac{x^5}{120}\\\hline1&x&-\frac{x^3}{6}&\frac{x^5}{120}\\-\frac{x^2}{2}&-\frac{x^3}{2}&\frac{x^5}{12}&\\\frac{x^4}{24}&\frac{x^5}{24}&&\end{array}\]

Each product of an odd power and an even power is an odd power. The power \(x\) appears once, \(x^3\) twice and \(x^5\) three times, so their coefficients are 1, \(-\frac16-\frac12=-\frac23\) and \(\frac{1}{120}+\frac{1}{12}+\frac{1}{24}=\frac{2}{15}\):

\[\begin{aligned}&\sin x\cos x\\&=x-\frac{2}{3}x^3+\frac{2}{15}x^5-\cdots\end{aligned}\]

As a check, \(\sin x\cos x=\frac12\sin 2x\). Substituting \(2x\) for \(x\) in the series of \(\sin x\) and halving gives \(x-\frac{8x^3}{12}+\frac{32x^5}{240}-\cdots\), the same three terms.

Example 4

Recheck the convergence interval

The series \(f(x)=\displaystyle\sum_{n=1}^{\infty}\frac{(x-2)^n}{n\cdot3^n}\) has the interval of convergence \([-1,5)\). Find the interval of convergence of the series for \(f'(x)\) and of the series for \(\displaystyle\int_2^x f(t)\,dt\).

Solution

The interval \([-1,5)\) has center 2 and radius 3. Differentiating and integrating keep the radius, so both new series converge for \(-1<x<5\), and only the ends need tests. The series has no constant term to drop, so the sum for \(f'\), found term by term, still starts at \(n=1\):

\[f'(x)=\sum_{n=1}^{\infty}\frac{(x-2)^{n-1}}{3^n}\]

At \(x=5\) the terms are \(\frac{3^{n-1}}{3^n}=\frac13\), and at \(x=-1\) they are \(\frac{(-3)^{n-1}}{3^n}\), of size \(\frac13\). The terms do not approach 0, so the series diverges at both ends by the nth-term test. The interval for \(f'\) is \((-1,5)\).

Integrating each term from 2 to \(x\) gives

\[\int_2^x f(t)\,dt=\sum_{n=1}^{\infty}\frac{(x-2)^{n+1}}{n(n+1)\,3^n}\]

At \(x=5\) the terms are \(\frac{3}{n(n+1)}\), which are less than \(\frac{3}{n^2}\). The p-series with \(p=2\) converges, so this series converges by direct comparison. At \(x=-1\) the terms have the same sizes, so the series converges absolutely. The interval is \([-1,5]\).

Example 5

Use the resulting series

Let \(f(x)=\sin\left(x^2\right)\). Find \(f^{(10)}(0)\). Then approximate \(\displaystyle\int_0^1 f(x)\,dx\) with an error less than 0.001.

Solution

Substitute \(x^2\) for \(x\) in the series of \(\sin x\), which converges for every \(x\):

\[\begin{aligned}\sin\left(x^2\right)&=\sum_{n=0}^{\infty}\frac{(-1)^nx^{4n+2}}{(2n+1)!}\\&=x^2-\frac{x^6}{3!}+\frac{x^{10}}{5!}-\cdots\end{aligned}\]

The coefficient of \(x^{10}\) is \(\frac{1}{5!}\), and it equals \(\frac{f^{(10)}(0)}{10!}\), so \(f^{(10)}(0)=\frac{10!}{5!}\), which is \(6\cdot7\cdot8\cdot9\cdot10=30240\).

The series converges for every \(x\), so integrate it term by term from 0 to 1:

\[\begin{aligned}&\int_0^1\sin\left(x^2\right)dx\\&=\sum_{n=0}^{\infty}\frac{(-1)^n}{(4n+3)(2n+1)!}\\&=\frac13-\frac{1}{42}+\frac{1}{1320}-\cdots\end{aligned}\]

The terms alternate in sign and decrease in size to 0. By the alternating series error bound, the first two terms give an error of at most \(\frac{1}{1320}\), which is less than 0.001:

\[\int_0^1\sin\left(x^2\right)dx\approx\frac13-\frac{1}{42}=\frac{13}{42}\]

Each example is one of the five skills of topic 10.15 in Which & Why: AP Calculus.