Search

Search papers and lessons

Exponential Function

Level 1 · 9 min read

An exponential function multiplies by the same factor each time its input goes up by one, which is why it models growth and decay that compound.

On this page

TL;DR

An exponential function is a function where the input is the exponent. Each time the input goes up by one, the output gets multiplied by the same fixed factor, so it doubles, triples, or shrinks by the same share at every step. The special base e≈2.71828e \approx 2.71828 is the one where the output's rate of growth equals its current size, which is why it appears throughout mathematics.

Where you'll see it: in compound interest, population growth, radioactive decay, and the softmax step that turns a neural network's scores into probabilities.

Intuition

Repeated multiplication

Fold a sheet of paper in half and you have 2 layers. Fold again and you have 4, then 8. After ten folds you have 210=10242^{10} = 1024 layers. Each fold does not add a fixed number of layers. It doubles the total. That pattern, where a count of steps turns into a multiplication, is what an exponential function describes.

Compare two ways of changing a number each day, starting from 1:

DayAdd 3 each dayMultiply by 3 each day
011
143
279
31027
41381
516243

Adding is a straight line. Multiplying starts out similar and then pulls away very quickly. Exponential growth is always this second kind of pattern.

Why the base ee

Base 2 and base 10 are convenient but arbitrary. Ask a different question: for which base does the function grow at a rate equal to its own size? Every base gives a growth rate that is a fixed fraction of the current value. For base ee, that fraction is exactly 1, so the function grows exactly as fast as it is large. That property makes ee the natural base for calculus, probability, and continuous growth.

−2−1012305101520xf(x)
  • e^x
  • e^(-x), decay
Both curves pass through (0, 1), since any positive base to the power 0 is 1. e^x rises steeply; e^(-x) falls towards zero but never reaches it.

The math

Definition

Definition: Exponential function

For a base b>0b \gt 0 with b≠1b \neq 1, the exponential function with base bb is

f(x)=bx.f(x) = b^x.

Here bb is a fixed positive number and xx is the input, which can be any real number. For a positive whole-number exponent, bxb^x means multiply bb by itself xx times. For a negative exponent, b−x=1/bxb^{-x} = 1/b^x. For a fraction such as 21/22^{1/2}, the value is a root, so 21/2=2≈1.4142^{1/2} = \sqrt{2} \approx 1.414 is the number that, multiplied by itself, gives 2. For other real xx, such as 2π2^{\pi}, the value is defined by filling in the gaps so the curve stays smooth and the laws below keep holding. The base must be positive and not 1, because 1x1^x is always 1 and would describe nothing interesting.

Laws of exponents

For any base b>0b \gt 0 and any real xx and yy:

bx⋅by=bx+ybxby=bx−y(bx)y=bxy\begin{aligned} b^{x} \cdot b^{y} &= b^{x+y} \\ \frac{b^{x}}{b^{y}} &= b^{x-y} \\ \left(b^{x}\right)^{y} &= b^{xy} \end{aligned}

The first law is the one to remember. Multiplying bb by itself xx times and then yy more times is the same as multiplying it x+yx + y times. Check with 23⋅24=8⋅16=128=272^3 \cdot 2^4 = 8 \cdot 16 = 128 = 2^7.

The laws force b0=1b^0 = 1. Since bx⋅b0=bx+0=bxb^x \cdot b^0 = b^{x+0} = b^x, the factor b0b^0 must be 1.

Growth and decay per step

The defining feature is that every unit step in xx multiplies the output by the same amount:

f(x+1)=b⋅f(x).f(x+1) = b \cdot f(x).

If b>1b \gt 1, the function grows. If 0<b<10 \lt b \lt 1, it decays towards zero. More generally, a quantity that starts at AA and changes by factor bb per unit of time is A⋅btA \cdot b^{t}. For example, 50 bacteria that triple every hour have N(t)=50⋅3tN(t) = 50 \cdot 3^{t}.

