# It’s the Law Too — the Laws of Logarithms

Copyright © 2002–2024 by Stan Brown, BrownMath.com

Copyright © 2002–2024 by Stan Brown, BrownMath.com

**Summary:**
Do you have trouble remembering the laws of logarithms? Do
you know why you can change log(x)+log(y) to a different form, but not
log(x+y)? This page helps you make sense out of the laws of
logarithms.

**See also:**
All the laws of logarithms flow
directly out of the **laws of exponents**. If you feel a bit
unsteady with the laws of exponents, please review
them before going on.

A logarithm is just an exponent.

To be specific,
**the logarithm of a number x to a base b**
is just the exponent you put onto

More generically, if *x* = *b*^{y}, then we
say that *y* is “the logarithm of *x* to the base *b*”
or “the base-*b* logarithm of *x*”.
In symbols, *y* = log_{b}(*x*),
often written without the parentheses,
*y* = log_{b}*x*.
Every exponential equation can be rewritten as a logarithmic equation,
and vice versa, just by interchanging the *x* and *y*
in this way.

You don’t see the word very often, but you could
also say that *x* is the **antilogarithm** of *y* to the
base *b*. The logarithm is the exponent, and the antilogarithm is
the result of raising the base to that exponent.

Another way to look at it is that the
log_{b}*x*
function is defined as the inverse of the
*b*^{x} function. These two statements express
that inverse relationship, showing how an exponential equation is
equivalent to a logarithmic equation:

*x* = *b*^{y}
is the same as
*y* = log_{b}*x*

In either equation, *x* is the antilogarithm and
*y* is the logarithm, to base *b*.

**Example 1:**
1000 = 10^{3} is the same as
3 = log_{10}1000.
The logarithm is 3 and the antilogarithm is
1000.

**Example 2:**
log_{3}81 = ? is the same
as 3^{?} = 81.
The unknown “?” is the logarithm, and 81 is the
antilogarithm.

It can’t be said too often:
**a logarithm is nothing more than an exponent.**
You can write the above definition
compactly, and show the log as an exponent, by
substituting the second equation into the first to eliminate
*y*:

Read that as “the logarithm of *x* in base *b* is the
exponent you put on *b* to get *x* as a result.”

Before pocket calculators—only a few decades ago, but in “student years” that’s the age of the dinosaurs—the answer was simple. You needed logs to compute most powers and roots with fair accuracy; even multiplying and dividing most numbers were easier with logs. Every decent algebra books had pages and pages of log tables at the back.

The invention of logs in the early 1600s fueled the scientific revolution. Back then scientists, astronomers especially, used to spend huge amounts of time crunching numbers on paper. By cutting the time they spent doing arithmetic, logarithms effectively gave them a longer productive life. The slide rule, once almost a cartoon trademark of a scientist, was nothing more than a device built for doing various computations quickly, using logarithms. See Eli Maor’s e: The Story of a Number for more on this.

Today, logs are no longer used in routine number crunching. But there are still good reasons for studying them.

Why do we use logarithms, anyway? I could write a whole article about them—maybe one day. But for now —

- To find the number of payments on a loan or the time to reach an investment goal.
- To model many natural processes, particularly in living systems. We perceive loudness of sound as the logarithm of the actual sound intensity, and dB (decibels) are a logarithmic scale. Star magnitudes are measured on a logarithmic scale.
- To measure the pH or acidity of a chemical solution. The pH is the negative logarithm of the concentration of free hydrogen ions.
- To measure earthquake intensity on the Richter scale.
- To analyze exponential processes. Because the log function is the inverse of the exponential function, we often analyze an exponential curve by means of logarithms. Plotting a set of measured points on “log-log” or “semi-log” paper can reveal such relationships easily. Applications include cooling of a dead body, growth of bacteria, and decay of a radioactive isotopes. The spread of an epidemic in a population often follows a modified logarithmic curve called a “logistic”.
- To solve some forms of area problems in calculus.
(The area under the curve 1/
*x*, between*x*=1 and*x*=*A*, equals ln*A*.) - Also in calculus, differentiating a complicated product becomes much easier if you first take the logarithm.

(Historically, the main reason for teaching logs in grade school was to simplify computation, because the log of a multiplication “downgrades” it to an addition, and the log of a power expression “downgrades” it to a multiplication. Of course, with the widespread availability of personal computing devices, difficulty of computation is no longer a concern, but logs still have many applications in their own right.)

From the definition of a log as inverse of an
exponential, you can immediately get some basic facts.
For instance, if you graph *y*=10^{x}
(or the exponential with any other positive base), you
see that its range is positive reals; therefore the domain of
*y*=log *x* (to any base) is the positive reals. In other
words, you can’t take log 0 or log of a negative number.

