Chapter 12: Sequences, Sums, and Products
This chapter introduces notation for working with ordered lists of numbers and with repeated addition or multiplication. These ideas appear throughout mathematics whenever we want to describe a pattern compactly instead of writing out every term.
Sequences
A sequence is an ordered list of numbers. For example,
is a sequence. A sequence differs from the sets introduced in Chapter 1 because order matters. When we use variables to represent terms in a sequence, we attach an index to each term:
The numbers in the subscripts are called indices (the plural of index).
A sequence is an ordered list of numbers. We often denote the entire sequence by
When the index range is clear, we may write this more simply as . In either case, is the term with index . Braces are also sometimes used in the notation , but parentheses more clearly emphasize that a sequence is ordered, unlike an ordinary set.
Finite sequence. A finite sequence is an ordered list with a fixed number of terms:
The number is the length of the finite sequence.
Infinite sequence. An infinite sequence, such as , continues indefinitely.
-tuple. An -tuple is another name for a finite sequence of length . In this chapter, an object that continues indefinitely is simply called a sequence rather than a tuple.
Finite Sequences as Coordinates
Chapter 11 introduced points with two, three, or more real coordinates. In the language of sequences, a point in is a finite sequence of real numbers:
where
For example, has two coordinates and represents a point in the plane, while has three coordinates and represents a point in three-dimensional space.
Here, each tuple identifies a point. In linear algebra, the same tuple can give the coordinates of a vector; context determines the interpretation.
The finite sequence
is a -tuple. As a tuple, both order and repetition matter. Therefore,
because the entries occur in a different order.
As a set, repeated elements are only listed once, so
Tuples and sets are therefore different mathematical objects and should not be used interchangeably.
Summation Notation
Given a sequence and integers and satisfying , the sum from to is written
The variable is called the index of summation. The number is the lower limit of summation, while the number is the upper limit of summation.
Expanding a sum makes the lower limit, upper limit, and pattern of terms explicit.
To illustrate this, we can expand the following sum by writing out the first few terms.
We can similarly do it with the following sum:
Suppose we are given the following sum:
This sum can be written as
Now, consider the alternating sum:
This sum can be written as
The sign alternates because when is even and when is odd. Here, is even when is odd and odd when is even, so the terms have signs .
When the limits are finite, one direct way to evaluate a sum is to write out all its terms.
First, evaluate the following sum:
Writing out the terms from through gives
Next, consider a sum whose terms are powers of :
Writing out the terms and converting them to decimals gives
The index variable is a dummy variable: it can be changed without changing the value of the sum. For instance,
This is similar to how the name of a variable inside a programming loop can often be changed without changing what the loop computes.
Some algebraic rules make it possible to simplify sums without expanding every term.
Let be a constant. For finite sums, the following properties are often useful.
Adding term by term. For sums with the same lower and upper limits,
Constant multiple. Constant factors can be pulled outside a sum:
Sum of a constant. A constant added repeatedly is multiplied by the number of terms:
Splitting a sum. If , then a sum can be split into two parts:
Consider the following sum:
First, use the term-by-term addition property to separate the two parts of each term:
Next, pull the constant factor outside the first sum. The second sum contains four copies of :
Finally, expand the remaining sum and evaluate:
We can check the result by expanding the original sum directly:
Both routes give the same value. This direct expansion illustrates why the properties work in this example without serving as a general proof.
Summation notation also appears in mathematical definitions. For example, it allows the polynomials introduced in Chapter 4 to be written in the form
Here:
- is a non-negative integer.
- are real constants.
- For a nonzero polynomial, , and is its degree.
The zero polynomial has all coefficients equal to zero. Its degree is left undefined in this book.
Product Notation
If we want to multiply elements of a sequence instead of adding them, we use product notation.
Given a sequence and integers and satisfying , the product from to is written
The variable is called the index of multiplication. The number is the lower limit of the product, while is the upper limit of the product.
Expanding a product makes the lower limit, upper limit, and pattern of factors explicit.
To illustrate this, consider the following product:
Writing out each factor gives
Now, consider a product with a general upper limit :
Substituting successive values of gives
Suppose we are given the product of the first even positive integers:
This product can be written as
Now, consider the product of the first odd positive integers:
This product can be written as
When the limits are finite, a product can be evaluated by writing out and multiplying all its factors.
First, consider a constant factor repeated times:
because the factor is multiplied by itself times.
Now, evaluate the following finite product:
Writing out its factors gives
Factorial notation is a common shorthand for a product of consecutive positive integers.
For a positive integer , the factorial of , written , is defined by
It is also standard to define
First, consider the product of the first five positive integers. By the definition of factorial,
Now, consider the product of the first even positive integers. Each of the factors contains a factor of , so these factors can be collected as :
Product notation has algebraic properties similar to summation notation, but the operation is multiplication rather than addition.
Let be a constant. For finite products, the following properties are often useful.
Multiplying term by term. For products with the same lower and upper limits,
Constant factor. A constant factor appears once for each value of the index:
Product of a constant. In particular,
Splitting a product. If , then a product can be split into two parts:
Consider the following product:
The constant-factor property gives
We can check the result by expanding the original product directly:
Again, the direct expansion illustrates the property in this example; the general rule is the one stated above.
Comparing Sums and Products
Summation and product notation have the same basic anatomy: both specify an index, a lower limit, an upper limit, and a term that changes with the index. The operation symbol determines whether those terms are added or multiplied.
For completeness, when an index range contains no terms, we use the conventions
These values preserve the usual rules for splitting sums and products.
Indexed Unions and Intersections
Chapter 2 introduced the union and intersection of two sets. When working with a finite sequence of sets
we can use indexed notation to combine all of them compactly.
The indexed union contains every element that belongs to at least one of the sets:
The indexed intersection contains every element that belongs to all of the sets:
As with summation and product notation, is the index, while and specify its lower and upper limits.
Consider the following three sets:
First, form their indexed union by collecting the elements that occur in at least one set:
Next, form their indexed intersection by keeping only the elements that occur in every set:
Thus, the union contains all four elements appearing across the sets, whereas the intersection contains only the shared element .
The same notation can be used for an infinite sequence of sets. The indexed union
contains the elements that belong to at least one set in the sequence. In contrast, the indexed intersection
contains the elements that belong to every set in the sequence.
Sums and Products Over Sets
The sums and products above run over consecutive integer indices, such as . In some mathematical statements, however, the index runs over the elements of a set instead. This is useful when the objects being added or multiplied are not naturally described by consecutive integers.
Let be a finite set, and suppose that assigns a number to each element . The notation
means that we add the values for all elements in . Similarly,
means that we multiply the values for all elements in .
If , then
and
For finite sets, the order of the elements does not matter because addition and multiplication are commutative.
For a finite set, the notation tells us to apply the rule to each element and then combine the results.
Consider the set
First, square each element of and add the resulting values:
Next, add to each element of and multiply the resulting values:
Set-indexed notation is also useful when the set contains labels rather than numbers. For example, let
be a set of categories, and let denote the number of observations in category . The total number of observations across the categories can then be written as
When using this notation, remember that a set contains each element only once. If repeated values matter, for example in a data set where the same value occurs multiple times, a sequence, list, or frequency table may be more appropriate than an ordinary set.