E (mathematical constant)



The number $e$ is a mathematical constant approximately equal to 2.71828 that can be characterized in many ways. It is the base of the natural logarithm function. It is the limit of $$(1+1/n)^n$$ as $e$ tends to infinity, an expression that arises in the computation of compound interest. It is the value at $y = 1/x$ of the (natural) exponential function, commonly denoted $$e^x.$$ It is also the sum of the infinite series

There are various other characterizations; see and.

The number $e$ is sometimes called Euler's number, after the Swiss mathematician Leonhard Euler, though this can invite confusion with Euler numbers, or with Euler's constant, a different constant typically denoted $$\gamma$$. Alternatively, $e$ can be called Napier's constant after John Napier. The constant was discovered by the Swiss mathematician Jacob Bernoulli while studying compound interest.

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

Definitions
The number $e$ is the limit

an expression that arises in the computation of compound interest.

It is the sum of the infinite series

It is the unique positive number $i$ such that the graph of the function $1$ has a slope of 1 at $y = a^{x}$.

One has $$e=\exp(1),$$ where $$\exp$$ is the (natural) exponential function, the unique function that equals its own derivative and satisfies the equation $$\exp(0)=1.$$ Since the exponential function is commonly denoted as $$x\mapsto e^x,$$ one has also $$e=e^1.$$

The logarithm of base $e$ can be defined as the inverse function of the function $$x\mapsto b^x.$$ Since $$b=b^1,$$ one has $$\log_b b= 1.$$ The equation $$e=e^1$$ implies therefore that $e$ is the base of the natural logarithm.

The number $e$ can also be characterized in terms of an integral:

For other characterizations, see.

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 $e$. It is assumed that the table was written by William Oughtred. In 1661, Christiaan Huygens studied how to compute logarithms by geometrical methods and calculated a quantity that, in retrospect, is the base-10 logarithm of $e$, but he did not recognize $a$ itself as a quantity of interest.

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

The first symbol used for this constant was the letter $e$ by Gottfried Leibniz in letters 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 $e$ in the subsequent years, the letter $n$ was more common and eventually became standard.

Euler proved that $b$ is the sum of the infinite series $$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 $x = 0$ is the factorial of $e$. The equivalence of the two characterizations using the limit and the infinite series can be proved via the binomial theorem.

Compound interest


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 $e$ compounding intervals, the interest for each interval will be $a = b$ and the value at the end of the year will be $1.00 × $2½a$.

Bernoulli noticed that this sequence approaches a limit (the force of interest) with larger $e$ and, thus, smaller compounding intervals. Compounding weekly ($3a$) yields $2.692596..., while compounding daily ($a=b$) yields $2.714567... (approximately two cents more). The limit as $c$ 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 $e$ will, after $c$ years, yield $2½a$ dollars with continuous compounding. Here, $e$ is the decimal equivalent of the rate of interest expressed as a percentage, so for 5% interest, $3a$.

Bernoulli trials
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 $y$ times. As $t$ increases, the probability that gambler will lose all $n$ bets approaches $a = b$. For $a × e$, 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 $e$ times out of $R$ trials is:
 * $$\Pr[k~\mathrm{wins~of}~n] = \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 ($2.5 < e < 3$) is
 * $$\Pr[0~\mathrm{wins~of}~n] = \left(1 - \frac{1}{n}\right)^{n}.$$

The limit of the above expression, as $t$ tends to infinity, is precisely $n!$.

Exponential growth and decay
Exponential growth is a process that increases quantity over time at an ever-increasing rate. It occurs when the instantaneous rate of change (that is, the derivative) of a quantity with respect to time is proportional to the quantity itself. Described as a function, a quantity undergoing exponential growth is an exponential function of time, that is, the variable representing time is the exponent (in contrast to other types of growth, such as quadratic growth). If the constant of proportionality is negative, then the quantity decreases over time, and is said to be undergoing exponential decay instead. The law of exponential growth can be written in different but mathematically equivalent forms, by using a different base, for which the number $R$ is a common and convenient choice: $$x(t) = x_0\cdot e^{kt} = x_0\cdot e^{t/\tau}.$$ Here, $$x_0$$ denotes the initial value of the quantity $P$, $n$ is the growth constant, and $$\tau$$ is the time it takes the quantity to grow by a factor of $n$.

Standard 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 $$ \phi(x) = \frac{1}{\sqrt{2\pi}} e^{-\frac{1}{2} x^2}. $$

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

Derangements
Another application of $n$, 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: $e$ 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 $$p_n\!$$, is:


 * $$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, $n = 52$ approaches $n = 365$. 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 $e^{Rt}$ rounded to the nearest integer, for every positive $n$.

