Tutorials › Calculus II › Definite Integrals From Rational Series Representations

Representing Functions by Series · Tutorial 795 of 998

Definite Integrals From Rational Series Representations

Choose an interval where a rational integrand has a convergent geometric representation, justify integrating that series, and connect the integral to an exact sum.

Advanced 9 min read

What You'll Learn

  • Identify when a rational function can be written as a geometric series on an interval.
  • Check the interval conditions needed for uniform convergence.
  • Justify term-by-term integration with a remainder bound.
  • Integrate geometric and weighted geometric series term by term.
  • Use definite integrals to derive exact identities for infinite sums.
  • Recognize why a valid pointwise expansion may still be unsuitable for integration on a whole interval.

From a Rational Function to an Infinite Sum

A rational integrand can sometimes be written as a geometric series whose terms are easy to integrate. The main opportunity is that integration changes each power into a simple coefficient, so one definite integral can produce an exact identity for an infinite sum.

There is an essential condition: the series representation must be valid across the interval of integration in a way that permits term-by-term integration. A formal substitution into the geometric-series formula is not enough. We will make the interval check explicit, justify the interchange, and then apply the method to several integrals.

Core strategy: Rewrite the rational function using the geometric-series form \(1/(1-u)=\sum_{n=0}^{\infty}u^n\), check that \(|u(x)|\) stays uniformly below \(1\) on the interval, and integrate the resulting series.

Geometric Expansions on an Interval

For a number \(u\) with \(|u|<1\), the geometric series gives

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

For an integrand, \(u\) usually depends on \(x\). Suppose \(u\) is continuous on a closed interval \([a,b]\), and there is a number \(\rho<1\) such that \(|u(x)|\leq \rho\) for every \(x\in[a,b]\). Then

$$ \frac{1}{1-u(x)}=\sum_{n=0}^{\infty}u(x)^n $$

throughout that interval. The strict uniform bound is important: it ensures that the geometric remainders become small throughout the entire interval, not merely at individual points.

Interval condition: To use this geometric expansion directly for integration on \([a,b]\), verify that there is a fixed \(\rho<1\) with \(|u(x)|\leq \rho\) for all \(x\) in the interval. If the interval reaches a point where \(|u(x)|=1\), this uniform argument does not apply; a different justification is needed.

Why Term-by-Term Integration Is Valid

The justification can be seen directly from the finite geometric-sum formula. For every nonnegative integer \(N\),

$$ \frac{1}{1-u(x)} = \sum_{n=0}^{N}u(x)^n + \frac{u(x)^{N+1}}{1-u(x)}. $$

If \(|u(x)|\leq\rho<1\), the absolute value of the remainder is at most \(\rho^{N+1}/(1-\rho)\), uniformly over the interval. This bound tends to zero as \(N\) tends to infinity. Consequently, the integrals of the finite sums converge to the integral of the function.

Theorem: If \(u\) is continuous on \([a,b]\) and \(|u(x)|\leq\rho<1\) throughout that interval, then
$$ \int_a^b \frac{1}{1-u(x)}\,dx = \sum_{n=0}^{\infty}\int_a^b u(x)^n\,dx. $$

The same conclusion holds after multiplying by a constant. It also applies term by term to finite sums of such geometric expansions. The argument does not say that every pointwise-convergent series can be integrated term by term; the uniform remainder bound is what justifies this method.

1
Find the geometric form.
Rewrite the denominator so the integrand contains \(1/(1-u(x))\), possibly with a constant factor.
2
Check the full interval.
Find a bound \(|u(x)|\leq\rho<1\) that holds for every point of the interval.
3
Integrate the terms.
Use the theorem to integrate each power and form the resulting infinite sum.
4
Check the value.
When possible, evaluate the original integral directly and compare it with the series identity.

Worked Example: A Geometric Series for an Arctangent Integral

Worked Example: A Geometric Series for an Arctangent Integral

Evaluate \(\displaystyle \int_0^{1/2}\frac{1}{1+x^2}\,dx\) and express its value as a series.

Write the denominator in geometric form by taking \(u(x)=-x^2\). For \(0\leq x\leq 1/2\), \(|u(x)|=x^2\leq1/4<1\). Thus the expansion is uniform on this interval:

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

Integrate term by term. For each \(n\), the power rule gives \(\int_0^{1/2}x^{2n}\,dx=(1/2)^{2n+1}/(2n+1)\). Therefore,

$$ \int_0^{1/2}\frac{1}{1+x^2}\,dx = \sum_{n=0}^{\infty}(-1)^n\frac{(1/2)^{2n+1}}{2n+1} = \sum_{n=0}^{\infty}\frac{(-1)^n}{2^{2n+1}(2n+1)}. $$

To check the result directly, an antiderivative is \(\arctan x\), since \(\frac{d}{dx}\arctan x=1/(1+x^2)\). Hence the integral equals \(\arctan(1/2)-\arctan(0)=\arctan(1/2)\). The resulting identity is

$$ \arctan\left(\frac12\right) = \sum_{n=0}^{\infty}\frac{(-1)^n}{2^{2n+1}(2n+1)}. $$

The first terms are \(1/2-1/24+1/160-\cdots\). The direct antiderivative confirms the value, and the uniform convergence check justifies the series evaluation.

Worked Example: A Related Integral Gives a Different Sum

Worked Example: A Related Integral Gives a Different Sum

Evaluate \(\displaystyle \int_0^{1/2}\frac{x^2}{1+x^2}\,dx\) as a series and check it directly.

