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, .
A calculator has an ln key beside its log key, and is usually the second function on the ln key, because the two undo each other.
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 dollars. Pay of the rate every month and the year ends with dollars, to the nearest cent. Paid n times a year, the dollar becomes dollars.
Paying more often always helps, but by less and less. Paid every day, the dollar becomes 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, closes in on , 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.
The points show 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 , and never reach it.
ln undoes e to the power
ln asks what power of e gives a number. For the number the answer is x, because x is the power e was raised to. So for every x. For example, and .
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: , for every positive x. A calculator gives ln 20 = 2.9957, to 4 decimal places, and 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 , 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: , to 2 decimal places.
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
, so the power of e that gives 1 is 0: ln 1 = 0. , 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 and y = ln x
Because each function undoes the other, the graph of y = ln x is the reflection of the graph of in the line y = x. The point (0, 1) on , which says , becomes (1, 0) on y = ln x, which says ln 1 = 0. The point (1, e) becomes (e, 1).
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.
The gold curve is y = ln x, the white curve is , and the white straight line is y = x. The points (0, 1) and (1, e) on 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, , and .
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: , to 4 decimal places.
A look ahead: in calculus, 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. , so ln e = 1. It is ln 1 that is 0, because .
Giving the number instead of the power. is 3, the power, not , and not e.
Undoing ln with a power of 10. The partner of ln is e to the power: if ln x = 2, then , to 2 decimal places, not . The partner of 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.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.
At x = 1, ln 1 = 0, so the model gives y = a, and a = 25. 2.At x = 5: 25 + b ln 5 = 45, so b ln 5 = 20 and b = 20ln 5 = 201.6094 = 12.427.
At x = 5: 25 + b ln 5 = 45, so b = 20ln 5 ≈ 12.427. 3.(a) a = 25 and b = 12.4 to 3 significant figures, so the model is y = 25 + 12.4 ln x.
(a) a = 25 and b ≈ 12.4. The curve keeps rising, by less every week. 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.
After 12 weeks the model gives 25 + 12.427 ln 12 ≈ 55.88, so 56 words per minute. 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.
The curve meets the dashed line at 60 where ln x = 2.8165, so x = e2.8165 ≈ 16.7. 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.
(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.