4 Sum and product
Acronyms in mathematics!
MNP, QHSE, CFO, DREDD, and LOL are examples of frequently used acronyms. However, users often do not realize that outsiders have no idea what they are talking about. Mathematicians also develop their acronyms (symbols) to condense an expression, making it inaccessible for the untrained eyes.
There is, however, a common denominator: acronyms and notations are incredibly useful, and once learned, one does not want to go back. To paraphrase Cady in Mean Girls: mathematics has the advantage that the notation is the same anywhere in the world.
Multiplication is a notation used so one does not repeat addition: \(2 + 2 + 2 = 3 \times 2\). Similarly, factorial notation condenses sequential multiplication: \(n! = 1 \times 2 \times 3 \times \dots \times (n - 1) \times n\). Some notations are more familiar than others, depending on frequency of usage.
Two fundamentally useful and frequently used notations are the summation notation (\(\sum\)) and the product notation (\(\prod\)). These often intimidate readers because they use Greek letters and carry additional operational expressions.
With a bit of fluency in Greek letters (Chapter 2), one observation is that \(\sum\) is the Greek equivalent of capital S (short for sum), and \(\prod\) is the equivalent of capital P (short for product). They are used when there is a repeating pattern in an expression that one wants to add or multiply.
Formal
Here is one general form of a summation:
\[\sum_{i = n_0}^{n_f} a_i = a_{n_0} + a_{n_0 + 1} + \cdots + a_{n_f - 1} + a_{n_f}\]
The strategy is to break down, identify, and interpret each term1.
- \(\sum\) is the symbol for summation.
- \(i\) is located under the summation (\(i = n_0\)) and within the expression (\(a_i\)), and is called the index of summation.
- \(n_0\) represents the starting index of the summation, i.e., replace \(i\) in \(a_i\) with \(n_0\) to get \(a_{n_0}\).
- \(n_f\) is the upper limit that ends the summation.
For the product, replace \(+\) with \(\times\):
\[\prod_{i = n_0}^{n_f} a_i = a_{n_0} \times a_{n_0 + 1} \times \cdots \times a_{n_f}\]
In other words, calculate \(a_i\) for each value in the discrete sequence of integers \([n_0, \ldots, n_f]\), then add them with \(\sum\) or multiply them with \(\prod\).
\(i\) is called a dummy variable because the choice of letter does not affect the result.
Examples
Understanding the dummy variable
- Identifying the role of the dummy variable
\[\sum_{i = n_0}^{n_f} i^a = {n_0}^a + \cdots + {n_f}^a\]
- Using a different letter (\(j\)) to denote the dummy variable
\[\sum_{j = n_0}^{n_f} j^a = {n_0}^a + \cdots + {n_f}^a\]
- Writing the dummy variable as an argument of a function instead of an index
\[\sum_{i = n_0}^{n_f} f(i) = f(n_0) + \cdots + f(n_f)\]
Concrete examples of summation
- A simple addition
\[\sum_{i=0}^7 i = 0 + 1 + 2 + \cdots + 6 + 7\]
- Changing the range of \(i\) from 3 to 7
\[\sum_{i=3}^7 i^2 = 3^2 + 4^2 + \cdots + 6^2 + 7^2 \tag{4.1}\]
- Not getting intimidated by the expression after the summation
\[\sum_{i=0}^7 \sin\left(\frac{1}{i+1}\right) = \sin\left(\frac{1}{0+1}\right) + \sin\left(\frac{1}{1+1}\right) + \cdots + \sin\left(\frac{1}{7+1}\right)\]
Same examples, but replacing \(\sum\) with \(\prod\)
- The factorial is used so often that it was given its own compact notation
\[\prod_{i = 1}^n i = 1 \times 2 \times 3 \times \cdots \times (n-1) \times n = n!\]
- Same as above (Equation 4.1), but with a product
\[\prod_{i=3}^7 i^2 = 3^2 \times 4^2 \times \cdots \times 6^2 \times 7^2\]
The summation can be infinite
\[\sum_{i = 0}^\infty \frac{1}{i!} = \frac{1}{0!} + \frac{1}{1!} + \frac{1}{2!} + \cdots = 2.718\dots = e\]
Tips and warning
Whenever facing a complicated expression, break it down piece by piece. The most important step is to understand how the expression after the symbol \(\sum\) changes as the dummy variable changes.
Sometimes it helps to take a pen and paper and write out the first few terms.
The dummy variable is usually denoted by a single letter \(i\), \(j\), or \(k\).
To add a bit of complexity, instead of using an increment of 1, the set of values the dummy variable takes can be defined by a set. In that case, the set should be defined explicitly. For example, if \(\Omega = \{2, 9, 21, 25\}\), then:
\[\sum_{\omega \in \Omega} a_\omega = a_2 + a_9 + a_{21} + a_{25}\]
Semantic/Notation/Terminology
- The summation index \(i\) is also called a dummy variable, or an iterator in computer science and programming.
- The range of values can be placed below and above or next to the symbol; this difference is purely cosmetic:
\[\sum_{i = 1}^4 \quad \text{or} \quad \sum\nolimits_{i = 1}^4\]
Always a good strategy when reading mathematical notation.↩︎