The number ee

The constant ee comes from compound growth. Suppose you start with $1 and earn 100% interest per year, but the interest is added nn times a year, each time at the rate 1/n1/n. After one year you have (1+1n)n\left(1 + \frac{1}{n}\right)^n:

Compounding periods nnValue after one year
12.00000
22.25000
122.61304
3652.71457

As nn grows without bound, the value approaches a limit:

e=lim⁡n→∞(1+1n)n≈2.71828.e = \lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^n \approx 2.71828.

We write exe^x (also exp⁡(x)\exp(x)) for the exponential function with base ee.

The growth-rate property can be checked numerically. For a small step hh, ex+h−ex≈ex⋅he^{x+h} - e^{x} \approx e^{x} \cdot h. At x=2x = 2, e2≈7.3891e^2 \approx 7.3891. A step of h=0.001h = 0.001 should add about 7.3891×0.001=0.007397.3891 \times 0.001 = 0.00739, and indeed e2.001≈7.3964e^{2.001} \approx 7.3964, an increase of 0.007390.00739. The increase is the current value times the step, which is the sense in which ee is special.

Worked examples

Example
Doubling a population

A colony of 1000 bacteria doubles every 3 hours. How many bacteria after 9 hours?

  1. Count the doublings: 9÷3=39 \div 3 = 3.
  2. Multiply 1000 by 2 three times: 1000⋅23=1000⋅81000 \cdot 2^3 = 1000 \cdot 8.
  3. The colony has 8000 bacteria.

Reverse question: when does it reach 64,000?

  1. 64000÷1000=64=2664000 \div 1000 = 64 = 2^6, so there are 6 doublings.
  2. 6×3=186 \times 3 = 18 hours.
Example
Compound interest, yearly and continuous

Put $100 in an account that pays 5% per year.

Compounded once a year: after 10 years the balance is 100⋅1.0510100 \cdot 1.05^{10}.

  1. 1.052=1.10251.05^2 = 1.1025.
  2. 1.054=1.10252=1.21551.05^4 = 1.1025^2 = 1.2155.
  3. 1.058=1.21552=1.47751.05^8 = 1.2155^2 = 1.4775.
  4. 1.0510=1.4775⋅1.1025=1.62891.05^{10} = 1.4775 \cdot 1.1025 = 1.6289.
  5. Balance: 100 \cdot 1.6289 = \162.89$.

Compounded continuously: the balance is 100⋅e0.05⋅10=100⋅e0.5100 \cdot e^{0.05 \cdot 10} = 100 \cdot e^{0.5}.

  1. e0.5≈1.6487e^{0.5} \approx 1.6487.
  2. Balance: \164.87$.

Continuous compounding adds only about $2 more than yearly compounding here. Compounding more often helps, but the gain levels off: even infinitely frequent compounding only reaches the factor e0.5e^{0.5}.

Example
Half-life of a sample

A sample starts with 80 grams of a substance whose half-life is 10 days. The amount left after tt days is m(t)=80⋅(1/2)t/10m(t) = 80 \cdot (1/2)^{t/10}.

  1. After 30 days, t/10=3t/10 = 3, so m=80⋅(1/2)3=80⋅18=10m = 80 \cdot (1/2)^3 = 80 \cdot \frac{1}{8} = 10 grams.
  2. After 15 days, t/10=1.5t/10 = 1.5, so m=80⋅(0.5)1.5≈80⋅0.3536=28.3m = 80 \cdot (0.5)^{1.5} \approx 80 \cdot 0.3536 = 28.3 grams.
  3. Sanity check: 15 days lies between one half-life (40 grams left) and two (20 grams left), and 28.3 grams does too.
Example
Softmax scores

