MatheramaMatherama
← Sequence and Series
Sequence and Series·Section 2·16 min read

Sigma Notation

Introduction§

Sigma notation is used to write sums of many terms in a compact way.

a1+a2+a3+...+an=∑i=1nai,a_1 + a_2 + a_3 + ... + a_n = \sum_{i=1}^{n} a_i,

It uses Greek letter sigma, which is why it is called sigma-notation.

Here, ii is called the running index. The running index in this case varies through integer values from lower limit 1 to the upper limit nn. aia_i is called the summand.

In general, given a sequence {ak}k=lu\{ a_k \}_{k=l}^{u}, then the summation from over kk from ll to uu is

∑k=luak=al+al+1+al+2+...+au−1+au,\sum_{k=l}^{u} a_k = a_l + a_{l+1} + a_{l+2} + ... + a_{u-1} + a_u,

The above form of the summation is called as delimited form.

General Sigma Notation§

General sigma notation is a way to write sigma notation in the form ∑P(k)ak\sum_{P(k)} a_k, where instead of giving the limits we mention the property P(k)P(k) which is satisfied by integers and we take the summation over those integers only for which P(k)P(k) is true.

e.g. ∑1≤k≤nak\sum_{1 \leq k \leq n} a_k, means the same thing as ∑i=1nai\sum_{i=1}^{n} a_i,

∑k=110a2k−1=a1+a3+a5+...+a19\sum_{k=1}^{10} a_{2k-1} = a_1 + a_3 + a_5 + ... + a_{19}

which in generalized form can be written as ∑1≤k≤19k is odd(ak)\sum_{\substack{1 \leq k \leq 19 \\ k \text{ is odd}}} (a_k),

Sometimes the generalized form is much better than the delimited form.

Expanding a summation§

Expanding the summation notation means expressing the compact form of a sum represented by the sigma symbol Σ\Sigma into its individual terms. To do this, you follow the index of the summation from its lower limit to its upper limit, writing out each term in the sequence. Here’s how it works with a couple of examples:

To expand the summation ∑k=1nkk+1\sum_{k=1}^{n} \frac{k}{k+1}, you would write out the terms of the sequence for each value of kk from 1 to nn. Here is how the expansion looks:

∑k=1nkk+1=11+1+22+1+33+1+…+nn+1\sum_{k=1}^{n} \frac{k}{k+1} = \frac{1}{1+1} + \frac{2}{2+1} + \frac{3}{3+1} + \ldots + \frac{n}{n+1}

Simplifying each fraction, you get:

∑k=1nkk+1=12+23+34+…+nn+1\sum_{k=1}^{n} \frac{k}{k+1} = \frac{1}{2} + \frac{2}{3} + \frac{3}{4} + \ldots + \frac{n}{n+1}

This gives you a clear picture of the series of terms that are being summed.

Well, that is easy.

Condensing a Series in Sigma Notation§

This is the opposite on expansion. Sometimes you are given a series in expanded form and you need to write in summation form. If the general term, like nth term, rth term, etc is known we can easily write in sigma form. But when the general term is not given, we may have to identify the general term by observing some patterns. It can be understood via some examples.

