← All writing

15 min read

Exponential Functions

#math#exponentials

One of, if not the hardest thing about math is the same operation can be viewed from many different lenses. This is math's super power, but can make mathematical objects appear fuzzy at the edges, and hard to pin down.

I'd like to slowly build up your intuition for exponentials, showing how, at its core, the fundamental property of exponentials and logarithms are that they are mappings from addition to multiplication, and from multiplication back to addition.

In mathematical lingo, we'd say that exponentials are a group isomorphism from the additive group of the reals onto the multiplicative group of positive reals. Or more terse:

exp⁡:(ℝ,+)→∼(ℝ>0,×),bx=exln⁡b

It's okay if neither explanation makes sense yet. With each successive step into larger sets starting with the Naturals and moving up to the Reals we'll see that what once may have seemed like an arbitrary choice of algebraic manipulation is ultimately reinforcing a rich underlying structure.

Nested number sets: naturals inside wholes inside integers inside rationals inside reals

Natural Numbers ℕ

Type of exponent Example exponential Equivalent logarithm Reasoning
Positive integers 23=8 log2⁡(8)=3 Definition of raising to a power

When first introduced in grade school, "raising to a power", or repeated multiplication is a powerful tool to create and manipulate increasingly large numbers. Lest we forget the awe of learning about a googol (10100) or even a googolplex (1010100).

23+2=2⋅2⋅2⏞3⋅2⋅2⏞2=23⋅22

Since multiplication associates, we can show that a number b raised to the power of a sum of exponents (bx+y) is equivalent to the product of two exponentials with that same base (bxby).

bx+y=bxby

This is our first glimpse of the mapping from addition to multiplication, and it's the defining characteristic of exponentiation. From here on out, every extension to larger sets of numbers is to preserve this quality.

Whole Numbers 𝕎

Type of exponent Example exponential Equivalent logarithm Reasoning
Zero 20=1 log2⁡(1)=0 Preserves property 2a+b=2a⋅2b

b0=1 is the only solution which preserves our fundamental property.

23+0=2⋅2⋅2⏞3⋅1⏞0=23⋅20

0 is the additive identity and 1 is the multiplicative identity.

0+x=x,1⋅x=x.

Integers ℤ

Type of exponent Example exponential Equivalent logarithm Reasoning
Negative integers 2−2=122=14 log2⁡(14)=−2 Preserves property 2a−b=2a2b

The extension to the integers may seem intuitive at this point. With our fundamental property bx+y=bxby, the "opposite" of addition is subtraction and the "opposite" of multiplication is division, so of course when preserving this property 2a−b=2a2b . Let's take a slight detour to formalize what "opposite" means here.

Numbers as Functions

If instead of treating a number b as an abstract value floating in space, we might imagine it as a function fb acting on the number line, sliding every point left or right by b.

fb:a↦a+b

A number as a function? Acting on the whole number line? There's a big mental shift going on here. Thinking about numbers as actions performed on the spaces they live in doesn't feel comparable to thinking about them as objects in a set. But that's the intuition we're building here. Being able to move freely between these pictures will unlock new connections between once unrelated topics.

Multiplication follows a similar thought process. Which function gb stretches the number line by a factor of b?

gb:a↦b⋅a

Doing one after another is function composition, and it's equivalent to performing each action in sequence.

fa∘fb=fa+b,ga∘gb=gab

Now watch what the exponential does to a slide. Pick a point a and slide it by b, then exponentiate:

a→fba+b→exp2⁡2a+b

Our fundamental property lets us draw the equivalence: 2a+b=2b⋅2a. But 2b⋅2a is just 2a stretched by a factor of 2b. So we could equally have exponentiated first and stretched afterwards:

a→exp2⁡2a→g2b2b⋅2a

Both routes end at the same point, for every a. In symbols,

exp2⁡∘fb=g2b∘exp2⁡

This is our fundamental property in a new light: the exponential turns slides into stretches. A slide by b on the input side becomes a stretch by 2b on the output side.

This is our same identity as before, but recontextualized from our new idea as numbers as functions!

f0∘fx=fx,g1∘gx=gx

The inverse asks: which function undoes fb, taking us back to id?

fb∘fb−1=id⇒fb−1=f−b,gb∘gb−1=id⇒gb−1=g1/b.

These are our "opposite" arithmetic operations, subtraction and division are just the inverses of sliding and stretching. And the exponential respects them. Undoing a slide by b maps to undoing a stretch by 2b:

exp2⁡:f−b↦g2−b=g1/2b=(g2b)−1,

which is exactly the rule 2a−b=2a2b.

Rationals ℚ

Type of exponent Example exponential Equivalent logarithm Reasoning
Fractional 21/2=2 log2⁡2=12 Preserves property (2a)b=2ab