(Actually, if you’re willing to go outside the reals, you can take the log of a negative number. The technique is taught in many trigonometry courses.)

You know that anything to the zero power is 1: b^{0} = 1. Change that to logarithmic form with the definition of logs and you have | |

log_{b}1 = 0 for any base b | |

In the same way, you know that the first power of any number is just that number: b^{1} = b. Again, turn that around to logarithmic form and you have | |

log_{b}b = 1 for any base b |

**Example 3:**
ln 1 = 0

**Example 4:**
log_{5}5 = 1

A log is an exponent because the log function is the inverse of the exponential function. The inverse function undoes the effect of the original function. (I’m not a big fan of most uses of the term “cancel” in math, but it does fit in this situation.)

This means that if you take the log of an exponential (to the same base, of course), you get back to where you started: | |

log_{b}b^{x} = x for any base b | |

This fact lets you evaluate many logarithms without a calculator. |

**Example 5:**
log_{5}125 =
log_{5}(5³) = 3

**Example 6:**
log_{10}10^{3.16} = 3.16

**Example 7:**
ln e^{−kt/2} = −*k**t*/2

Any positive number is suitable as the base of logarithms, but two bases are used more than any others:

base of logarithms | symbol | name |
---|---|---|

10 | log(if no base shown) |
common logarithm |

e | ln |
natural logarithm, pronounced “ell-enn” or “lahn” |

Natural logs are logs, and follow all the same rules as any other logarithm. Just remember: | |

ln x means log_{e}x |

Why base e? What’s so special about e?
Most of the explanations need some calculus, for instance that
e^{x} is the only function that is both its own integral
and its own derivative or that e has this beautiful definition in
terms of factorials:

e = 1/0! + 1/1! + 1/2! + 1/3! + …

Numerically, e is about 2.7182818284. It’s irrational (the decimal expansion never ends and never repeats), and in fact like π it’s transcendental (no polynomial equation with integer coefficients has π or e as a root.)

e (like π) crops up in all sorts of
unlikely places, like computations of compound interest.
It would take a book to explain, and
fortunately there *is* a book, Eli Maor’s e: The Story of a
Number. He also goes into the history of logarithms, and the book is
well worth getting from your library.

In a minute we’ll look at the various combinations. But first you
might want to know the general principle: *logs reduce operations
by one level.* Logs turn a multiplication into an addition, a
division into a subtraction, an exponent into a multiplication, and a
radical into a division. Now let’s see why, and look at some examples.

Multiplying two expressions corresponds to adding their logarithms. Can we make sense of this?

By the compact definition, | |

x = b^{logbx} and y = b^{logby} | |

and therefore, substituting for x and y, | |

xy = b^{logbx} b^{logby} | |

But when you multiply two powers of the same base, you add their exponents. So the right-hand side becomes | |

xy = b^{logbx+logby} | |

Now apply the compact definition to the left=hand side: | |

b^{logb(xy)} = xy | |

Combine that with the preceding equation to obtain | |

b^{logb(xy)} = b^{logbx+logby} | |

Now we have two powers of the same base. If the powers are equal, then the exponents must also be equal. Therefore | |

log_{b}(xy) = log_{b}x + log_{b}y |

So what’s the bottom line? Multiplying two numbers and taking the log is the same as taking their logs and adding.

**Example 8:**
log_{8}(*x*)+log_{8}(*x*²) is the same as
log_{8}(*x**x*²) or just
log_{8}(*x*³).
(As you’ll see in the next section, this can be
further simplified to 3 log_{8}*x*.)

**Example 9:**
log_{10}(20)+log_{10}(50) =
log_{10}(20×50) = log_{10}(1000) = 3.

Because this article helps you,

please click to donate!Because this article helps you,

please donate at

BrownMath.com/donate.

please click to donate!Because this article helps you,

please donate at

BrownMath.com/donate.

Continuing our theme of logarithms reducing the level of
operations, if you have the *y*th power of a number and take the
log, the result is *y* times the log of the number. Here’s
why, starting with *x*^{y}:

Start with the compact definition of a logarithm: | |

x = b^{logbx} | |

and raise both sides to the y power: | |

x^{y} = (b^{logbx})^{y} | |

A power of a power is equivalent to just multiplying the exponents. Simplify the right-hand side: | |

x^{y} = b^{(y logbx)} | |

Rewrite the left-hand side using the compact definition of a log: | |

b^{logb(xy)} = x^{y} | |

(The font may be hard to read:
that’s x to the power y on left and right.)
and combine the last two equations: | |

b^{logb(xy)} = b^{(y logbx)} | |

If the powers are equal and the bases are equal, the exponents must be equal: | |

