The graph of
In the variable x is the exponent. Work out some values. At x = 0, . At x = 1, 2, 3, 4 and 5, y is 2, 4, 8, 16 and 32. Each step of 1 to the right multiplies y by 2.
To the left the values halve instead: , and , because a negative index means one over the power. The values get closer and closer to 0, but they never reach it, because half of a positive number is still positive.
So on the left the graph stays just above the x-axis. It passes through (0, 1) and then climbs faster and faster. Between x = 4 and x = 5 it rises by 16, which is more than its whole rise from x = 0 to x = 4, 16 − 1 = 15.
. The marked points are (0, 1), (1, 2), (2, 4) and (3, 8): each step of 1 to the right doubles the height. To the left each step halves the height, and the curve gets closer to the x-axis without touching it.
A logarithm asks for the power
answers the question: what is 2 to the power 5? The same fact can be read the other way, as a question about the power: what power of 2 gives 32? The answer is 5.
That power has a name. It is the logarithm of 32 to base 2, written . In general, is the power to which a must be raised to give x. So means exactly the same as .
Every logarithm fact is an exponent fact read backward. , because . , because . , because .
The answer does not have to be a positive whole number. , because . , because .
Raise 2 to the power 5 and the result is 32. Take of 32 and the result is 5, the number the chain started from.
Each undoes the other
Raising 2 to a power and taking are inverse functions: each one undoes the other. Start with 3: , and , which is back where you began. In symbols, for every x.
The other order works too. Start with 16: , and . So , for every positive x.
The logarithm of 1
Any number other than 0, raised to the power 0, gives 1. So the power of a that gives 1 is always 0, and in every base: , and .
In the same way , so in every base: and .
No logarithm of 0 or of a negative number
The base of a logarithm is a positive number other than 1. (Every power of 1 is 1, so a base of 1 could only ever give 1.) Every power of a positive base is positive: on the graph of , every point is above the x-axis.
So no power of 2 is 0, and no power of 2 is −4. The questions "what power of 2 gives 0?" and "what power of 2 gives −4?" have no answer, and and do not exist. A logarithm exists only for a positive number.
A positive number less than 1 does have a logarithm. It is negative: , because .
The graph of
Each point (p, q) on says , which is the same fact as . So the point (q, p), with its coordinates swapped, lies on . (3, 8) on becomes (8, 3) on , and (0, 1) becomes (1, 0).
Swapping the coordinates of every point reflects a graph in the line y = x. So the graph of is the reflection of the graph of in the line y = x.
The domain and the range change places. takes any number x and gives only positive values. takes only positive numbers x, and it can give any value at all. Its graph passes through (1, 0), runs down alongside the y-axis without touching it, and climbs more and more slowly to the right: to go up by 1, x has to double.
The gold curve is , the white curve is , and the white straight line is y = x. The point (3, 8) on reflects in y = x to (8, 3) on , and (0, 1) reflects to (1, 0).
Logarithms of other numbers
Most numbers are not an exact power of the base. 20 is not a power of 2, but and , so lies between 4 and 5. It is about 4.32.
The logarithm to base 10 is called the common logarithm, and it is often written log with no base: log 1000 = 3. A calculator gives it for any positive number. For example, log 2 = 0.3010 to 4 decimal places, which means is 2, to that accuracy.
The logarithm of
The next problem needs . Write each factor as a power of 10. From the calculator value above, , so . Multiplying powers of the same base adds the indices, so this is , and .
The two logarithms were added: . This is a law that holds for every product: the logarithm of a product is the sum of the logarithms.
The usual mistakes
Giving the number instead of the power. is not 32. It is the power of 2 that makes 32, which is 5.
Multiplying or dividing. is not 8 ÷ 2 = 4. It is 3, because 2 × 2 × 2 = 8. In the other direction, is 32, not 2 × 5 = 10.
Taking to be 1. , not 1. The power of 2 that gives 1 is 0, so .
Worked example: Sound Levels in Decibels: One Machine, and Two Machines Running Together
Question The level of a sound of intensity I is L = 10 log10(II0) decibels, where I0 is the intensity of the quietest sound that a person can hear. (a) One machine in a workshop makes a sound of intensity I = 108 I0. Find its level. (b) A second, identical machine is switched on, so the intensity doubles. Find the new level, to the nearest decibel.
1.(a) For one machine II0 = 108. A logarithm to base 10 asks what power of 10 gives the number, so log10 108 = 8 and L = 10 × 8 = 80 decibels.
(a) Each power of 10 in the intensity is 10 decibels on the scale. One machine is at 108, so L = 10 × 8 = 80 decibels. 2.With two machines the intensity is 2 × 108 I0, so L = 10 log10(2 × 108).
Two machines give twice the intensity, 2 × 108, which lies between 108 and 109 on the scale. 3.The logarithm of a product is the sum of the logarithms. A calculator gives log10 2 = 0.3010, so log10(2 × 108) = log10 2 + log10 108 = 0.3010 + 8 = 8.3010.
The logarithm of a product is a sum: log10(2 × 108) = log10 2 + 8 = 8.3010. 4.(b) L = 10 × 8.3010 = 83.01, which is 83 decibels to the nearest decibel.
(b) L = 10 × 8.3010 = 83.01, which is 83 decibels to the nearest decibel. 5.Doubling the intensity adds 10 log10 2 ≈ 3 decibels, whatever the level was before. A rise of 10 decibels is a whole extra power of 10, which is ten times the intensity, so a rise of 3 decibels for twice the intensity is in keeping with the scale.
Doubling the intensity adds about 3 decibels at any level. Multiplying it by ten adds 10.
Answer: (a) 80 decibels; (b) 83 decibels
Common mistakes
- Doubling the level to 160 decibels because the intensity has doubled. The level is a logarithm of the intensity, so multiplying the intensity by 2 adds 10 log10 2 to the level. It does not multiply the level by 2.
- Splitting the product wrongly, as log10 2 × log10 108 = 0.3010 × 8. The logarithm of a product is the sum of the two logarithms, 0.3010 + 8, and not their product.