# e (mathematical constant)

Short description: 2.71828..., base of natural logarithms Graph of the equation y = 1/x. Here, e is the unique number larger than 1 that makes the shaded area under the curve equal to 1.

The number e, also known as Euler's number, is a mathematical constant approximately equal to 2.71828 that can be characterized in many ways. It is the base of natural logarithms. It is the limit of (1 + 1/n)n as n approaches infinity, an expression that arises in the study of compound interest. It can also be calculated as the sum of the infinite series $\displaystyle{ e = \sum\limits_{n = 0}^{\infty} \frac{1}{n!} = 1 + \frac{1}{1} + \frac{1}{1\cdot 2} + \frac{1}{1\cdot 2\cdot 3} + \cdots. }$

It is also the unique positive number a such that the graph of the function y = ax has a slope of 1 at x = 0.

The (natural) exponential function f(x) = ex is the unique function f that equals its own derivative and satisfies the equation f(0) = 1; hence one can also define e as f(1). The natural logarithm, or logarithm to base e, is the inverse function to the natural exponential function. The natural logarithm of a number k > 1 can be defined directly as the area under the curve y = 1/x between x = 1 and x = k, in which case e is the value of k for which this area equals 1 (see image). There are various other characterizations.

The number e is sometimes called Euler's number (not to be confused with Euler's constant $\displaystyle{ \gamma }$)—after the Swiss mathematician Leonhard Euler—or Napier's constant—after John Napier. The constant was discovered by the Swiss mathematician Jacob Bernoulli while studying compound interest.

The number e is of great importance in mathematics, alongside 0, 1, π, and i. All five appear in one formulation of Euler's identity $\displaystyle{ e^{i\pi}+1=0 }$ and play important and recurring roles across mathematics. Like the constant π, e is irrational (it cannot be represented as a ratio of integers) and transcendental (it is not a root of any non-zero polynomial with rational coefficients). To 50 decimal places, the value of e is:

2.71828182845904523536028747135266249775724709369995....

## History

The first references to the constant were published in 1618 in the table of an appendix of a work on logarithms by John Napier. However, this did not contain the constant itself, but simply a list of logarithms to the base $\displaystyle{ e }$. It is assumed that the table was written by William Oughtred.

The constant itself was introduced by Jacob Bernoulli in 1683, for solving the problem of continuous compounding of interest. In his solution, the constant e occurs as the limit $\displaystyle{ \lim_{n\to \infty} \left( 1 + \frac{1}{n} \right)^n, }$ where n represents the fraction of the year on which the compound interest is evaluated (for example, $\displaystyle{ n=12 }$ for a month).

The first known use of the constant,[clarification needed] represented by the letter b, was in correspondence from Gottfried Leibniz to Christiaan Huygens in 1690 and 1691.

Leonhard Euler started to use the letter e for the constant in 1727 or 1728, in an unpublished paper on explosive forces in cannons, and in a letter to Christian Goldbach on 25 November 1731. The first appearance of e in a printed publication was in Euler's Mechanica (1736). It is unknown why Euler chose the letter e. Although some researchers used the letter c in the subsequent years,[citation needed] the letter e was more common and eventually became standard.

## Applications

### Compound interest The effect of earning 20% annual interest on an initial $1,000 investment at various compounding frequencies. The limiting curve on top is the graph $\displaystyle{ y=1000e^{0.2t} }$, where y is in dollars, t in years, and 0.2 = 20%. Jacob Bernoulli discovered this constant in 1683, while studying a question about compound interest: An account starts with$1.00 and pays 100 percent interest per year. If the interest is credited once, at the end of the year, the value of the account at year-end will be $2.00. What happens if the interest is computed and credited more frequently during the year? If the interest is credited twice in the year, the interest rate for each 6 months will be 50%, so the initial$1 is multiplied by 1.5 twice, yielding $1.00 × 1.52 =$2.25 at the end of the year. Compounding quarterly yields $1.00 × 1.254 =$2.44140625, and compounding monthly yields $1.00 × (1 + 1/12)12 =$2.613035.... If there are n compounding intervals, the interest for each interval will be 100%/n and the value at the end of the year will be $1.00 × (1 + 1/n)n. Bernoulli noticed that this sequence approaches a limit (the force of interest) with larger n and, thus, smaller compounding intervals. Compounding weekly (n = 52) yields$2.692596..., while compounding daily (n = 365) yields $2.714567... (approximately two cents more). The limit as n grows large is the number that came to be known as e. That is, with continuous compounding, the account value will reach$2.718281828...

