π Series#
β± | words
References and additional materials

Series#
Definition
A infinite series is the sum of the infinite terms of a sequence \(\{ x_n \}_{n \in \mathbb{N}}\) and is denoted by
Definition
A partial sum of a series is the sum of the first \(N\) terms of the sequence,
Definition
The value of the series is equal to the limit of the sequence of its partial sums, when it exists
If the limit does not exist, the series is referred to as divergent.
We might sometimes want to start the summation at \(n = 0\). We can do this by employing a change of index.
If we let \(k = n β 1\), the total sum of the sequence can be expressed as
(because \(\infty β 1 = \infty\)).
If we let \(k = n β 1\), the partial sum of the first \(N\) terms of the sequence can be expressed as
Example
Euler constant \(e\) can be expressed as a series
See explanation and derivation in a video
Computing Eulerβs constant as series
e0 = 2.71828182845904523536028747135266
print('Approximation of Euler constant with a series')
e = 0.
for n in range(0,21):
term = term / n if n>0 else 1.
e += term
print('iter = {:3d}: e = {:17.15f} err = {:14.7e}'.format(n,e,e0-e))
Approximation of Euler constant with a series
iter = 0: e = 1.000000000000000 err = 1.7182818e+00
iter = 1: e = 2.000000000000000 err = 7.1828183e-01
iter = 2: e = 2.500000000000000 err = 2.1828183e-01
iter = 3: e = 2.666666666666667 err = 5.1615162e-02
iter = 4: e = 2.708333333333333 err = 9.9484951e-03
iter = 5: e = 2.716666666666666 err = 1.6151618e-03
iter = 6: e = 2.718055555555555 err = 2.2627290e-04
iter = 7: e = 2.718253968253968 err = 2.7860205e-05
iter = 8: e = 2.718278769841270 err = 3.0586178e-06
iter = 9: e = 2.718281525573192 err = 3.0288585e-07
iter = 10: e = 2.718281801146385 err = 2.7312661e-08
iter = 11: e = 2.718281826198493 err = 2.2605522e-09
iter = 12: e = 2.718281828286169 err = 1.7287638e-10
iter = 13: e = 2.718281828446759 err = 1.2285728e-11
iter = 14: e = 2.718281828458230 err = 8.1490370e-13
iter = 15: e = 2.718281828458995 err = 5.0182081e-14
iter = 16: e = 2.718281828459043 err = 2.2204460e-15
iter = 17: e = 2.718281828459046 err = -4.4408921e-16
iter = 18: e = 2.718281828459046 err = -4.4408921e-16
iter = 19: e = 2.718281828459046 err = -4.4408921e-16
iter = 20: e = 2.718281828459046 err = -4.4408921e-16
Example
Harmonic series given by
is divergent. The \(n\)-th partial sum is approximately equal \(\ln(n)+\gamma\), where \(\gamma = 0.577\) is called an Euler-Mascheroni constant.
Note
Recall the technique of proof by mathematical induction
Example
We want to show that \(\sum\limits_{x = 1}^n x = \frac{n(n+1)}{2}\) for all \(n \in \mathbb{N}\).
The proof proceeds as follows.
Note that \(\sum\limits_{x = 1}^{1} x = 1\) and \(\frac{1(1+1)}{2} = \frac{2}{2} = 1\). Thus the claim is true for \(n = 1\).
Assume that the claim is true for \(n = k\). In other words, assume that \(\sum\limits_{x = 1}^k x = \frac{k(k+1)}{2}\).
Consider the case of \(n = (k + 1)\).
\(\sum\limits^{k+1}_{x =1} x = (\sum\limits^{k}_{x = 1} x ) + (k + 1) = \frac{k(k+1)}{2} + (k + 1)\) due to our inductive assumption
\(\frac{k(k+1)}{2} + (k + 1) = \frac{k(k+1)}{2} + \frac{2(k+1)}{2} = \frac{(k+2)(k+1)}{2}\)
\(\frac{(k+2)(k+1)}{2} = \frac{((k+1)+1)(k+1)}{2} = \frac{(k+1)((k+1)+1)}{2}\)
Thus we have shown that, if the claim is true for \(n = k\), then it must also be true for \(n = (k + 1)\).
Since (a) the claim is true for \(n = 1\), and (b) if the claim is true for \(n = k\), then it is also true for \(n = (k + 1)\), we can conclude by the principle of mathematical induction that the claim is true for all \(n \in \mathbb{N}\).
This example comes from [Simon and Blume, 1994] (pp. 856-857).
Example
Claim: \(\sum\limits^{n}_{x = 1} x^2 = \frac{n(n+1)(2n+1)}{6}\).
We will prove this claim by induction.
Step one: \(P(1)\) is true.
Consider the case where \(n = 1\). Note that \(\sum\limits_{x = 1}^1 x^2 = 1^2 = 1\).
Note also that
Thus the claim is true when \(n = 1\).
Step two: \(P(k)\) true implies \(P(k+1)\) true. Suppose that the claim is true when \(n = k\), so that
Consider the case where \(n = (k + 1)\). We have
Thus we have
As such, we know that \(P(k)\) implies \(P(k + 1)\).
Step three: Conclusion
We have shown that the claim is true for the case where \(n = (k + 1)\) if it is true for the case where \(n = k\). We have also shown that the claim is true for the case where \(n = 1\). Thus we know, from the principle of mathematical induction, that the claim is true for all \(n \in \mathbb{N}\).
Example
Claim: \(\sum\limits^{n}_{x = 1} x^3 = \frac{n^2(n+1)^2}{4}\). We will prove this claim by induction.
Step one: P(1) is true. Consider the case where \(n = 1\).
Note that \(\sum\limits_{x = 1}^1 x^3 = 1^3 = 1\).
Note also that
Thus the claim is true when \(n = 1\).
Step two: \(P(k)\) true implies \(P(k+1)\) true. Suppose that the claim is true when \(n = k\), so that
Consider the case where \(n = (k + 1)\). We have
Thus we have
As such, we know that \(P(k)\) implies \(P(k + 1)\).
Step three: Conclusion
We have shown that the claim is true for the case where \(n = (k + 1)\) if it is true for the case where \(n = k\). We have also shown that the claim is true for the case where \(n = 1\). Thus we know, from the principle of mathematical induction, that the claim is true for all \(n \in \mathbb{N}\).
Example
Claim: \(\sum^n_{x = 1} (2x β 1) = n^2\)
We will prove this claim by induction.
Step one: P(1) is true. Consider the case where \(n = 1\).
Note that \(\sum_{x = 1}^{1} (2x β 1) = 2 (1) β 1 = 2 β 1 = 1\)
and \(1^2 = 1\). Thus the claim is true when \(n = 1\).
Step two: \(P(k)\) true implies \(P(k+1)\) true. Suppose that the claim is true when \(n = k\), so that
Consider the case where \(n = (k + 1)\). We have
Thus we have
As such, we know that \(P(k)\) implies \(P(k + 1)\).
Step three: Conclusion
We have shown that the claim is true for the case where \(n = (k + 1)\) if it is true for the case where \(n = k\). We have also shown that the claim is true for the case where \(n = 1\). Thus we know, from the principle of mathematical induction, that the claim is true for all \(n \in \mathbb{N}\).
Example
We want to show that \(n < 2^n\) for all \(n \in \mathbb{N}\). The proof proceeds as follows:
Note that \(1 < 2^1 = 2\), so the claim is true when \(n = 1\).
Assume that the claim is true when \(n = k\). This means that \(k < 2^k\).
Consider the case of \(n = (k + 1)\).
If we add \(1\) to both sides of the inequality in our inductive assumption, we obtain \(k + 1 < 2^k + 1\).
Since \(k \geqslant 1\), we know that \(1 < 2 = 2^1 \leqslant 2^k\).
This means that \(1 \leqslant 2^k\).
This means that \(2^k + 1 < 2^k + 2^k\).
Note that \(2^k + 2^k = 2(2^k ) = 2^{k+1}\).
This means that \(2^k + 1 < 2^{k+1}\).
Since \(k + 1 < 2^k + 1\) and \(2^k + 1 < 2^{k+1}\), we know that \((k + 1) < 2^{k+1}\).
Thus, if the proposition is true when \(n = k\), then it must also be true when \(n = (k + 1)\).
Since (a) the claim is true for \(n = 1\), and (b) the claim is true for \(n = k\), then it is also true for \(n = (k + 1)\), we can conclude, by the principle of mathematical induction, that the claim is true for all \(n \in \mathbb{N}\).
This example comes from Exercise A.1.7 in [Simon and Blume, 1994] (p. 858).
Arithmetic progressions#
Consider a real sequence \(\{ x_n \}_{n \in \mathbb{N}}\) in which \(x_n = a + (n β 1) d\).
This sequence is known as an arithmetic progression because the difference between any two consecutive terms of the sequence (with the highest index first: \(x_{m+1} β x_m\)) is equal to \(d\).
The infinite series associated with this sequence is
The partial sum of the first (N + 1) terms of this series is given by
This validity of this formula can be established through a proof by induction. We do this below (after some other brief comments).
Note that the partial sum of the first \(N\) terms of an arithmetic progression is given by
As is noted in [Shannon, 1995] (p. 302), this formula has a very simple interpretation. It is simply the number of terms in the sequence that are being summed times the average of the first and last terms in that sequence.
Fact
\(\sum\limits^{N+1}_{n=1} (a + (n β 1) d ) = \frac{(2a+Nd )(N+1)}{2}\).
Proof
Note that the following proof is based on the one that is provided in [Basov, 2011] (pp. 22-23). By mathematical induction on \(N\).
Let \(N = 1\). We have
and
Thus the claim is true for \(N = 1\).
Assume that the claim is true for \(N = k\). In other words, assume that
(Call this the βinductive assumptionβ.)
Now consider the case when \(N = (k + 1)\). We have
Since this is in the required form, and we used the inductive assumption in the process of deriving it, we have shown that, if the claim is true when \(N = k\), then it is also true when \(N = (k + 1)\).
Since \(P(1)\) is true, and \(P(k) \Rightarrow P(k + 1)\), we know, by the principle of mathematical induction, that the claim is true for all \(N \in \mathbb{N}\).
Note that the sum of all of the terms in an infinite arithmetic progression is unbounded, since
Geometric progressions#
Consider a real sequence \(\{ x_n \}_{n \in \mathbb{N}}\) in which \(x_n = ar^{(nβ1)}\). We will assume that \(r \notin \{ 0, 1 \}\).
This sequence is known as a geometric progression because the ratio of any two consecutive terms of the sequence (with the highest index on numerator: \(\frac{x_{m+1}}{x_m}\) ) is equal to \(r\).
The infinite series associated with this sequence is
The partial sum of the first \((N + 1)\) terms of this series is given by
This validity of this formula can be established through a proof by induction. This is left for you to do as an exercise.
The sum of all of the terms in an infinite geometric progression is given by