Exponential and logarithm graphs
An exponential function grows by multiplying. A logarithm asks the reverse question: how many multiplications did it take? This page shows how the two fit together.
What you need first
- Powers: 2³ means 2 × 2 × 2 = 8.
- That anything to the power 0 is 1, and that a negative power means "one over": 2⁻¹ = ½.
What you will be able to do
- Sketch y = eˣ and y = ln x and say how they are related.
- Explain what the number e is.
- Solve equations such as e²ˣ = 5.
Growth by multiplying
Suppose something doubles every hour. After 1 hour you have 2 times as much, after 2 hours 4 times, after 3 hours 8 times. After x hours you have 2ˣ times as much. That is an exponential function: the variable x is in the power.
Exponential growth starts slowly and then runs away. Adding one more hour always doubles what you had, however big it already was.
The number e
You can use any positive number as the base: 2ˣ, 3ˣ, 10ˣ. One base is special. It is called e, and it is about 2.718.
What makes e special is this: at every point on the graph of y = eˣ, the steepness of the curve equals its height. Where the curve is at height 1, its gradient is 1. Where it is at height 5, its gradient is 5. No other base does this, and it makes e the natural choice for calculus.
The natural logarithm
The natural logarithm, written ln, undoes eˣ. It answers the question "e to the power of what gives this number?"
| Statement with e | Same statement with ln |
|---|---|
| e⁰ = 1 | ln 1 = 0 |
| e¹ ≈ 2.718 | ln 2.718 ≈ 1 |
| e² ≈ 7.389 | ln 7.389 ≈ 2 |
Each row says the same thing in two ways.
Try it yourself
Point at a curve with your mouse, or tap it, to read its coordinates. Predict each answer first.
Point at the blue curve where x = 0. What height do you expect?
What you should see
The height is 1, because e⁰ = 1. Every exponential graph passes through (0, 1).
Point at the orange curve where it crosses the x-axis. What is x there?
What you should see
x = 1, because ln 1 = 0. The point (1, 0) on orange is the point (0, 1) on blue with its coordinates swapped.
Find the point on blue where x = 1, and the point on orange where y = 1.
What you should see
Blue passes through about (1, 2.718). Orange passes through about (2.718, 1). Swapped again.
Look at the two curves and the green line together. What do you notice?
What you should see
Each curve is the mirror image of the other in the green line. Swapping x and y for every point is exactly what a reflection in y = x does.
Follow the blue curve far to the left, and the orange curve down towards x = 0.
What you should see
Blue gets closer and closer to the x-axis but never touches it. Orange dives down beside the y-axis but never touches that. These lines are called asymptotes.
Why they mirror each other
If the point (a, b) is on y = eˣ, then b = eᵃ. That is the same fact as a = ln b, so the point (b, a) is on y = ln x. Every point on one curve gives a point on the other with its coordinates swapped. This is true of any function and the function that undoes it.
It also explains why you cannot take the ln of zero or a negative number. eˣ is always positive, so there is no power of e that gives a negative result.
Worked example 1
Solve e²ˣ = 5.
- The unknown is trapped in a power. To free it, apply ln to both sides, because ln undoes e.
- Simplify the left side. ln(e²ˣ) is just 2x. So 2x = ln 5.
- Divide by 2. x = ½ ln 5, which is about 0.805.
To check on a graph, type y = e^(2x) and y = 5 into the calculator and point at where they cross.
Worked example 2
Solve ln x = 2, then solve 2ˣ = 10.
First equation. ln x = 2 asks "which number has a natural log of 2?" Apply e to both sides: x = e², about 7.389.
Second equation. The base is 2, not e, but ln still helps. Take ln of both sides: ln(2ˣ) = ln 10. A log law lets you bring the power down to the front: x ln 2 = ln 10. So x = ln 10 ÷ ln 2, about 3.32. That makes sense, because 2³ = 8 and 2⁴ = 16, and 10 lies between them.
Growth and decay
For y = aˣ, the curve rises when a is bigger than 1 and falls when a is between 0 and 1. Type y = a^x into the calculator and drag the slider through 1 to watch growth turn into decay. Every one of these curves passes through (0, 1).
Check yourself
Try each one on paper before you open the answer. Getting one wrong is useful: it shows you which part to reread.
What is ln 1?
Show the answer
0, because e⁰ = 1.
Simplify e^(ln 7).
Show the answer
7. ln asks what power of e gives 7, and then e is raised to exactly that power.
Solve eˣ = 20.
Show the answer
x = ln 20, about 3.00.
Why does ln(−2) have no value?
Show the answer
Because eˣ is positive for every x, so no power of e gives −2.
Common mistakes
- Writing ln(a + b) = ln a + ln b. The true law is for multiplying: ln(ab) = ln a + ln b.
- Mixing up ln and log. On most calculators, log means base 10 and ln means base e.
- Trying to take ln of zero or a negative number.
What to remember
- e is about 2.718. The graph of eˣ has gradient equal to its height.
- ln undoes e: ln(eˣ) = x and e^(ln x) = x.
- The two graphs are reflections of each other in y = x.
- To solve an equation with x in a power, take ln of both sides.