Summation
Encyclopedia : S : SU : SUM : Summation
- "Total" and "sum" redirect here. For other uses, see total (disambiguation) and sum (disambiguation).
Notation
The sum of 1, 2, and 4 is 1 + 2 + 4 = 7. Since addition is associative, it does not matter whether we interpret "1 + 2 + 4" as (1 + 2) + 4 or as 1 + (2 + 4); the result is the same, so parentheses are usually omitted in a sum. Addition is also commutative, so the order in which the numbers written does not affect its sum.If a sum has too many terms to write them all out individually, the sum may be written with an ellipsis to mark out the missing terms. Thus, the sum of all the natural numbers from 1 to 100 is 1 + 2 + … + 99 + 100 = 5050.
Sums can be represented by the summation symbol, a capital sigma. This is defined as:
- [\sum_^n x_i = x_m + x_ + x_ +\cdots+ x_ + x_n. ]
- [\sum_^6 k^2 = 2^2+3^2+4^2+5^2+6^2 = 90.]
- [\sum_ f(k)]
- [\sum_ f(x)]
- [\sum_\;\mu(d)]
- (Remark: Although the name of the dummy variable does not matter (by definition), one usually uses letters from the middle of the alphabet (i through q) 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 x instead of k in the above formulae involving k. See also typographical conventions in mathematical formulae.)
There are also ways to generalize the use of many sigma signs. For example,
- [\sum_]
- [\sum_\ell\sum_.]
Computerized notation
Summations can also be represented in a programming language. [ \sum_^ x_]is computed by the following C / C++ / Java / JavaScript program:
the following Visual BASIC program:sum = 0; for(i = m; i <= n; i++) sum += x[i]
Sum = 0 For I = M to N Sum = Sum + X(I) Next I
and the following Python program:sum := 0; for i := m to n do sum := sum+x[i]
sum_ = 0 for n in range(m, n+1):
- using a for-loop
sum_ += nsum_ = sum(range(m, n+1))
- using built-in functions
APL allows a concise notation for summation via the "reduce" operator: [SUM \leftarrow +/ X]
Special cases
It is possible to add fewer than 2 numbers:- If you add the single term x, then the sum is x.
- If you add zero terms, then the sum is zero, because zero is the identity for addition. This is known as the empty sum.
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:
- [ \int_^ f(s)\, ds \le \sum_^ f(i) \le \int_^ f(s)\, ds.]
For functions that are integrable on the interval [[a,b]], the Riemann sum can be used as an approximation of the definite integral. For example, the following formula is the left Riemann sum with equal partitioning of the interval:
- [ \frac\sum_^ f\left(a+i\fracn\right)\approx \int_a^b f(x)\,dx.]
Identities
The following are useful identities:- [\sum_^n x = nx]
- [\sum_^n i = \frac]
- :*[\sum_^n i = \frac ] (see arithmetic series)
Growth rates
The following are useful approximations (using theta notation):- [\sum_^n i^c = \Theta(n^)] for real c greater than -1
- [\sum_^n \frac = \Theta(\log n)]
- [\sum_^n c^i = \Theta(c^n)] for real c greater than 1
- [\sum_^n \log(i)^c = \Theta(n \cdot \log(n)^)] for nonnegative real c
- [\sum_^n \log(i)^c \cdot i^d = \Theta(n^ \cdot \log(n)^)] for nonnegative real c, d
- [\sum_^n \log(i)^c \cdot i^d \cdot b^i = \Theta (n^d \cdot \log(n)^c \cdot b^n)] for nonnegative real b > 1, c, d
See also
- Musical set theory#Sums
- Einstein notation
- Checksum
- Series (mathematics)
External links
- [Summation] on PlanetMath
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
