Tutorials › Calculus II › The Arctangent Series From Termwise Integration

Taylor Series Construction · Tutorial 831 of 998

The Arctangent Series From Termwise Integration

Build the arctangent series from the geometric series, and see why it converges to the correct values even at x = −1 and x = 1.

Intermediate 11 min read

What You'll Learn

  • Obtain the Maclaurin series for arctan x by integrating the geometric series for 1/(1 + x²).
  • Explain why termwise integration is valid on every closed interval strictly inside (−1, 1).
  • Identify the interval of convergence and distinguish absolute convergence inside it from conditional convergence at its endpoints.
  • Prove that the endpoint sums equal arctan(1) and arctan(−1).
  • Use the alternating-series remainder to bound an endpoint approximation with the correct sign.

From a Geometric Series to an Arctangent Series

A geometric series can produce more than a formula for a rational function. Integrating its terms can produce a power series for an antiderivative. For the function \(1/(1+x^2)\), that antiderivative is \(\arctan x\), and the resulting series gives a useful representation of the inverse tangent near zero.

The integration has to be handled carefully. The geometric series is valid when \(|x|<1\), while the resulting arctangent series also converges at \(x=-1\) and \(x=1\). Those endpoint values require separate justification; convergence of the geometric series at the endpoints is not available.

Goal: Derive \(\arctan x=x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}+\cdots\) for \(|x|<1\), then establish convergence and the correct sum at both endpoints.

The Geometric Series to Be Integrated

For a real number \(r\) with \(|r|<1\), the geometric-series formula is \(\frac{1}{1-r}=\sum_{n=0}^{\infty}r^n\). Set \(r=-x^2\). If \(|x|<1\), then \(|-x^2|<1\), so

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

The derivative of \(\arctan x\) is \(1/(1+x^2)\), and \(\arctan 0=0\). Integrating the displayed series from \(0\) to \(x\) therefore suggests integrating each term. Here is why that operation is justified for \(|x|<1\).

Fix any \(a\) with \(0<a<1\). For every \(t\in[-a,a]\), the absolute value of the tail after the \(N\)th term is bounded by

$$ \sum_{n=N+1}^{\infty}|t|^{2n} \leq \sum_{n=N+1}^{\infty}a^{2n} = \frac{a^{2N+2}}{1-a^2}. $$

Since \(a<1\), this bound tends to zero as \(N\) increases, independently of \(t\). Thus the geometric series converges uniformly on \([-a,a]\). A uniformly convergent series of continuous functions can be integrated term by term on a closed bounded interval, so the suggested integration is valid whenever \(x\) lies inside such an interval. Every \(x\) with \(|x|<1\) lies in some interval \([-a,a]\) with \(|x|<a<1\).

Deriving the Maclaurin Series

Integrating from \(0\) to \(x\), term by term, gives the power series. Each term is integrated using the power rule, and the constant of integration is fixed by \(\arctan 0=0\).

$$ \begin{aligned} \arctan x &=\int_0^x \frac{1}{1+t^2}\,dt\\ &=\int_0^x \left(1-t^2+t^4-t^6+\cdots\right)\,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}, \qquad |x|<1. \end{aligned} $$
Result: The Maclaurin series for the inverse tangent is \(\displaystyle \arctan x=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+1}}{2n+1}\) for \(|x|<1\). Its terms have alternating signs and involve odd powers of \(x\).

The construction also provides a check on the formula. Inside \((-1,1)\), the series may be differentiated term by term on any smaller closed interval. Its derivative is

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

The series itself is zero at \(x=0\). Since its derivative agrees with the derivative of \(\arctan x\) throughout \((-1,1)\), and both functions have value zero at \(0\), they agree throughout that interval. This checks both the differentiated expression and the integration constant.

Worked Example: Evaluate the Series at \(x=\frac12\)

Substitute \(x=\frac12\) into the series. The first four terms are

$$ \arctan\left(\frac12\right) = \frac12-\frac{(1/2)^3}{3} +\frac{(1/2)^5}{5} -\frac{(1/2)^7}{7}+\cdots. $$

Compute each displayed term: \(\frac12\), \(-\frac{1}{24}\), \(\frac{1}{160}\), and \(-\frac{1}{896}\). Their sum is

$$ \frac12-\frac{1}{24}+\frac{1}{160}-\frac{1}{896} = \frac{6720-560+84-15}{13440} = \frac{6229}{13440}. $$

The next term is positive: \(\frac{(1/2)^9}{9}=\frac{1}{4608}\). The alternating-series estimate applies because the term magnitudes decrease to zero. Since the four-term partial sum ends with a negative term, the remainder is positive and is less than the next term:

$$ 0< \arctan\left(\frac12\right)-\frac{6229}{13440} < \frac{1}{4608}. $$

Thus the partial sum is an underestimate. The remainder’s sign and bound check the approximation against the alternating terms of the series.

Convergence Inside the Interval

For a fixed \(x\) with \(|x|<1\), the absolute values of the terms are \(\frac{|x|^{2n+1}}{2n+1}\). They are bounded above by \(|x|^{2n+1}\), whose sum is a convergent geometric series. Therefore the arctangent series converges absolutely for \(|x|<1\). The derivation above establishes that its sum there is \(\arctan x\).

At the endpoints, the terms no longer have geometrically decreasing magnitudes. We must check those values separately, both to establish convergence and to identify the sums.

The Endpoint \(x=1\)

Substituting \(x=1\) formally gives the alternating series

$$ 1-\frac13+\frac15-\frac17+\cdots. $$

Its term magnitudes \(1/(2n+1)\) decrease to zero, so the alternating-series test proves convergence. To prove that its sum is \(\arctan 1=\pi/4\), use the finite geometric identity before taking a limit. For every nonnegative integer \(N\) and \(0\leq t\leq1\),

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

