⚡ Quick Answer
To write summation symbol (Σ) in LaTeX:
$\sum_{i=1}^{n} x_i$ % Produces: Σ(i=1 to n) x_i
Use \sum with subscript for lower limit and superscript for upper limit.
Basic \sum Command - Summation Symbol
The \sum command creates the summation symbol (Σ, capital Greek letter Sigma) in LaTeX. This symbol represents the sum of a series of terms.
Simple Summation
% Basic summation symbol
$\sum x_i$
% In display mode
\[
\sum x_i
\]
% With explicit terms
$\sum (a_i + b_i)$
Summation Notation: The sigma symbol Σ is the Greek capital letter for 'S', representing 'Sum'. It's universally used in mathematics to denote the sum of a sequence of terms.
Adding Limits - Subscripts and Superscripts
Summation limits specify the range of summation using subscripts (lower limit) and superscripts (upper limit).
Syntax with Limits
% Sum from i=1 to n
$\sum_{i=1}^{n} x_i$
% Sum from k=0 to infinity
$\sum_{k=0}^{\infty} \frac{1}{2^k}$
% Different index variable
$\sum_{j=1}^{m} a_j$
% Multiple conditions in limit
$\sum_{\substack{i=1 \\ i \neq 5}}^{n} x_i$
Output:
Σi=1n xi
Σk=0∞ (1/2k)
Common Limit Patterns
| Pattern |
LaTeX Code |
Meaning |
| Sum from 1 to n |
\sum_{i=1}^{n} |
Sum of n terms |
| Sum from 0 to ∞ |
\sum_{i=0}^{\infty} |
Infinite series |
| Sum over all elements |
\sum_{i \in S} |
Sum over set S |
| Sum with condition |
\sum_{i=1, i\neq k}^{n} |
Sum excluding one term |
Display Style vs Inline Style
The appearance of summation symbols changes depending on whether they're in inline or display math mode.
Inline Style (Default in Text)
% Inline summation (compact)
The sum $\sum_{i=1}^{n} x_i$ represents the total.
% Limits appear as subscripts/superscripts
Consider the series $\sum_{k=0}^{\infty} \frac{1}{k!} = e$.
The sum Σi=1n xi represents the total.
Display Style (Centered, Large)
% Display summation (limits above/below)
\[
\sum_{i=1}^{n} x_i = x_1 + x_2 + \cdots + x_n
\]
% In equation environment
\begin{equation}
\sum_{k=0}^{\infty} \frac{x^k}{k!} = e^x
\end{equation}
Forcing Display Style in Inline Math
% Use \displaystyle to get large symbol in text
The sum \displaystyle\sum_{i=1}^{n} x_i$ is larger.
% Compare inline vs displaystyle
Inline: $\sum_{i=1}^{n} x_i$ vs Display: $\displaystyle\sum_{i=1}^{n} x_i$
Best Practice: Use display style (\[...\] or equation) for important summations. Use inline style for simple references within text. Avoid \displaystyle in inline math unless necessary, as it disrupts line spacing.
Practical Examples
Example 1: Arithmetic Series
% Sum of first n natural numbers
\[
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
\]
% Verification for n=5
$\sum_{i=1}^{5} i = 1 + 2 + 3 + 4 + 5 = 15 = \frac{5 \cdot 6}{2}$
Example 2: Geometric Series
% Finite geometric series
\[
\sum_{k=0}^{n} r^k = \frac{1 - r^{n+1}}{1 - r} \quad \text{for } r \neq 1
\]
% Infinite geometric series
\[
\sum_{k=0}^{\infty} r^k = \frac{1}{1-r} \quad \text{for } |r| < 1
\]
Example 3: Statistics - Mean and Variance
% Sample mean
\[
\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i
\]
% Sample variance
\[
s^2 = \frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2
\]
% Sum of squares
\[
SS = \sum_{i=1}^{n} x_i^2
\]
Example 4: Taylor Series
% Exponential function
\[
e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!}
\]
% Sine function
\[
\sin(x) = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!}
\]
% Cosine function
\[
\cos(x) = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!}
\]
Example 5: Probability - Expected Value
% Expected value (discrete)
\[
E[X] = \sum_{i=1}^{n} x_i P(X = x_i)
\]
% Variance
\[
\text{Var}(X) = \sum_{i=1}^{n} (x_i - \mu)^2 P(X = x_i)
\]
% Probability sum rule
\[
\sum_{i=1}^{n} P(X = x_i) = 1
\]
Multiple Summations and Nested Sums
Double Summation
% Double sum (nested)
\[
\sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij}
\]
% Sum of all matrix elements
\[
\sum_{i=1}^{m} \sum_{j=1}^{n} A_{ij}
\]
% With explicit calculation
\[
\sum_{i=1}^{2} \sum_{j=1}^{3} ij = \sum_{i=1}^{2} (i + 2i + 3i) = \sum_{i=1}^{2} 6i = 18
\]
Triple and Higher-Order Summations
% Triple summation
\[
\sum_{i=1}^{n} \sum_{j=1}^{m} \sum_{k=1}^{p} a_{ijk}
\]
% Multiple independent sums
\[
\left(\sum_{i=1}^{n} a_i\right) \times \left(\sum_{j=1}^{m} b_j\right)
\]
Product Symbol (\prod) - Comparison with Sum
The product symbol (Π) works similarly to summation but represents multiplication instead of addition.
% Product symbol
$\prod_{i=1}^{n} x_i = x_1 \times x_2 \times \cdots \times x_n$
% Factorial
\[
n! = \prod_{i=1}^{n} i
\]
% Compare sum vs product
\begin{align}
\text{Sum:} \quad &\sum_{i=1}^{n} i = \frac{n(n+1)}{2} \\
\text{Product:} \quad &\prod_{i=1}^{n} i = n!
\end{align}
| Symbol |
Command |
Operation |
Example |
| Σ |
\sum |
Addition |
Σi=13 i = 1+2+3 = 6 |
| Π |
\prod |
Multiplication |
Πi=13 i = 1×2×3 = 6 |
Common Mistakes to Avoid
❌ Mistake 1: Forgetting Braces for Multi-character Limits
% WRONG - only first character becomes subscript
$\sum_i=1^n x_i$ % Produces: Σi=1n
% CORRECT - use braces
$\sum_{i=1}^{n} x_i$ % Produces: Σi=1n
❌ Mistake 2: Using Sum Outside Math Mode
% WRONG - causes error
The sum \sum of all terms...
% CORRECT - use math mode
The sum $\sum$ of all terms...
❌ Mistake 3: Wrong Symbol for Limits
% WRONG - using colon instead of equals
$\sum_{i:1}^{n} x_i$
% CORRECT - use equals sign
$\sum_{i=1}^{n} x_i$
❌ Mistake 4: Confusing Sum and Product
Remember: \sum (Σ) is for addition/sums, \prod (Π) is for multiplication/products. Don't use Σ for factorial or products!
Frequently Asked Questions
How do I write summation symbol in LaTeX?
Use \sum in math mode. For limits, add subscript and superscript: $\sum_{i=1}^{n} x_i$ produces Σ from i=1 to n of xi.
What's the difference between \sum and \Sigma?
\sum creates a large summation operator with proper spacing for limits. \Sigma creates the Greek letter Sigma (Σ) at regular size. Always use \sum for mathematical summation.
How do I make the sigma bigger in inline math?
Use \displaystyle before \sum: $\displaystyle\sum_{i=1}^{n}$. However, this can disrupt line spacing. Better to use display math \[...\] for important summations.
How do I write multiple summations?
For double summation, nest the commands: $\sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij}$. For independent sums, use parentheses: $(\sum_{i} a_i)(\sum_{j} b_j)$.
What's the command for product symbol?
Use \prod for the product symbol (Π): $\prod_{i=1}^{n} x_i$. It works identically to \sum but represents multiplication instead of addition.
How do I align multiple summations?
Use the align environment from amsmath: \begin{align} \sum_{i=1}^{n} a_i &= A \\ \sum_{j=1}^{m} b_j &= B \end{align}
Can I put conditions under the sum?
Yes! Use \substack for multiple lines: $\sum_{\substack{i=1 \\ i \neq k}}^{n}$ or set notation: $\sum_{i \in S}$.
How do I write summation from negative to positive infinity?
Use $\sum_{n=-\infty}^{\infty}$ or $\sum_{n=-\infty}^{+\infty}$. Both are correct for infinite series that extend in both directions.
Related LaTeX Math Tutorials
Create Professional Mathematical Documents
Master mathematical notation with our LaTeX templates designed for academic papers, research, and technical documents.