A classifier gives three raw scores: 2, 1, and 0. To turn them into probabilities with Softmax, exponentiate each score and divide by the total.

  1. Exponentiate: e2≈7.389e^2 \approx 7.389, e1≈2.718e^1 \approx 2.718, e0=1e^0 = 1.
  2. Sum: 7.389+2.718+1=11.1077.389 + 2.718 + 1 = 11.107.
  3. Divide: 7.389/11.107≈0.6657.389 / 11.107 \approx 0.665, 2.718/11.107≈0.2452.718 / 11.107 \approx 0.245, 1/11.107≈0.0901 / 11.107 \approx 0.090.
  4. The three probabilities sum to 1. The top score gets the largest share, and a gap of 1 in the raw scores becomes a factor of e≈2.72e \approx 2.72 in the exponentiated values.

Tradeoffs and failure modes

Exponential growth looks small at first and then becomes enormous, and that is where most mistakes happen. Common problems:

SituationWhat goes wrongBetter choice
Growth by a fixed percentageA straight line underestimates later valuesAn exponential model
Growth limited by resources (crowding, saturation)A pure exponential predicts unbounded growthA logistic curve
Forecasting far aheadA small error in the rate becomes a huge error laterCheck the rate, forecast a shorter horizon
Computing exe^x for large xx on a computere1000e^{1000} overflows standard floating-point numbersSubtract the largest value first (the softmax trick)

A few points to keep in mind:

  • Exponentials beat polynomials eventually. x2x^2 at x=10x = 10 is 100, and 2x2^x is 1024. At x=20x = 20, x2x^2 is 400 but 2x2^x is about a million.
  • Decay never reaches zero. e−xe^{-x} gets arbitrarily close to zero without touching it, so "fully decayed" is a modelling choice.
  • Percentages and differences are not the same. A growth of 10% per year doubles a quantity in about 7 years, but adding 10 units per year is a straight line.

History

Exponential growth was understood as a pattern long before it had a name. In 1614, John Napier published his tables of logarithms, which are the inverse of exponentials, to turn long multiplications into additions. In the 1680s, Jacob Bernoulli, studying compound interest, found that (1+1/n)n(1 + 1/n)^n approaches a fixed limit, which later became ee. Leonhard Euler began writing the letter ee for this constant in the 1720s and 1730s, and his 1748 textbook helped make the notation standard.

In 1798, Thomas Malthus argued in his essay on population that people multiply geometrically while food supply grows only arithmetically, a claim built on exponential growth. In 1838, Pierre-François Verhulst proposed the logistic curve as a way to model growth that levels off when resources run out. Exponential models caught on because they describe anything that compounds, and they remain the default first guess for growth and decay today.

Check yourself

QuestionWhat is 202^0, and why?Show answer

It is 1. The first exponent law says bx⋅by=bx+yb^x \cdot b^y = b^{x+y}. Taking y=0y = 0 gives bx⋅b0=bxb^x \cdot b^0 = b^x, and dividing both sides by bxb^x leaves b0=1b^0 = 1.

QuestionA quantity starts at 50 and triples every 2 years. What is it after 6 years?Show answer

Three tripling periods fit into 6 years, so the value is 50⋅33=50⋅27=135050 \cdot 3^3 = 50 \cdot 27 = 1350.

QuestionWhy do mathematicians prefer the base ee over base 2 or base 10 when working with continuous growth?Show answer

For base ee, the growth of exe^x over a small step is exactly the current value times the step size, so the function grows at a rate equal to its own size. Other bases give that same rate only up to a constant factor, which must be carried through every formula. The base ee removes the constant, which is why it simplifies calculus and continuous models.

QuestionA savings account grows as e0.04te^{0.04t} with continuous compounding at 4% per year. Roughly how many years does it take to double?Show answer

You need e0.04t=2e^{0.04t} = 2. Check the endpoints: e0.68≈1.974e^{0.68} \approx 1.974 at t=17t = 17, and e0.72≈2.054e^{0.72} \approx 2.054 at t=18t = 18. So it takes a little over 17 years, about 17.3 years, to double. The answer is between 17 and 18 years.

Sources