Summation
Arithmetic operations | ||||||||||||||||||||||||||||||||||||||||||
|
In mathematics, summation is the addition of a sequence of numbers, called addends or summands; the result is their sum or total. Beside numbers, other types of values can be summed as well: functions, vectors, matrices, polynomials and, in general, elements of any type of mathematical objects on which an operation denoted "+" is defined.
Summations of infinite sequences are called series. They involve the concept of limit, and are not considered in this article.
The summation of an explicit sequence is denoted as a succession of additions. For example, summation of [1, 2, 4, 2] is denoted 1 + 2 + 4 + 2, and results in 9, that is, 1 + 2 + 4 + 2 = 9. Because addition is associative and commutative, there is no need of parentheses, and the result is the same irrespective of the order of the summands. Summation of a sequence of only one element results in this element itself. Summation of an empty sequence (a sequence with no elements), by convention, results in 0.
Very often, the elements of a sequence are defined, through a regular pattern, as a function of their place in the sequence. For simple patterns, summation of long sequences may be represented with most summands replaced by ellipses. For example, summation of the first 100 natural numbers may be written as 1 + 2 + 3 + 4 + ⋯ + 99 + 100. Otherwise, summation is denoted by using Σ notation, where [math]\displaystyle{ \sum }[/math] is an enlarged capital Greek letter sigma. For example, the sum of the first n natural numbers can be denoted as [math]\displaystyle{ \sum_{i=1}^n i. }[/math]
For long summations, and summations of variable length (defined with ellipses or Σ notation), it is a common problem to find closed-form expressions for the result. For example,[lower-alpha 1]
- [math]\displaystyle{ \sum_{i=1}^n i = \frac{n(n+1)}{2}. }[/math]
Although such formulas do not always exist, many summation formulas have been discovered—with some of the most common and elementary ones being listed in the remainder of this article.
Notation
Capital-sigma notation
Mathematical notation uses a symbol that compactly represents summation of many similar terms: the summation symbol, [math]\displaystyle{ \sum }[/math], an enlarged form of the upright capital Greek letter sigma. This is defined as
- [math]\displaystyle{ \sum_{i \mathop =m}^n a_i = a_m + a_{m+1} + a_{m+2} + \cdots + a_{n-1} + a_n }[/math]
This is read as "sum of ai, from i = m to n".
Here is an example showing the summation of squares:
- [math]\displaystyle{ \sum_{i = 3}^6 i^2 = 3^2+4^2+5^2+6^2 = 86. }[/math]
In general, while any variable can be used as the index of summation (provided that no ambiguity is incurred), some of the most common ones include letters such as [math]\displaystyle{ i }[/math],[lower-alpha 2] [math]\displaystyle{ j }[/math], [math]\displaystyle{ k }[/math], and [math]\displaystyle{ n }[/math]; the latter is also often used for the upper bound of a summation.
Alternatively, index and bounds of summation are sometimes omitted from the definition of summation if the context is sufficiently clear. This applies particularly when the index runs from 1 to n.[1] For example, one might write that:
- [math]\displaystyle{ \sum a_i^2 = \sum_{i = 1}^n a_i^2. }[/math]
Generalizations of this notation are often used, in which an arbitrary logical condition is supplied, and the sum is intended to be taken over all values satisfying the condition. For example:
- [math]\displaystyle{ \sum_{0 \le k \lt 100} f(k) }[/math]
is an alternative notation for [math]\displaystyle{ \sum_{k = 0}^{99} f(k), }[/math] the sum of [math]\displaystyle{ f(k) }[/math] over all (integers) [math]\displaystyle{ k }[/math] in the specified range. Similarly,
- [math]\displaystyle{ \sum_{x \mathop \in S} f(x) }[/math]
is the sum of [math]\displaystyle{ f(x) }[/math] over all elements [math]\displaystyle{ x }[/math] in the set [math]\displaystyle{ S }[/math], and
- [math]\displaystyle{ \sum_{d\,|\,n}\;\mu(d) }[/math]
is the sum of [math]\displaystyle{ \mu(d) }[/math] over all positive integers [math]\displaystyle{ d }[/math] dividing [math]\displaystyle{ n }[/math].[lower-alpha 3]
There are also ways to generalize the use of many sigma signs. For example,
- [math]\displaystyle{ \sum_{i,j} }[/math]
is the same as
- [math]\displaystyle{ \sum_{i}\sum_{j}. }[/math]
A similar notation is used for the product of a sequence, where [math]\displaystyle{ \prod }[/math], an enlarged form of the Greek capital letter pi, is used instead of [math]\displaystyle{ \sum. }[/math]
Special cases
It is possible to sum fewer than 2 numbers:
- If the summation has one summand [math]\displaystyle{ x }[/math], then the evaluated sum is [math]\displaystyle{ x }[/math].
- 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 [math]\displaystyle{ n=m }[/math] in the definition above, then there is only one term in the sum; if [math]\displaystyle{ n=m-1 }[/math], then there is none.
Formal definition
Summation may be defined recursively as follows:
- [math]\displaystyle{ \sum_{i=a}^b g(i)=0 }[/math], for [math]\displaystyle{ b\lt a }[/math];
- [math]\displaystyle{ \sum_{i=a}^b g(i)=g(b)+\sum_{i=a}^{b-1} g(i) }[/math], for [math]\displaystyle{ b \geqslant a }[/math].
Measure theory notation
In the notation of measure and integration theory, a sum can be expressed as a definite integral,
- [math]\displaystyle{ \sum_{k \mathop =a}^b f(k) = \int_{[a,b]} f\,d\mu }[/math]
where [math]\displaystyle{ [a, b] }[/math] is the subset of the integers from [math]\displaystyle{ a }[/math] to [math]\displaystyle{ b }[/math], and where [math]\displaystyle{ \mu }[/math] is the counting measure over the integers.
Calculus of finite differences
Given a function f that is defined over the integers in the interval [m, n], the following equation holds:
- [math]\displaystyle{ f(n)-f(m)= \sum_{i=m}^{n-1} (f(i+1)-f(i)). }[/math]
This is known as a telescoping series and is the analogue of the fundamental theorem of calculus in calculus of finite differences, which states that:
- [math]\displaystyle{ f(n)-f(m)=\int_m^n f'(x)\,dx, }[/math]
where
- [math]\displaystyle{ f'(x)=\lim_{h\to 0} \frac{f(x+h)-f(x)}{h} }[/math]
is the derivative of f.
An example of application of the above equation is the following:
- [math]\displaystyle{ n^k=\sum_{i=0}^{n-1} \left((i+1)^k-i^k\right). }[/math]
Using binomial theorem, this may be rewritten as:
- [math]\displaystyle{ n^k=\sum_{i=0}^{n-1} \biggl(\sum_{j=0}^{k-1} \binom{k}{j} i^j\biggr). }[/math]
The above formula is more commonly used for inverting of the difference operator [math]\displaystyle{ \Delta }[/math], defined by:
- [math]\displaystyle{ \Delta(f)(n)=f(n+1)-f(n), }[/math]
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, a function [math]\displaystyle{ F=\Delta^{-1}f }[/math] such that [math]\displaystyle{ \Delta F=f }[/math]. That is, [math]\displaystyle{ F(n+1)-F(n)=f(n). }[/math] This function is defined up to the addition of a constant, and may be chosen as[2]
- [math]\displaystyle{ F(n)=\sum_{i=0}^{n-1} f(i). }[/math]
There is not always a closed-form expression for such a summation, but Faulhaber's formula provides a closed form in the case where [math]\displaystyle{ f(n)=n^k }[/math] and, by linearity, for every polynomial function of n.
Approximation by definite integrals
Many such approximations can be obtained by the following connection between sums and integrals, which holds for any increasing function f:
- [math]\displaystyle{ \int_{s=a-1}^{b} f(s)\ ds \le \sum_{i=a}^{b} f(i) \le \int_{s=a}^{b+1} f(s)\ ds. }[/math]
and for any decreasing function f:
- [math]\displaystyle{ \int_{s=a}^{b+1} f(s)\ ds \le \sum_{i=a}^{b} f(i) \le \int_{s=a-1}^{b} f(s)\ ds. }[/math]
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
- [math]\displaystyle{ \frac{b-a}{n}\sum_{i=0}^{n-1} f\left(a+i\frac{b-a}n\right) \approx \int_a^b f(x)\ dx, }[/math]
since the right-hand side is by definition the limit for [math]\displaystyle{ n\to\infty }[/math] 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.
Identities
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.
General identities
- [math]\displaystyle{ \sum_{n=s}^t C\cdot f(n) = C\cdot \sum_{n=s}^t f(n) \quad }[/math] (distributivity)[3]
- [math]\displaystyle{ \sum_{n=s}^t f(n) \pm \sum_{n=s}^{t} g(n) = \sum_{n=s}^t \left(f(n) \pm g(n)\right)\quad }[/math] (commutativity and associativity)[3]
- [math]\displaystyle{ \sum_{n=s}^t f(n) = \sum_{n=s+p}^{t+p} f(n-p)\quad }[/math] (index shift)
- [math]\displaystyle{ \sum_{n\in B} f(n) = \sum_{m\in A} f(\sigma(m)), \quad }[/math] for a bijection σ from a finite set A onto a set B (index change); this generalizes the preceding formula.
- [math]\displaystyle{ \sum_{n=s}^t f(n) =\sum_{n=s}^j f(n) + \sum_{n=j+1}^t f(n)\quad }[/math] (splitting a sum, using associativity)
- [math]\displaystyle{ \sum_{n=a}^{b}f(n)=\sum_{n=0}^{b}f(n)-\sum_{n=0}^{a-1}f(n)\quad }[/math] (a variant of the preceding formula)
- [math]\displaystyle{ \sum_{n=s}^t f(n) = \sum_{n=0}^{t-s} f(t-n)\quad }[/math] (the sum from the first term up to the last is equal to the sum from the last down to the first)
- [math]\displaystyle{ \sum_{n=0}^t f(n) = \sum_{n=0}^{t} f(t-n)\quad }[/math] (a particular case of the formula above)
- [math]\displaystyle{ \sum_{i=k_0}^{k_1}\sum_{j=l_0}^{l_1} a_{i,j} = \sum_{j=l_0}^{l_1}\sum_{i=k_0}^{k_1} a_{i,j}\quad }[/math] (commutativity and associativity, again)
- [math]\displaystyle{ \sum_{k\le j \le i\le n} a_{i,j} = \sum_{i=k}^n\sum_{j=k}^i a_{i,j} = \sum_{j=k}^n\sum_{i=j}^n a_{i,j} = \sum_{j=0}^{n-k}\sum_{i=k}^{n-j} a_{i+j,i}\quad }[/math] (another application of commutativity and associativity)
- [math]\displaystyle{ \sum_{n=2s}^{2t+1} f(n) = \sum_{n=s}^t f(2n) + \sum_{n=s}^t f(2n+1)\quad }[/math] (splitting a sum into its odd and even parts, for even indexes)
- [math]\displaystyle{ \sum_{n=2s+1}^{2t} f(n) = \sum_{n=s+1}^t f(2n) + \sum_{n=s+1}^t f(2n-1)\quad }[/math] (splitting a sum into its odd and even parts, for odd indexes)
- [math]\displaystyle{ \biggl(\sum_{i=0}^{n} a_i\biggr) \biggl(\sum_{j=0}^{n} b_j\biggr)=\sum_{i=0}^n \sum_{j=0}^n a_ib_j \quad }[/math] (distributivity)
- [math]\displaystyle{ \sum_{i=s}^m\sum_{j=t}^n {a_i}{c_j} = \biggl(\sum_{i=s}^m a_i\biggr) \biggl( \sum_{j=t}^n c_j \biggr)\quad }[/math] (distributivity allows factorization)
- [math]\displaystyle{ \sum_{n=s}^t \log_b f(n) = \log_b \prod_{n=s}^t f(n)\quad }[/math] (the logarithm of a product is the sum of the logarithms of the factors)
- [math]\displaystyle{ C^{\sum\limits_{n=s}^t f(n) } = \prod_{n=s}^t C^{f(n)}\quad }[/math] (the exponential of a sum is the product of the exponential of the summands)
Powers and logarithm of arithmetic progressions
- [math]\displaystyle{ \sum_{i=1}^n c = nc\quad }[/math] for every c that does not depend on i
- [math]\displaystyle{ \sum_{i=0}^n i = \sum_{i=1}^n i = \frac{n(n+1)}{2}\qquad }[/math] (Sum of the simplest arithmetic progression, consisting of the first n natural numbers.)[2]:52
- [math]\displaystyle{ \sum_{i=1}^n (2i-1) = n^2\qquad }[/math] (Sum of first odd natural numbers)
- [math]\displaystyle{ \sum_{i=0}^{n} 2i = n(n+1)\qquad }[/math] (Sum of first even natural numbers)
- [math]\displaystyle{ \sum_{i=1}^{n} \log i = \log n!\qquad }[/math] (A sum of logarithms is the logarithm of the product)
- [math]\displaystyle{ \sum_{i=0}^n i^2 = \sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6} = \frac{n^3}{3} + \frac{n^2}{2} + \frac{n}{6}\qquad }[/math] (Sum of the first squares, see square pyramidal number.) [2]:52
- [math]\displaystyle{ \sum_{i=0}^n i^3 = \biggl(\sum_{i=0}^n i \biggr)^2 = \left(\frac{n(n+1)}{2}\right)^2 = \frac{n^4}{4} + \frac{n^3}{2} + \frac{n^2}{4}\qquad }[/math] (Nicomachus's theorem) [2]:52
More generally, one has Faulhaber's formula for [math]\displaystyle{ p\gt 1 }[/math]
- [math]\displaystyle{ \sum_{k=1}^n k^{p} = \frac{n^{p+1}}{p+1} + \frac{1}{2}n^p + \sum_{k=2}^p \binom p k \frac{B_k}{p-k+1}\,n^{p-k+1}, }[/math]
where [math]\displaystyle{ B_k }[/math] denotes a Bernoulli number, and [math]\displaystyle{ \binom p k }[/math] is a binomial coefficient.
Summation index in exponents
In the following summations, a is assumed to be different from 1.
- [math]\displaystyle{ \sum_{i=0}^{n-1} a^i = \frac{1-a^n}{1-a} }[/math] (sum of a geometric progression)
- [math]\displaystyle{ \sum_{i=0}^{n-1} \frac{1}{2^i} = 2-\frac{1}{2^{n-1}} }[/math] (special case for a = 1/2)
- [math]\displaystyle{ \sum_{i=0}^{n-1} i a^i =\frac{a-na^n+(n-1)a^{n+1}}{(1-a)^2} }[/math] (a times the derivative with respect to a of the geometric progression)
- [math]\displaystyle{ \begin {align}
\sum_{i= 0}^{n-1} \left(b + i d\right) a^i &= b \sum_{i= 0}^{n-1} a^i + d \sum_{i= 0}^{n-1} i a^i\\
& = b \left(\frac{1-a^n}{1-a}\right) + d \left(\frac{a-na^n+(n-1)a^{n+1}}{(1-a)^2}\right)\\
& = \frac{b(1-a^n) - (n - 1)d a^n}{1 - a}+\frac{da(1 - a^{n - 1})}{(1 - a)^2}
\end {align} }[/math]
- (sum of an arithmetico–geometric sequence)
Binomial coefficients and factorials
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 theorem
- [math]\displaystyle{ \sum_{i=0}^n {n \choose i}a^{n-i} b^i=(a + b)^n, }[/math] the binomial theorem
- [math]\displaystyle{ \sum_{i=0}^n {n \choose i} = 2^n, }[/math] the special case where a = b = 1
- [math]\displaystyle{ \sum_{i=0}^n {n \choose i}p^i (1-p)^{n-i}=1 }[/math], the special case where p = a = 1 − b, which, for [math]\displaystyle{ 0 \le p \le 1, }[/math] expresses the sum of the binomial distribution
- [math]\displaystyle{ \sum_{i=0}^{n} i{n \choose i} = n(2^{n-1}), }[/math] the value at a = b = 1 of the derivative with respect to a of the binomial theorem
- [math]\displaystyle{ \sum_{i=0}^n \frac{n \choose i}{i+1} = \frac{2^{n+1}-1}{n+1}, }[/math] the value at a = b = 1 of the antiderivative with respect to a of the binomial theorem
Involving permutation numbers
In the following summations, [math]\displaystyle{ {}_{n}P_{k} }[/math] is the number of k-permutations of n.
- [math]\displaystyle{ \sum_{i=0}^{n} {}_{i}P_{k}{n \choose i} = {}_{n}P_{k}(2^{n-k}) }[/math]
- [math]\displaystyle{ \sum_{i=1}^n {}_{i+k}P_{k+1} = \sum_{i=1}^n \prod_{j=0}^k (i+j) = \frac{(n+k+1)!}{(n-1)!(k+2)} }[/math]
- [math]\displaystyle{ \sum_{i=0}^{n} i!\cdot{n \choose i} = \sum_{i=0}^{n} {}_{n}P_{i} = \lfloor n! \cdot e \rfloor, \quad n \in \mathbb{Z}^+ }[/math], where and [math]\displaystyle{ \lfloor x\rfloor }[/math] denotes the floor function.
Others
- [math]\displaystyle{ \sum_{k=0}^{m} \binom{n+k}{n} = \binom{n+m+1}{n+1} }[/math]
- [math]\displaystyle{ \sum_{i=k}^{n} {i \choose k} = {n+1 \choose k+1} }[/math]
- [math]\displaystyle{ \sum_{i=0}^n i\cdot i! = (n+1)! - 1 }[/math]
- [math]\displaystyle{ \sum_{i=0}^n {m+i-1 \choose i} = {m+n \choose n} }[/math]
- [math]\displaystyle{ \sum_{i=0}^n {n \choose i}^2 = {2n \choose n} }[/math]
- [math]\displaystyle{ \sum_{i=0}^n \frac{1}{i!} = \frac{\lfloor n!\; e \rfloor}{n!} }[/math]
Harmonic numbers
- [math]\displaystyle{ \sum_{i=1}^n \frac{1}{i} = H_n\quad }[/math] (the nth harmonic number)
- [math]\displaystyle{ \sum_{i=1}^n \frac{1}{i^k} = H^k_n\quad }[/math] (a generalized harmonic number)
Growth rates
The following are useful approximations (using theta notation):
- [math]\displaystyle{ \sum_{i=1}^n i^c \in \Theta(n^{c+1}) }[/math] for real c greater than −1
- [math]\displaystyle{ \sum_{i=1}^n \frac{1}{i} \in \Theta(\log_e n) }[/math] (See Harmonic number)
- [math]\displaystyle{ \sum_{i=1}^n c^i \in \Theta(c^n) }[/math] for real c greater than 1
- [math]\displaystyle{ \sum_{i=1}^n \log(i)^c \in \Theta(n \cdot \log(n)^{c}) }[/math] for non-negative real c
- [math]\displaystyle{ \sum_{i=1}^n \log(i)^c \cdot i^d \in \Theta(n^{d+1} \cdot \log(n)^{c}) }[/math] for non-negative real c, d
- [math]\displaystyle{ \sum_{i=1}^n \log(i)^c \cdot i^d \cdot b^i \in \Theta (n^d \cdot \log(n)^c \cdot b^n) }[/math] for non-negative real b > 1, c, d
History
- In 1675, Gottfried Wilhelm Leibniz, in a letter to Henry Oldenburg, suggests the symbol ∫ to mark the sum of differentials (Latin: calculus summatorius), hence the S-shape.[4][5][6] The renaming of this symbol to integral arose later in exchanges with Johann Bernoulli.[6]
- In 1755, the summation symbol Σ is attested in Leonhard Euler's Institutiones calculi differentialis.[7][8] Euler uses the symbol in expressions like:
- [math]\displaystyle{ \Sigma \ (2 wx + w^2) = x^2 }[/math]
- In 1772, usage of Σ and Σn is attested by Lagrange.[7][9]
- In 1823, the capital letter S is attested as a summation symbol for series. This usage was apparently widespread.[7]
- In 1829, the summation symbol Σ is attested by Fourier and C. G. J. Jacobi.[7] Fourier's use includes lower and upper bounds, for example:[10][11]
- [math]\displaystyle{ \sum_{i=1}^{\infty}e^{-i^2t} \ldots }[/math]
See also
- Capital-pi notation
- Einstein notation
- Iverson bracket
- Iterated binary operation
- Kahan summation algorithm
- Product (mathematics)
- Summation by parts
- ∑ the summation single glyph (U+2211 N-ARY SUMMATION)
- ⎲ the paired glyph's beginning (U+23B2 SUMMATION TOP)
- ⎳ the paired glyph's end (U+23B3 SUMMATION BOTTOM)
Notes
- ↑ For details, see Triangular number.
- ↑ in contexts where there is no possibility of confusion with the imaginary unit [math]\displaystyle{ i }[/math]
- ↑ Although the name of the dummy variable does not matter (by definition), one usually uses letters from the middle of the alphabet ([math]\displaystyle{ i }[/math] through [math]\displaystyle{ q }[/math]) 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 [math]\displaystyle{ x }[/math] instead of [math]\displaystyle{ k }[/math] in the above formulae involving [math]\displaystyle{ k }[/math].
References
- ↑ "Summation Notation". http://www.columbia.edu/itc/sipa/math/summation.html.
- ↑ 2.0 2.1 2.2 2.3 Handbook of Discrete and Combinatorial Mathematics, Kenneth H. Rosen, John G. Michaels, CRC Press, 1999, ISBN 0-8493-0149-1.
- ↑ 3.0 3.1 "Calculus I - Summation Notation". https://tutorial.math.lamar.edu/classes/calci/summationnotation.aspx.
- ↑ Burton, David M. (2011). The History of Mathematics: An Introduction (7th ed.). McGraw-Hill. p. 414. ISBN 978-0-07-338315-6.
- ↑ Leibniz, Gottfried Wilhelm (1899). Gerhardt, Karl Immanuel. ed. Der Briefwechsel von Gottfried Wilhelm Leibniz mit Mathematikern. Erster Band. Berlin: Mayer & Müller. p. 154. http://name.umdl.umich.edu/AAX2762.0001.001.
- ↑ 6.0 6.1 Cajori (1929), pp. 181-182.
- ↑ 7.0 7.1 7.2 7.3 Cajori (1929), p. 61.
- ↑ Euler, Leonhard (1755) (in Latin). Institutiones Calculi differentialis. Petropolis. p. 27. https://www.digitale-sammlungen.de/en/view/bsb10053431?page=54,55.
- ↑ Lagrange, Joseph-Louis (1867–1892) (in French). Oeuvres de Lagrange. Tome 3. Paris. p. 451. https://gallica.bnf.fr/ark:/12148/bpt6k229222d/f452.item.
- ↑ (in French) Mémoires de l'Académie royale des sciences de l'Institut de France pour l'année 1825, tome VIII. Paris: Didot. 1829. pp. 581-622. https://books.google.com/books?id=Mpu9XDBOmagC&pg=583.
- ↑ Fourier, Jean-Baptiste Joseph (1888–1890) (in French). Oeuvres de Fourier. Tome 2. Paris: Gauthier-Villars. p. 149. https://gallica.bnf.fr/ark:/12148/bpt6k33707/f154.item.
Bibliography
- Cajori, Florian (1929). A History Of Mathematical Notations Volume II. Open Court Publishing. ISBN 978-0-486-67766-8. https://archive.org/details/in.ernet.dli.2015.88254.
External links
Original source: https://en.wikipedia.org/wiki/Summation.
Read more |