From a Geometric Series to a Logarithm
The geometric series is useful not only for representing rational functions. Integrating it term by term can produce power series for other functions. In this tutorial, the function is the natural logarithm.
For \(|x|<1\), the geometric series gives
The derivative of \(\ln(1+x)\) is \(1/(1+x)\), and \(\ln(1)=0\). These facts suggest integrating from \(0\) to \(x\). The key point is that the geometric series may be integrated term by term on any interval that stays strictly inside \((-1,1)\). This gives the series when \(|x|<1\); the endpoints must then be checked separately.
Why Termwise Integration Works Inside the Interval
Fix \(x\) with \(|x|<1\). For every \(t\) between \(0\) and \(x\), choose \(r\) such that \(|x|\le r<1\). Then \(|t|\le r\), and the remainder after \(N+1\) terms of the geometric series satisfies
The bound tends to zero as \(N\) increases and does not depend on \(t\) in the interval between \(0\) and \(x\). Thus the geometric partial sums converge uniformly there. Uniform convergence on this finite interval permits integration term by term. This argument applies whether \(x\) is positive or negative, as long as \(|x|<1\).
For \(|t|<1\), write \(1/(1+t)=\sum_{n=0}^{\infty}(-1)^n t^n\).
For fixed \(|x|<1\), uniform convergence between \(0\) and \(x\) justifies integrating the series term by term.
The integral of \(1/(1+t)\) from \(0\) to \(x\) is \(\ln(1+x)\), since \(x>-1\).
Carrying out those integrations gives the identity
The integral formula uses \(x>-1\), so that \(1+t\) stays positive along the interval of integration. The series conclusion above is established for \(|x|<1\). It does not yet say what happens at \(x=1\) or \(x=-1\).
The Logarithm Series
Reindexing the terms by setting \(k=n+1\) gives a familiar form.
The signs alternate, and the denominator of the \(k\)th term is \(k\). The first term is \(x\), not \(1\), because integrating \(t^n\) produces \(x^{n+1}/(n+1)\). The series is centered at \(x=0\), where \(\ln(1+x)=0\).
Worked Example: Approximating \(\ln(3/2)\)
Set \(x=1/2\), which lies inside the interval of validity. The series becomes
The first four terms are
The terms decrease in magnitude and alternate in sign. The alternating-series remainder bound says that the error after these four terms is at most the magnitude of the next term:
Thus this partial sum gives an approximation with error no greater than \(0.00625\). As a check on the expression being approximated, differentiating the series term by term for \(|x|<1\) recovers \(1/(1+x)\), and the series is zero at \(x=0\); these are the derivative and initial value of \(\ln(1+x)\).
Convergence Inside and Outside the Interval
For \(|x|<1\), the series converges absolutely: the magnitudes of its terms are \(|x|^k/k\), which are bounded above by the terms \(|x|^k\) of a convergent geometric series. At the endpoints, that argument no longer applies. Each endpoint must be tested directly.
If \(|x|>1\), the terms do not approach zero. Indeed,
A necessary condition for a series to converge is that its terms tend to zero, so the logarithm series diverges for \(|x|>1\). This leaves the two boundary points \(x=1\) and \(x=-1\).
The Endpoint \(x=1\)
Substituting \(x=1\) gives the alternating harmonic series
Its terms decrease in magnitude to zero, so the alternating-series test shows that the series converges. It does not converge absolutely, since the absolute-value series is the divergent harmonic series \(\sum_{k=1}^{\infty}1/k\). To confirm that its sum is \(\ln 2\), use the finite geometric identity inside the integral.
For \(0\le t\le1\),
Integrate from \(0\) to \(1\). Since the absolute value of the integrated remainder is at most \(\int_0^1 t^{N+1}\,dt=1/(N+2)\), it tends to zero. Therefore,
Worked Example: Checking the Series at \(x=1\)
The partial sum through the term \(-1/4\) is
The next term is \(1/5\). The alternating-series remainder bound gives
The error is positive because the first omitted term is positive. The endpoint series does converge to \(\ln 2\), as shown by the integrated finite geometric identity above; the bound also confirms that this partial sum lies below its sum and within \(1/5\) of it.
The Endpoint \(x=-1\)
At \(x=-1\), every term is negative:
Consequently the series becomes \(-\sum_{k=1}^{\infty}1/k\), which diverges. Its partial sums decrease without bound. Also, \(\ln(1+x)\) is not defined as a real number at \(x=-1\), because its argument is zero. This endpoint is not included in the interval of convergence.
Worked Example: Why \(x=-1\) Is Excluded
The first four terms obtained by substituting \(x=-1\) are
After \(N\) terms, the partial sum is \(-\sum_{k=1}^{N}1/k\). The harmonic sums grow without bound, so these partial sums do not approach a finite value. This verifies divergence at \(x=-1\); it cannot be treated as a value of the real logarithm series.
The Interval of Convergence and a Common Pitfall
Combining the interior result, the test for \(|x|>1\), and the two endpoint checks gives the complete interval:
A common mistake is to assume that because a power series converges for \(|x|<1\), both endpoints must also be included. For example, writing “the interval is \([-1,1]\)” based only on the radius is incorrect: at \(x=-1\), the series is \(-1-1/2-1/3-\cdots\) and diverges. Conversely, excluding both endpoints without checking would miss the convergence at \(x=1\). The radius identifies where to investigate; endpoint tests determine whether either boundary point belongs.
The endpoint behavior is also a useful reminder that a formula obtained by termwise integration on interior intervals cannot automatically be extended to the boundary. Uniform convergence was justified on intervals strictly inside \((-1,1)\), not on an interval reaching \(x=-1\). At \(x=1\), convergence and the value require their own argument.
Check Your Understanding
Use the derivation and endpoint tests to answer the following questions.
- Why can the geometric series be integrated term by term for a fixed \(x\) with \(|x|<1\)?
- What is the first four-term partial sum for \(\ln(1+1/3)\)?
- Why does the logarithm series converge at \(x=1\) but not absolutely?
- What series results from substituting \(x=-1\), and why does it diverge?
- Why does the radius of convergence alone not determine whether \(x=1\) or \(x=-1\) is included?