Integrating from \(0\) to \(1\) gives the exact relation

$$ \frac{\pi}{4} = \sum_{n=0}^{N}\frac{(-1)^n}{2n+1} + (-1)^{N+1} \int_0^1\frac{t^{2N+2}}{1+t^2}\,dt. $$

The magnitude of the remaining integral is at most \(\int_0^1t^{2N+2}\,dt=1/(2N+3)\), because \(1+t^2\geq1\). This bound tends to zero as \(N\) increases. Therefore the partial sums tend to \(\pi/4\), which proves the endpoint identity.

Endpoint result: \(\displaystyle 1-\frac13+\frac15-\frac17+\cdots=\frac{\pi}{4}\). The series converges conditionally at \(x=1\): it converges by the alternating-series test, but the sum of the absolute values diverges.

Worked Example: Bound the Error at \(x=1\)

Take the first five terms, ending with the positive term \(1/9\):

$$ 1-\frac13+\frac15-\frac17+\frac19 = \frac{315-105+63-45+35}{315} = \frac{263}{315}. $$

The next term is \(-1/11\). Because the alternating terms decrease in magnitude, the remainder after this five-term partial sum is negative, with magnitude less than \(1/11\). Consequently,

$$ -\frac{1}{11} < \frac{\pi}{4}-\frac{263}{315} < 0. $$

The sign is important: the partial sum ends with a positive term, so it is greater than the limit. In particular, the displayed bound says \(\frac{263}{315}-\frac{1}{11}<\frac{\pi}{4}<\frac{263}{315}\), consistent with the remainder estimate.

The Endpoint \(x=-1\)

At \(x=-1\), the series becomes

$$ -1+\frac13-\frac15+\frac17-\cdots. $$

Its term magnitudes again decrease to zero, so the alternating-series test proves convergence. The series is also the negative of the series at \(x=1\). Its sum is therefore \(-\pi/4\), which equals \(\arctan(-1)\). This equality can also be checked directly from oddness: \(\arctan(-x)=-\arctan x\).

Worked Example: Check the Sign at \(x=-1\)

The first five terms at \(x=-1\) are \(-1+\frac13-\frac15+\frac17-\frac19\). Their sum is

$$ -1+\frac13-\frac15+\frac17-\frac19 = -\left(1-\frac13+\frac15-\frac17+\frac19\right) = -\frac{263}{315}. $$

The next term is positive, \(1/11\), so the partial sum is below the limiting value. By oddness and the endpoint result at \(1\), that limiting value is \(-\pi/4\). The alternating-series remainder therefore satisfies

$$ 0< -\frac{\pi}{4}-\left(-\frac{263}{315}\right) < \frac{1}{11}, $$

or, equivalently, \(-\frac{263}{315}<-\frac{\pi}{4}<-\frac{263}{315}+\frac{1}{11}\). The inequalities confirm that the five-term partial sum is an underestimate for the negative endpoint value.

Interval of Convergence and a Common Pitfall

The series converges absolutely when \(|x|<1\), and it converges conditionally at both \(x=-1\) and \(x=1\). If \(|x|>1\), its terms do not approach zero: their magnitudes are \(|x|^{2n+1}/(2n+1)\), which grow without bound for sufficiently large \(n\). A convergent series must have terms tending to zero, so the series diverges there. Its interval of convergence is therefore \([-1,1]\).

Values of \(x\)BehaviorSum
\(|x|<1\)Converges absolutely\(\arctan x\)
\(x=1\)Converges conditionally\(\pi/4\)
\(x=-1\)Converges conditionally\(-\pi/4\)
\(|x|>1\)Diverges; terms do not tend to zeroNo sum

A common mistake is to assume that the original geometric series can be substituted at \(x=1\) or \(x=-1\), and then integrated term by term there. At either endpoint, the geometric series for \(1/(1+x^2)\) does not converge: its terms have magnitude \(1\). The correct argument is to integrate the finite geometric identity and show that its integrated remainder tends to zero. That separate step establishes the endpoint values without applying the geometric-series formula outside its range of convergence.

The same care is needed with alternating-series error signs. A partial sum ending in a positive term lies above the limit; one ending in a negative term lies below it. Check the sign of the next term before writing a two-sided remainder bound.

Why the Construction Is Useful

The series gives a polynomial-based way to approximate inverse tangent values using only powers, fractions, and addition. Its alternating terms also provide a direct error bound: after a partial sum, the error has the sign of the first omitted term and magnitude less than that term, provided the term magnitudes decrease to zero. At \(x=1\), this supplies rational bounds for \(\pi/4\), and hence for \(\pi\).

The central reasoning has two parts. Uniform convergence on every closed interval strictly inside \((-1,1)\) justifies integrating the geometric series to obtain the function’s series. At the endpoints, an alternating-series argument proves convergence, while the integrated finite geometric identity identifies the sums. Keeping those arguments distinct avoids extending a formula beyond the conditions that justify it.

Check Your Understanding

Use the derivation and endpoint arguments to answer these questions.

  1. Why does the geometric series for \(1/(1+x^2)\) converge when \(|x|<1\), and what substitution into the geometric-series formula produces it?
  2. Why does uniform convergence on \([-a,a]\), where \(a<1\), allow the series to be integrated term by term there?
  3. Why is the arctangent series absolutely convergent for \(|x|<1\) but only conditionally convergent at \(x=1\) and \(x=-1\)?
  4. What finite-identity remainder bound proves that the endpoint series at \(x=1\) sums to \(\pi/4\)?
  5. After the five-term partial sum \(263/315\) at \(x=1\), is the remainder positive or negative, and why?