総和・積

シグマ記法、積記号、インデックス付き極限。

Sum in LaTeX: sigma notation, products and limits

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.

Quick reference: sums, products and limits

SymbolCommandUsePackageCopy
∑i=1nai\sum_{i=1}^{n} a_i
\sum_{i=1}^{n} a_iSum (sigma notation)built in
∑n=1∞1n2\sum_{n=1}^{\infty} \frac{1}{n^2}
\sum_{n=1}^{\infty} \frac{1}{n^2}Infinite seriesbuilt in
∏i=1nxi\prod_{i=1}^{n} x_i
\prod_{i=1}^{n} x_iProductbuilt in
∐\coprod
\coprodCoproductbuilt in
∑i=1n\sum\limits_{i=1}^{n}
\sum\limits_{i=1}^{n}Limits above and below in inline mathbuilt in
∑i=1n\displaystyle\sum_{i=1}^{n}
\displaystyle\sum_{i=1}^{n}Display-size sum in inline mathbuilt in
∑i=1n∑j=1maij\sum_{i=1}^{n} \sum_{j=1}^{m} a_{ij}
\sum_{i=1}^{n} \sum_{j=1}^{m} a_{ij}Double sumbuilt in
∑i<ji≠k\sum_{\substack{i < j \\ i \neq k}}
\sum_{\substack{i < j \\ i \neq k}}Multi-line conditionsamsmath
⋃i∈IAi\bigcup_{i \in I} A_i
\bigcup_{i \in I} A_iUnion over an indexbuilt in
⋂i=1nAi\bigcap_{i=1}^{n} A_i
\bigcap_{i=1}^{n} A_iIntersection over an indexbuilt in
∑k=0n(nk)\sum_{k=0}^{n} \binom{n}{k}
\sum_{k=0}^{n} \binom{n}{k}Binomial sumamsmath

Integrals and limits are on the calculus symbols page, and binomial coefficients and factorials on the combinatorics symbols page.

Frequently asked questions about sums in LaTeX

How do I write a sum in LaTeX?
Use \sum with a subscript and superscript in math mode: $\sum_{i=1}^{n} a_i$. Wrap multi-character limits in braces. In a displayed equation (\[...\]) the limits appear above and below the sigma; inline they appear to the side.
How do I put the limits above and below the sum in inline math?
Add \limits after the operator, \sum\limits_{i=1}^{n}, or make the whole sum display size with \displaystyle\sum_{i=1}^{n}. Use this sparingly, because it increases the line spacing of the paragraph.
How do I write the product symbol in LaTeX?
\prod prints the product symbol ∏ and takes limits like \sum: $\prod_{i=1}^{n} x_i$. Do not use \Pi, which is the Greek letter and neither grows in display math nor places its limits correctly.
∑\sum
∑i=1n\sum_{i=1}^{n}

Summation with Limits

\sum_{i=1}^{n}
∑n=0∞\sum_{n=0}^{\infty}

Summation to Infinity

\sum_{n=0}^{\infty}
∏\prod

Product

\prod
∏i=1n\prod_{i=1}^{n}

Product with Limits

\prod_{i=1}^{n}
∐\coprod

Coproduct

\coprod
⋃\bigcup

Big Union

\bigcup
⋃i=1n\bigcup_{i=1}^{n}

Big Union with Index

\bigcup_{i=1}^{n}
⋂\bigcap
⋂i=1n\bigcap_{i=1}^{n}
⋀\bigwedge

Big Wedge

\bigwedge
⋁\bigvee

Big Vee

\bigvee
⨁\bigoplus
⨂\bigotimes
⨀\bigodot
⨆\bigsqcup
∑i=1m∑j=1n\sum_{i=1}^{m} \sum_{j=1}^{n}

Double Sum

\sum_{i=1}^{m} \sum_{j=1}^{n}
∑k∈K\sum_{k \in K}

Indexed Sum

\sum_{k \in K}