Once again, let's return to our motivating example, this time asking a slightly different question. Our fundamental property turns one addition into one multiplication. What happens if we apply it three times, bx1+x2+x3=bx1bx2bx3? Does the mapping from addition to multiplication still hold, and can it be extended to an arbitrary number of applications?

22+2+2=22⋅22⋅22⏞3=(22)3

We see that yes! It does still hold. And we've gained a new rule in the process. Adding the same exponent to itself n times is multiplication by n, so

bx+x+⋯+x⏞n=bxbx⋯bx⏞n⟹(bx)n=bnx

Nothing new was assumed: this is bx+y=bxby applied n times in a row. Read right to left, it says an exponent that's a multiple of n can be pulled apart into n identical factors. What if we run that backwards? Instead of starting with n factors and merging them, start with a number and ask for its n identical factors. Take the simplest exponent we have, 1, and split it into n equal pieces:

21=21n+1n+⋯+1n⏞n=21/n⋅21/n⋯21/n⏞n=(21/n)n⇒21/n=2n

Let's make sure this works for less trivial cases as well. We can demonstrate this by showing that the equivalent fractions 24 and 12 will give the same answer.

2m/n=(21/n)m⇒22/4=(21/4)2=2

To our delight, the fundamental property still holds.

A more functional view

Repetition is composition. Sliding by x three times is one slide by 3x; stretching by c three times is one stretch by c3. We express a function repeatedly composed with itself using the notation fx∘n where n is the number of times fx is being composed.

fx∘3=fx∘fx∘fx=f3x,gc∘3=gc∘gc∘gc=gc3.

Take 22+2=22⋅22=24 and watch it happen on both number lines.

Upstairs, on the exponent line, the exponent 4 is built from two slides by 2. Each blue arrow is one f2; laid end to end they cover the same distance as the single orange f4. That's 2+2=4, drawn:

f2∘f2=f2∘2=f4.

Downstairs, on the value line, the exponential has translated each slide by 2 into a stretch by 22=4. Two of those stretches take the point from 1 to 4 to 16 — the same place a single stretch by 24=16 sends it. That's 4⋅4=16, drawn:

g4∘g4=g4∘2=g16.

Notice the shapes. Upstairs the blue arrows are equal, because adding 2 twice is two equal steps. Downstairs the second blue arrow is four times the first, because multiplying by 4 twice is a step that grows. The exponential turned "equal steps" into "steps that grow by the same factor" — that's what (22)2=22⋅2 looks like.

Now run it backwards. Which slide, done twice, gives a slide by 1? Half of it:

f1/2∘f1/2=f1

The exponential turns slides into stretches, so it must send f1/2 to a stretch that, done twice, gives a stretch by 21=2:

gc∘gc=gc2=g2⇒c=2

That is what 21/2 means in this picture: half a slide upstairs becomes the square root of a stretch downstairs. The point goes 0→12→1 on the exponent line and 1→1.414→2 on the value line. Upstairs the two steps are equal. Downstairs the second step is 2 times the first, the same "grows by the same factor" shape as before.

  • n pieces: f1/n∘n=f1 becomes g21/n∘n=g2.
  • m of those pieces: fm/n=f1/n∘m becomes g21/n∘m, which is 2m/n again.

Reals ℝ

Type of exponent Example exponential Equivalent logarithm Reasoning
Irrational 22≈2.6651 log2⁡(2.6651)≈2 Preserves continuity

We've reached our final set ℝ, and with that, we'll see the definition of the exponential function in all its glory. We've been building up our intuition in both a value, and functional based context, seeing that in each framing, the mapping between addition and multiplication remains preserved. With the rationals, we proved that our mapping still holds, x is decomposed into n identical factors. But what do we do when x is irrational?

Starting with our example f(x)=2x, we can decompose it into n factors.

2x=2xn+xn+⋯+xn⏞n=2x/n⋅2x/n⋯2x/n⏞n

And using our new rule from the Rationals (bx)n=bnx, we can get back to our original function.

(2x/n)n=f(x/n)n=f(x)

How does this help us?

Reading from inside out, we see f(x) being decomposed into n factors. Effectively zooming in on a very small neighborhood of 0, next, we compose the function n times, "zooming out" to see the function in its entirety.

Once we zoom in far enough our function starts to look linear! This means we can find a rational approximation of 22. Recalling our grade school algebra course, a line is fully characterized by y=mx+c . We also know that our identity maps 0→1 so we can set our y intercept to 1, defining a linear approximation for our function at values close to 0 as 2x/n≈1+m(xn). Doing this calculation with 1000 factors gets us reasonably close.

