Tutorials › AP Calculus › Integrating Power Series Term by Term

Taylor Series and Error Bounds · Tutorial 883 of 999

Integrating Power Series Term by Term

Use power series to represent antiderivatives and evaluate definite integrals by integrating each term under the appropriate convergence conditions.

Advanced 9 min read

What You'll Learn

  • Integrate each power-series term using the power rule and preserve the constant of integration.
  • State where term-by-term integration is valid inside the interval of convergence.
  • Derive power series for arctangent and logarithmic functions from known series.
  • Use an integrated series to represent a definite integral exactly.
  • Check an antiderivative series by differentiating it and checking its value at the center.

Why Integrate a Power Series?

A power series can represent a function as an infinite sum of powers. If that representation is valid on an interval, integrating the series term by term can produce a new series for an antiderivative or a definite integral. This is especially useful when the antiderivative is not easy to express using elementary functions, or when a familiar function such as the arctangent or logarithm can be represented by a convenient series.

The basic calculation resembles the power rule for polynomials. The important additional question is where the infinite sum may be integrated this way. Inside the interval of convergence, the series converges uniformly on every closed subinterval, which justifies passing from integrals of finite sums to the integral of the infinite sum.

The Term-by-Term Integration Rule

Suppose a power series centered at \(a\) represents a function \(f\) for \(|x-a|<R\):

$$ f(x)=\sum_{n=0}^{\infty}c_n(x-a)^n. $$

For any \(x\) strictly inside that interval, integrate from the center \(a\) to \(x\). The integral of each power is \(\frac{(x-a)^{n+1}}{n+1}\). Thus the resulting series has a new power of \(x-a\) and a denominator \(n+1\).

Theorem: If \(f(x)=\sum_{n=0}^{\infty}c_n(x-a)^n\) for \(|x-a|<R\), then for every \(x\) with \(|x-a|<R\), $$ \int_a^x f(t)\,dt = \sum_{n=0}^{\infty}\frac{c_n}{n+1}(x-a)^{n+1}. $$ Consequently, an antiderivative of \(f\) on this interval is $$ C+\sum_{n=0}^{\infty}\frac{c_n}{n+1}(x-a)^{n+1}, $$ where \(C\) is any constant. The same rule applies to a definite integral over a closed interval lying strictly inside the interval of convergence.

The variable \(t\) in the integral is a dummy variable: it indicates that the function is integrated with respect to its input. Using \(t\) also makes it clear that the resulting expression is a function of the endpoint \(x\).

Why Term-by-Term Integration Works

Write the partial sums of the original power series as \(S_N(t)=\sum_{n=0}^{N}c_n(t-a)^n\). For a finite sum, integration term by term is just linearity of the integral and the power rule. To justify the infinite version, we need the partial sums to approach \(f\) uniformly on the interval being integrated over.

Choose a closed interval \([u,v]\) strictly inside \((a-R,a+R)\). There is a number \(r<R\) such that \(|t-a|\le r\) for every \(t\in[u,v]\). Because the original power series converges absolutely at distance \(r\) from its center, \(\sum_{n=0}^{\infty}|c_n|r^n\) converges. For every \(t\in[u,v]\), the absolute value of the \(n\)th term is at most \(|c_n|r^n\). The tails of this convergent numerical series therefore bound the tails of the power series uniformly on \([u,v]\). Hence \(S_N\) converges uniformly to \(f\) there.

Uniform convergence means that the difference between \(S_N(t)\) and \(f(t)\) is small for all \(t\) in the interval at once. In particular, if the largest such difference is at most \(\varepsilon\), then:

$$ \left|\int_u^v f(t)\,dt-\int_u^v S_N(t)\,dt\right| \le (v-u)\varepsilon. $$

As \(N\) increases, the uniform error \(\varepsilon\) tends to zero, so the integrals of the partial sums approach the integral of \(f\). Each partial sum is finite, and its integral is obtained term by term. This proves the term-by-term rule on closed intervals strictly inside the interval of convergence. Setting one endpoint equal to the center gives the displayed formula for \(\int_a^x f(t)\,dt\).

Worked Example: A Power Series for the Arctangent

Worked Example: Derive the Maclaurin Series for \(\arctan x\)

For \(|t|<1\), the geometric series with input \(-t^2\) gives:

$$ \frac{1}{1+t^2} = \frac{1}{1-(-t^2)} = \sum_{n=0}^{\infty}(-1)^n t^{2n} = 1-t^2+t^4-t^6+\cdots. $$

Since the derivative of \(\arctan t\) is \(\frac{1}{1+t^2}\), integrate from \(0\) to \(x\). For \(|x|<1\), the interval between \(0\) and \(x\) lies inside the convergence interval, so term-by-term integration applies:

$$ \begin{aligned} \arctan x-\arctan 0 &=\int_0^x\frac{1}{1+t^2}\,dt\\ &=\int_0^x(1-t^2+t^4-t^6+\cdots)\,dt\\ &=x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}+\cdots\\ &=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+1}}{2n+1}. \end{aligned} $$

Because \(\arctan 0=0\), the left side is \(\arctan x\). The first terms are \(x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}\). To check the result, differentiate the series inside \(|x|<1\): its derivative is \(1-x^2+x^4-x^6+\cdots=\frac{1}{1+x^2}\), the derivative of \(\arctan x\). At \(x=0\), both the series and \(\arctan x\) equal \(0\), so the constant of integration also agrees.