More generally, an account that starts at \$1 and offers an annual interest rate of R will, after t years, yield eRt dollars with continuous compounding.

(Note here that R is the decimal equivalent of the rate of interest expressed as a percentage, so for 5% interest, R = 5/100 = 0.05.)

### Bernoulli trials Graphs of probability P of not observing independent events each of probability 1/n after n Bernoulli trials, and 1 − P  vs n ; it can be observed that as n increases, the probability of a 1/n-chance event never appearing after n tries rapidly converges to 1/e.

The number e itself also has applications in probability theory, in a way that is not obviously related to exponential growth. Suppose that a gambler plays a slot machine that pays out with a probability of one in n and plays it n times. As n increases, the probability that gambler will lose all n bets approaches 1/e. For n = 20, this is already approximately 1/2.789509....

This is an example of a Bernoulli trial process. Each time the gambler plays the slots, there is a one in n chance of winning. Playing n times is modeled by the binomial distribution, which is closely related to the binomial theorem and Pascal's triangle. The probability of winning k times out of n trials is:

$\displaystyle{ \binom{n}{k} \left(\frac{1}{n}\right)^k\left(1 - \frac{1}{n}\right)^{n-k}. }$

In particular, the probability of winning zero times (k = 0) is

$\displaystyle{ \left(1 - \frac{1}{n}\right)^{n}. }$

The limit of the above expression, as n tends to infinity, is precisely 1/e.

### Standard normal distribution

Main page: Normal distribution

The normal distribution with zero mean and unit standard deviation is known as the standard normal distribution, given by the probability density function

$\displaystyle{ \phi(x) = \frac{1}{\sqrt{2\pi}} e^{-\frac{1}{2} x^2}. }$

The constraint of unit variance (and thus also unit standard deviation) results in the 1/2 in the exponent, and the constraint of unit total area under the curve $\displaystyle{ \phi(x) }$ results in the factor $\displaystyle{ \textstyle 1/\sqrt{2\pi} }$.[proof] This function is symmetric around x = 0, where it attains its maximum value $\displaystyle{ \textstyle 1/\sqrt{2\pi} }$, and has inflection points at x = ±1.

### Derangements

Main page: Derangement

Another application of e, also discovered in part by Jacob Bernoulli along with Pierre Remond de Montmort, is in the problem of derangements, also known as the hat check problem: n guests are invited to a party and, at the door, the guests all check their hats with the butler, who in turn places the hats into n boxes, each labelled with the name of one guest. But the butler has not asked the identities of the guests, and so puts the hats into boxes selected at random. The problem of de Montmort is to find the probability that none of the hats gets put into the right box. This probability, denoted by $\displaystyle{ p_n\! }$, is:

$\displaystyle{ p_n = 1 - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \cdots + \frac{(-1)^n}{n!} = \sum_{k = 0}^n \frac{(-1)^k}{k!}. }$

As n tends to infinity, pn approaches 1/e. Furthermore, the number of ways the hats can be placed into the boxes so that none of the hats are in the right box is n!/e, rounded to the nearest integer, for every positive n.

### Optimal planning problems

