Series Summation Methods

Published on Sun 18 October 2026

Here, we will maintain a list of series summation methods. Methods currently covered:

Method 1: Operator method

The approach was developed by Isaac Newton. It turns series summation into a mechanical process.

Method

Consider a series \(a_0, a_1, \ldots, a_n\). Define two operators \(E\) and \(\Delta\) satisfying

\begin{eqnarray} \tag{1a} \label{1a} E a_i &=& a_{i+1} \\ \tag{1b} \label{1b} \Delta a_i &=& a_{i+1} - a_i \end{eqnarray}

Imagining that the \(\{a_i\}\) are partial sums of some series, we'd like to evaluate

\begin{eqnarray} E^n a_0 = a_n. \tag{2} \label{2} \end{eqnarray}

We can make progress by noting that our two operators are related via

\begin{eqnarray} \Delta = E - 1 \tag{3} \label{3}. \end{eqnarray}

Rearranging, and plugging into (\ref{2}), we get

\begin{eqnarray} E^n a_0 &=& (1 + \Delta)^n a_0 \\ &=& \sum_{i=0}^n \binom{n}{i} \Delta^i a_0. \tag{4} \label{4} \end{eqnarray}

From here, two things can happen: (a) We can clip the expansion at level \(k\) to get a polynomial fit to the series. This is the interpolating polynomial of degree \(k\) that goes through the points \((0, a_0), (1, a_1), \ldots, (k, a_k)\). (b) It may be that \(\Delta^i a_0 = 0\) for all \(i \geq k\), say. In that case, the series is exactly polynomial in \(n\).

Before moving on, we note that we can also expand \(\Delta^n\) in terms of \(E\) using (\ref{3}). This gives

\begin{eqnarray} \Delta^n a_0 = (-1)^n \sum_{i=0}^n \binom{n}{i} (-E)^i a_0, \tag{5} \label{5} \end{eqnarray}

an expression that sometimes provides a convenient way to evaluate the \(n\)-th difference.

Example

Let's evaluate \(a_n = \sum_{i=0}^n i^2\), the sum of the first \(n\) squares. To calculate the first few terms in (\ref{4}) for this series, we'll need to evaluate \(\Delta a_i\) for the first few \(a_i\). These values are

\begin{eqnarray} \Delta a_0 &\equiv& a_1 - a_0 = 1 - 0 = 1 \\ \Delta a_1 &\equiv& a_2 - a_1 = 5 - 1 = 4 \\ \Delta a_2 &\equiv& a_3 - a_2 = 14 - 5 = 9 \\ \Delta a_3 &\equiv& a_4 - a_3 = 30 - 14 = 16 \tag{6} \label{6} \end{eqnarray}

Naturally, we get back the subsequent squares in each case. The second differences are

\begin{eqnarray} \Delta^2 a_0 &\equiv & \Delta a_1 - \Delta a_0 = 4 - 1 = 3 \\ \Delta^2 a_1 &\equiv & \Delta a_2 - \Delta a_1 = 9 - 4 = 5 \\ \Delta^2 a_2 &\equiv & \Delta a_3 - \Delta a_2 = 16 - 9 = 7 \tag{7} \label{7} \end{eqnarray}

Finally, the third differences are

\begin{eqnarray} \Delta^3 a_0 &\equiv & \Delta^2 a_1 - \Delta^2 a_0 = 5 - 3 = 2 \\ \Delta^3 a_1 &\equiv & \Delta^2 a_2 - \Delta^2 a_1 = 7 - 5 = 2 \tag{8}\label{8} \end{eqnarray}

We see the last two values are both \(2\). In fact, every term in the third difference sequence is \(2\), so we get

\begin{eqnarray} \Delta^4 a_i = 0 \tag{9}\label{9} \end{eqnarray}

and all higher order differences are zero as well. Plugging these results into (4), we obtain

\begin{eqnarray} a_n &=& \binom{n}{1} \cdot 1 + \binom{n}{2} \cdot 3 + \binom{n}{3} \cdot 2 \\ &=& \frac{n (n+1)(2n + 1)}{6}, \tag{10} \label{10} \end{eqnarray}

