The Natural Logarithm

The log with base e, partner of e to the x.

The logarithm with base e

The natural logarithm is the logarithm to base e, where e is a fixed number, about 2.718. It is written ln, so ln x means the logarithm of x to base e: the power to which e must be raised to give x. Like π, e is irrational: its decimals never end and never repeat. To 5 decimal places, e ≈ 2.71828.

A calculator has an ln key beside its log key, and eˣ is usually the second function on the ln key, because the two undo each other.

0123e

e ≈ 2.718 lies between 2 and 3, nearer to 3.

Where e comes from: a look ahead

Here is one place e turns up. Put $1 in an account that pays 100% interest a year. Paid once, at the end of the year, the interest doubles the money, so the year ends with $2.

Now pay half the rate, 50%, twice a year. Each half-year multiplies the money by 1.5, so the year ends with 1.5² = 2.25 dollars. Pay 1/12 of the rate every month and the year ends with (1 + 1/12)¹² = 2.61 dollars, to the nearest cent. Paid n times a year, the dollar becomes (1 + 1/n)ⁿ dollars.

Paying more often always helps, but by less and less. Paid every day, the dollar becomes (1 + 1/365)³⁶⁵ = 2.7146 dollars, to 4 decimal places. Paid a million times a year, it becomes 2.71828 dollars, to 5 decimal places. As n grows without limit, (1 + 1/n)ⁿ closes in on e ≈ 2.71828, the amount the dollar would reach if the interest were added continuously. That is what "growth that is continuous" means, and why e is the natural base for it.

ny

The points show (1 + 1/n)ⁿ for n = 1 to 12: 2, 2.25, 2.37, and on to 2.61 at n = 12. They climb by less and less, toward the line y = e ≈ 2.718, and never reach it.

ln undoes e to the power

ln asks what power of e gives a number. For the number eˣ the answer is x, because x is the power e was raised to. So ln(eˣ) = x for every x. For example, ln(e³) = 3 and ln(e^(−2)) = −2.

xe to the …eˣlnxln undoes the power of e

Raise e to the power x, then take ln: the result is x again.

e to the power undoes ln

The other order works too. ln x is the power of e that gives x, so raising e to that power gives x: e^(ln x) = x, for every positive x. A calculator gives ln 20 = 2.9957, to 4 decimal places, and e^2.9957 is 20, to that accuracy.

So ln and e to the power are inverse functions: each undoes the other. That is how an equation with e in the exponent is solved. If eˣ = 20, take ln of both sides: x = ln 20 = 2.996, to 3 decimal places. And if ln x = 3, raise e to the power of both sides: x = e³ = 20.09, to 2 decimal places.

xlnln xe to the …xe^(ln x) = x

Take ln of a positive number x, then raise e to that power: the result is x again.

ln 1 = 0 and ln e = 1

e⁰ = 1, so the power of e that gives 1 is 0: ln 1 = 0. e¹ = e, so the power of e that gives e is 1: ln e = 1. These are the base-e cases of two facts true in every base, that the logarithm of 1 is 0 and the logarithm of the base is 1.

For a number between 0 and 1, ln is negative: ln 0.5 = −0.6931, to 4 decimal places, because e must be raised to a negative power to give less than 1. And ln 0 and the ln of a negative number do not exist, because every power of e is positive.

The graphs of y = eˣ and y = ln x

Because each function undoes the other, the graph of y = ln x is the reflection of the graph of y = eˣ in the line y = x. The point (0, 1) on y = eˣ, which says e⁰ = 1, becomes (1, 0) on y = ln x, which says ln 1 = 0. The point (1, e) becomes (e, 1).

y = eˣ is defined for every x and gives only positive values. y = ln x is defined only for positive x and gives every value: it runs down alongside the y-axis without touching it, and climbs more and more slowly to the right.

xy

The gold curve is y = ln x, the white curve is y = eˣ, and the white straight line is y = x. The points (0, 1) and (1, e) on y = eˣ reflect in y = x to (1, 0) and (e, 1) on y = ln x.

Every law carries over

ln is a logarithm like any other, so the laws of logarithms hold for it unchanged: ln(ab) = ln a + ln b, ln(a / b) = ln a − ln b, and ln(aⁿ) = n ln a.

For example, ln 2 = 0.69315 and ln 3 = 1.09861, to 5 decimal places, so ln 6 = ln 2 + ln 3 = 1.79176, and ln 9 = 2 ln 3 = 2.19722. The change of base rule works with ln too: log₂ 10 = ln 10 / ln 2 = 2.30259 / 0.69315 = 3.3219, to 4 decimal places.

A look ahead: in calculus, eˣ turns out to be the one exponential function whose gradient at every point equals its own height. That is the deeper reason e is called the natural base.

The usual mistakes

Giving ln e = 0. e¹ = e, so ln e = 1. It is ln 1 that is 0, because e⁰ = 1.

Giving the number instead of the power. ln(e³) is 3, the power, not e³, and not e.

Undoing ln with a power of 10. The partner of ln is e to the power: if ln x = 2, then x = e² = 7.39, to 2 decimal places, not 10² = 100. The partner of 10ˣ is the common logarithm, log.

Splitting the ln of a sum. ln(a + b) is not ln a + ln b; the laws are about products, quotients and powers.

A model with ln x in it

The next problem uses a model of the form y = a + b ln x. Two readings fix its two numbers a and b. At x = 1, ln 1 = 0, so the model gives y = a + 0 = a: the reading at x = 1 is a itself. A second reading, at another value of x, then gives an equation with only b unknown.

