The exponential function is a function in mathematics. The application of this function to a value x is written as exp(x). Equivalently, this can be written in the form ex, where e is a mathematical constant, the base of the natural logarithm, which equals approximately 2.718281828, and is also known as Euler's number.
The exponential function is nearly flat (climbing slowly) for negative values of x, climbs quickly for positive values of x, and equals 1 when x is equal to 0. Its y value always equals the slope at that point.
As a function of the real variable x, the graph of y=ex is always positive (above the x axis) and increasing (viewed left-to-right). It never touches the x axis, although it gets arbitrarily close to it (thus, the x axis is a horizontal asymptote to the graph). Its inverse function, the natural logarithm, ln(x), is defined for all positive x. The exponential function is occasionally referred to as the anti-logarithm. However, this terminology seems to have fallen into disuse in recent times.
Sometimes, especially in the sciences, the term exponential function is more generally used for functions of the form kax, where a, called the base, is any positive real number not equal to one. This article will focus initially on the exponential function with base e, Euler's number.
The importance of the exponential function in the physical sciences stems from its use in mathematical models of exponential growth and exponential decay. If a quantity y depends on another quantity x in such a way that y is multiplied by a constant positive factor a whenever x increases by 1 unit then:
where c is the value of y when x is 0. The general exponential function ax (called the exponential function with basea) is defined using the natural logarithm as follows:
defined for all a > 0, and all real numbers x. Note that once the existence of the function ex has been established for all real numbers, then ax is defined for all positive values of a.
The importance of exponential functions in mathematics and the sciences stems mainly from properties of their derivatives. In particular,
That is, ex is its own derivative and hence is a simple example of a pfaffian function. Functions of the form Kex for constant K are the only functions with that property. (This follows from the Picard-Lindelöf theorem, with y(t) = et, y(0)=K and f(t,y(t)) = y(t).) Other ways of saying the same thing include:
The slope of the graph at any point is the height of the function at that point.
The rate of increase of the function at x is equal to the value of the function at x.
Thus, any exponential function is a constant multiple of its own derivative.
If a variable's growth or decay rate is proportional to its size — as is the case in unlimited population growth (see Malthusian catastrophe), continuously compounded interest, or radioactive decay — then the variable can be written as a constant times an exponential function of time.
Furthermore for any differentiable function f(x), we find, by the chain rule:
Formal definition
The exponential function (in blue), and the sum of the first n+1 terms of the power series on the left (in red).
The exponential function ex can be defined, in a variety of equivalent ways, as an infinite series. In particular it may be defined by a power series:
.
Note that this definition has the form of a Taylor series. Using an alternate definition for the exponential function should lead to the same result when expanded as a Taylor series.
Less commonly, ex is defined as the solution y to the equation
It is also the following limit:
Numerical value
To obtain the numerical value of the exponential function, the infinite series can be rewritten as :
This expression will converge quickly if we can ensure that x is less than one.
To ensure this, we can use the following identity.
Where z is the integer part of x ;
where f is the fractional part of x ;
hence, f is always less than 1 and f and z add up to x.
The value of the constant ez can be calculated beforehand by multiplying e with itself z times.
Computing exp(x) for real x
An even better algorithm can be found as follows.
First, notice that the answer y = ex is usually a floating point number represented by a mantissam and an exponent n so y = m 2n for some integer n and suitably small m. Thus, we get:
Taking log on both sides of the last two gives us:
Thus, we get n as the result of dividing x by log(2) and finding the greatest integer that is not greater than this - that is, the floor function:
Having found n we can then find the fractional part u like this:
The number u is small and in the range 0 ≤ u < ln(2) and so we can use the previously mentioned series to compute m:
Having found m and n we can then produce y by simply combining those two into a floating point number:
Continued fractions for ex
Via Euler's identity:
More advanced techniques are necessary to construct the following:
Setting m = x and n = 2 yields
On the complex plane
Exponential function on the complex plane. The transition from dark to light colors shows that the magnitude of the exponential function is increasing to the right. The periodic horizontal bands indicate that the exponential function is periodic in the imaginary part of its argument.
As in the real case, the exponential function can be defined on the complex plane in several equivalent forms. Some of these definitions mirror the formulas for the real-valued exponential function. Specifically, one can still use the power series definition, where the real value is replaced by a complex one:
Using this definition, it is easy to show why holds in the complex plane.
Another definition extends the real exponential function. First, we state the desired property ex + iy = exeiy. For ex we use the real exponential function. We then proceed by defining only: eiy = cos(y) + isin(y). Thus we use the real definition rather than ignore it.[1]
When considered as a function defined on the complex plane, the exponential function retains the important properties
Extending the natural logarithm to complex arguments yields a multi-valued function, ln(z). We can then define a more general exponentiation:
for all complex numbers z and w. This is also a multi-valued function. The above stated exponential laws remain true if interpreted properly as statements about multi-valued functions. Because it is multi-valued the rule about multiplying exponents for positive real numbers doesn't work in general:
The exponential function maps any line in the complex plane to a logarithmic spiral in the complex plane with the center at the origin. Two special cases might be noted: when the original line is parallel to the real axis, the resulting spiral never closes in on itself; when the original line is parallel to the imaginary axis, the resulting spiral is a circle of some radius.
Plots of the exponential function on the complex plane
z = Re(ex+iy)
z = Im(ex+iy)
z = |ex+iy|
Computation of exp(z) for a complex z
This is fairly straightforward given the formula
Note that the argument y to the trigonometric functions is real.
The definition of the exponential function given above can be used verbatim for every Banach algebra, and in particular for square matrices (in which case the function is called the matrix exponential). In this case we have
is invertible with inverse
the derivative of at the point is that linear map which sends to .
In the context of non-commutative Banach algebras, such as algebras of matrices or operators on Banach or Hilbert spaces, the exponential function is often considered as a function of a real argument:
where A is a fixed element of the algebra and t is any real number. This function has the important properties
On Lie algebras
The exponential map sending a Lie algebra to the Lie group that gave rise to it shares the above properties, which explains the terminology. In fact, since R is the Lie algebra of the Lie group of all positive real numbers with multiplication, the ordinary exponential function for real arguments is a special case of the Lie algebra situation. Similarly, since the Lie algebra M (n, R) of all square real matrices belongs to the Lie group of all invertible square matrices, the exponential function for square matrices is a special case of the Lie algebra exponential map. In general, when the argument of the exponential function is noncommutative, the formula is given explicitly by the Baker-Campbell-Hausdorff formula.
The term double exponential function can have two meanings:
a function with two exponential terms, with different exponents
a function f(x) = aax; this grows even faster than an exponential function; for example, if a = 10: f(−1) = 1.26, f(0) = 10, f(1) = 1010, f(2) = 10100 = googol, ..., f(100) = googolplex.
Factorials grow faster than exponential functions, but slower than double-exponential functions. Fermat numbers, generated by and double Mersenne numbers generated by are examples of double exponential functions.
Similar properties of e and the function ez
The function ez is not in C(z) (ie. not the quotient of two polynomials with complex coefficients).
For n distinct complex numbers {a1,..., an}, {ea1z,..., eanz} is linearly independent over C(z).