the familiar result. Notice that the sum of squares is cubic in \(n\), just as the integral of a quadratic gives a cubic.

Method 2: Euler transform for alternating series

Here, we review Euler's method for speeding up the convergence of alternating series. This makes use of the operator identity we reviewed above.

Method

Let \(a_i \geq 0\), and define the alternating series

\begin{eqnarray} S &=& \sum_{i=0}^{\infty} (-1)^i a_i \\ &=& \sum_{i=0}^{\infty} (-E)^i a_0 \\ &=& \frac{1}{1 + E} a_0 \tag{11}\label{11} \end{eqnarray}

Here, we have summed the geometric series in the second line. Next, we use (\ref{3}) to obtain

\begin{eqnarray} S &=& \frac{1}{2 + \Delta} a_0 \\ &=& \frac{1}{2} \frac{1}{1 + \frac{\Delta}{2}} a_0 \\ &=& \frac{1}{2} \sum_{i=0}^{\infty} \frac{(-\Delta)^i}{2^i} a_0. \tag{12} \label{12} \end{eqnarray}

Notice that we have differences appearing here, which often converge more quickly, and the factor of \(2^{-i}\) will also help to speed up convergence. Note also that (\ref{5}) can be used to programmatically evaluate these terms.

Example

Consider the alternating sum

\begin{eqnarray} S &\equiv& \sum_{i=0}^{\infty} \frac{(-1)^i}{\log(i + 2)} &\approx& 0.9242999 \tag{13} \label{13} \end{eqnarray}

By the Leibniz test, this series converges. However, the logarithm does not grow quickly and so we expect slow convergence here. Indeed, even summing the first 100 million terms, we get an estimate having about 3 percent error. In contrast, with the Euler method we can obtain sixteen-digit accuracy using just \(k\) terms, where

\begin{eqnarray} k \sim 16 \frac{ \log 10}{\log 2} \approx 50. \tag{14} \label{14} \end{eqnarray}

Figure 1 below illustrates the much faster rate of convergence of the Euler-transformed sum in this case.

Figure 1: Plot of the partial sums of (\ref{13}) for both the direct and Euler-transformed sums. The direct sum has not converged even after 100 million terms, but the Euler-transformed sum reaches machine precision after just 50.

Method 3: Borel trick

The Borel trick sometimes allows us to assign a "physical" value to a divergent series. We assume the series is the asymptotic expansion of some function that does not have a converging Taylor expansion. It is particularly natural when the \(n\)-th term scales like \(n!\), which indicates zero radius of convergence, perhaps due to a branch cut extending to the origin. There are practical applications of the trick in statistical mechanics and quantum physics, but these are too complicated for this post. Instead, I give a toy example below.

Method

Let

\begin{eqnarray} S(g) = \sum_{i=0}^{\infty} a_i g^i \tag{15} \label{15} \end{eqnarray}

be a series that may or may not converge. Multiply the \(k\)-th term by \(\frac{1}{k!}\) to obtain a new series

\begin{eqnarray} f(g) = \sum_{i=0}^{\infty} \frac{ a_i}{i!} g^i \tag{16} \label{16} \end{eqnarray}

Suppose this can be summed, and then we carry out the following integral

\begin{eqnarray} S(g) = \int_0^{\infty} e^{-t} f(gt) dt \tag{17} \label{17} \end{eqnarray}

This returns \(S(g)\) since the expansion of \(f(gt)\) in (\ref{17}) gives a series of gamma functions, canceling out the introduced factorials in (\ref{16}). To apply the trick, we evaluate the sum first and then integrate.

Example

Let

\begin{eqnarray} S = 1 - 2 + 3 - 4 \pm \ldots \tag{18} \label{18} \end{eqnarray}

Applying the first step of our trick, we obtain

\begin{eqnarray} f(g) &=& - \sum_{i=0}^{\infty} (-1)^i i \frac{g^i}{i!} \\ &=&- g \partial_g \sum_{i=0}^{\infty} \frac{(-g)^i}{i!} \\ &=&- g \partial_g \exp(-g) \\ &=& g \exp(-g) \tag{19} \label{19} \end{eqnarray}

