Logarithmic Functions and Log Laws
Logarithmic Functions and Log Laws
Logarithmic Functions
and the Log Laws
Christopher Thomas
1998
c University of Sydney
Mathematics Learning Centre, University of Sydney 1
1 Logarithms
1.1 Introduction
Taking logarithms is the reverse of taking exponents, so you must have a good grasp on
exponents before you can hope to understand logarithms properly.
We begin the study of logarithms with a look at logarithms to base 10. It is important
that you realise from the beginning that, as far as logarithms are concerned, there is
nothing special about the number 10. Indeed, the most natural logarithms are logarithms
to base e, and they are introduced in section 1.4. Logarithms to base 10 are in common
use only because we use a decimal system of counting, and this is probably a result of the
fact that humans have ten fingers. We have begun with logarithms to base 10 only to be
definite, and we could just as easily have started with logarithms to any other convenient
base.
15
10
We know that, given any number x, we can raise 10 to the power of x to obtain another
number which we write as 10x .
What of the reverse procedure? Suppose we begin with a number and we wish to find the
power to which 10 must be raised to obtain that number.
For example, suppose we begin with the number 7 and we wish to find the power to which
10 must be raised to obtain 7.
This number is called the logarithm to the base 10 of 7 and is written log10 7. Similarly,
log10 15 is equal to the power to which 10 must be raised to obtain 15.
For a general number x, log10 x is equal to that power to which 10 must be raised to obtain
the number x.
Mathematics Learning Centre, University of Sydney 2
The question we have in mind is this: to what power must we raise 10 to get 29? Or,
10? = 29.
The answer to this question is a number, and we call that number log10 29.
The definition of the logarithm to base 10 is the basis on which the remainder of this
section rests, and it is extremely important that you understand it properly.
Again: log10 x is equal to that power to which 10 must be raised to obtain the number x.
As an example, let’s calculate log10 103 . According to the definition, log10 103 is equal to
that power to which 10 must be raised to obtain 103 . To what power must we raise 10 to
obtain 103 ? Or, 10? = 103 . Surely the answer is 3. Notice that 103 = 1000, so we have
worked out log10 1000, and without using a calculator! We have been able to work this
out because we have understood the meaning of the logarithm of a number. We will need
to use a calculator to work out the logarithms of most numbers, but it is very important
that we understand what it is that the calculator is working out for us when we push the
buttons.
Examples:
Can we take the logarithm of any number? In other words, given any number x can we
find a power to which 10 may be raised to obtain the number x?
Look at the graph of y = 10x in Figure 1. We see that 10x is never negative and indeed
never even takes the value 0. There is no power to which we may raise 10 to obtain a
number less than or equal to 0. This means that we cannot take the logarithm of a number
less than or equal to zero. We say that log10 x is undefined for x ≤ 0.
The graph of 10x gives us another important piece of information. If x > 0 then there is
only one power to which we may raise 10 to get x. Our definition of log10 x is unambiguous.
Mathematics Learning Centre, University of Sydney 3
0.5
x
2 4 6 8 10 12 14 16
-0.5
-1
Examples
log10 103.7 = 3.7
log10 0.0001 = log10 10−4 = −4
√ 1 3 23
log10 104 103 = log10 104 × (103 ) 5 = log10 104+ 5 =
5
Rule A tells us what happens if we first raise 10 to the power x and then take the logarithm
to base 10 of the result. We end up with what we started with.
What happens if we do things in the reverse order?
Consider the number log10 7. If you have a calculator with a Log button on it you can see
that this number is approximately 0.8451. Now suppose we raise 10 to the power log10 7.
What do you think the result is? In symbols, what is 10log10 7 ?
Well, remember that log10 7 is equal to that power to which 10 must be raised to give the
number 7. So if we raise 10 to that power then we must get 7.
The same reasoning applies to show that if x > 0 then 10log10 x = x. The number log10 x
is that power to which 10 must be raised to obtain x. So if we raise 10 to this power we
must get x. We will write this down as the second of our rules of logarithms.
Examples
10log10 π = π
2 2
10log10 (x +y ) = x2 + y 2
3x3 3
10log10 10 = 103x
Rules A and B express the fact that the functions y = 10x and y = log10 x are inverse
functions of one another. If you have not come across the concept of inverse functions
before then do not worry about what this means. If you have, then you will probably
remember that the graph of an inverse function is obtained by reflecting the graph of
the original function in the line y = x, that is the line which runs in the north-east and
south-west direction. Take another look at Figures 1 and 2.
We can use the rules of exponents to work out more rules for logarithms.
If x and y are numbers greater than zero then, by rule B, x = 10log10 x and y = 10log10 y ,
so
xy = 10log10 x × 10log10 y
= 10log10 x+log10 y (by the rules for exponents).
This equation tell us that if we raise 10 to the power log10 x+log10 y then we get the number
xy. In other words it tells us that log10 x + log10 y is the answer to the question 10? = xy.
But the answer to this question is also log10 xy. Thus log10 xy = log10 x + log10 y. This
we will call our third rule of logarithms.
Rule C: For any real numbers x > 0 and y > 0, log10 xy = log10 x + log10 y.
Mathematics Learning Centre, University of Sydney 5
Rule D: For any real numbers x > 0 and y > 0, log10 ( xy ) = log10 x − log10 y.
Examples
xy
log10 = log10 x + log10 y − log10 z
z
y2
2 log10 y − 4 log10 (x − z ) = log10
2 3
(x2 − z 3 )4
Examples:
log5 125 = log5 53 = 3
1 1
log16 2 = log16 16 4 =
4
1
log7 = log7 7−2 = −2
49
Mathematics Learning Centre, University of Sydney 6
We have required the base of our logarithms, b, to be greater than 1. In fact we can take
logarithms to any base b provided b > 0 and b = 1. It is more usual though to use b > 1,
and in this booklet we will always use a base b > 1.
y
2 y = log x
2
y = log x
e
y = log x
10
0
1 2 3 4 5 6 7 8 x
-1
-2
Figure 3 shows graphs of the functions y = logb x for various values of b. As you can see
from these graphs, the logarithm functions behave in a similar fashion for different bases
b, providing b > 1.
All of what we said earlier remains true for logb x if 10 is replaced by b. In particular the
five rules of logarithms remain true. Let us restate these to be applicable to logb x.
For a real number b > 1:
Rule 1: For any real number x, logb bx = x
Rule 2: For any real number x > 0, blogb x = x
Rule 3: For any real numbers x > 0 and y > 0, logb xy = logb x + logb y
Rule 4: For any real numbers x > 0 and y > 0, logb x
y
= logb x − logb y
Rule 5: For real numbers x and n, with x > 0, logb xn = n logb x
Now that we have shown how to define logarithms to any base b > 1, let us see how these
logarithms are related to each other. We will consider logarithms to two bases a > 1 and
b > 1. By rule 2,
x = aloga x .
Taking logarithms to base b of both sides of this equation yields
This, our sixth rule of logarithms, tells us how logarithms to different bases are related.
Rule 6: For numbers x > 0, a > 1 and b > 1, logb x = logb a × loga x.
Mathematics Learning Centre, University of Sydney 7
Solution: By rule 6,
log7 9 = log7 10 × log10 9
1
= × log10 9
log10 7
and the last expression can be evaluated by any calculator which can evaluate logarithms
to base 10.
2x = (eloge 2 )x = ex loge 2 .
We have been able to write the function 2x as a function involving the base e, though the
exponent is now not simply x, but x multiplied by some fixed number, namely loge 2.
Mathematics Learning Centre, University of Sydney 8
5x = ex loge 5
19−x = e−x loge 19
7−x = 4−x log4 7
ex = 13x log13 e
We can write all exponential functions in the form y = ekx , where k is some constant
which may be negative.
1.6 Summary
For any real number b > 1 and any x > 0, logb x is equal to that number to which b must
be raised to obtain the number x. One can think of logb x as the answer to the question
b? = x. The number logb x is called the logarithm to base b of x.
The function logb x satisfies the following rules:
Rule 1: For any real number x, logb bx = x
Rule 2: For any real number x > 0, blogb x = x
Rule 3: For any real numbers x > 0 and y > 0, logb xy = logb x + logb y
Rule 4: For any real numbers x > 0 and y > 0, logb x
y
= logb x − logb y
Rule 5: For real numbers x and n, with x > 0, logb xn = n logb x
Rule 6: For numbers x > 0, a > 1 and b > 1, logb x = logb a × loga x.
Logarithms to base 10 are in common use and for this reason they are called Common
Logarithms.
Logarithms to base e are of special importance. They are often called natural logarithms
or Napierian logarithms, and the symbol ln x is often used for them. Thus ln x = loge x.
Any exponential function may be written in the form ekx , where the constant k may be
negative.
1.7 Exercises
1. By expressing these numbers as powers of 10, and without using a calculator, calculate
the logarithms to base 10 of the following numbers.
1
a. 10000 b. 100
c. 0.001 d. 1012.3
√ √ 1
√ 1
e. 10 f. 10 4 10 g. ( 1000 ) 3 10 h. 0.001
3. Rewrite the following expressions so that they involve just one logarithm.
a. log10 x3 − 2.5 log10 y b. log10 6 + log10 x−2
c. 5 log10 3x − 4 log10 (xy + z 2 ) d. 2 log10 xy + 3 log10 (z 2 − y 2 )
e. log10 (x + y) − 3 log10 4 f. log10 xy − 1.7 log10 y 2
5. Rewrite the following expressions so that they involve only one logarithm.
a. 2 log3 (x + y) − 3 log3 (xy) + log3 x2 b. log6 xy − 4 log6 (x + y)
c. 4 log17 xy 2 + log17 (x2 + y 2 ) − 2.5 log17 x
7. Write each of the following functions in the form y = ekx for a suitable constant k.
a. y = 10x b. y = 7.5−x c. y = 4−x d. y = ( 14 )x
Rewrite the following expressions using the rules of logarithms, and simplify where pos-
sible.
2 −3 −1.3 7
17. log10 100x
9y
18. ln xy
e1.37
19. log4 4 x2 y3z
x3 y 2
20. log3 1 21. ln(e−2.4 x6 ) 22. log5 125x3
0.2y 2
27z 2
Using the rules of logarithms, rewrite the following expressions so that just one logarithm
appears in each.
23. 3 log2 x + log2 30 + log2 y − log2 w 24. 2 ln x − ln y + a ln w
25. 12(ln x + ln y) 26. log3 e × ln 81 + log3 5 × log5 w
27. log7 10 × log10 x2 − log7 49x 28. log10 0.1 × log6 x − 2 log6 y + log6 4 × log4 e
Given that loge 5 ≈ 1.6094, and loge 7 ≈ 1.9459, find the following numbers without using
a calculator except to perform multiplication or division.
29. log5 e 30. log5 7 31. log5 72 32. log49 5 33. log49 25 34. loge 25
Mathematics Learning Centre, University of Sydney 10
c.
4 log17 xy 2 + log17 (x2 + y 2 ) − 2.5 log17 x = log17 (xy 2 )4 + log17 (x2 + y 2 ) − log17 x2.5
x4 y 8 (x2 + y 2 )
= log17
x2.5
6. a. log3 17 = log3 10 × log10 17 = log10 17
log10 3
≈ 1.2304
0.4771
≈ 2.5789
b. log5 2 = log5 10 × log10 2 = log10 2
log10 5
≈ 0.3010
0.6990
≈ 0.4306
c. log22 14 = log22 10 × log10 14 = log10 14
log10 22
≈ 1.1461
1.3424
≈ 0.8538
log10 8
d. log4 8 = log4 10×log10 8 = log10 4
≈ 0.9031
0.6021
≈ 1.5 (in fact log4 8 is exactly 1.5 because
3
8=4 ) 2
2
12. ln ee21 = ln e2−21 = −19
ln e7 7 7
13. log11 121
= log11 112
= 2
x3 y 2
20. log3 1 = 3 log3 x + 2 log3 y − log3 27 − 12 log3 z = 3 log3 x + 2 log3 y − 3 − 12 log3 z
27z 2
30x3 y
23. 3 log2 x + log2 30 + log2 y − log2 w = log2 w
Mathematics Learning Centre, University of Sydney 12
2 a
24. 2 ln x − ln y + a ln w = ln x2 − ln y + ln wa = ln x yw
28. log10 0.1 × log6 x − 2 log6 y + log6 4 × log4 e = −1 × log6 x − log6 y 2 + log6 e = log6 e
xy 2
29. log5 e = 1
loge 5
≈ 1
1.6094
≈ 0.6213