Use the same geometric expansion as before. Multiplication by \(x^2\) gives

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

The bound \(|x^2|\leq1/4<1\) on \([0,1/2]\) still guarantees uniform convergence. Integrating each term gives

$$ \int_0^{1/2}\frac{x^2}{1+x^2}\,dx = \sum_{n=0}^{\infty}(-1)^n \frac{(1/2)^{2n+3}}{2n+3} = \sum_{n=0}^{\infty}\frac{(-1)^n}{2^{2n+3}(2n+3)}. $$

For a direct check, rewrite the integrand as \(1-1/(1+x^2)\). An antiderivative is \(x-\arctan x\), because its derivative is \(1-1/(1+x^2)=x^2/(1+x^2)\). Evaluating at the endpoints gives

$$ \int_0^{1/2}\frac{x^2}{1+x^2}\,dx = \left[x-\arctan x\right]_0^{1/2} = \frac12-\arctan\left(\frac12\right). $$

Combining the direct evaluation with the series calculation yields

$$ \sum_{n=0}^{\infty}\frac{(-1)^n}{2^{2n+3}(2n+3)} = \frac12-\arctan\left(\frac12\right). $$

This check also follows by subtracting the first example’s integral from \(\int_0^{1/2}1\,dx=1/2\), in agreement with the rewritten integrand.

Weighted Geometric Series

Some rational functions produce coefficients that depend on \(n\), rather than just a constant multiple of \(u(x)^n\). A useful example comes from differentiating the geometric-series identity inside its interval of convergence:

$$ \frac{1}{(1+x)^2} = \sum_{n=0}^{\infty}(n+1)(-1)^n x^n, \qquad |x|<1. $$

On any closed interval contained strictly inside \((-1,1)\), this differentiated power series converges uniformly. The factor \(n+1\) does not prevent integration there: the geometric decay of \(|x|^n\) dominates that factor. The next example uses this representation.

Worked Example: Integrating a Weighted Geometric Series

Worked Example: Integrating a Weighted Geometric Series

Evaluate \(\displaystyle \int_0^{1/2}\frac{1}{(1+x)^2}\,dx\) by a series and verify the answer.

Since \(0\leq x\leq1/2<1\), the weighted geometric series converges uniformly on the interval. Integrating term by term gives

$$ \begin{aligned} \int_0^{1/2}\frac{1}{(1+x)^2}\,dx &= \sum_{n=0}^{\infty}(n+1)(-1)^n\int_0^{1/2}x^n\,dx\\ &= \sum_{n=0}^{\infty}(n+1)(-1)^n\frac{(1/2)^{n+1}}{n+1}\\ &= \sum_{n=0}^{\infty}\frac{(-1)^n}{2^{n+1}}. \end{aligned} $$

The last series is geometric with first term \(1/2\) and ratio \(-1/2\). Its sum is

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

For the direct check, an antiderivative is \(-1/(1+x)\), whose derivative is \(1/(1+x)^2\). Therefore,

$$ \int_0^{1/2}\frac{1}{(1+x)^2}\,dx = \left[-\frac{1}{1+x}\right]_0^{1/2} = -\frac{2}{3}-(-1) = \frac13. $$

The direct value agrees with the sum obtained by integrating the series.

A Common Mistake: Ignoring the Interval

A geometric expansion may be valid near one point but invalid across the entire interval of integration. For example, the identity

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

requires \(|x|<1\). It is therefore incorrect to use it term by term on \([0,2]\). That would produce the proposed expression

$$ \sum_{n=0}^{\infty}(-1)^n\int_0^2 x^{2n}\,dx = \sum_{n=0}^{\infty}(-1)^n\frac{2^{2n+1}}{2n+1}. $$

The terms of this series do not approach zero: their absolute values \(2^{2n+1}/(2n+1)\) grow without bound. Thus the expression cannot be the value of the integral. In fact, the original integrand is continuous on \([0,2]\), so its definite integral is finite. The error was not in integrating a power; it was using a series outside the interval where its expansion applies.

Correction: Before integrating a series, check its domain and convergence on the whole interval. A power series that represents a function for \(|x|<1\) cannot automatically be used on an interval extending to \(x=2\).

Why This Method Matters

The method turns an integral into a systematic way of producing exact sums. Each term is integrated using familiar power rules, while a direct evaluation of the integral can identify the value of the resulting series. The interval check is not a technical afterthought: it connects the algebraic expansion to the function being integrated and ensures that the sum actually represents the integral.

When applying the method, keep three questions separate: Is the algebraic geometric expansion correct? Does it converge uniformly on the chosen interval? And does the term-by-term integral agree with a direct evaluation or another valid calculation? Answering all three makes the resulting sum reliable.

Check Your Understanding

For each question, check both the series calculation and the interval condition.

  1. On \([0,1/3]\), what geometric expansion represents \(1/(1+x^2)\), and what series results from integrating it?
  2. Why does a bound \(|u(x)|\leq\rho<1\) on a closed interval justify integrating \(\sum_{n=0}^{\infty}u(x)^n\) term by term?
  3. What sum results from integrating the series for \(x/(1+x^2)\) on \([0,1/2]\)?
  4. Why is the expansion \(\sum_{n=0}^{\infty}(-1)^n x^{2n}\) unsuitable for direct term-by-term integration on \([0,2]\)?
  5. For the weighted series for \(1/(1+x)^2\), which factor in each term cancels when the term is integrated?

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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