Such a model keeps rising for as long as x grows, but by less and less each time, because ln x rises more and more slowly: from x = 1 to x = 5, ln x rises by 1.609, and from x = 5 to x = 9 by only 0.588, to 3 decimal places.

Worked example: A Trainee Typist's Speed Week by Week: A Logarithmic Model Fitted to Two Weeks, and the Week She First Reaches 60 Words per Minute

Question A trainee typist's speed after x weeks of practice is modeled by y = a + b ln x words per minute, for x ≥ 1. After 1 week her speed is 25 words per minute, and after 5 weeks it is 45 words per minute. (a) Find a, and find b to 3 significant figures. (b) Use the model to predict her speed after 12 weeks, to the nearest word per minute, and find the first whole number of weeks after which the model gives a speed of at least 60 words per minute.

  1. 1.At x = 1, ln 1 = 0, so the model gives y = a. Her speed after 1 week is 25 words per minute, so a = 25.

    020406005101520weeks of practice, xspeed (words per minute)(1, 25)(5, 45)x = 1: ln 1 = 0, so y = aa = 25
    020406005101520weeks of practice, xspeed (words per minute)(1, 25)(5, 45)x = 1: ln 1 = 0, so y = aa = 25
    At x = 1, ln 1 = 0, so the model gives y = a, and a = 25.
  2. 2.At x = 5: 25 + b ln 5 = 45, so b ln 5 = 20 and b = 20ln 5 = 201.6094 = 12.427.

    020406005101520weeks of practice, xspeed (words per minute)(1, 25)(5, 45)x = 5: 25 + b ln 5 = 45, so b ln 5 = 20b = 20 / ln 5 = 20 / 1.6094 = 12.427
    020406005101520weeks of practice, xspeed (words per minute)(1, 25)(5, 45)x = 5: 25 + b ln 5 = 45, so b ln 5 = 20b = 20 / ln 5 = 20 / 1.6094 = 12.427
    At x = 5: 25 + b ln 5 = 45, so b = 20ln 5 ≈ 12.427.
  3. 3.(a) a = 25 and b = 12.4 to 3 significant figures, so the model is y = 25 + 12.4 ln x.

    020406005101520weeks of practice, xspeed (words per minute)(1, 25)(5, 45)a = 25 and b = 12.4y = 25 + 12.4 ln x
    020406005101520weeks of practice, xspeed (words per minute)(1, 25)(5, 45)a = 25 and b = 12.4y = 25 + 12.4 ln x
    (a) a = 25 and b ≈ 12.4. The curve keeps rising, by less every week.
  4. 4.After 12 weeks: y = 25 + 12.427 ln 12 = 25 + 12.427 × 2.4849 = 25 + 30.88 = 55.88, which is 56 words per minute to the nearest word per minute.

    020406005101520weeks of practice, xspeed (words per minute)56x = 12: 25 + 12.427 × 2.4849 = 55.8856 words per minute
    020406005101520weeks of practice, xspeed (words per minute)56x = 12: 25 + 12.427 × 2.4849 = 55.8856 words per minute
    After 12 weeks the model gives 25 + 12.427 ln 12 ≈ 55.88, so 56 words per minute.
  5. 5.For 60 words per minute: 25 + 12.427 ln x = 60, so ln x = 3512.427 = 2.8165. The inverse of ln is e to the power, so x = e2.8165 ≈ 16.7.

    020406005101520weeks of practice, xspeed (words per minute)5625 + 12.427 ln x = 60, so ln x = 2.8165x = e2.8165= 16.7
    020406005101520weeks of practice, xspeed (words per minute)5625 + 12.427 ln x = 60, so ln x = 2.8165x = e2.8165= 16.7
    The curve meets the dashed line at 60 where ln x = 2.8165, so x = e2.8165 ≈ 16.7.
  6. 6.(b) The model predicts 56 words per minute after 12 weeks, and it first gives at least 60 words per minute after 17 weeks. Check: at x = 16, y = 25 + 12.427 × 2.7726 = 59.45, and at x = 17, y = 25 + 12.427 × 2.8332 = 60.21. The first 4 weeks of practice added 20 words per minute, and the 7 weeks after that add fewer than 11.

    020406005101520weeks of practice, xspeed (words per minute)5616.7first at least 60 after 17 weeksy(16) = 59.45 and y(17) = 60.21
    020406005101520weeks of practice, xspeed (words per minute)5616.7first at least 60 after 17 weeksy(16) = 59.45 and y(17) = 60.21
    (b) 56 words per minute after 12 weeks, and the model first gives at least 60 after 17 whole weeks.

Answer: (a) a = 25 and b = 12.4; (b) 56 words per minute after 12 weeks; the model first gives at least 60 words per minute after 17 weeks

Common mistakes

  • Treating the model as a straight line in x and taking the rise of 20 over 4 weeks as 5 words per minute every week, which predicts 25 + 5 × 11 = 80 words per minute after 12 weeks. The model is straight in ln x, not in x, so the rise per week shrinks as the weeks go on.
  • Undoing ln x = 2.8165 with a power of 10, as x = 102.8165 ≈ 655 weeks. ln is the logarithm to base e, so its inverse is e to the power: x = e2.8165 ≈ 16.7.

More functions problems, worked step by step →

Practice The Natural Logarithm in the app