Properties of sigma notation:§

  1. Dummy variable:

    ∑i=1nai=∑j=1naj\sum_{i=1}^{n} a_i = \sum_{j=1}^{n} a_j

    The index of summation is a “dummy” variable. The value of summation does not change if you change the index variable. It is bound to the sigma symbol and has no existence out of it.

  2. Splitting the Summation Range:

    ∑k=1nak=∑k=1mak+∑k=m+1nak\sum_{k=1}^{n} a_k = \sum_{k=1}^{m} a_k + \sum_{k=m+1}^{n} a_k

    where 1≤m≤n1 \leq m \leq n: We can “break” the summation into two summations.

  3. Factoring Out Constants:

    ∑k=1ncak=c∑k=1nak\sum_{k=1}^{n} c a_k = c \sum_{k=1}^{n} a_k

    A constant which is independent of index variable can be taken outside the sigma operator.

  4. Distributive Property

    ∑k=1n(ak+bk)=∑k=1nak+∑k=1nbk\sum_{k=1}^{n} (a_k + b_k) = \sum_{k=1}^{n} a_k + \sum_{k=1}^{n} b_k
  5. Substitution of index variable:

    ∑k=1nak=∑k=mn+m−1ak−m+1\sum_{k=1}^{n} a_k = \sum_{k=m}^{n+m-1} a_{k-m+1}

    Many a times substitution of index variable may simplify the summation and it becomes easier to do the problem.

    Let there be a summation S=∑k=1nakS = \sum_{k=1}^{n} a_k. Suppose that for some reason we wish to change the lower limit from 1 to mm. Then we substitute k−1=j−mk - 1 = j - m ⇒k=j−m+1\Rightarrow k = j - m + 1

    We get ∑k=1nak=∑j=m+1n+maj−m+1=∑j=mn+m−1aj−m+1\sum_{k=1}^{n} a_k = \sum_{j=m+1}^{n+m} a_{j-m+1} = \sum_{j=m}^{n+m-1} a_{j-m+1}

    So now the lower limit is mm

    But since jj is a dummy variable we may change it back to kk

    i.e. ∑k=1nak=∑k=mn+m−1ak−m+1\sum_{k=1}^{n} a_k = \sum_{k=m}^{n+m-1} a_{k-m+1}

    More frequently though, suppose the lower limit of summation is mm and we wish to change it to 1 in the summation ∑k=mnak\sum_{k=m}^{n} a_k, then we substitute k−m=j−1k - m = j - 1 ⇒k=m+j−1\Rightarrow k = m + j - 1

    Thus we get, ∑k=mnak=∑m+j−1=jnam+j−1=∑j=1n−m+1aj+m−1\sum_{k=m}^{n} a_k = \sum_{m+j-1=j}^{n} a_{m+j-1} = \sum_{j=1}^{n-m+1} a_{j+m-1} =∑k=1n−m+1ak+m−1= \sum_{k=1}^{n-m+1} a_{k+m-1} (j is a dummy variable)

  6. Reversing the series:

    ∑k=0nak=∑k=0nan−k\sum_{k=0}^{n} a_k = \sum_{k=0}^{n} a_{n-k}

    Observe that LHS =∑k=0nak=a0+a1+a2+…+an= \sum_{k=0}^{n} a_k = a_0 + a_1 + a_2 + \ldots + a_n, and RHS =∑k=0nan−k=an+an−1+…+a0= \sum_{k=0}^{n} a_{n-k} = a_n + a_{n-1} + \ldots + a_0

    The second series is opposite order. This is very helpful in calculating the sum of many series.

    Observe that index kk begins from 00. When kk begins from 11, we have,

    ∑k=1nak=∑k=1nan−k+1\sum_{k=1}^{n} a_k = \sum_{k=1}^{n} a_{n-k+1}

Double Summation§

First consider this illustrative example. Basically double summation is summation of a summation.

The double summation for the expression i2+j2i^2 + j^2, where ii ranges from 1 to 4 and jj ranges from 1 to 3, can be written as:

∑i=14(∑j=13(i2+j2))\sum_{i=1}^{4} \left( \sum_{j=1}^{3} (i^2 + j^2) \right)

In the above expression, there are two summations. Inside the bracket is the inner summation and outside is outer summation.

ii is the index of the outer summation and jj is the index of the outer summation.

For the inner summation ii is basically a constant, only jj varies.

Expanding the inner summation first by substituting the values of jj:

When j=1j = 1: i2+12=i2+1i^2 + 1^2 = i^2 + 1
When j=2j = 2: i2+22=i2+4i^2 + 2^2 = i^2 + 4
When j=3j = 3: i2+32=i2+9i^2 + 3^2 = i^2 + 9

So, for each ii, the inner summation is:

(i2+1)+(i2+4)+(i2+9)\left( i^2 + 1 \right) + \left( i^2 + 4 \right) + \left( i^2 + 9 \right)

Thus, we get

∑i=14(∑j=13(i2+j2))=∑i=14(i2+1)+(i2+4)+(i2+9)\sum_{i=1}^{4} \left( \sum_{j=1}^{3} (i^2 + j^2) \right) = \sum_{i=1}^{4} (i^2 + 1)+(i^2 + 4)+(i^2 + 9)

Now expand this summation.

The full expansion will be:

(1+1)+(1+4)+(1+9)+(4+1)+(4+4)+(4+9)+(9+1)+(9+4)+(9+9)+(16+1)+(16+4)+(16+9)\begin{align*} &(1 + 1) + &(1 + 4) + &(1 + 9) \\ + &(4 + 1) + &(4 + 4) + &(4 + 9) \\ + &(9 + 1) + &(9 + 4) + &(9 + 9)\\ + &(16 + 1) + &(16 + 4) + &(16 + 9) \end{align*}

This can be represented as a matrix where the element in the ii-th row and jj-th column is i2+j2i^2 + j^2:

