Sums¶
Sums and products · Chapter 1 · Lecture notes (PDF) · Exercises: Sums · Slides (PDF) · App: Sums and products
Prerequisites
None: the chapter uses only the arithmetic of the real numbers.
Objectives
At the end of this chapter you will be able to:
-
read and write a sum with the symbol \(\sum\), its index and its bounds;
-
use the properties of sums: constant terms, constant factors, union, decomposition;
-
translate and reflect the index of a sum;
-
compute the sums of the first \(n\) natural, even and odd numbers.
1. Definition¶
Definition 1: sum
Given \(n\) values \(a_j \in \R\) with \(j \in \{1,2,\dots,n\}\), the sum
can be indicated in compact form with the sum symbol:
which reads: “sum for \(j\) from \(1\) to \(n\) of \(a_j\)”. The symbol \(j\) is called sum index.
- The sum symbol is therefore very useful when the terms \(a_j\) are explicitly defined as a function of the sum index \(j\).
Example 1: sums
- The sum index is a dummy index. This means that if \(j\) is replaced with \(i\), \(k\) or any other index in all its occurrences the value of the sum does not change.
Example 2: dummy index
We have:
as the two symbols indicate the sum of the squares of the first \(n\) natural numbers (without zero). On the contrary, we have:
as the two symbols indicate the sum, respectively, of the first \(n\) and the first \(m\) squares of the natural numbers (without zero). Clearly, if \(n \neq m\), the result is different.
2. Properties¶
Observation 1: sum with constant term
For every natural number \(n\ge 1\) and real number \(c\), we have:
Proof
We have:
□
Observation 2: product by a constant
For every sum \(\sum_{j=1}^n a_j\) and real number \(c\), we have:
Proof
From the distributive property, we have:
□
Observation 3: union of sums
For every pair of sums \(\sum_{j=1}^n a_j\) and \(\sum_{j=1}^n b_j\), we have:
Proof
We have:
□
Observation 4: decomposition
For every sum \(\sum_{j=1}^{n+m} a_j\), we have:
Observation 5: index translation
For every sum \(\sum_{j=1}^{n} a_j\) and natural number \(m \ge 1\), we have:
Observation 6: index reflexion
For every sum \(\sum_{j=1}^{n} a_j\), we have:
Proof
The three properties are simply different notations and/or arrangements of the terms in the sums. □
3. Some important sums¶
Observation 7: sum of the first \(n\) positive natural numbers
For every natural number \(n \ge 1\), we have:
Proof
We have:
□
Observation 8: sum of the first \(n\) positive even numbers
For every natural number \(n \ge 1\), we have:
Proof
We have:
□
Observation 9: sum of the first \(n\) odd numbers
For every natural number \(n \ge 1\), we have:
Proof
We have:
□
Try it in the lab
the same computation step by step: change the matrix and watch the steps change.
4. In summary¶
In summary
-
The sum \(\sum_{i=1}^n a_i\) adds the terms \(a_1, \dots, a_n\); a constant term gives \(n\,c\), a constant factor can be taken out.
-
A sum can be split into two sums over consecutive ranges, or into the sum of two sums of simpler terms.
-
Translating or reflecting the index changes the bounds, not the value.
-
\(\sum_{i=1}^n i = \frac{n(n+1)}{2}\), the first \(n\) even numbers add up to \(n(n+1)\), the first \(n\) odd numbers to \(n^2\).
Exercises and lab¶
- Exercises · the exercise sheet of this chapter: 12 exercises with worked solutions
- Lab · Sums and products — type the general term and compare with the closed-form sums of this chapter