Subjects / Math / Exponents and logarithms

What a logarithm asks

The key idea: a log is a question

An exponent tells you how many times to multiply. In 23=82^{3}=8 the base is 2, the exponent is 3, and the result is 8.

A logarithm runs that backwards. Instead of giving you the exponent, it hides it and asks for it:

log⁡b(c)\log_{b}(c) asks: what exponent do I put on bb to get cc?

Three readings, one question each time.

Try it: the exponential and the log, side by side

The mint curve is y=bxy=b^{x}. The iris curve is y=log⁡b(x)y=\log_{b}(x). Point P sits on the mint curve and point Q sits on the iris curve. Drag either point, use the slider, or focus a point and press the arrow keys. Watch the two statements below the graph: the same three numbers appear in both, just in different places.

  • y=bxy=b^{x} (point P)
  • y=log⁡b(x)y=\log_{b}(x) (point Q)
  • y=xy=x (the mirror)
Base b

Same fact, two ways

Exponential form
Log form

base exponent resultsame colours in both statements

Try this

  1. Pick base 2 and set the exponent to 3. The result is 8, so P is at (3, 8) and Q is at (8, 3). The log form says log⁡2(8)=3\log_{2}(8)=3, the same question as above.
  2. Set the exponent to 0. Both curves pass through a point where they say 1: P is at (0, 1) and Q is at (1, 0). Change the base. Does that spot move? Anything to the power 0 is 1, so every log has log⁡b(1)=0\log_{b}(1)=0.
  3. Slide the exponent below zero. The result turns into a fraction, getting smaller but never reaching 0 and never going negative. Try base 1/2 too: its curve goes down instead of up, and the mirror still works.

Why the mirror works

Look at the dashed line y=xy=x. Point P is (a, c)(a,\,c) and point Q is (c, a)(c,\,a). Q is P with its two numbers swapped, and swapping the two numbers of a point is the same as reflecting it across that dashed line. The short connector crosses the dashed line at a right angle, with P and Q the same distance from it.

This is the whole reason the curves match up. Exponentials turn an exponent into a result. Logs turn that result back into the exponent. Each one undoes the other:

blog⁡b(c)=cb^{\log_{b}(c)}=c
log⁡b ⁣(ba)=a\log_{b}\!\left(b^{a}\right)=a

Try the first with numbers: 2log⁡2(8)=23=82^{\log_{2}(8)}=2^{3}=8. The log found the exponent, and the exponential used it right away to get back to 8.

What this means for the domain

Look at the iris curve. It hugs the vertical axis but never touches it, and nothing of it lives at x≤0x\le 0. That is the mirror of the mint curve, which stays above the horizontal axis and never reaches 0 or goes below it.

The base of a log is always a positive number other than 1. A power of a positive base is always positive, so a log has nothing to say about 0 or a negative number. In log⁡b(c)\log_{b}(c), the input cc must bepositive. The answer can be any number, including negative ones; it is only the input that is restricted.