log_{b}(x^{y}) = y log_{b}x |

**Example 10:**
ln(2^{6}) = 6 ln 2
(where “ln” means log_{e}, the natural
logarithm).

**Example 11:**
log_{5}(5*x*²) is *not* equal to
2 log_{5}(5*x*). Be careful with order of operations!
5*x*² is 5(*x*²), not (5*x*)².
log_{5}(5*x*²) must first be decomposed as the
log
of the product: log_{5}5 +
log_{5}(*x*²). Then the second term can use the
power rule, log_{5}(*x*²) =
2 log_{5}*x*. The first term is just 1. Summing up,
log_{5}(5*x*²) = 1 +
2 log_{5}*x*.

The trick to evaluating expressions like 6.7^{4.4} is
to use the exponent rule and the log-as-inverse definition:

x = 6.7^{4.4}

log x = 4.4 ( log 6.7 ) = about 3.634729132

x = 10^{3.63472…} = about 4312.5

There’s nothing special about base-10 logs here. The calculation could just as well be

x = 6.7^{4.4}

ln x = 4.4 ( ln 6.7 ) = about 8.369273116

x = e^{8.36927…} = about 4312.5

This will work for any positive base and any real exponent, so for example

x = π^{π}

log x = π (log π) = about 1.561842388

x = 10^{1.5618…} = about 36.46215961

You can combine this with the
multiplying numbers = adding logarithms rule to
evaluate powers that are too big for your calculator. For example,
what is 671^{217}?

x = 671^{217}

log x = 217 (log 671) = about 613.3987869

Now, separate the integer and fractional parts of the logarithm.

log x = about 0.3987869 + 613

x = 10^{0.3987869 + 613}

x = 10^{0.3987869} · 10^{613}

x = about 2.505 · 10^{613}

For examples like this, you really do have to use base-10 logs.

If the base is negative or the exponent is complex, see Powers and Roots of a Complex Number.

Since division is the opposite of multiplication, and subtraction is the opposite of addition, it’s not surprising that dividing two expressions corresponds to subtracting their logs. While we could go back again to the compact definition, it’s probably easier to use the two preceding properties.

Start with the fact that 1/y = y^{−1} (see the definition of negative exponents): | |

x/y = x(1/y) = xy^{−1} | |

and take the log of both sides: | |

log_{b}(x/y) = log_{b}(xy^{−1}) | |

The right-hand side is the log of a product, which becomes the sum of the logs: | |

log_{b}(x/y) = log_{b}x + log_{b}(y^{−1}) | |

and the second term is the log of a power, which becomes (−1) times the log, or just minus the log: | |

log_{b}(x/y) = log_{b}x − log_{b}y |

In words, if you divide and take the log, that’s the same as subtracting the individual logs.

**Example 12:**
675÷15=45, and therefore
log_{10}675 − log_{10}15 =
log_{10}45. (Try it on your calculator!)

