Section 8.2 Summation notation
Subsection 8.2.1 Basic definitions
Summation notation is a compact form for writing sums. It is written with three pieces. \[ \sum_{\fbox{\(k=1\)}}^\fbox{\(5\)} \fbox{\(2k\)} \] The part below the greek letter sigma (\(\Sigma\)) tells us to start with \(k=1\text{.}\) We increment \(k\) by \(1\) until we get to the value above the sigma. In this case we let \(k\) take on the values \(1, 2, 3, 4, 5\text{.}\) We next substitute those values of \(k\) into the expression to the right of the sigma successively and take the sum all of the resulting terms. Here is a table of the resulting values:
which evaluates to
and so we write
The variable \(k\) is called the index of summation. The number above the sigma is called the limit of summation. The example shows us how to write a sum of even numbers. We can write the sum of odd numbers, too.
It is not necessary to use \(k\) as a variable or to start the summation at \(k=1\text{.}\) It is easy to verify that
The number above the sigma can also be written as a variable:
Next we take the last expression and vary \(n\text{,}\) the limit of summation. Here is a table that includes some small values of \(n\text{:}\)
\(\sum_{k=1}^1(2k-1)=1\) | \(n=1\) |
\(\sum_{k=1}^2(2k-1)=4\) | \(n=2\) |
\(\sum_{k=1}^3(2k-1)=9\) | \(n=3\) |
\(\sum_{k=1}^4(2k-1)=16\) | \(n=4\) |
\(\vdots\) | |
\(\sum_{k=1}^n(2k-1)=1+3+5+\cdots+2n-1=?\) |
Checkpoint 8.2.2.
What simple expression involving \(n\) can replace the question mark?
The summands can be symbolic, too. If \(f(x)\) is any function, we may write
Subsection 8.2.2 Alternating sums
A sum is alternating if the signs of consecutive terms are alternate between positive and negative. An example: \(1-2+3-4+5\text{.}\) These sums appear frequently enough to have this special name. They are easy to write using summation notation because of a simple fact:
We can then write
We can interchange the order of the signs by adding (or subtracting) one to the exponent of \(-1\text{:}\)
Subsection 8.2.3 Manipulation with summation notation identities
Summation notation is more that mere shorthand. There are rules of manipulation that are quite useful.
For any constant \(c\text{,}\)
and
The process of the last equation is sometimes referred to as pulling a constant across the summation sign.
In addition,
and
The last identity is sometimes called shifting the index of summation.
Example 8.2.3.
Suppose we want to evaluate the sum of the first \(n\) positive integers. In other words, we want to find
If we are convinced that \(\sum_{k=1}^n(2k-1)=1+3+5+\cdots+2n-1=n^2\text{,}\) then
which yields
Checkpoint 8.2.4.
Evaluate the following sums
\(\displaystyle \sum_{j=1}^5 2j\)
\(\displaystyle \sum_{k=1}^5 k(k-1)\)
\(\displaystyle \sum_{i=0}^4 2^i\)
\(\displaystyle \sum_{\ell=1}^3\ell^2+\frac1\ell\)
\(\displaystyle \sum_{j=1}^5 ij\)
\(\displaystyle 2+4+6+8+10=30\)
\(\displaystyle 2+6+12+20+30=70\)
\(\displaystyle 1+2+4+8+16=31\)
\(\displaystyle 1+1+4+\frac12+9+\frac13=15\frac56\)
\(\displaystyle i+2i+3i+4i+5i=15i\)
Checkpoint 8.2.5.
Evaluate \(\sum_{k=0}^n 2^k\) for \(n=1,2,3,4\text{.}\) Find a simple expression that works for any \(n\text{.}\) Justify your answer.
We note that each answer is one less than a power of \(2\text{.}\) This leads to the equation \[ \sum_{k=0}^n 2^k=2^{n+1}-1. \] To justify the equation we note that \[ 2(\sum_{k=0}^n 2^k)=\sum_{k=0}^n 2^{k+1}=\sum_{k=1}^{n+1} 2^k =\bigl(\sum_{k=0}^{n+1} 2^k\bigr) -1 \] so we get the sum for a given value on \(n\) by doubling the value for \(n-1\) and adding \(1\text{.}\)
Subsection 8.2.4 Double summations
Sometimes it is useful to have a formula with two summations, each with its own index of summation. It is interpreted in the following way: \[ \sum_{i=1}^m \sum_{j=1}^n f(i,j)= \sum_{i=1}^m \bigl(\sum_{j=1}^n f(i,j)\bigr) \] and so, for example, \[ \sum_{i=1}^3 \sum_{j=1}^2 i^j=\sum_{i=1}^3 (i^1+i^2)=(1+1)+(2+4)+(3+9)=20 \]
Double summations are often used with matrices. Suppose we have a matrix
Then \[ \sum_{j=1}^n a_{i,j} = a_{i,1}+a_{i,2}+\cdots+a_{i,n} \] which is the sum of the entries in the \(i\)-th row of the matrix. Similarly \[ \sum_{i=1}^m a_{i,j} = a_{1,j}+a_{2,j}+\cdots+a_{m,j} \] which is the sum of the entries in the \(j\)-th column of the matrix. We can now see that
since each sides of the equation is equal to the sum of all of the entries in the matrix. This is called interchanging the order of summation.
Another way of looking at these double summations \(\sum_{i=1}^m \sum_{j=1}^n f(i,j)\) is that it is the sum of \(f(i,j)\) as \(i\) takes on values from \(1\) to \(m\) and \(j\) takes on values from \(1\) to \(n\text{.}\) Clearly there are \(mn\) summands altogether.