Skip to content

The logarithm

The logarithm

A logarithm: the missing exponent

In the equation 2x=8\displaystyle {2^x}={8} the base, 2, and the result, 8, are known; the exponent is missing. It is 3, since 23=8\displaystyle {2^3}={8}.

  • This exponent is called the logarithm of 8 to the base 2, written log⁡28=3\displaystyle {\log_2 8}={3}.
  • Taking a logarithm is the inverse of raising to a power: a power gives the result from the base and the exponent, a logarithm gives the exponent from the base and the result.
The definition of the logarithm

log⁡ax\displaystyle \log_a x is the exponent to which a\displaystyle a must be raised to give x\displaystyle x:

log⁡ax=b  ⟺  ab=x\displaystyle \log_{a}x=b\iff a^{b}=xa>0, a≠1, x>0\displaystyle a>0,\ a\neq1,\ x>0
  • a\displaystyle a is called the base of the logarithm.
  • The base is positive and not 1, as the base of an exponential function is: every power of 1 is 1, so log⁡15\displaystyle \log_1 5 would have no value.
Values of logarithms

To calculate a logarithm we write the number as a power of the base:

  • log⁡232=5\displaystyle {\log_2 32}={5}, since 25=32\displaystyle {2^5}={32}.
  • log⁡319=−2\displaystyle {\log_3\frac{1}{9}}={-2}, since 3−2=19\displaystyle {3^{-2}}={\frac{1}{9}}.
  • log⁡927=32\displaystyle {\log_9 27}={\frac{3}{2}}, since 932=(9)3=27\displaystyle {9^{\frac{3}{2}}}={\left(\sqrt{9}\right)^3}={27}.
  • log⁡51=0\displaystyle {\log_5 1}={0}, since 50=1\displaystyle {5^0}={1}; the same in every base: log⁡a1=0\displaystyle {\log_a 1}={0}.
  • log⁡77=1\displaystyle {\log_7 7}={1}, since 71=7\displaystyle {7^1}={7}; the same in every base: log⁡aa=1\displaystyle {\log_a a}={1}.
The domain of the logarithm

A power of a positive base is always a positive number: ab>0\displaystyle a^b>0 for every b\displaystyle b.

  • So no exponent b\displaystyle b gives ab=0\displaystyle {a^b}={0} or ab=−4\displaystyle {a^b}={-4}.
  • log⁡ax\displaystyle \log_a x is defined only when x>0\displaystyle x>0: log⁡20\displaystyle \log_2 0 and log⁡2(−4)\displaystyle \log_2(-4) have no value.
  • The logarithm itself may be negative: log⁡218=−3\displaystyle {\log_2\frac{1}{8}}={-3}.
The logarithm to the base 10

A logarithm to the base 10 is written without its base: log⁡x\displaystyle \log x means log⁡10x\displaystyle \log_{10}x.

  • log⁡1000=3\displaystyle {\log1000}={3}, log⁡0.01=−2\displaystyle {\log0.01}={-2}.
  • A calculator’s log key gives the logarithm to the base 10 of any positive number: log⁡50≈1.699\displaystyle \log50\approx1.699.
  • log⁡50\displaystyle \log50 is between 1 and 2, since 50 is between 101\displaystyle 10^1 and 102\displaystyle 10^2.
A power and a logarithm undo each other

The logarithm is the exponent, so the two operations, one after the other, give back the number we started from:

alog⁡ax\displaystyle a^{\log_{a}x} =\displaystyle = x\displaystyle xx>0\displaystyle x>0
log⁡a(ab)\displaystyle \log_{a}(a^{b}) =\displaystyle = b\displaystyle b
  • 5log⁡57=7\displaystyle {5^{\log_5 7}}={7}.
  • log⁡338=8\displaystyle {\log_3 3^8}={8}.
Equations from the definition

An equation whose unknown is inside a logarithm, or in an exponent, is solved by the definition: we go from the logarithm form to the power form, or back.

  • log⁡2x=5\displaystyle {\log_2 x}={5}: by the definition x=25\displaystyle {x}={2^5}, that is x=32\displaystyle {x}={32}.
  • log⁡x49=2\displaystyle {\log_x 49}={2}: by the definition x2=49\displaystyle {x^2}={49}. A base is positive, so x=7\displaystyle {x}={7} (x=−7\displaystyle {x}={-7} is no base).
  • 2x=7\displaystyle {2^x}={7}: the exponent to which 2 is raised to give 7 is, by the definition, x=log⁡27\displaystyle {x}={\log_2 7}. This is the exact answer. Since 22=4\displaystyle {2^2}={4} and 23=8\displaystyle {2^3}={8}, its value is between 2 and 3.
Exercise 1

Calculate.

a

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      c

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        d

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          e

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            Exercise 2

            Solve the equations.

            a
              b
                c
                  Exercise 3

                  The equation is 10x=50\displaystyle {10^x}={50}.

                  a

                  Solve it, and write the exact answer.

                    b

                    Calculate x\displaystyle x with a calculator, to two decimal places.

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                      Exercise 4

                      Between which two consecutive whole numbers is log⁡220\displaystyle \log_2 20? Explain without a calculator.