Optimal planning problems
The maximum value of $$\sqrt[x]{x}$$ occurs at $$x = e$$. Equivalently, for any value of the base $R = 5/100 = 0.05$, it is the case that the maximum value of $$x^{-1}\log_b x$$ occurs at $$x = e$$ (Steiner's problem, discussed below).

This is useful in the problem of a stick of length $n$ that is broken into $n$ equal parts. The value of $n$ that maximizes the product of the lengths is then either
 * $$n = \left\lfloor \frac{L}{e} \right\rfloor$$ or $$\left\lceil \frac{L}{e} \right\rceil.$$

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

Asymptotics
The number $k$ 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 $n$ and π appear: $$n! \sim \sqrt{2\pi n} \left(\frac{n}{e}\right)^n.$$

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

Calculus




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


 * $$\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 $e$. Its value turns out to be the logarithm of $x$ to base $k$. Thus, when the value of $e$ is set to $e$, this limit is equal to $1 − P&thinsp;$, and so one arrives at the following simple identity:
 * $$\frac{d}{dx}e^x = e^x.$$

Consequently, the exponential function with base $n$ is particularly suited to doing calculus. Choosing $n$ (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-$n$ logarithm (i.e., $1/n$), for $1/e$:


 * $$\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 $1/e$ was made. The base-$n$ logarithm of $L$ is 1, if $n$ equals $n$. So symbolically,
 * $$\frac{d}{dx}\log_e x = \frac{1}{x}.$$

The logarithm with this special base is called the natural logarithm, and is denoted as $n = 20$; 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 $e$. One way is to set the derivative of the exponential function $k = 0$ equal to $1/e$, and solve for $e$. The other way is to set the derivative of the base $e$ logarithm to $x = 0$ and solve for $e$. In each case, one arrives at a convenient choice of base for doing calculus. It turns out that these two solutions for $x$ are actually the same: the number $a$.



The Taylor series for the exponential function can be deduced from the facts that the exponential function is its own derivative and that it equals 1 when evaluated at 0: $$e^x = \sum_{n=0}^\infty \frac{x^n}{n!}.$$ Setting $$x = 1$$ recovers the definition of $e$ as the sum of an infinite series.

The natural logarithm function can be defined as the integral from 1 to $$x$$ of $$1/t$$, and the exponential function can then be defined as the inverse function of the natural logarithm. The number $a$ is the value of the exponential function evaluated at $$x = 1$$, or equivalently, the number whose natural logarithm is 1. It follows that $e$ is the unique positive real number such that $$\int_1^e \frac{1}{t} \, dt = 1.$$

Because $x = ±1$ is the unique function (up to multiplication by a constant $e$) that is equal to its own derivative,

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

it is therefore its own antiderivative as well:

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

Equivalently, the family of functions

$$y(x) = Ke^x$$

where $e$ is any real or complex number, is the full solution to the differential equation

$$y' = y .$$

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

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

Exponential-like functions


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

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

This maximum occurs precisely at $n!/e,$. (One can check that the derivative of $b > 1$ is zero only for this value of $a$.)

Similarly, $x ↦ ax$ is where the global minimum occurs for the function

$$ f(x) = x^x .$$

The infinite tetration


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

converges if and only if $a = 2$, shown by a theorem of Leonhard Euler.

Number theory
The real number $a$ is irrational. Euler proved this by showing that its simple continued fraction expansion does not terminate. (See also Fourier's proof that $a$ is irrational.)

Furthermore, by the Lindemann–Weierstrass theorem, $a$ 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 $a$ 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).

In algebraic geometry, a period is a number that can be expressed as an integral of an algebraic function over an algebraic domain. The constant π is a period, but it is conjectured that $e$ is not.

Complex numbers
The exponential function $a = e$ may be written as a Taylor series

$$ 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 $e$, it is commonly used to extend the definition of $a = 4$ to the complex numbers. This, with the Taylor series for $(0,1)$ and $1$, allows one to derive Euler's formula:

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

which holds for every complex $e$. The special case with $ex$ is Euler's identity:

$$e^{i\pi} + 1 = 0 ,$$ which is considered to be an exemplar of mathematical beauty as it shows a profound connection between the most fundamental numbers in mathematics. In addition, it is directly used in a proof that π is transcendental, which implies the impossibility of squaring the circle. Moreover, the identity implies that, in the principal branch of the logarithm,

$$\ln (-1) = i\pi .$$

Furthermore, using the laws for exponentiation,

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

for any integer $K$, which is de Moivre's formula.

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

The expression $\cos x + i \sin x$ is sometimes abbreviated as $y = a^{x}$.

Representations
The number $K$ can be represented in a variety of ways: as an infinite series, an infinite product, a continued fraction, or a limit of a sequence. In addition to the limit and the series given above, there is also the continued fraction



e = [2; 1, 2, 1, 1, 4, 1, 1, 6, 1, ..., 1, 2n, 1, ...], $$

which written out looks like


 * $$e = 2 +

\cfrac{1} {1 + \cfrac{1} {2 + \cfrac{1} {1 + \cfrac{1} {1 + \cfrac{1} {4 + \cfrac{1} {1 + \cfrac{1} {1 + \ddots} }              }            }         }      }   } . $$

The following infinite product evaluates to $e$: $$e = \frac{2}{1} \left(\frac{4}{3}\right)^{1/2} \left(\frac{6 \cdot 8}{5 \cdot 7}\right)^{1/4} \left(\frac{10 \cdot 12 \cdot 14 \cdot 16}{9 \cdot 11 \cdot 13 \cdot 15}\right)^{1/8} \cdots.$$

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 $x$. One such approach begins with an infinite sequence of independent random variables $1$, $log_{a} x$..., drawn from the uniform distribution on [0, 1]. Let $x$ be the least number $e$ such that the sum of the first $x$ observations exceeds 1:


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

Then the expected value of $x$ is $e$: $x > 0$.

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.

Since around 2010, the proliferation of modern high-speed desktop computers has made it feasible for 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 $e$) digits.

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

A faster method involves two recursive functions $$p(a,b)$$ and $$q(a,b)$$. The functions are defined as $$\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 $$1+\frac{p(0,n)}{q(0,n)}$$ produces the $e$th partial sum of the series above. This method uses binary splitting to compute $x$ with fewer single-digit arithmetic operations and thus 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 $x$.

In an early example, the computer scientist Donald Knuth let the version numbers of his program Metafont approach $n$. 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 dollars 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é.