**Example 13:**
log(*x*³*y*²) −
log(*x*²*y*³) =
log(*x*³*y*² / *x*²*y*³) =
log(*x*/*y*) =
log(*x*) − log(*y*).

Now you have everything you need to change logarithms from one
base to another. Look again at the compact
equation that defines a log in base *b*:

To change the log from base b to another base (call it a), you want to find log_{a}(x). Since you already have x on one side of the above equation, it seems like a good start is to take the base-a log of both sides: | |

log_{a}(b^{logbx}) = log_{a}x | |

But the left-hand side of that equation is just the log of a power. You remember that log(x^{y}) is just log(x) times y. So the equation simplifies to | |

(log_{a}b) (log_{b}x) = log_{a}x |

Notice that log_{a}*b* is a constant. This
means that the logs of all numbers in a given base *a* are
proportional to the logs of the same numbers in another base *b*,
and the proportionality constant log_{a}*b* is
the log of one base in the other base.
If you’re like me, you may have trouble remembering
whether to multiply or divide. If so, just derive the
equation—as you see, it takes only two steps.

Some textbooks present the change-of-base formula as a fraction. To get the fraction from the above equation, simply divide by the proportionality constant log_{a}b: | |

log_{b}x = (log_{a}x) / (log_{a}b) |

**Example 14:**
log_{4}16 = (log 16) /
(log 4). (You can verify this with your calculator, since you
know log_{4}16 must equal 2.)

**Example 15:**
Most calculators can’t graph
*y* = log_{3}*x* directly.
But you can change the base to e and easily plot
*y* = (ln *x*)÷(ln 3). (You could
equally well use base 10.)

An interesting side road leads from the above formula. Replace x everywhere with a—this is legal since the formula is true for all positive a, b, and x. You get | |

log_{b}a = (log_{a}a) / (log_{a}b) | |

But log_{a}a = 1 (see Log of 1 above), so the formula becomes | |

log_{b}a = 1 / (log_{a}b) |

**Example 16:**
log_{10}e =
1/(ln 10). (You can verify this with your calculator.)

**Example 17:**
log_{125}5 =
1/(log_{5}125). This is easy to verify:
5^{3} = 125, and 5 is the cube root of 125.
Therefore log_{125}5 = 1/3 and
log_{5}125 = 3, and 1/3 does indeed equal
1/3.

The laws of logarithms have been scattered through this longish page, so it might be helpful to collect them in one place. To make this even more amazingly helpful <grin>, the associated laws of exponents are shown here too.

For heaven’s sake, don’t try to memorize this table! Just use it to jog your memory as needed. Better yet, since a log is an exponent, use the laws of exponents to re-derive any property of logarithms that you may have forgotten. That way you’ll truly gain mastery of this material, and you’ll feel confident about the operations.

exponents | logarithms |
---|---|

x =
b^{y}
is the same as
y = log_{b}x | |

b^{0} = 1 |
log_{b}1 = 0 |

b^{1} = b |
log_{b}b = 1 |

b^{(logbx)} = x |
log_{b}b^{x} = x |

b^{x} b^{y} = b^{x+y} |
log_{b}(xy) = log_{b}x + log_{b}y |

b^{x}/b^{y} = b^{x−y} |
log_{b}(x/y) = log_{b}x − log_{b}y |

(b^{x})^{q} = b^{xq} |
log_{b}(x^{q}) = q log_{b}x |

(log_{a}b) (log_{b}x) = log_{a}x | |

log_{b}x = (log_{a}x) / (log_{a}b) | |

log_{b}a = 1 / (log_{a}b) | |

(All laws
apply for any positive a, b, x, y and any real q.) |

Don’t get creative! Most variations on the above are not valid.

**Example 18:**
log (5+*x*) is not the same as
log 5 + log *x*. As you know,
log 5 + log *x* = log(5*x*), not
log(5+*x*). Look carefully at the above table and you’ll see
that there’s nothing you can do to split up log(*x*+*y*) or
log(*x*−*y*).

**Example 19:**
(log *x*) /
(log *y*) is not the same as log(*x*/*y*). In
fact, when you divide two logs to the same base, you’re
working the change-of-base formula backward. Though it’s not often
useful, (log *x*) / (log *y*) =
log_{y}*x*. Just don’t write log(*x*/*y*)!

**Example 20:**
(log 5)(log *x*) is not the
same as log(5*x*). You know that log(5*x*) is
log 5 + log *x*. There’s really not much you can
do with the product of two logs when they have the same base.
(You could rewrite the product as
log(*x*^{log 5}), but that’s hardly any
simpler.)

**See also:**
Combining Operations (Distributive Laws)

Well, there you have it: the laws of logarithms demystified! The general rule is that logs simply drop an operation down one level: exponents become multipliers, divisions become subtractions, and so on. If ever you’re unsure of an operation, like how to change base, work it out by using the definition of a log and applying the laws of exponents, and you won’t go wrong.

Did your teacher tell you
**you can’t take the log of a negative number?**
Well, that’s only true if you restrict yourself to logarithms
that are real numbers. If you allow for complex numbers, then you can
take the log of a negative or complex number.

To find such logarithms, say log(5 − 6i), you need to put the number in polar form first. That’s a trig topic, and I explain it in my textbook Trig without Tears, specifically here.

**5 Oct 2023**: Added a section, Logs of Negative and Complex Numbers. Improved the layout of the table in the Summary, and allowed exponent*q*to be real, not necessarily positive.**15 Nov 2021**: Updated external links.**28 May 2021**: Added a link to my new page on star magnitudes, and removed a statement that we perceive light intensity logarithmically since recent research has cast doubt on that.**7 Dec 2020**:- Added the term antilogarithm, with additional text here, here, and here.
- Drew attention to the custom of omitting parentheses wih the log function.
- Changed “three decades” to a few decades for the advent of pocket calculators. (Students in my classes first started getting HP-35s in 1973.)
- Added a rewritten form of
(log 5)(log
*x*).

**20/23 Oct 2020**: Converted page from HTM 4.01 to HTML 5 and replaced obsolete tags with CSS. Added a slight foreshadowing to this example.- (intervening changes suppressed)
- 11 Jan 1998: Adapted this article for the Web
- 22 Dec 1997: Posted to alt.algebra.help.

Because this article helps you,

please click to donate!Because this article helps you,

please donate at

BrownMath.com/donate.

please click to donate!Because this article helps you,

please donate at

BrownMath.com/donate.

Updates and new info: https://BrownMath.com/alge/