The maximum value of $\displaystyle{ \sqrt[x]{x} }$ occurs at $\displaystyle{ x = e }$. Equivalently, for any value of the base b > 1, it is the case that the maximum value of $\displaystyle{ x^{-1}\log_b x }$ occurs at $\displaystyle{ x = e }$ (Steiner's problem, discussed below).

This is useful in the problem of a stick of length L that is broken into n equal parts. The value of n that maximizes the product of the lengths is then either

$\displaystyle{ n = \left\lfloor \frac{L}{e} \right\rfloor }$ or $\displaystyle{ \left\lceil \frac{L}{e} \right\rceil. }$

The quantity $\displaystyle{ x^{-1}\log_b x }$ is also a measure of information gleaned from an event occurring with probability $\displaystyle{ 1/x }$, so that essentially the same optimal division appears in optimal planning problems like the secretary problem.

### Asymptotics

The number e occurs naturally in connection with many problems involving asymptotics. An example is Stirling's formula for the asymptotics of the factorial function, in which both the numbers e and π appear: $\displaystyle{ n! \sim \sqrt{2\pi n} \left(\frac{n}{e}\right)^n. }$

As a consequence, $\displaystyle{ e = \lim_{n\to\infty} \frac{n}{\sqrt[n]{n!}} . }$

## In calculus The graphs of the functions xax are shown for a = 2 (dotted), a = e (blue), and a = 4 (dashed). They all pass through the point (0,1), but the red line (which has slope 1) is tangent to only ex there. The value of the natural log function for argument e, i.e. ln e, equals 1.

The principal motivation for introducing the number e, particularly in calculus, is to perform differential and integral calculus with exponential functions and logarithms. A general exponential function y = ax has a derivative, given by a limit:

\displaystyle{ \begin{align} \frac{d}{dx}a^x &= \lim_{h\to 0}\frac{a^{x+h} - a^x}{h} = \lim_{h\to 0}\frac{a^x a^h - a^x}{h} \\ &= a^x \cdot \left(\lim_{h\to 0}\frac{a^h - 1}{h}\right). \end{align} }

The parenthesized limit on the right is independent of the variable x. Its value turns out to be the logarithm of a to base e. Thus, when the value of a is set to e, this limit is equal to 1, and so one arrives at the following simple identity:

$\displaystyle{ \frac{d}{dx}e^x = e^x. }$

Consequently, the exponential function with base e is particularly suited to doing calculus. Choosing e (as opposed to some other number as the base of the exponential function) makes calculations involving the derivatives much simpler.

Another motivation comes from considering the derivative of the base-a logarithm (i.e., loga x), for x > 0:

\displaystyle{ \begin{align} \frac{d}{dx}\log_a x &= \lim_{h\to 0}\frac{\log_a(x + h) - \log_a(x)}{h} \\ &= \lim_{h\to 0}\frac{\log_a(1 + h/x)}{x\cdot h/x} \\ &= \frac{1}{x}\log_a\left(\lim_{u\to 0}(1 + u)^\frac{1}{u}\right) \\ &= \frac{1}{x}\log_a e, \end{align} }

where the substitution u = h/x was made. The base-a logarithm of e is 1, if a equals e. So symbolically,

$\displaystyle{ \frac{d}{dx}\log_e x = \frac{1}{x}. }$

The logarithm with this special base is called the natural logarithm, and is denoted as ln; it behaves well under differentiation since there is no undetermined limit to carry through the calculations.

Thus, there are two ways of selecting such special numbers a. One way is to set the derivative of the exponential function ax equal to ax, and solve for a. The other way is to set the derivative of the base a logarithm to 1/x and solve for a. In each case, one arrives at a convenient choice of base for doing calculus. It turns out that these two solutions for a are actually the same: the number e.

### Alternative characterizations The five colored regions are of equal area, and define units of hyperbolic angle along the hyperbola $\displaystyle{ xy=1. }$

Other characterizations of e are also possible: one is as the limit of a sequence, another is as the sum of an infinite series, and still others rely on integral calculus. So far, the following two (equivalent) properties have been introduced:

1. The number e is the unique positive real number such that $\displaystyle{ \frac{d}{dt}e^t = e^t }$.
2. The number e is the unique positive real number such that $\displaystyle{ \frac{d}{dt} \log_e t = \frac{1}{t} }$.

The following four characterizations can be proved to be equivalent:

1. The number e is the limit
$\displaystyle{ e = \lim_{n\to\infty} \left( 1 + \frac{1}{n} \right)^n }$

Similarly:

$\displaystyle{ e = \lim_{t\to 0} \left( 1 + t \right)^{\frac{1}{t}} }$
2. The number e is the sum of the infinite series
$\displaystyle{ e = \sum_{n = 0}^\infty \frac{1}{n!} = \frac{1}{0!} + \frac{1}{1!} + \frac{1}{2!} + \frac{1}{3!} + \frac{1}{4!} + \cdots , }$
where n! is the factorial of n.
3. The number e is the unique positive real number such that
$\displaystyle{ \int_1^e \frac{1}{t} \, dt = 1. }$
4. If f(t) is an exponential function, then the quantity $\displaystyle{ \tau = f(t)/f'(t) }$ is a constant, sometimes called the time constant (it is the reciprocal of the exponential growth constant or decay constant). The time constant is the time it takes for the exponential function to increase by a factor of e: $\displaystyle{ f(t+\tau) = e f(t) }$.

## Properties

### Calculus

As in the motivation, the exponential function ex is important in part because it is the unique function (up to multiplication by a constant K) that is equal to its own derivative:

$\displaystyle{ \frac{d}{dx}Ke^x = Ke^x, }$

and therefore its own antiderivative as well:

$\displaystyle{ \int Ke^x\,dx = Ke^x + C . }$

Equivalently, the family of functions

$\displaystyle{ y(x) = Ke^x }$

where K is any real or complex number, is the solution to the differential equation

$\displaystyle{ y' = y . }$

### Inequalities Exponential functions y = 2x and y = 4x intersect the graph of y = x + 1, respectively, at x = 1 and x = -1/2. The number e is the unique base such that y = ex intersects only at x = 0. We may infer that e lies between 2 and 4.

The number e is the unique real number such that $\displaystyle{ \left(1 + \frac{1}{x}\right)^x \lt e \lt \left(1 + \frac{1}{x}\right)^{x+1} }$ for all positive x.

Also, we have the inequality $\displaystyle{ e^x \ge x + 1 }$ for all real x, with equality if and only if x = 0. Furthermore, e is the unique base of the exponential for which the inequality axx + 1 holds for all x. This is a limiting case of Bernoulli's inequality.

### Exponential-like functions

Steiner's problem asks to find the global maximum for the function

$\displaystyle{ f(x) = x^\frac{1}{x} . }$

This maximum occurs precisely at x = e. (One can check that the derivative of ln f(x) is zero only for this value of x.)

Similarly, x = 1/e is where the global minimum occurs for the function

$\displaystyle{ f(x) = x^x . }$

The infinite tetration

$\displaystyle{ x^{x^{x^{\cdot^{\cdot^{\cdot}}}}} }$ or $\displaystyle{ {^\infty}x }$

converges if and only if x ∈ [ee, e1/e] ≈ [0.06599, 1.4447] , shown by a theorem of Leonhard Euler.[non-primary source needed]

### Number theory

The real number e is irrational. Euler proved this by showing that its simple continued fraction expansion is infinite. (See also Fourier's proof that e is irrational.)

Furthermore, by the Lindemann–Weierstrass theorem, e is transcendental, meaning that it is not a solution of any non-zero polynomial equation with rational coefficients. It was the first number to be proved transcendental without having been specifically constructed for this purpose (compare with Liouville number); the proof was given by Charles Hermite in 1873.

It is conjectured that e is normal, meaning that when e is expressed in any base the possible digits in that base are uniformly distributed (occur with equal probability in any sequence of given length).

It is conjectured that e is not a Kontsevich-Zagier period.

### Complex numbers

The exponential function ex may be written as a Taylor series

$\displaystyle{ e^{x} = 1 + {x \over 1!} + {x^{2} \over 2!} + {x^{3} \over 3!} + \cdots = \sum_{n=0}^{\infty} \frac{x^n}{n!}. }$

Because this series is convergent for every complex value of x, it is commonly used to extend the definition of ex to the complex numbers. This, with the Taylor series for sin and cos x, allows one to derive Euler's formula:

$\displaystyle{ e^{ix} = \cos x + i\sin x , }$

which holds for every complex x. The special case with x = π is Euler's identity:

$\displaystyle{ e^{i\pi} + 1 = 0 , }$

from which it follows that, in the principal branch of the logarithm,

$\displaystyle{ \ln (-1) = i\pi . }$

Furthermore, using the laws for exponentiation,

$\displaystyle{ (\cos x + i\sin x)^n = \left(e^{ix}\right)^n = e^{inx} = \cos (nx) + i \sin (nx) , }$

which is de Moivre's formula.

The expressions of cos x and sin x in terms of the exponential function can be deduced from the Taylor series: $\displaystyle{ \cos x = \frac{e^{ix} + e^{-ix}}{2} , \qquad \sin x = \frac{e^{ix} - e^{-ix}}{2i}. }$

The expression $\displaystyle{ \cos x + i \sin x }$ is sometimes abbreviated as cis(x).

## Representations

The number e can be represented in a variety of ways: as an infinite series, an infinite product, a continued fraction, or a limit of a sequence. Two of these representations, often used in introductory calculus courses, are the limit

$\displaystyle{ e=\lim_{n\to\infty}\left(1 + \frac{1}{n}\right)^n, }$

given above, and the series

$\displaystyle{ e=\sum_{n=0}^\infty \frac{1}{n!} }$

obtained by evaluating at x = 1 the above power series representation of ex.

Less common is the continued fraction

$\displaystyle{ e = [2; 1, 2, 1, 1, 4, 1, 1, 6, 1, ..., 1, 2n, 1, ...], }$

which written out looks like

$\displaystyle{ e = 2 + \cfrac{1} {1 + \cfrac{1} {2 + \cfrac{1} {1 + \cfrac{1} {1 + \cfrac{1} {4 + \cfrac{1} {1 + \cfrac{1} {1 + \ddots} } } } } } } . }$

This continued fraction for e converges three times as quickly:[citation needed]

$\displaystyle{ e = 1 + \cfrac{2}{1 + \cfrac{1}{6 + \cfrac{1}{10 + \cfrac{1}{14 + \cfrac{1}{18 + \cfrac{1}{22 + \cfrac{1}{26 + \ddots}}}}}}}. }$

Many other series, sequence, continued fraction, and infinite product representations of e have been proved.

### Stochastic representations

In addition to exact analytical expressions for representation of e, there are stochastic techniques for estimating e. One such approach begins with an infinite sequence of independent random variables X1, X2..., drawn from the uniform distribution on [0, 1]. Let V be the least number n such that the sum of the first n observations exceeds 1:

$\displaystyle{ V = \min\left\{ n \mid X_1 + X_2 + \cdots + X_n \gt 1 \right\}. }$

Then the expected value of V is e: E(V) = e.

### Known digits

The number of known digits of e has increased substantially during the last decades. This is due both to the increased performance of computers and to algorithmic improvements.

Number of known decimal digits of e
Date Decimal digits Computation performed by
1690 1 Jacob Bernoulli
1714 13 Roger Cotes
1748 23 Leonhard Euler
1853 137 William Shanks
1871 205 William Shanks
1884 346 J. Marcus Boorman
1949 2,010 John von Neumann (on the ENIAC)
1961 100,265 Daniel Shanks and John Wrench
1978 116,000 Steve Wozniak on the Apple II

Since around 2010, the proliferation of modern high-speed desktop computers has made it feasible for most amateurs to compute trillions of digits of e within acceptable amounts of time. On Dec 5, 2020, a record-setting calculation was made, giving e to 31,415,926,535,897 (approximately π×1013) digits.

## Computing the digits

One way to compute the digits of e is with the series $\displaystyle{ e=\sum_{k=0}^\infty \frac{1}{k!}. }$

A faster method involves two recursive function $\displaystyle{ p(a,b) }$ and $\displaystyle{ q(a,b) }$. The functions are defined as $\displaystyle{ \binom{p(a,b)}{q(a,b)}= \begin{cases} \binom{1}{b}, & \text{if }b=a+1\text{,} \\ \binom{p(a,m)q(m,b)+p(m,b)}{q(a,m)q(m,b)}, & \text{otherwise, where }m=\lfloor(a+b)/2\rfloor \end{cases} }$.

The expression $\displaystyle{ 1+\frac{p(0,n)}{q(0,n)} }$ produces the digits of e.[clarification needed] This method uses binary splitting to compute e with fewer single-digit arithmetic operations and reduced bit complexity. Combining this with Fast Fourier Transform-based methods of multiplying integers makes computing the digits very fast.

## In computer culture

During the emergence of internet culture, individuals and organizations sometimes paid homage to the number e.

In an early example, the computer scientist Donald Knuth let the version numbers of his program Metafont approach e. The versions are 2, 2.7, 2.71, 2.718, and so forth.

In another instance, the IPO filing for Google in 2004, rather than a typical round-number amount of money, the company announced its intention to raise 2,718,281,828 USD, which is e billion United States dollar rounded to the nearest dollar.

Google was also responsible for a billboard that appeared in the heart of Silicon Valley, and later in Cambridge, Massachusetts; Seattle, Washington; and Austin, Texas . It read "{first 10-digit prime found in consecutive digits of e}.com". The first 10-digit prime in e is 7427466391, which starts at the 99th digit. Solving this problem and visiting the advertised (now defunct) website led to an even more difficult problem to solve, which consisted in finding the fifth term in the sequence 7182818284, 8182845904, 8747135266, 7427466391. It turned out that the sequence consisted of 10-digit numbers found in consecutive digits of e whose digits summed to 49. The fifth term in the sequence is 5966290435, which starts at the 127th digit. Solving this second problem finally led to a Google Labs webpage where the visitor was invited to submit a résumé.