[12+1212+2212+3222+1222+2222+3232+1232+2232+3242+1242+2242+32]\begin{bmatrix} 1^2 + 1^2 & 1^2 + 2^2 & 1^2 + 3^2 \\ 2^2 + 1^2 & 2^2 + 2^2 & 2^2 + 3^2 \\ 3^2 + 1^2 & 3^2 + 2^2 & 3^2 + 3^2 \\ 4^2 + 1^2 & 4^2 + 2^2 & 4^2 + 3^2 \end{bmatrix}

This matrix represents all terms and double summation is the sum of all elements in this matrix.

Definition§

Double summation is a mathematical operation that involves taking the summation of a summation, effectively summing over two indices. It is denoted by two sigma symbols, one nested inside the other, and is used to sum terms that are dependent on two different indices. For terms denoted by aija_{ij}, which are functions of two indices ii and jj, the double summation is defined as:

∑i=1m(∑j=1naij)\sum_{i=1}^{m} \left( \sum_{j=1}^{n} a_{ij} \right)

Here, the inner summation ∑j=1naij\sum_{j=1}^{n} a_{ij} is performed first for a fixed value of ii, summing over the index jj. Once this is done for every ii, the outer summation ∑i=1m\sum_{i=1}^{m} is then executed, summing the results of the inner summations across the index ii.

This operation can be visualized as summing the entries of an m×nm \times n matrix, where mm represents the number of rows (controlled by the outer summation index ii), and nn represents the number of columns (controlled by the inner summation index jj). Each term aija_{ij} in the matrix is summed to produce the total sum of all entries.

Notation§

It is not necessary to enclose the inner summation in brackets, as we did above in the definition. The summation can be written succinctly without brackets, and it is understood that the inner summation is to be performed first. Here's the brief notation for a general double summation:

∑i=1m∑j=1naij\sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij}

This implies that for each fixed ii, the sum over jj is to be calculated first, and then the resulting sums are to be added together as ii varies from 1 to mm.

The double summation is commutative§

∑i=1m∑j=1naij=∑j=1n∑i=1maij\sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij} = \sum_{j=1}^{n} \sum_{i=1}^{m} a_{ij}

Factorization of Double Summations with Separable Terms§

If the general term aija_{ij} can be expressed as the product of two terms bib_i and cjc_j, where bib_i is solely dependent on the index ii and cjc_j is solely dependent on the index jj, then the double summation of aija_{ij} across the indices ii and jj can be simplified. This is because the summation can be separated into the product of two single summations due to the independence of bib_i and cjc_j:

∑i=1m∑j=1naij=∑i=1m∑j=1nbicj\sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij} = \sum_{i=1}^{m} \sum_{j=1}^{n} b_i c_j

Since bib_i does not depend on jj and cjc_j does not depend on ii, the summation can be decomposed into:

(∑i=1mbi)(∑j=1ncj)\left( \sum_{i=1}^{m} b_i \right) \left(\sum_{j=1}^{n} c_j \right)

For example:

  1. ∑i=1m∑j=1nij=(∑i=1mi)(∑j=1nj)\sum_{i=1}^{m} \sum_{j=1}^{n} ij = \left( \sum_{i=1}^{m} i \right) \left( \sum_{j=1}^{n} j \right)

  2. ∑i=1m∑j=1ni2j=(∑i=1mi2)(∑j=1nj)\sum_{i=1}^{m} \sum_{j=1}^{n} i^2j = \left( \sum_{i=1}^{m} i^2 \right) \left( \sum_{j=1}^{n} j \right)

  3. ∑i=1m∑j=1ni2j2=(∑i=1mi2)(∑j=1nj2)\sum_{i=1}^{m} \sum_{j=1}^{n} i^2j^2 = \left( \sum_{i=1}^{m} i^2 \right) \left( \sum_{j=1}^{n} j^2 \right)

The curious case of Dependent Indices§

Consider ∑i=1n∑j=1naij\sum_{i=1}^{n} \sum_{j=1}^{n} a_{ij}. Here m=nm = n, therefore we get a square matrix. It is the sum of all elements in the square matrix.

∑i=1n∑j=1naij=∑1≤i,j≤naij(in general notation)\sum_{i=1}^{n} \sum_{j=1}^{n} a_{ij} = \sum_{1 \leq i, j \leq n} a_{ij} \quad (\text{in general notation}) [a11a12a13…a1na21a22a23…a2na31a32a33…a3n⋮⋮⋮⋱⋮an1an2an3…ann]n×n\begin{bmatrix} a_{11} & a_{12} & a_{13} & \ldots & a_{1n} \\ a_{21} & a_{22} & a_{23} & \ldots & a_{2n} \\ a_{31} & a_{32} & a_{33} & \ldots & a_{3n} \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & a_{n3} & \ldots & a_{nn} \end{bmatrix}_{n \times n}