m=ΔyΔx≈20.001−200.001−0=0.00069340.001=0.6934
22/1000≈1+0.693147⋅1.4142141000=1.000980258
22≈(1.000980258)1000≈2.6639

The true value is 22=2.6651, so our approximation gets us within 0.0013. More factors means a closer zoom, a more accurate linear approximation, and a better answer. Let's push this idea further.

n (1+0.693147⋅2n)n error
1 1.9803 25.70%
10 2.5476 4.41%
100 2.6525 0.476%
1000 2.6639 0.048%
10000 2.6650 0.0048%

What happens when we decompose into infinitely many factors?

b1n+1n+⋯+1n⏞n→∞=b1/n⋅b1/n⋯b1/n⏞n→∞

When we start asking about infinitely small steps in a function, this should set off some neurons linked to calculus. If we manipulate our slope to start looking a bit more like the definition of a derivative...

ΔyΔx=f(x2)−f(x1)x2−x1=x1=x,x2=x+hf(x+h)−f(x)h

We see that our fundamental property lets us factor out 2x entirely.

2x+h−2xh=2x2h−2xh=2x2h−1h

This may seem like a subtle algebraic manipulation but it has huge implications. It's showing that our derivative f′(x) is a scale multiple of the original function f(x). This holds true for any exponential function bx.

f′(x)=f(x)limh→0⁡bh−1h

For our example:

m=limh→0⁡2h−1h≈0.693147

The derivative of 2x is itself, scaled by a factor of 0.693147. Let's see what the scale factors of other exponential functions are.

bx Scale Factor
.5x −0.693147
13x −1.098612
2x 0.693147
3x 1.098612
10x 2.302585

What if we want f′(x)=f(x)? Which base gives a scale factor of exactly 1? Let's give the scale factor its own name and see if we can get there:

L(b)=limh→0⁡bh−1h

The base we're after is the one where L(b)=1. We can't solve this directly, but we can see what happens to L when we change the base. Swap b for bx and use the power rule (bx)h=bxh:

L(bx)=limh→0⁡(bx)h−1h=limh→0⁡bxh−1h

The exponent is xh but the denominator is only h, so multiply by xx (for x≠0) to make them match:

L(bx)=limh→0⁡x⋅bxh−1xh

Now let k=xh. As h→0, k→0 as well, so

L(bx)=xlimk→0⁡bk−1k=xL(b)

Raising the base to the power x multiplies its scale factor by x. That means we can rescale any base to get the scale factor we want. Choosing x=1/L(b):

L(b1/L(b))=1L(b)⋅L(b)=1

Starting from b=2, where L(2)≈0.6931:

e=21/L(2)≈21.4427≈2.718

This is the number e, we've been searching for it all along. And it's the exact base where ddxex=ex.

The "scale factor" as we've been calling it is generally known by another name. L(bx)=xL(b) is a log law giving us the inverse. Raising e=b1/L(b) to the power L(b) gives b=eL(b), so L(b)=loge⁡b. The scale factor was a logarithm all along. This is what defines the natural logarithm.

Graphs of e^x and ln x mirrored across the line y = x

Final Thoughts

Our original and generally opaque definition, that "exponentials are a group isomorphism from the additive group of the reals onto the multiplicative group of positive reals", might have started to come into focus at this point.

exp⁡:(ℝ,+)→∼(ℝ>0,×)

Breaking it down piece by piece, every part of it is something we've already built.

  • exp: bx=exln⁡b, and ex=limn→∞⁡(1+x/n)n
  • Group: Our sets of numbers (ℕ,𝕎,ℤ,ℚ,ℝ), with the ability to slide and stretch from the Numbers as Functions section.
  • Positive reals: 2x=(2x/2)2 rules out negatives, and 2x⋅2−x=1 rules out zero.
  • Homomorphism: the fundamental property, with the identity b0=1, inverse b−x=1/bx and product rule (bx)n=bnx as forced consequences.
    • Isomorphism: the logarithm as the reverse map, logb⁡(xy)=logb⁡x+logb⁡y.

Towards the Future

There's still so much more to be said about exponentials. They're a rich playground for exploring the fundamental structure of mathematical objects and a launchpad into more abstract algebraic theory. I'll leave you with a commutative diagram of the exponential function if you'd like to tug at the threads of category theory.

(ℝ,+)→x↦nx(ℝ,+)↓exp2⁡↓exp2⁡(ℝ>0,×)→y↦yn(ℝ>0,×)

Next Up:

We'll see how the complex exponential is a surjective group homomorphism from the additive group of ℂ onto the multiplicative group of nonzero complex numbers, with kernel 2πiℤ.

exp⁡:(ℂ,+)↠(ℂ×,×),ker⁡(exp⁡)=2πiℤ
← All writing