3.8. Euler’s Summation Formula#
Euler’s summation formula compares a sum \(\sum f(n)\) with its associated integral \(\int f(x) \dif x\). See Fig. 3.2 for an illustration.
(Euler’s Summation Formula)
If \(f\) has a continuous derivative \(f^\prime\) on \([a, b]\), then we have
In particular, if \(a, b \in \Z\) we have
By adding the term \(f(a)\) on both sides and applying the fundamental theorem of calculus, one may obtain a more symmetric formula:
Note
(3.17) is easier to use in practice while (3.18) is more elegant in the sense of symmetry. To derive (3.18), we need to use the fundamental theorem of calculus, which will be introduced later.
Proof. Consider a partition of \([\floor{a}+1, \floor{b}]\):
Applying Theorem 3.8, we have
Note
Note that \(n\) starts at \(\floor{a}+2\) since the jump of the floor function \(\floor{x}\) at \(x=\floor{a}+1\) is \(0\).
Next, we examine the integrals \(\int_a^{\floor{a}+1} f(x) \dif \floor{x}\) and \(\int_{\floor{b}}^b f(x) \dif \floor{x}\). It is clear that
because it is zero be definition if \(b \in \Z\) and when \(b \neq \Z\), \(\floor{x} = \floor{b}\) is constant on \([\floor{b}, b]\). Now, we consider \(\floor{x}\) on \([\floor{a}, \floor{a}+1]\). We have
Therefore, \(\floor{x}\) has a jump \(1\) at \(x=\floor{a}+1\). It then follows that
Combining (3.19), (3.20) and (3.21), we obtain
This expresses the summation in (3.16) as an integral.
The rest of the proof leverages the theorems of integration by parts and reduction of Riemann integrals. Applying integration by parts, we have
and
Subtracting (3.24) from (3.23) yields
Since \(f\) has a continuous derivative, by Theorem 3.6, we can replace \(\dif f(x)\) with \(f^\prime(x) \dif x\). Then rearranging the terms, we obtain
Using the Euler’s summation formula (3.17), we can derive the following identities related to summing up terms of the form \(\frac{1}{k^s}\):
If \(s \neq 1\)