Now consider ∑i=1n∑j=inaij\sum_{i=1}^{n} \sum_{j=i}^{n} a_{ij}. Observe that the lower limit of the inner summation dependent on the index of the outer summation. If we expand this we get,

Expanding the summation ∑i=1n∑j=inaij\sum_{i=1}^{n} \sum_{j=i}^{n} a_{ij}:

For i=1i = 1, the terms are:

a11+a12+a13+…+a1na_{11} + a_{12} + a_{13} + \ldots + a_{1n}

For i=2i = 2, the terms are:

a22+a23+…+a2na_{22} + a_{23} + \ldots + a_{2n}

For i=3i = 3, the terms are:

a33+…+a3na_{33} + \ldots + a_{3n}

Continuing this pattern until i=ni = n, where the term is:

anna_{nn}

Thus, the expanded summation is:

(a11+a12+a13+…+a1n)+(a22+a23+…+a2n)+…+ann(a_{11} + a_{12} + a_{13} + \ldots + a_{1n}) + (a_{22} + a_{23} + \ldots + a_{2n}) + \ldots + a_{nn}

If you observe the above expansion carefully, the summation ∑i=1n∑j=inaij\sum_{i=1}^{n} \sum_{j=i}^{n} a_{ij} corresponds to summing the elements in the upper triangular portion of the matrix, including the diagonal. This means that for each row ii, we start summing from the element on the diagonal (aiia_{ii}) to the end of the row (aina_{in}).

Here's a visual explanation using a matrix:

[a11a12a13⋯a1na21a22a23⋯a2na31a32a33⋯a3n⋮⋮⋮⋱⋮an1an2an3⋯ann]\begin{bmatrix} \color{red}a_{11} & \color{red}a_{12} & \color{red}a_{13} & \color{red}\cdots & \color{red}a_{1n} \\ a_{21} & \color{red}a_{22} & \color{red}a_{23} & \color{red}\cdots & \color{red}a_{2n} \\ a_{31} & a_{32} & \color{red}a_{33} & \color{red}\cdots & \color{red}a_{3n} \\ \vdots & \vdots & \vdots & \color{red}\ddots & \color{red}\vdots \\ a_{n1} & a_{n2} & a_{n3} & \color{red}\cdots & \color{red}a_{nn} \end{bmatrix}

In this matrix:

  • Red elements are those that are included in the summation.
  • Non-colored elements are not included in the summation.

The summation starts at the diagonal element aiia_{ii} of each row ii and includes all elements to the right of the diagonal in that row, up to and including aina_{in}. Therefore, the sum is the total of all red-highlighted elements, which form the upper triangular part of the matrix.

Alternative Notation

∑i=1n∑j=inaij can be written as ∑1≤i≤j≤naij\sum_{i=1}^{n} \sum_{j=i}^{n} a_{ij} \text{ can be written as } \sum_{1 \leq i \leq j \leq n} a_{ij}

In the matrix above the elements in red, the index ii in always less than or euqal to index jj. That's why we can write the double summation alternatively as ∑1≤i≤j≤naij\sum_{1 \leq i \leq j \leq n} a_{ij}.

[a11a12a13⋯a1na21a22a23⋯a2na31a32a33⋯a3n⋮⋮⋮⋱⋮an1an2an3⋯ann]\begin{bmatrix} \color{red}a_{11} & \color{red}a_{12} & \color{red}a_{13} & \color{red}\cdots & \color{red}a_{1n} \\ a_{21} & \color{red}a_{22} & \color{red}a_{23} & \color{red}\cdots & \color{red}a_{2n} \\ a_{31} & a_{32} & \color{red}a_{33} & \color{red}\cdots & \color{red}a_{3n} \\ \vdots & \vdots & \vdots & \color{red}\ddots & \color{red}\vdots \\ a_{n1} & a_{n2} & a_{n3} & \color{red}\cdots & \color{red}a_{nn} \end{bmatrix}

Similarly,

∑i=1n∑j=i+1naij=∑1≤i<j≤naij\sum_{i=1}^{n} \sum_{j=i+1}^{n} a_{ij} = \sum_{1 \leq i < j \leq n} a_{ij}

Visual representation:

