Summation in LaTeX (\sum_{n=1}^{\infty})
- LaTeX command
\sum_{n=1}^{\infty}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Summation sign with index starting at n = 1 and running to infinity, the shape of an infinite series.
Infinite series such as the Basel problem \sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6} or the divergent harmonic series are written this way. In display math the bounds stack above and below a large sigma; inline they shift to the right of a smaller one, which keeps line spacing even. Add \limits if you need stacked bounds inline, or \displaystyle sparingly. Do not use the Greek letter \Sigma as a substitute: it is an ordinary-size letter, not an operator, and will not take limits correctly. Convergence is often stated through partial sums, S_N = \sum_{n=1}^{N} a_n.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Summation: $\sum_{n=1}^{\infty}$
\[ \sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6} \]
\end{document}Related symbols
- Product
\prod_{n=1}^{\infty} - Infinity
\infty - Differential
dx - Limit
\lim_{x \to \infty} - Prime Derivative
f'(x) - Limit
\lim_{x \to a}
Frequently asked questions
- How do I write Summation in LaTeX?
- Type \sum_{n=1}^{\infty} in math mode, for example $\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$. It works in plain LaTeX without loading any package.
- Which package do I need for \sum_{n=1}^{\infty}?
- None. \sum_{n=1}^{\infty} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \sum_{n=1}^{\infty} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\sum_{n=1}^{\infty}$ in running text.