The numbere is of great importance in mathematics,[6] alongside 0, 1,π, andi. All five appear in one formulation ofEuler's identity and play important and recurring roles across mathematics.[7][8]e isirrational, meaning that it cannot be represented as a ratio of integers. Moreover, like the constantπ, it istranscendental, meaning that it is not a root of any non-zeropolynomial with rational coefficients.[3] To 30 decimal places, the value ofe is:[1]
It is the unique positive numbera such that the graph of the functiony =ax has aslope of 1 atx = 0.
One has where is the (natural)exponential function, the unique function that equals its ownderivative and satisfies the equation Therefore,e is also the base of thenatural logarithm, the inverse of the natural exponential function.
The numbere can also be characterized in terms of anintegral:[9]
The first references to this constant were published in 1618 in the table of an appendix of a work on logarithms byJohn Napier. However, this did not contain the constant itself, but simply a list oflogarithms to the base. It is assumed that the table was written byWilliam 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 ofe, but he did not recognizee itself as a quantity of interest.[5][10]
The constant itself was introduced byJacob Bernoulli in 1683, for solving the problem ofcontinuous compounding of interest.[11][12]In his solution, the constante occurs as thelimitwheren represents the number of intervals in a year on which the compound interest is evaluated (for example, for monthly compounding).
The first symbol used for this constant was the letterb byGottfried Leibniz in letters to Christiaan Huygens in 1690 and 1691.[13]
Leonhard Euler started to use the lettere for the constant in 1727 or 1728, in an unpublished paper on explosive forces in cannons,[14] and in a letter toChristian Goldbach on 25 November 1731.[15][16] The first appearance ofe in a printed publication was in Euler'sMechanica (1736).[17] It is unknown why Euler chose the lettere.[18] Although some researchers used the letterc in the subsequent years, the lettere was more common and eventually became standard.[2]
Euler proved thate is the sum of theinfinite serieswheren! is thefactorial ofn.[5] The equivalence of the two characterizations using the limit and the infinite series can be proved via thebinomial theorem.[19]
The effect of earning 20% annual interest on aninitial $1,000 investment at various compounding frequencies. The limiting curve on top is the graph, wherey is in dollars,t in years, and 0.2 = 20%.
Jacob Bernoulli discovered this constant in 1683, while studying a question aboutcompound interest:[5]
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 aren compounding intervals, the interest for each interval will be100%/n and the value at the end of the year will be $1.00 × (1 + 1/n)n.[20][21]
Bernoulli noticed that this sequence approaches a limit (theforce of interest) with largern and, thus, smaller compounding intervals.[5] Compounding weekly (n = 52) yields $2.692596..., while compounding daily (n = 365) yields $2.714567... (approximately two cents more). The limit asn grows large is the number that came to be known ase. That is, withcontinuous compounding, the account value will reach $2.718281828... More generally, an account that starts at $1 and offers an annual interest rate ofR will, aftert years, yieldeRt dollars with continuous compounding. Here,R is the decimal equivalent of the rate of interest expressed as apercentage, so for 5% interest,R = 5/100 = 0.05.[20][21]
Graphs of probabilityP ofnot observing independent events each of probability1/n aftern Bernoulli trials, and1 −P vsn ; it can be observed that asn increases, the probability of a1/n-chance event never appearing aftern tries rapidlyconverges to1/e.
The numbere itself also has applications inprobability 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 inn and plays itn times. Asn increases, the probability that gambler will lose alln bets approaches1/e, which is approximately 36.79%. Forn = 20, this is already 1/2.789509... (approximately 35.85%).
This is an example of aBernoulli trial process. Each time the gambler plays the slots, there is a one inn chance of winning. Playingn times is modeled by thebinomial distribution, which is closely related to thebinomial theorem andPascal's triangle. The probability of winningk times out ofn trials is:[22]
In particular, the probability of winning zero times (k = 0) is
The limit of the above expression, asn tends to infinity, is precisely1/e.
Exponential growth is a process that increases quantity over time at an ever-increasing rate. It occurs when the instantaneousrate of change (that is, thederivative) of a quantity with respect to time isproportional to the quantity itself.[21] Described as a function, a quantity undergoing exponential growth is anexponential function of time, that is, the variable representing time is the exponent (in contrast to other types of growth, such asquadratic growth). If the constant of proportionality is negative, then the quantity decreases over time, and is said to be undergoingexponential decay instead. The law of exponential growth can be written in different but mathematically equivalent forms, by using a differentbase, for which the numbere is a common and convenient choice:Here, denotes the initial value of the quantityx,k is the growth constant, and is the time it takes the quantity to grow by a factor ofe.
The normal distribution with zero mean and unit standard deviation is known as thestandard normal distribution,[23] given by theprobability density function
The constraint of unit standard deviation (and thus also unit variance) results in the1/2 in the exponent, and the constraint of unit total area under the curve results in the factor. This function is symmetric aroundx = 0, where it attains its maximum value, and hasinflection points atx = ±1.
Another application ofe, also discovered in part by Jacob Bernoulli along withPierre Remond de Montmort, is in the problem ofderangements, also known as thehat check problem:[24]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 inton 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 thatnone of the hats gets put into the right box. This probability, denoted by, is:
Asn tends to infinity,pn approaches1/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 isn!/e,rounded to the nearest integer, for every positive n.[25]
The maximum value of occurs at. Equivalently, for any value of the baseb > 1, it is the case that the maximum value of occurs at (Steiner's problem, discussedbelow).
This is useful in the problem of a stick of lengthL that is broken inton equal parts. The value ofn that maximizes the product of the lengths is then either[26]
or
The quantity is also a measure ofinformation gleaned from an event occurring with probability (approximately when), so that essentially the same optimal division appears in optimal planning problems like thesecretary problem.
The graphs of the functionsx ↦ax are shown fora = 2 (dotted),a =e (blue), anda = 4 (dashed). They all pass through the point(0,1), but the red line (which has slope1) is tangent to onlyex there.The value of the natural log function for argumente, i.e.lne, equals1.
The parenthesized limit on the right is independent of thevariablex. Its value turns out to be the logarithm ofa to basee. Thus, when the value ofa is settoe, this limit is equalto1, and so one arrives at the following simple identity:
Consequently, the exponential function with basee is particularly suited to doing calculus.Choosinge (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.,logax),[28] for x > 0:
where the substitutionu =h/x was made. The base-a logarithm ofe is 1, ifa equalse. So symbolically,
The logarithm with this special base is called thenatural logarithm, and is usually denoted asln; 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 numbersa. One way is to set the derivative of the exponential functionax equal toax, and solve fora. The other way is to set the derivative of the basea logarithm to1/x and solve fora. In each case, one arrives at a convenient choice of base for doing calculus. It turns out that these two solutions fora are actuallythe same: the numbere.
TheTaylor 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:[29]Setting recovers the definition ofe as the sum of an infinite series.
The natural logarithm function can be defined as the integral from 1 to of, and the exponential function can then be defined as the inverse function of the natural logarithm. The numbere is the value of the exponential function evaluated at, or equivalently, the number whose natural logarithm is 1. It follows thate is the unique positivereal number such that
Becauseex is the unique function (up to multiplication by a constantK) that is equal to its ownderivative,
Exponential functionsy = 2x andy = 4x intersect the graph ofy =x + 1, respectively, atx = 1 andx = −1/2. The numbere is the unique base such thaty =ex intersects only atx = 0. We may infer thate lies between 2 and 4.
The numbere is the unique real number such thatfor all positivex.[31]
Also, we have the inequalityfor all realx, with equality if and only ifx = 0. Furthermore,e is the unique base of the exponential for which the inequalityax ≥x + 1 holds for allx.[32] This is a limiting case ofBernoulli's inequality.
Furthermore, by theLindemann–Weierstrass theorem,e istranscendental, 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 withLiouville number); the proof was given byCharles Hermite in 1873.[39] The numbere is one of only a few transcendental numbers for which the exactirrationality exponent is known (given by).[40]
It is conjectured thate isnormal, meaning that whene is expressed in anybase the possible digits in that base are uniformly distributed (occur with equal probability in any sequence of given length).[43]
Because this series isconvergent for everycomplex value ofx, it is commonly used to extend the definition ofex to the complex numbers.[46] This, with the Taylor series forsin andcosx, allows one to deriveEuler's formula:
which is considered to be an exemplar ofmathematical beauty as it shows a profound connection between the most fundamental numbers in mathematics. In addition, it is directly used ina proof thatπ istranscendental, which implies the impossibility ofsquaring the circle.[47][48] Moreover, the identity implies that, in theprincipal branch of the logarithm,[46]
The constant plays a distinguished role in the theory ofentropy inprobability theory andergodic theory.[50] The basic idea is to consider a partition of aprobability space into a finite number ofmeasurable sets,, the entropy of which is the expected information gained regarding the probability distribution by performing a random sample (or "experiment"). The entropy of the partition isThe function is thus of fundamental importance, representing the amount of entropy contributed by a particular element of the partition,. This function is maximized when. What this means, concretely, is that the entropy contribution of the particular event is maximized when; outcomes that are either too likely or too rare contribute less to the total entropy.
In addition to exact analytical expressions for representation ofe, there are stochastic techniques for estimatinge. One such approach begins with an infinite sequence of independent random variablesX1,X2..., drawn from theuniform distribution on [0, 1]. LetV be the least numbern such that the sum of the firstn observations exceeds 1:
The number of known digits ofe has increased substantially since the introduction of the computer, due both to increasing performance of computers and to algorithmic improvements.[55][56]
Since around 2010, the proliferation of modern high-speeddesktop computers has made it feasible for amateurs to compute trillions of digits ofe within acceptable amounts of time. On December 24, 2023, a record-setting calculation was made by Jordan Ranous, givinge to 35,000,000,000,000 digits.[64]
One way to compute the digits ofe is with the series[65]
A faster method involves two recursive functions and. The functions are defined as
The expression produces thenth partial sum of the series above. This method usesbinary splitting to computee with fewer single-digit arithmetic operations and thus reducedbit complexity. Combining this withfast Fourier transform-based methods of multiplying integers makes computing the digits very fast.[65]
During the emergence ofinternet culture, individuals and organizations sometimes paid homage to the numbere.
In an early example, thecomputer scientistDonald Knuth let the version numbers of his programMetafont approache. The versions are 2, 2.7, 2.71, 2.718, and so forth.[66]
In another instance, theIPO filing forGoogle in 2004, rather than a typical round-number amount of money, the company announced its intention to raise 2,718,281,828USD, which ise billion dollarsrounded to the nearest dollar.[67]
Google was also responsible for a billboard[68]that appeared in the heart ofSilicon Valley, and later inCambridge, Massachusetts;Seattle, Washington; andAustin, Texas. It read "{first 10-digit prime found in consecutive digits ofe}.com". The first 10-digit prime ine is 7427466391, which starts at the 99th digit.[69] Solving this problem and visiting the advertised (now defunct) website led to an even more difficult problem to solve, which consisted of 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 ofe whose digits summed to 49. The fifth term in the sequence is 5966290435, which starts at the 127th digit.[70]Solving this second problem finally led to aGoogle Labs webpage where the visitor was invited to submit a résumé.[71]
The last release of the officialPython 2 interpreter has version number 2.7.18, a reference toe.[72]
Inscientific computing, the constant is often hard-coded. For example, thePython standard library includesmath.e = 2.718281828459045, a floating-point approximation of. Despite this, it is generally morenumerically stable and efficient to use the built-in exponential function—such asmath.exp(x) in Python—rather than computing viapow(e, x), even when is an integer.[73]
Most implementations of the exponential function use range reduction, lookup tables, and polynomial or rational approximations (such asPadé approximants or Taylor expansions) to achieve accurate results across a wide range of inputs.[74] In contrast, general-purpose exponentiation functions—likepow—may involve additional intermediate computations, such as logarithms and multiplications, and may accumulate more rounding error, particularly when is used in floating-point form.[75]
At very high precision, methods based onelliptic functions and fast convergence of theAGM andNewton's method can be used to compute the exponential function.[76] The digit expansion of can then be obtained as Although this is asymptotically faster than other known methods for computing the exponential function, it is impractical because of high overhead cost.[74]
Tools such asy-cruncher are optimized for computing many digits of individual constants like, and use the Taylor series for because it converges very rapidly, especially when combined with various optimizations. In particular, the method ofbinary splitting applies to computing the series for, as opposed to the series for, because the summands in the former series are simple rational numbers. This allows the complexity of computing digits of to be reduced to, asymptotically the same as AGM methods, but much cheaper in practice.[77][78]
^abJacob Bernoulli considered the problem of continuous compounding of interest, which led to a series expression fore. See: Jacob Bernoulli (1690) "Quæstiones nonnullæ de usuris, cum solutione problematis de sorte alearum, propositi in Ephem. Gall. A. 1685" (Some questions about interest, with a solution of a problem about games of chance, proposed in theJournal des Savants (Ephemerides Eruditorum Gallicanæ), in the year (anno) 1685.**),Acta eruditorum, pp. 219–23.On page 222, Bernoulli poses the question:"Alterius naturæ hoc Problema est: Quæritur, si creditor aliquis pecuniæ summam fænori exponat, ea lege, ut singulis momentis pars proportionalis usuræ annuæ sorti annumeretur; quantum ipsi finito anno debeatur?" (This is a problem of another kind: The question is, if some lender were to invest [a] sum of money [at] interest, let it accumulate, so that [at] every moment [it] were to receive [a] proportional part of [its] annual interest; how much would be owing [at the] end of [the] year?) Bernoulli constructs a power series to calculate the answer, and then writes: " … quæ nostra serie [mathematical expression for a geometric series] &c. major est. … sia =b, debebitur plu quam2½a & minus quam3a." ( … which our series [a geometric series] is larger [than]. … ifa=b, [the lender] will be owed more than2½a and less than3a.) Ifa =b, the geometric series reduces to the series fora ×e, so2.5 <e < 3. (** The reference is to a problem which Jacob Bernoulli posed and which appears in theJournal des Sçavans of 1685 at the bottom ofpage 314.)
^Lettre XV. Euler à Goldbach, dated November 25, 1731 in: P.H. Fuss, ed.,Correspondance Mathématique et Physique de Quelques Célèbres Géomètres du XVIIIeme Siècle … (Mathematical and physical correspondence of some famous geometers of the 18th century), vol. 1, (St. Petersburg, Russia: 1843), pp. 56–60, see especiallyp. 58. From p. 58:" … ( e denotat hic numerum, cujus logarithmus hyperbolicus est = 1), … " ( … (e denotes that number whose hyperbolic [i.e., natural] logarithm is equal to 1) … )
^Leonhard Euler,Mechanica, sive Motus scientia analytice exposita (St. Petersburg (Petropoli), Russia: Academy of Sciences, 1736), vol. 1, Chapter 2, Corollary 11, paragraph 171, p. 68.From page 68:Erit enim seu ubie denotat numerum, cuius logarithmus hyperbolicus est 1. (So it [i.e.,c, the speed] will be or, wheree denotes the number whose hyperbolic [i.e., natural] logarithm is 1.)
^Calinger, Ronald (2016).Leonhard Euler: Mathematical Genius in the Enlightenment. Princeton University Press.ISBN978-0-691-11927-4. p. 124.
^Euler, L. "De serie Lambertina Plurimisque eius insignibus proprietatibus."Acta Acad. Scient. Petropol. 2, 29–51, 1783. Reprinted in Euler, L.Opera Omnia, Series Prima, Vol. 6: Commentationes Algebraicae. Leipzig, Germany: Teubner, pp. 350–369, 1921. (facsimile)
^abSultan, Alan; Artzt, Alice F. (2010).The Mathematics That Every Secondary School Math Teacher Needs to Know. Routledge. pp. 326–328.ISBN978-0-203-85753-3.
^Walters (1982),Introduction to ergodic theory, Springer, §4.2.
^Hofstadter, D.R. (1995).Fluid Concepts and Creative Analogies: Computer Models of the Fundamental Mechanisms of Thought. Basic Books.ISBN0-7139-9155-0.
^Roger Cotes (1714) "Logometria,"Philosophical Transactions of the Royal Society of London,29 (338) : 5–45;see especially the bottom of page 10. From page 10:"Porro eadem ratio est inter 2,718281828459 &c et 1, … " (Furthermore, by the same means, the ratio is between 2.718281828459… and 1, … )
^Leonhard Euler,Introductio in Analysin Infinitorum (Lausanne, Switzerland: Marc Michel Bousquet & Co., 1748), volume 1,page 90.
^William Shanks,Contributions to Mathematics, ... (London, England: G. Bell, 1853),page 89.
^abvan der Hoeven, Joris; Johansson, Fredrik (2024)."Fast Multiple Precision with Precomputations"(PDF).Proceedings of the 2024 IEEE 29th Symposium on Computer Arithmetic (ARITH 2024). Porto, Portugal: IEEE. Retrieved2025-07-21.
^Goldberg, David (March 1991). "What Every Computer Scientist Should Know About Floating-Point Arithmetic".ACM Computing Surveys.23 (1):5–48.doi:10.1145/103162.103163.
^Brent, Richard P. (1976). "Fast Multiple-Precision Evaluation of Elementary Functions".Journal of the ACM.23 (2):242–251.doi:10.1145/321879.321886.JSTOR321886.