A sum in LaTeX is written with \sum, which prints the capital sigma (Σ) as a big operator: \sum_{i=1}^{n} a_i puts the index below and the upper limit above. The product symbol works the same way with \prod_{i=1}^{n}. In display math the limits sit above and below the sign; in inline math they move to the side unless you add \limits or \displaystyle. Multi-line conditions under a sum use \substack from amsmath, and the big set operators \bigcup and \bigcap follow the same rules. The table lists the summation symbols people use most, with the package each one needs; the full list follows below.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
\sum_{i=1}^{n} a_i | Sum (sigma notation) | built in | ||
\sum_{n=1}^{\infty} \frac{1}{n^2} | Infinite series | built in | ||
\prod_{i=1}^{n} x_i | Product | built in | ||
\coprod | Coproduct | built in | ||
\sum\limits_{i=1}^{n} | Limits above and below in inline math | built in | ||
\displaystyle\sum_{i=1}^{n} | Display-size sum in inline math | built in | ||
\sum_{i=1}^{n} \sum_{j=1}^{m} a_{ij} | Double sum | built in | ||
\sum_{\substack{i < j \\ i \neq k}} | Multi-line conditions | amsmath | ||
\bigcup_{i \in I} A_i | Union over an index | built in | ||
\bigcap_{i=1}^{n} A_i | Intersection over an index | built in | ||
\sum_{k=0}^{n} \binom{n}{k} | Binomial sum | amsmath |
Integrals and limits are on the calculus symbols page, and binomial coefficients and factorials on the combinatorics symbols page.
\sum\sum_{i=1}^{n}\sum_{n=0}^{\infty}\prod\prod_{i=1}^{n}\coprod\bigcup\bigcup_{i=1}^{n}\bigcap\bigcap_{i=1}^{n}\bigwedge\bigvee\bigoplus\bigotimes\bigodot\bigsqcup\sum_{i=1}^{m} \sum_{j=1}^{n}\sum_{k \in K}