Exponentials and Logarithms

A log asks what power the base was raised to.

The graph of y = 2ˣ

In y = 2ˣ the variable x is the exponent. Work out some values. At x = 0, y = 2⁰ = 1. 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: 2⁻¹ = 1/2, 2⁻² = 1/4 and 2⁻³ = 1/8, 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.

xy

y = 2ˣ. 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

2⁵ = 32 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 log₂ 32 = 5. In general, logₐ x is the power to which a must be raised to give x. So logₐ x = y means exactly the same as aʸ = x.

Every logarithm fact is an exponent fact read backward. log₂ 8 = 3, because 2³ = 8. log₃ 81 = 4, because 3⁴ = 81. log₁₀ 1000 = 3, because 10³ = 1000.

The answer does not have to be a positive whole number. log₂ (1/8) = −3, because 2⁻³ = 1/8. log₉ 3 = 1/2, because 9^½ = √9 = 3.

52 to the …32log₂5the log undoes the power

Raise 2 to the power 5 and the result is 32. Take log₂ of 32 and the result is 5, the number the chain started from.

Each undoes the other

Raising 2 to a power and taking log₂ are inverse functions: each one undoes the other. Start with 3: 2³ = 8, and log₂ 8 = 3, which is back where you began. In symbols, log₂ (2ˣ) = x for every x.

The other order works too. Start with 16: log₂ 16 = 4, and 2⁴ = 16. So 2^(log₂ x) = x, 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 logₐ 1 = 0 in every base: log₂ 1 = 0, log₁₀ 1 = 0 and log₇ 1 = 0.

In the same way a¹ = a, so logₐ a = 1 in every base: log₂ 2 = 1 and log₁₀ 10 = 1.

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 y = 2ˣ, 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 log₂ 0 and log₂ (−4) do not exist. A logarithm exists only for a positive number.

A positive number less than 1 does have a logarithm. It is negative: log₂ (1/4) = −2, because 2⁻² = 1/4.

The graph of y = log₂ x

Each point (p, q) on y = 2ˣ says 2ᵖ = q, which is the same fact as log₂ q = p. So the point (q, p), with its coordinates swapped, lies on y = log₂ x. (3, 8) on y = 2ˣ becomes (8, 3) on y = log₂ x, and (0, 1) becomes (1, 0).

Swapping the coordinates of every point reflects a graph in the line y = x. So the graph of y = log₂ x is the reflection of the graph of y = 2ˣ in the line y = x.

The domain and the range change places. y = 2ˣ takes any number x and gives only positive values. y = log₂ x 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.

xy

The gold curve is y = log₂ x, the white curve is y = 2ˣ, and the white straight line is y = x. The point (3, 8) on y = 2ˣ reflects in y = x to (8, 3) on y = log₂ x, 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 2⁴ = 16 and 2⁵ = 32, so log₂ 20 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 10^0.3010 is 2, to that accuracy.

The logarithm of 2 × 10⁸

The next problem needs log₁₀ (2 × 10⁸). Write each factor as a power of 10. From the calculator value above, 2 = 10^0.3010, so 2 × 10⁸ = 10^0.3010 × 10⁸. Multiplying powers of the same base adds the indices, so this is 10^8.3010, and log₁₀ (2 × 10⁸) = 8.3010.

The two logarithms were added: log₁₀ 2 + log₁₀ 10⁸ = 0.3010 + 8 = 8.3010. 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. log₂ 32 is not 32. It is the power of 2 that makes 32, which is 5.

Multiplying or dividing. log₂ 8 is not 8 ÷ 2 = 4. It is 3, because 2 × 2 × 2 = 8. In the other direction, 2⁵ is 32, not 2 × 5 = 10.

Taking log₂ 1 to be 1. 2¹ = 2, not 1. The power of 2 that gives 1 is 0, so log₂ 1 = 0.

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. 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.

    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsone machine: I/I0 = 108, and log 108= 8L = 10 × 8 = 80 decibels
    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsone machine: I/I0 = 108, and log 108= 8L = 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. 2.With two machines the intensity is 2 × 108 I0, so L = 10 log10(2 × 108).

    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 1088090two machines: twice the intensityL = 10 log (2 × 108)
    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 1088090two machines: twice the intensityL = 10 log (2 × 108)
    Two machines give twice the intensity, 2 × 108, which lies between 108 and 109 on the scale.
  3. 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.

    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 1088090log (2 × 108) = log 2 + log 108= 0.3010 + 8 = 8.3010
    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 1088090log (2 × 108) = log 2 + log 108= 0.3010 + 8 = 8.3010
    The logarithm of a product is a sum: log10(2 × 108) = log10 2 + 8 = 8.3010.
  4. 4.(b) L = 10 × 8.3010 = 83.01, which is 83 decibels to the nearest decibel.

    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 108809083L = 10 × 8.3010 = 83.0183 decibels, to the nearest decibel
    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 108809083L = 10 × 8.3010 = 83.0183 decibels, to the nearest decibel
    (b) L = 10 × 8.3010 = 83.01, which is 83 decibels to the nearest decibel.
  5. 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.

    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 108809083twice the intensity adds 10 log 2, about 3ten times the intensity adds 10
    intensity, in multiples of the quietest sound10001022010440106601088010101001012120level, in decibelsfrom 108to 109, enlarged1081092 × 108809083twice the intensity adds 10 log 2, about 3ten times the intensity adds 10
    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.

More functions problems, worked step by step →

Practice Exponentials and Logarithms in the app