The sigma is \sum; _ and ^ attach its lower and upper bound. Everything else about writing a sum is the subscript rule from Sub & Sup, applied to an operator that happens to be large — which is exactly why its bounds move between display and inline maths. When the bound describes a set rather than a range, the notation comes from Set Notation; when the terms are fractions, Fractions decides their size.
Which one to use
\sum_{i=1}^{n}\sum\limits_{i=1}^{n}\sum_{i\ge 1}\sum_{\substack{p\text{ prime}}}\prod, \bigcup\sum_i \sum_jThe commands
\sum_{i=1}^{n} i
\sum_{k} a_k
\prod_{j=1}^{m} j
\big forms take limits the same way; the plain \cup does not look right stacked. \bigcup_{n} A_n \quad \bigcap_{n} A_n
\sum\limits_{i=1}^{n}
\sum\nolimits_{i=1}^{n}
\sum_{i=1}^{m}\sum_{j=1}^{n} a_{ij}
Worked examples
A closed form
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
The classic, and a good test of whether your fraction and your bounds are both right.
Geometric series
\sum_{k=0}^{\infty} r^k = \frac{1}{1-r}
An infinity as an upper bound is just another superscript argument.
Definition of a factorial
n! = \prod_{k=1}^{n} k
Product notation with the same bound syntax as the sum.
Common mistakes
- Expecting bounds above and below in a running sentence. Inline maths deliberately places them to the side so the line height survives.
- Writing
\sum_{i=1}^nand then adding spaces inside the braces that change nothing — but writing\sum_\{i=1\}and breaking it. - Using
\cupwith limits when\bigcupis what stacks properly. - Putting the summand outside the operator it belongs to, e.g.
\sum_{i}^n a_i + bwhere the+ bis not part of the sum.
Questions about this notation
Why do my sum limits appear beside the sigma instead of above it?
\sum\limits_{i=1}^n.Is \Sigma the same as \sum?
\Sigma is the capital Greek letter, sized like a normal letter. \sum is the n-ary operator, larger and able to carry limits.How do I write a sum with no upper limit?
\sum_{k} a_k. That is standard notation for summing over every value of k in its domain.How do I write conditions under a sum sign?
\substack from amsmath: \sum_{\substack{1 \le i \le n \\ i \ne j}} a_i. It stacks as many lines as you give it, split with \\. A plain brace group puts all of it on one line and pushes it beside the sign in inline maths, so \substack is the readable form — at the cost of working only in display maths.Keep reading
Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.