Worked Example: A Power Series for \(\ln(1+x)\)

Worked Example: Integrate the Geometric Series to Find \(\ln(1+x)\)

For \(|t|<1\), substituting \(-t\) into the geometric series gives:

$$ \frac{1}{1+t} = \frac{1}{1-(-t)} = \sum_{n=0}^{\infty}(-1)^n t^n = 1-t+t^2-t^3+\cdots. $$

The derivative of \(\ln(1+t)\) is \(\frac{1}{1+t}\) when \(1+t>0\). In particular, for \(-1<t<1\), integrate from \(0\) to \(x\):

$$ \begin{aligned} \ln(1+x)-\ln(1) &=\int_0^x\frac{1}{1+t}\,dt\\ &=\int_0^x(1-t+t^2-t^3+\cdots)\,dt\\ &=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\cdots\\ &=\sum_{n=0}^{\infty}(-1)^n\frac{x^{n+1}}{n+1}. \end{aligned} $$

Since \(\ln(1)=0\), this is the series for \(\ln(1+x)\). Its first terms are \(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}\). As a check, differentiating the series gives \(1-x+x^2-x^3+\cdots=\frac{1}{1+x}\) for \(|x|<1\), and the series has value \(0\) at \(x=0\), just like \(\ln(1+x)\).

Worked Example: Represent a Definite Integral Exactly

Worked Example: Express \(\ln 2\) as an Infinite Series

We can use the geometric series for \(\frac{1}{1-t}\) to represent the integral that equals \(\ln 2\). For \(0\le t\le\frac12\), the geometric series converges, and this whole interval lies strictly inside its interval of convergence:

$$ \frac{1}{1-t} = \sum_{n=0}^{\infty}t^n. $$

Integrate from \(0\) to \(\frac12\), integrating each term:

$$ \begin{aligned} \int_0^{1/2}\frac{1}{1-t}\,dt &=\sum_{n=0}^{\infty}\int_0^{1/2}t^n\,dt\\ &=\sum_{n=0}^{\infty}\frac{(1/2)^{n+1}}{n+1}\\ &=\frac12+\frac18+\frac1{24}+\frac1{64}+\cdots. \end{aligned} $$

Evaluating the integral directly gives \([-\ln(1-t)]_0^{1/2}=-\ln(\frac12)+\ln(1)=\ln 2\). Therefore:

$$ \ln 2 = \sum_{n=0}^{\infty}\frac{1}{(n+1)2^{n+1}} = \sum_{k=1}^{\infty}\frac{1}{k2^k}. $$

To check the series, integrate the finite partial sum \(1+t+t^2+\cdots+t^N\). Its integral from \(0\) to \(\frac12\) is \(\sum_{n=0}^{N}\frac{(1/2)^{n+1}}{n+1}\). As \(N\) increases, the partial sums converge uniformly on this interval to \(\frac{1}{1-t}\), so these integrals approach \(\int_0^{1/2}\frac{1}{1-t}\,dt=\ln 2\), as claimed.

Constants, Definite Integrals, and a Common Mistake

Integration of a series produces a family of antiderivatives, so the constant \(C\) must be included when a general antiderivative is requested. Integrating from the center instead fixes the constant automatically: \(\int_a^a f(t)\,dt=0\). For a definite integral, integrate each term over the stated bounds and evaluate the resulting powers at both endpoints.

A frequent error is to increase the exponent but leave the old exponent in the denominator. For instance, the incorrect calculation \(\int x^3\,dx=\frac{x^4}{3}\) fails because differentiating the proposed answer gives \(\frac{4x^3}{3}\), not \(x^3\). The correct calculation is:

$$ \int x^3\,dx=\frac{x^4}{4}+C, \qquad \frac{d}{dx}\left(\frac{x^4}{4}+C\right)=x^3. $$

The same indexing rule applies to a power series: \(c_n(x-a)^n\) integrates to \(\frac{c_n}{n+1}(x-a)^{n+1}\), not to a term with denominator \(n\). Term-by-term integration is guaranteed on intervals strictly inside the original interval of convergence. At an endpoint, convergence must be checked separately; the interior rule alone does not settle what happens there.

Key takeaway: Inside its interval of convergence, integrate each term \(c_n(x-a)^n\) as \(\frac{c_n}{n+1}(x-a)^{n+1}\). Check the result by differentiating, and determine the constant from a known value or a definite integral.

Check Your Understanding

Use the term-by-term integration rule and state the interval on which your reasoning applies.

  1. Integrate \(\sum_{n=0}^{\infty}x^n\) term by term from \(0\) to \(x\), for \(|x|<1\).
  2. Starting from \(\frac{1}{1+t^2}=\sum_{n=0}^{\infty}(-1)^nt^{2n}\), write the first four nonzero terms of the integrated series.
  3. What constant must be added to an antiderivative series if it is required to equal \(5\) at its center \(x=a\)?
  4. Explain why uniform convergence on a closed interval inside the interval of convergence justifies integrating the series there.
  5. Identify the error in the claim \(\int c_n(x-a)^n\,dx=\frac{c_n}{n}(x-a)^{n+1}\), and write the corrected term.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon