This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)(Learn how and when to remove this template message)
In mathematics, summation (denoted with an enlarged capital Greek sigma symbol ) is the addition of a sequence of numbers; the result is their sum or total. If numbers are added sequentially from left to right, any intermediate result is a partial sum, prefix sum, or running total of the summation.
The numbers to be summed (called addends, or sometimes summands) may be integers, rational numbers, real numbers, or complex numbers. Besides numbers, other types of values can be added as well: vectors, matrices, polynomials and, in general, elements of any additive group (or even monoid).
For finite sequences of such elements, summation always produces a well-defined sum. The summation of an infinite sequence of values is called a series. A value of such a series may often be defined by means of a limit (although sometimes the value may be infinite, and often no value results at all). Another notion involving limits of finite sums is integration.
The summation of the sequence [1, 2, 4, 2] is an expression whose value is the sum of each of the members of the sequence. In the example, 1 + 2 + 4 + 2 = 9. Because addition is associative, the sum does not depend on how the additions are grouped, for instance (1 + 2) + (4 + 2) and 1 + ((2 + 4) + 2) both have the value 9; therefore, parentheses are usually omitted in repeated additions. Addition is also commutative, so permuting the terms of a finite sequence does not change its sum. For infinite summations this property may fail. See Absolute convergence for conditions under which it still holds.
There is no special notation for the summation of such explicit sequences, as the corresponding repeated addition expression will do. There is only a slight difficulty if the sequence has fewer than two elements: the summation of a sequence of one term involves no plus sign (it is indistinguishable from the term itself) and the summation of the empty sequence cannot even be written down (but one can write its value "0" in its place). If, however, the terms of the sequence are given by a regular pattern, possibly of variable length, then a summation operator may be useful or even essential.
For the summation of the sequence of consecutive integers from 1 to 100, one could use an addition expression involving an ellipsis to indicate the missing terms: 1 + 2 + 3 + 4 + ... + 99 + 100. In this case, the reader can easily guess the pattern. However, for more complicated patterns, one needs to be precise about the rule used to find successive terms, which can be achieved by using the summation operator "Σ". Using this sigma notation the above summation is written as:
The value of this summation is 5050. It can be found without performing 99 additions, since it can be shown (for instance by mathematical induction) that
The term "indefinite summation" refers to the search for an inverse image of a given infinite sequence s of values for the forward difference operator, in other words for a sequence, called antidifference of s, whose finite differences are given by s. By contrast, summation as discussed in this article is called "definite summation".
When it is necessary to clarify that numbers are added with their signs, the term algebraic sum[full citation needed] is used. For example, in electric circuit theory Kirchhoff's circuit laws consider the algebraic sum of currents in a network of conductors meeting at a point, assigning opposite signs to currents flowing in and out of the node.
Mathematical notation uses a symbol that compactly represents summation of many similar terms: the summation symbol, , an enlarged form of the upright capital Greek letter Sigma. This is defined as:
where i represents the index of summation; ai is an indexed variable representing each successive term in the series; m is the lower bound of summation, and n is the upper bound of summation. The "i = m" under the summation symbol means that the index i starts out equal to m. The index, i, is incremented by 1 for each successive term, stopping when i = n.[b]
Here is an example showing the summation of squares:
Informal writing sometimes omits the definition of the index and bounds of summation when these are clear from context, as in:
One often sees generalizations of this notation in which an arbitrary logical condition is supplied, and the sum is intended to be taken over all values satisfying the condition. Here are some common examples:
is the sum of over all (integers) in the specified range,
is the sum of over all elements in the set , and
is the sum of over all positive integers dividing .[c]
There are also ways to generalize the use of many sigma signs. For example,
is the same as
A similar notation is applied when it comes to denoting the product of a sequence, which is similar to its summation, but which uses the multiplication operation instead of addition (and gives 1 for an empty sequence instead of 0). The same basic structure is used, with , an enlarged form of the Greek capital letter Pi, replacing the .
It is possible to sum fewer than 2 numbers:
- If the summation has one summand , then the evaluated sum is .
- If the summation has no summands, then the evaluated sum is zero, because zero is the identity for addition. This is known as the empty sum.
These degenerate cases are usually only used when the summation notation gives a degenerate result in a special case. For example, if in the definition above, then there is only one term in the sum; if , then there is none.
Summation may be defined recursively as follows
- , for b < a.
- , for b ≥ a.
Measure theory notationEdit
Calculus of finite differencesEdit
Given a function f that is defined over the integers in the interval [m, n], one has
is the derivative of f.
An example of application of the above equation is
Using binomial theorem, this may be rewritten
The above formula is more commonly used for inverting of the difference operator defined by
where f is a function defined on the nonnegative integers. Thus, given such a function f, the problem is to compute the antidifference of f, that is, a function such that , that is, This function is defined up to the addition of a constant, and may be chosen as
Approximation by definite integralsEdit
Many such approximations can be obtained by the following connection between sums and integrals, which holds for any:
increasing function f:
decreasing function f:
For more general approximations, see the Euler–Maclaurin formula.
For summations in which the summand is given (or can be interpolated) by an integrable function of the index, the summation can be interpreted as a Riemann sum occurring in the definition of the corresponding definite integral. One can therefore expect that for instance
since the right hand side is by definition the limit for of the left hand side. However, for a given summation n is fixed, and little can be said about the error in the above approximation without additional assumptions about f: it is clear that for wildly oscillating functions the Riemann sum can be arbitrarily far from the Riemann integral.
The formulae below involve finite sums; for infinite summations or finite summations of expressions involving trigonometric functions or other transcendental functions, see list of mathematical series.
- , if C is independent of n (distributivity)
- (commutativity and associativity)
- (indices shift)
- , for a bijection σ from a finite set A onto a set B (indices change); this generalizes the preceding formula.
- (splitting a sum, using associativity)
- (a variant of the preceding formula)
- (commutativity and associativity, again)
- (another application of commutativity and associativity)
- (splitting a sum in its odd and even parts, and changing the indices)
- (distributivity allows factorization, when one has a separate indexation)
- (the logarithm of a products the sum of the logarithms of the factors)
- (the exponential of a sum is the product of the exponential of the summands)
Powers and logarithm of arithmetic progressionsEdit
- for every c that does not depend on i
- (Sum of the simplest arithmetic progression, consisting of the n first natural numbers.)[full citation needed]
- (Sum of first odd natural numbers)
- (Sum of first even natural numbers)
- (A sum of logarithms is the logarithm of the product)
- (Sum of the first squares, see square pyramidal number.) 
- (Nicomachus's theorem) 
Summation index in exponentsEdit
In the following summations, a is supposed to be different of 1.
- (sum of a geometric progression)
- (special case for a = 1/2)
- (a times the derivative with respect to a of the geometric progression)
- (sum of a arithmetico–geometric sequence)
Binomial coefficients and factorialsEdit
There exist very many summation identities involving binomial coefficients (a whole chapter of Concrete Mathematics is devoted to just the basic techniques). Some of the most basic ones are the following.
Involving the binomial theoremEdit
- the binomial theorem
- the special case where a = b = 1
- , the special case where p = a = 1 – b, which, for expresses the sum of the binomial distribution
- the value at a = b = 1 of the derivative with respect to a of the binomial theorem
- the value at a = b = 1 of the antiderivative with respect to a of the binomial theorem
Involving permutation numbersEdit
In the following summations, is the number of k-permutations of n.
- , where and denotes the floor function.
- For details, see Triangular number.
- For a detailed exposition on summation notation, and arithmetic with sums, see Graham, Ronald L.; Knuth, Donald E.; Patashnik, Oren (1994). "Chapter 2: Sums". Concrete Mathematics: A Foundation for Computer Science (2nd Edition) (PDF). Addison-Wesley Professional. ISBN 978-0201558029.[permanent dead link]
- Although the name of the dummy variable does not matter (by definition), one usually uses letters from the middle of the alphabet ( through ) to denote integers, if there is a risk of confusion. For example, even if there should be no doubt about the interpretation, it could look slightly confusing to many mathematicians to see instead of in the above formulae involving . See also typographical conventions in mathematical formulae.