Skip to content
Tutorials Center
My learning

Topics

Lesson 27 of 38 · Exponential and Logarithmic Functions

The Number e and Compound Interest

See how compounding more often leads to the number e, and use A = P(1 + r/n)^(nt) and A = Pe^(rt) for money, population and continuous growth problems.

If a bank pays interest, the interest itself starts earning interest. That is compound interest, and it is the most familiar example of exponential growth. Exploring what happens when you compound more and more often leads to a famous constant, e.

Compound interest formula

If you invest a principal P at an annual rate r (as a decimal), compounded n times a year, the amount after t years is

Text
A = P · (1 + r/n)^(n·t)

Example 1. Invest 2,000 at 6% compounded monthly for 5 years. Here P = 2000, r = 0.06, n = 12, t = 5:

Text
A = 2000 · (1 + 0.005)^60 ≈ 2000 · 1.34885 ≈ 2697.70

Compare with simple interest: 2000 + 2000·0.06·5 = 2600. Compounding gives about 97.70 extra.

Notice annual compounding (n = 1) is just A = P(1 + r)ᵗ, the exponential model from the first lesson of this chapter.

What happens as n grows?

Take r = 100% (so r = 1), P = 1, and t = 1. Then A = (1 + 1/n)ⁿ:

n (1 + 1/n)ⁿ
1 2
2 2.25
10 2.5937...
100 2.7048...
10,000 2.7181...

The values climb but level off. The limit as n → ∞ is the number

Text
e ≈ 2.718281828...

e is irrational (like π). It is the natural base for growth that happens continuously.

Continuous compounding

As n grows without bound, (1 + r/n)^(nt) approaches e^(rt). So with continuous compounding:

Text
A = P · e^(r·t)

Example 2. The same 2,000 at 6% compounded continuously for 5 years: A = 2000·e^(0.3) ≈ 2000 · 1.34986 ≈ 2699.72. Barely more than monthly compounding: there is a ceiling to what extra compounding can give.

The same formula models population growth N = N₀·e^(kt) (with k > 0) and exponential decay N = N₀·e^(-kt).

Solving for time

To find how long it takes for money to double at rate r with continuous compounding, solve 2P = P·e^(rt):

Text
e^(rt) = 2  →  rt = ln 2  →  t = ln(2)/r

At 5%: t = 0.6931 / 0.05 ≈ 13.9 years. This is the origin of the "rule of 70" shortcut: the doubling time is about 70 / (rate in percent) years.

For discrete compounding: solve (1 + r/n)^(nt) = 2 by taking logs: t = ln 2 / (n·ln(1 + r/n)).

The base e is "natural" because the curve y = eˣ has the special property that its slope at every point equals its height. You will study that in calculus; for now it explains why e appears in models of continuous change.

See e appear

Python Compounding more often approaches e

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Doubling-time calculator

Python How long to double?

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which formula gives the amount for continuous compounding?

    With continuous compounding the limit of (1 + r/n)^(nt) is e^(rt), so A = P·e^(rt).
  2. 2. A principal of 1,000 earns 5% compounded annually for 2 years. What is the amount?

    A = 1000·1.05² = 1000·1.1025 = 1,102.50.
  3. 3. What is the approximate value of e?

    e ≈ 2.71828; 3.14159 is π, 1.41421 is √2 and 1.61803 is the golden ratio.
  4. 4. Solve for t: e^(0.04t) = 2.

    Take ln of both sides: 0.04t = ln 2, so t = ln(2)/0.04, about 17.3.

Summary

  • Compound interest: A = P(1 + r/n)^(nt).
  • As n → ∞, (1 + 1/n)ⁿ → e ≈ 2.71828.
  • Continuous compounding: A = P·e^(rt); growth and decay models use N₀e^(±kt).
  • Doubling time with continuous growth is ln(2) / r.

Next: Complex Numbers