Summation#Notation
{{Short description|Addition of several numbers or other values}}
{{About|sums of several elements|more elementary aspects|Addition|infinite sums|Series (mathematics)|other uses}}
{{Calculation results}}
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 {{math|[1, 2, 4, 2]}} is denoted {{math|1 + 2 + 4 + 2}}, and results in 9, that is, {{math|1=1 + 2 + 4 + 2 = 9}}. Because addition is associative and commutative, there is no need for parentheses, and the result is the same irrespective of the order of the summands. Summation of a sequence of only one summand results in the summand 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 {{math|1 + 2 + 3 + 4 + ⋯ + 99 + 100}}. Otherwise, summation is denoted by using Σ notation, where is an enlarged capital Greek letter sigma. For example, the sum of the first {{mvar|n}} natural numbers can be denoted as
:
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,{{efn|For details, see Triangular number.}}
:
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
{{Further information|Iterated binary operation#Notation}}
= Capital-sigma notation =
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.{{Cite book |last=Apostol |first=Tom M. |title=Calculus |date=1967 |publisher=John Wiley & Sons |isbn=0-471-00005-1 |edition=2nd |volume=1 |location=USA |pages=37}} This is defined as
:
where {{math|i}} is the index of summation; {{math|ai}} is an indexed variable representing each term of the sum; {{math|m}} is the lower bound of summation, and {{math|n}} is the upper bound of summation. The "{{math|1=i = m}}" under the summation symbol means that the index {{math|i}} starts out equal to {{math|m}}. The index, {{math|i}}, is incremented by one for each successive term, stopping when {{math|1=i = n}}.{{efn|For a detailed exposition on summation notation, and arithmetic with sums, see {{cite book |last1=Graham |first1=Ronald L. |last2=Knuth |first2=Donald E. |last3=Patashnik |first3=Oren |year=1994 |title=Concrete Mathematics: A Foundation for Computer Science |edition=2nd |chapter=Chapter 2: Sums |publisher=Addison-Wesley Professional |isbn=978-0201558029 }}}}
This is read as "sum of {{math|ai}}, from {{math|1=i = m}} to {{math|n}}".
Here is an example showing the summation of squares:
:
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 ,{{efn|in contexts where there is no possibility of confusion with the imaginary unit }} , , and ; 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.{{Cite web|title=Summation Notation|url=http://www.columbia.edu/itc/sipa/math/summation.html|access-date=2020-08-16|website=www.columbia.edu}} For example, one might write that:
:
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:
:
is an alternative notation for the sum of over all (integers) in the specified range. Similarly,
:
is the sum of over all elements in the set , and
:
is the sum of over all positive integers dividing .{{efn|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 .}}
There are also ways to generalize the use of many sigma signs. For example,
:
is the same as
:
A similar notation is used for the product of a sequence, where , an enlarged form of the Greek capital letter pi, is used instead of
=Special cases=
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.
=Algebraic sum=
The phrase 'algebraic sum' refers to a sum of terms which may have positive or negative signs. Terms with positive signs are added, while terms with negative signs are subtracted. e.g.
+1 −1
Formal definition
Summation may be defined recursively as follows:
:, for
:
:, for .
Measure theory notation
In the notation of measure and integration theory, a sum can be expressed as a definite integral,
:
where is the subset of the integers from to , and where is the counting measure over the integers.
Calculus of finite differences
Given a function {{mvar|f}} that is defined over the integers in the interval {{math|[m, n]}}, the following equation holds:
:
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:
:
where
:
is the derivative of {{mvar|f}}.
An example of application of the above equation is the following:
:
Using binomial theorem, this may be rewritten as:
:
The above formula is more commonly used for inverting of the difference operator , defined by:
:
where {{mvar|f}} is a function defined on the nonnegative integers.
Thus, given such a function {{mvar|f}}, the problem is to compute the antidifference of {{mvar|f}}, a function such that . That is,
This function is defined up to the addition of a constant, and may be chosen asHandbook of Discrete and Combinatorial Mathematics, Kenneth H. Rosen, John G. Michaels, CRC Press, 1999, {{isbn|0-8493-0149-1}}.
:
There is not always a closed-form expression for such a summation, but Faulhaber's formula provides a closed form in the case where and, by linearity, for every polynomial function of {{mvar|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:
:
and for any 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.
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 =
: (distributivity){{Cite web|title=Calculus I - Summation Notation|url=https://tutorial.math.lamar.edu/classes/calci/summationnotation.aspx|access-date=2020-08-16|website=tutorial.math.lamar.edu}}
: (commutativity and associativity)
: (index shift)
: for a bijection {{mvar|σ}} from a finite set {{mvar|A}} onto a set {{mvar|B}} (index change); this generalizes the preceding formula.
: (splitting a sum, using associativity)
: (a variant of the preceding formula)
: (the sum from the first term up to the last is equal to the sum from the last down to the first)
: (a particular case of the formula above)
: (commutativity and associativity, again)
:
\sum_{j=0}^{n-k}\sum_{i=k}^{n-j} a_{i+j,i}\quad (another application of commutativity and associativity)
: (splitting a sum into its odd and even parts, for even indexes)
: (splitting a sum into its odd and even parts, for odd indexes)
: (distributivity)
: (distributivity allows factorization)
: (the logarithm of a product is the sum of the logarithms of the factors)
: (the exponential of a sum is the product of the exponential of the summands)
: for any function from .
= Powers and logarithm of arithmetic progressions =
: for every {{mvar|c}} that does not depend on {{mvar|i}}
: (Sum of the simplest arithmetic progression, consisting of the first n natural numbers.){{r|CRC|p=52}}
: (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.) {{r|CRC|p=52}}
: (Nicomachus's theorem) {{r|CRC|p=52}}
More generally, one has Faulhaber's formula for
:
where denotes a Bernoulli number, and is a binomial coefficient.
= Summation index in exponents =
In the following summations, {{mvar|a}} is assumed to be different from 1.
: (sum of a geometric progression)
: (special case for {{math|1=a = 1/2}})
: ({{mvar|a}} times the derivative with respect to {{mvar|a}} of the geometric progression)
:
\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}
:::(sum of an arithmetico–geometric sequence)
= Binomial coefficients and factorials =
{{Main|Binomial coefficient#Sums of the binomial coefficients}}
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==
: the binomial theorem
: the special case where {{math|1=a = b = 1}}
: , the special case where {{math|1=p = a = 1 − b}}, which, for expresses the sum of the binomial distribution
: the value at {{math|1=a = b = 1}} of the derivative with respect to {{mvar|a}} of the binomial theorem
: the value at {{math|1=a = b = 1}} of the antiderivative with respect to {{mvar|a}} of the binomial theorem
== Involving permutation numbers==
In the following summations, is the number of k-permutation.
:
:
: , where and denotes the floor function.
==Others==
:
:
:
:
:
:
=Harmonic numbers=
: (the {{mvar|n}}th harmonic number)
Growth rates
The following are useful approximations (using theta notation):
: for real c greater than −1
:
: (See Harmonic number)
:
: for real c greater than 1
:
: for non-negative real c
:
: for non-negative real c, d
:
: 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.{{cite book
|first=David M.
|last=Burton
|title=The History of Mathematics: An Introduction
|year=2011
|edition=7th
|publisher=McGraw-Hill
|isbn=978-0-07-338315-6
|page=414
|first=Gottfried Wilhelm
|last=Leibniz
|author-link=Gottfried Wilhelm Leibniz
|title=Der Briefwechsel von Gottfried Wilhelm Leibniz mit Mathematikern. Erster Band
|url=http://name.umdl.umich.edu/AAX2762.0001.001
|year=1899
|editor-first=Karl Immanuel
|editor-last=Gerhardt
|place=Berlin
|publisher=Mayer & Müller
|page=[https://quod.lib.umich.edu/u/umhistmath/aax2762.0001.001/185?page=root;size=100;view=image 154]
}}{{sfnp|Cajori|1929|pages=[https://archive.org/details/in.ernet.dli.2015.88254/page/n203 181-182]}} The renaming of this symbol to integral arose later in exchanges with Johann Bernoulli.{{sfnp|Cajori|1929|pages=[https://archive.org/details/in.ernet.dli.2015.88254/page/n203 181-182]}}
- In 1755, the summation symbol Σ is attested in Leonhard Euler's Institutiones calculi differentialis.{{sfnp|Cajori|1929|p=[https://archive.org/details/in.ernet.dli.2015.88254/page/n83 61]}}{{cite book
|last1=Euler
|first1=Leonhard
|author-link=Leonhard Euler
|title=Institutiones Calculi differentialis
|date=1755
|location=Petropolis
|page=[https://www.digitale-sammlungen.de/en/view/bsb10053431?page=54,55 27]
|url=https://www.digitale-sammlungen.de/en/view/bsb10053431?page=54,55
|language=Latin
}} Euler uses the symbol in expressions like:
:
- In 1772, usage of Σ and Σn is attested by Lagrange.{{sfnp|Cajori|1929|p=[https://archive.org/details/in.ernet.dli.2015.88254/page/n83 61]}}{{cite book
|last1=Lagrange
|first1=Joseph-Louis
|author-link=Joseph-Louis Lagrange
|title=Oeuvres de Lagrange. Tome 3
|date=1867–1892
|location=Paris
|page=[https://gallica.bnf.fr/ark:/12148/bpt6k229222d/f452.item 451]
|url=https://gallica.bnf.fr/ark:/12148/bpt6k229222d/f452.item
|language=French
}}
- In 1823, the capital letter S is attested as a summation symbol for series. This usage was apparently widespread.{{sfnp|Cajori|1929|p=[https://archive.org/details/in.ernet.dli.2015.88254/page/n83 61]}}
- In 1829, the summation symbol Σ is attested by Fourier and C. G. J. Jacobi.{{sfnp|Cajori|1929|p=[https://archive.org/details/in.ernet.dli.2015.88254/page/n83 61]}} Fourier's use includes lower and upper bounds, for example:{{cite book
|title=Mémoires de l'Académie royale des sciences de l'Institut de France pour l'année 1825, tome VIII
|date=1829
|publisher=Didot
|location=Paris
|pages=[https://books.google.com/books?id=Mpu9XDBOmagC&pg=583 581-622]
|url=https://books.google.com/books?id=Mpu9XDBOmagC&pg=583
|language=French
|last1=Fourier
|first1=Jean-Baptiste Joseph
|author-link=Joseph Fourier
|title=Oeuvres de Fourier. Tome 2
|date=1888–1890
|publisher=Gauthier-Villars
|location=Paris
|page=[https://gallica.bnf.fr/ark:/12148/bpt6k33707/f154.item 149]
|url=https://gallica.bnf.fr/ark:/12148/bpt6k33707/f154.item
|language=French
}}
:
See also
- Capital-pi notation
- Einstein notation
- Iverson bracket
- Iterated binary operation
- Kahan summation algorithm
- Product (mathematics)
- Summation by parts
- {{section link|Sigma|Character encoding}}
Notes
{{notelist}}
References
{{Reflist}}
Bibliography
- {{cite book
|first=Florian
|last=Cajori
|author-link=Florian Cajori
|title=A History Of Mathematical Notations Volume II
|url=https://archive.org/details/in.ernet.dli.2015.88254
|year=1929
|publisher=Open Court Publishing
|isbn=978-0-486-67766-8
}}