[a11a12a13…a1na21a22a23…a2na31a32a33…a3n⋮⋮⋮⋱⋮an1an2an3…ann]\begin{bmatrix} a_{11} & \color{red}a_{12} & \color{red}a_{13} & \ldots & \color{red}a_{1n} \\ a_{21} & a_{22} & \color{red}a_{23} & \ldots & \color{red}a_{2n} \\ a_{31} & a_{32} & a_{33} & \ldots & \color{red}a_{3n} \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & a_{n3} & \ldots & a_{nn} \end{bmatrix}

In this matrix, the elements aija_{ij} where i<ji < j (above the main diagonal) are colored red. This visual representation corresponds to the sum:

∑i=1n∑j=i+1naij\sum_{i=1}^{n} \sum_{j=i+1}^{n} a_{ij}

This sum includes only the red elements from the matrix.

∑j=1n∑i=jnaij=∑1≤j≤i≤naij\sum_{j=1}^{n} \sum_{i=j}^{n} a_{ij} = \sum_{1 \leq j \leq i \leq n} a_{ij}

Visually, it is the sum of all elements in the lower triangle including the diagonal.

[a11a12a13…a1na21a22a23…a2na31a32a33…a3n⋮⋮⋮⋱⋮an1an2an3…ann]\begin{bmatrix} \color{red}a_{11} & a_{12} & a_{13} & \ldots & a_{1n} \\ \color{red}a_{21} & \color{red}a_{22} & a_{23} & \ldots & a_{2n} \\ \color{red}a_{31} & \color{red}a_{32} & \color{red}a_{33} & \ldots & a_{3n} \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ \color{red}a_{n1} & \color{red}a_{n2} & \color{red}a_{n3} & \ldots & \color{red}a_{nn} \end{bmatrix}
∑j=1n∑i=j+1naij=∑1≤j<i≤naij\sum_{j=1}^{n} \sum_{i=j+1}^{n} a_{ij} = \sum_{1 \leq j < i \leq n} a_{ij} [a11a12a13…a1na21a22a23…a2na31a32a33…a3n⋮⋮⋮⋱⋮an1an2an3…ann]\begin{bmatrix} a_{11} & a_{12} & a_{13} & \ldots & a_{1n} \\ \color{red}a_{21} & a_{22} & a_{23} & \ldots & a_{2n} \\ \color{red}a_{31} & \color{red}a_{32} & a_{33} & \ldots & a_{3n} \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ \color{red}a_{n1} & \color{red}a_{n2} & \color{red}a_{n3} & \ldots & a_{nn} \end{bmatrix}

Excluding the main diagonal, the sum of the lower triangular matrix.

Commuting summations in case of dependent indices§

We know that when indices are not dependent, the double summation is commutative. On the other hand, when indices are dependent, we can interchange summations order with the following rules. If you observe the matrix representation, these rules quite easy to understand.

  1. Upper Triangular including diagonal

    ∑j=1n∑i=1jaij=∑i=1n∑j=inaij\sum_{j=1}^{n} \sum_{i=1}^{j} a_{ij} = \sum_{i=1}^{n} \sum_{j=i}^{n} a_{ij}
  2. Upper Triangular excluding diagonal

    ∑i=1n∑j=i+1naij=∑j=2n∑i=1j−1aij\sum_{i=1}^{n} \sum_{j=i+1}^{n} a_{ij} = \sum_{j=2}^{n} \sum_{i=1}^{j-1} a_{ij}
  3. Lower Triangular including Diagonal

    ∑j=1n∑i=jnaij=∑i=1n∑j=1iaij\sum_{j=1}^{n} \sum_{i=j}^{n} a_{ij} = \sum_{i=1}^{n} \sum_{j=1}^{i} a_{ij}
  4. Lower Triangular excluding Diagonal

    ∑j=1n∑i=j+1naij=∑i=2n∑j=1i−1aij\sum_{j=1}^{n} \sum_{i=j+1}^{n} a_{ij} =\sum_{i=2}^{n} \sum_{j=1}^{i-1} a_{ij}

Symmetry§

When aij=ajia_{ij} = a_{ji}, we get a very important result that

∑1≤i≤j≤naij=∑1≤j≤i≤naij\sum_{1 \leq i \leq j \leq n} a_{ij} = \sum_{1 \leq j \leq i \leq n} a_{ij}

And

∑1≤i≤j≤naij=∑1≤j≤i≤naji\sum_{1 \leq i \leq j \leq n} a_{ij} = \sum_{1 \leq j \leq i \leq n} a_{ji}
Section 2 of 10 · Sequence and Series

Mark this section complete when you have worked through its proofs.