Exponentiation is a mathematical operation, written an, involving two numbers, the base a and the exponent n. When n is a positive integer, exponentiation corresponds to repeated multiplication:
just as multiplication by a whole number corresponds to repeated addition:
The power an can also be defined when the exponent n is a negative integer. When the base a is a positive real number, exponentiation is defined for real and even complex exponents n. The special exponential function ex is fundamental for this definition. It enables the functions of trigonometry to be expressed by exponentiation. However, when the base a is not a positive real number and the exponent n is not an integer, then an cannot be defined as a unique continuous function of a.
Exponentiation where the exponent is a matrix is used for solving systems of linear differential equations.
Exponentiation is used pervasively in many other fields as well, including economics, biology, chemistry, physics, and computer science, with applications such as compound interest, population growth, chemical reaction kinetics, wave behavior, and public key cryptography.
a3 = a·a·a is called the cube, because the volume of a cube with side-length a is a3.
So 32 is pronounced "three squared", and 23 is "two cubed".
The exponent says how many copies of the base are multiplied together. For example, 35 = 3·3·3·3·3 = 243. The base 3 appears 5 times in the repeated multiplication, because the exponent is 5. Here, 3 is the base, 5 is the exponent, and 243 is the power or, more specifically, the fifth power of 3 or 3 raised to the fifth power.
The word "raised" is usually omitted, and most often "power" as well, so 35 is typically pronounced "three to the fifth" or "three to the five".
Formally, powers with positive integer exponents may be defined by the initial condition a1 = a and the recurrence relation an+1 = a·an.
Also note that 35 = 3·34. Also 34 = 3·33. Continuing this trend, we should have
Therefore we define 30 = 1 so that the above equality holds. This leads to the following rule:
For non-negative integers n and m, the power nm equals the cardinality of the set of m-tuples from an n-element set, or the number of m-letter words from an n-letter alphabet.
See also exponentiation over sets.
Thus:
A negative integer exponent can also be seen as repeated division by the base. Thus .
While addition and multiplication are commutative (for example, 2+3 = 5 = 3+2 and 2·3 = 6 = 3·2), exponentiation is not commutative: 23 = 8, but 32 = 9.
Similarly, while addition and multiplication are associative (for example, (2+3)+4 = 9 = 2+(3+4) and (2·3)·4 = 24 = 2·(3·4), exponentiation is not associative either: 23 to the 4th power is 84 or 4096, but 2 to the 34 power is 281 or 2,417,851,639,229,258,349,412,352. Without parentheses to modify the order of calculation, the order is usually understood to be top-down, not bottom-up:
Exponentiation with base 10 is used in scientific notation to describe large or small numbers. For instance, 299,792,458 (the speed of light in a vacuum, in meters per second) can be written as 2.99792458·108 and then approximated as 2.998·108.
SI prefixes based on powers of 10 are also used to describe small or large quantities. For example, the prefix kilo means 103 = 1000, so a kilometre is 1000 metres.
Powers of 2 are important in set theory since a set with n members has a power set, or set of all subsets of the original set, with 2n members.
The negative powers of 2 are commonly used, and the first two have special names: half, and quarter.
Integer powers of 2 can be expressed, in the base two (binary) number system, as the number one, either followed or preceded by a number of zeroes determined by the sign and magnitude of the exponent. For example, in binary, two to the power of three = 1000 (binary).
If the exponent is negative, the power of zero (0n, where n < 0) remains undefined, because division by zero is implied.
If the exponent is zero, some authors define 00=1, whereas others leave it undefined, as discussed below.
If the exponent is even, the power of minus one is one: (−1)2n = 1.
If the exponent is odd, the power of minus one is minus one: (−1)2n+1 = −1.
Another popular formula is the power series
Raising a positive real number to a power that is not an integer can be accomplished in two ways.
The identities and properties shown above are true for non-integer exponents as well.
An nth root of a number a is a number b such that bn = a.
When referring to the n-th root of a real number a it is assumed that what is desired is the principal n-th root of the number. If a is a real number, and n is a positive integer, then the unique real solution with the same sign as a to the equation
For example: 41/2 = 2, 81/3 = 2, (−8)1/3 = −2.
Note that if n is even, negative numbers do not have a principal n-th root.
Exponentiation with a rational exponent m/n can be defined as
For example, 82/3 = 4.
Since any real number can be approximated by rational numbers, exponentiation to an arbitrary real exponent k can be defined by continuity with the rule
For example, if
The natural logarithm ln(x) is the inverse of the exponential function ex. It is defined for every positive real number b and satisfies the equation
Assuming bx is already defined, logarithm and exponent rules give the equality
This equality can be used to define exponentiation with any positive real base b as
This definition of the real number power bx agrees with the definition given above using rational exponents and continuity. The definition of exponentiation using logarithms is more common in the context of complex numbers, as discussed below.
The logarithm method cannot be used to define ak as a real number when a < 0 because ex is nonnegative for every real number x, so log(a) cannot be a real number.
The rational exponent method cannot be used for negative values of a because it relies on continuity. The function f(r) = ar has a unique continuous extension from the rational numbers to the real numbers for each a > 0. But when a < 0, the function f is not even continuous on the set of rational numbers r for which it is defined.
For example, take a = −1. The nth root of −1 is −1 for every odd natural number n. So if n is an odd positive integer, (−1)(m/n) = −1 if m is odd, and (−1)(m/n) = 1 if m is even. Thus the set of rational numbers q for which −1q = 1 is dense in the rational numbers, as is the set of q for which −1q = −1. This means that the function (−1)q is not continuous at any rational number q where it is defined.
The geometric interpretation of the operations on complex numbers and the definition of powers of e is the clue to understanding eix for real x. Consider the right triangle For big values of n the triangle is almost a circular sector with a small central angle equal to x/n radians. The triangles are mutually similar for all values of k. So for large values of n the limiting point of is the point on the unit circle whose angle from the positive real axis is x radians. The polar coordinates of this point are and the cartesian coordinates are (cos x, sin x). So and this is Euler's formula, connecting algebra to trigonometry by means of complex numbers.
The solutions to the equation ez = 1 are the integer multiples of 2iπ:
More simply: eiπ = −1; ex + iy = ex(cos y + i sin y).
Historically, cosine and sine were defined geometrically before the invention of complex numbers. The above formula reduces the complicated formulas for trigonometric functions of a sum into the simple exponentiation formula
If a is a positive real number, and z is any complex number, the power az is defined as ez·ln(a), where x = ln(a) is the unique real solution to the equation ex = a. So the same method working for real exponents also works for complex exponents. For example:
Integer powers of complex numbers are defined by repeated multiplication or division as above. Complex powers of positive reals are defined via ex as above. These are continuous functions. Trying to extend these functions to the general case of non-integer powers of complex numbers that are not positive reals leads to difficulties. Either we define discontinuous functions or multivalued functions. None of these options are entirely satisfactory.
The rational power of a complex number must be the solution to an algebraic equation. For example, w = z1/2 must be a solution to the equation w2 = z. But if w is a solution, then so is −w, because (−1)2 = 1 . So the algebraic equation w2 = z is not sufficient for defining z1/2. Choosing one of the two solutions as the principal value of z1/2 leaves us with a function that is not continuous, and the usual rules for manipulating powers lead us astray.
One solution, z = log a, to the equation ez = a, is called the principal value of the complex logarithm. It is the unique solution whose imaginary part lies in the interval (−π, π]. For example, log 1 = 0, log(−1) = πi, log i = πi/2, and log(−i) = −πi/2. The principal value of the logarithm is known as a branch of the logarithm; other branches can be specified by choosing a different range for the imaginary part of the logarithm. The boundary between branches is known as a branch cut. The principal value has a branch cut extending from the origin along the negative real axis, and is discontinuous at each point of the branch cut.
The general complex power ab of a nonzero complex number a is defined as
When the exponent is a rational number the power z = an/m is a solution to the equation zm = an .
The computation of complex powers is facilitated by converting the base a to polar form, as described in detail below.
A complex number a such that an = 1 for a positive integer n is an nth root of unity. Geometrically, the nth roots of unity lie on the unit circle of the complex plane at the vertices of a regular n-gon with one vertex on the real number 1.
If zn = 1 but zk ≠ 1 for all natural numbers k such that 0 < k < n, then z is called a primitive nth root of unity. The negative unit −1 is the only primitive square root of unity. The imaginary unit i is one of the two primitive 4-th roots of unity; the other one is −i.
The number e2πi (1/n) is the primitive nth root of unity with the smallest positive complex argument. (It is sometimes called the principal nth root of unity, although this terminology is not universal and should not be confused with the principal value of n√1, which is 1.)
The other nth roots of unity are given by
It is conventional in mathematics to define a1/n as the principal value of the root. If a is a positive real number, it is also conventional to select a positive real number as the principal value of the root a1/n. For general complex numbers, the nth root with the smallest argument is often selected as the principal value of the nth root operation, as with principal values of roots of unity.
The set of nth roots of a complex number a is obtained by multiplying the principal value a1/n by each of the nth roots of unity. For example, the fourth roots of 16 are 2, −2, 2i, and −2i, because the principal value of the fourth root of 16 is 2 and the fourth roots of unity are 1, −1, i, and −i.
In order to compute the complex power ab, write a in polar form:
The following examples use the principal value, the branch cut which causes θ to be in the interval (−π, π]. To compute ii, write i in polar and Cartesian forms:
Similarly, to find (−2)3 + 4i, compute the polar form of −2,
The value of a complex power depends on the branch used. For example, if the polar form i = 1ei(5π/2) is used to compute i i, the power is found to be e−5π/2; the principal value of i i, computed above, is e−π/2.
Identities for powers and logarithms that hold for positive real numbers may fail when the positive real numbers are replaced by arbitrary complex numbers. There is no method to define complex powers or the complex logarithm as complex-valued functions while preserving the identities these operations possess in the positive real numbers.
An example involving logarithms concerns the rule log(ab) = b·log a, which holds whenever a is a positive real number and b is a real number. The following calculation shows that this identity does not hold in general for the principal value of the complex logarithm when a is not a positive real number:
An example involving power rules concerns the identities
These examples illustrate that complex powers and logarithms do not behave the same way as their real counterparts, and so caution is required when working with the complex versions of these operations.
A particularly confusing paradox involving powers of complex numbers was devised by Clausen
The evaluation of 00 presents a problem, because different mathematical reasoning leads to different results. The best choice for its value — and indeed, whether or not to consider 00 indeterminate (i.e., undefined) — depends on the context. According to Benson (1999), "The choice whether to define 00 is based on convenience, not on correctness. There are two principal treatments in practice, one from discrete mathematics and the other from analysis.
In many settings, especially in foundations and combinatorics, 00 is defined to be 1. This definition arises in foundational treatments of the natural numbers as finite cardinals, and is useful for shortening combinatorial identities and removing special cases from theorems, as illustrated below. In many other settings, 00 is left undefined. In calculus, 00 is an indeterminate form, which must be analyzed rather than evaluated. In general, mathematical analysis treats 00 as undefined in order that the exponential function be continuous.
Justifications for defining 00 = 1 include:
In some contexts where the exponent varies continuously, it may be best to treat 00 as an ill-defined quantity. Justifications for treating it as undefined include:
System.Math.Pow treats 00 to be 1. Microsoft Excel issues an error when it evaluates 00.Microsoft Windows' Calculator and Google search when used for its calculator function evaluate 00 to 1.
Maple simplifies a0 to 1 and 0a to 0, even if no constraints are placed on a, and evaluates 00 to 1.
Mathematica simplifies a0 to 1, even if no constraints are placed on a. It does not simplify 0a, and it takes 00 to be an indeterminate form.
In general, the number of multiplication operations required to compute an can be reduced to Θ(log n) by using exponentiation by squaring or (more generally) addition-chain exponentiation. Finding the minimal sequence of multiplications (the minimal-length addition chain for the exponent) for an is a difficult problem for which no efficient algorithms are currently known, but many reasonably efficient heuristic algorithms are available.
However, for historical reasons, a special syntax applies to the trigonometric functions: a positive exponent applied to the function's abbreviation means that the result is raised to that power, while an exponent of −1 denotes the inverse function. That is, sin2x is just a shorthand way to write (sin x)2 without using parentheses, whereas sin−1x refers to the inverse function of the sine, also called arcsin x. There is no need for a shorthand for the reciprocals of trigonometric functions since each has its own name and abbreviation, for example 1 / sin(x) = (sin x)−1 is csc x. A similar convention applies to logarithms, where log2(x) = (log (x))2 and there is no common abbreviation for log(log(x)).
Let X be a set with a power-associative binary operation, which we will write multiplicatively. In this very general situation, we can define xn for any element x of X and any nonzero natural number n, by simply multiplying x by itself n times; by definition, power associativity means that it doesn't matter in which order we perform the multiplications.
Now additionally suppose that the operation has an identity element 1. Then we can define x0 to be equal to 1 for any x. Now xn is defined for any natural number n, including 0.
Finally, suppose that the operation has inverses, and that the multiplication is associative (so that the magma is a group). Then we can define x−n to be the inverse of xn when n is a natural number. Now xn is defined for any integer n and any x in the group.
Exponentiation in this purely algebraic sense satisfies the following laws (whenever both sides are defined):
Here, we use a division slash ("/") to indicate multiplying by an inverse, in order to reserve the symbol x−1 for raising x to the power −1, rather than the inverse of x. However, as one of the laws above states, x−1 is always equal to the inverse of x, so the notation doesn't matter in the end.
If in addition the multiplication operation is commutative (so that the set X is an abelian group), then we have some additional laws:
If we take this whole theory of exponentiation in an algebraic context but write the binary operation additively, then "exponentiation is repeated multiplication" can be reinterpreted as "multiplication is repeated addition". Thus, each of the laws of exponentiation above has an analogue among laws of multiplication.
When one has several operations around, any of which might be repeated using exponentiation, it is common to indicate which operation is being repeated by placing its symbol in the superscript. Thus, x*n is x * ··· * x, while x#n is x # ··· # x, whatever the operations * and # might be.
Superscript notation is also used, especially in group theory, to indicate conjugation. That is, gh = h−1gh, where g and h are elements of some group. Although conjugation obeys some of the same laws as exponentiation, it is not an example of repeated multiplication in any sense. A quandle is an algebraic structure in which these laws of conjugation play a central role.
If n is a natural number and A is an arbitrary set, the expression An is often used to denote the set of ordered n-tuples of elements of A. This is equivalent to letting An denote the set of functions from the set {0, 1, 2, ..., n−1} to the set A; the n-tuple (a0, a1, a2, ..., an−1) represents the function that sends i to ai.
For an infinite cardinal number κ and a set A, the notation Aκ is also used to denote the set of all functions from a set of size κ to A. This is sometimes written κA to distinguish it from cardinal exponentiation, defined below.
This generalized exponential can also be defined for operations on sets or for sets with extra structure. For example, in linear algebra, it makes sense to index direct sums of vector spaces over arbitrary index sets. That is, we can speak of
If the base of the exponentiation operation is a set, the exponentiation operation is the Cartesian product unless otherwise stated. Since multiple Cartesian products produce an n-tuple, which can be represented by a function on a set of appropriate cardinality, SN becomes simply the set of all functions from N to S in this case:
In set theory, there are exponential operations for cardinal and ordinal numbers.
If κ and λ are cardinal numbers, the expression κλ represents the cardinality of the set of functions from any set of cardinality λ to any set of cardinality κ. If κ and λ are finite then this agrees with the ordinary exponential operation. For example, the set of 3-tuples of elements from a 2-element set has cardinality 8.
Exponentiation of cardinal numbers is distinct from exponentiation of ordinal numbers, which is defined by a limit process. In the ordinal numbers, exponentiation is defined by transfinite induction. For ordinals α and β, the exponential αβ is the supremum of the ordinal product αγα over all γ < β.
In Bash, C, C++, C#, Java, JavaScript, Perl, PHP, Python and Ruby, the symbol ^ represents bitwise XOR. In Pascal, it represents indirection.
Another historical synonym, involution, is now rare and should not be confused with its more common meaning.