Next,

\begin{eqnarray} S(g) &=& \int_0^{\infty} g t \exp \left ( -(1 + g)t \right ) dt \\ &=& \frac{g}{(1+g)^2} \int_0^{\infty} v e^{-v} dv \\ &=& \frac{g}{(1+g)^2} \tag{20} \label{20} \end{eqnarray}

Setting \(g \rightarrow 1\), we get

\begin{eqnarray} 1 - 2 +3 -4 \pm \ldots = \frac{1}{4} \tag{21} \label{21} \end{eqnarray}

a familiar expression.

Note that in this case, we didn't actually need the Borel trick since the terms of the series were not growing like the factorials. Indeed, we can obtain this result more simply by introducing the powers of \(g\) alone. For an example where the factorial management is essential, consider the sum \(\sum n! (-g)^n\), which diverges for all \(g\). Here, the Borel trick gives a finite result involving the exponential integral.

Method 4: Shanks transform

The Shanks transform provides a simple method to accelerate the convergence of a series. We assume that the error in the partial sums behaves to leading order like a geometric decay. We then use consecutive partial sums to evaluate the leading error's form and then remove it.

Method

Consider the partial sum

\begin{eqnarray} S_n \equiv \sum_{i=0}^n a_i \tag{22} \label{22} \end{eqnarray}

We're interested in evaluating the infinite series

\begin{eqnarray} S \equiv \lim_{n \rightarrow \infty} S_n. \tag{23} \label{23} \end{eqnarray}

We posit that to leading order

\begin{eqnarray} S_n \sim S + \frac{A}{r^{n}} \tag{24} \label{24} \end{eqnarray}

where \(S\), \(A\), and \(r\) are unknown. To estimate these, we consider three consecutive values of \(S_n\),

\begin{eqnarray} S_{n-1} &=& S + \frac{A}{r^{n - 1}} \tag{25a} \label{25a} \\ S_n &=& S + \frac{A}{r^{n}} \tag{25b} \label{25b} \\ S_{n+1} &=& S + \frac{A}{r^{n + 1}} \tag{25c} \label{25c} \end{eqnarray}

A bit of simple algebra allows us to solve these equations for \(S\). Writing that estimate for \(S\) as \(S_{Shanks, n}\), we get

\begin{eqnarray} S_{Shanks, n} &=& \frac{S_{n+1} S_{n-1} - S_n^2}{S_{n+1} + S_{n-1} - 2 S_n} \\ &=& S_n - \frac{a_n a_{n+1}}{a_{n+1} - a_n} \tag{26} \label{26} \end{eqnarray}

The idea of the Shanks transform then is to replace the \(n\)-th partial sum by the corrected form (\ref{26}), which allows us to "peel off" the leading error term. This approximation will become more accurate as we get to larger \(n\), where the asymptotic form will be more accurate. If there are additional error terms, they can often be removed via additional applications of the transform. To do that, we use the first line of (\ref{26}), replacing \(S_n\) by \(S_{Shanks, n}\), etc.

Example

Consider the sum

\begin{eqnarray} S = \sum_{i=1}^{\infty} \frac{\exp(-i)}{1 + \log(i)} \tag{27} \label{27} \end{eqnarray}

By eye, we can see that this has the required exponential convergence form that suggests the Shanks transform will be useful. Indeed, in Figure 2 below, I plot the partial sums and their first two Shanks transforms. You can see that the first Shanks transform converges at a faster exponential rate than the original sum, and the second converges faster still. With each successive transform, we can often improve our rate of convergence further.

Figure 2: Residual errors in the partial sum of (\ref{27}), as well as those from the Shanks transformed partial sums. The transform allows for convergence at a faster exponential rate. Here, we start the first Shanks transform at \(x=2\), since it requires knowledge of both \(a_1\) and \(a_2\). Similarly, we start the plot of the second transform at \(x=3\), since it requires knowledge of the first three terms.