Skip to main content
\(\require{cancel} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section4.BLogarithm Rules

  • Expand logarithmic expressions using the rules of logarithms.

  • Combine logarithmic expressions using the rules of logarithms.

In Section 4.A, we introduced the logarithmic functions as inverses of exponential functions and discussed a few of their functional properties from that perspective. In this module, we explore the algebraic properties (or rules) of logarithms. Historically, these have played a huge role in the scientific development of our society since, among other things, they were used to develop analog computing devices called slide rules which enabled scientists and engineers to perform accurate calculations leading to such things as space travel and the moon landing. As we shall see shortly, logs have properties similar to all of the properties of exponents. We first restate the definition of a logarithm and the fact that it is the inverse of an exponential function.

Definition of Logarithm: Let \(b \gt 0\) with \(b \neq 1\text{.}\) If \(a\) and \(c\) are numbers

  • \(\log_b(c) = a\) means \(b^a = c\)
  • \(\log_b(b^x) = x\) for all \(x\) and \(b^{\log_b(x)} = x\) for all \(x \gt 0\)

A few quick examples to review logarithms:

Problem:

Means:

The answer is:

Because:

\(\log_2 8\)

\(2\) to what power is \(8\text{?}\)

\(3\)

\(2^3\) is \(8\)

\(\log_2 16\)

\(2\) to what power is \(16\text{?}\)

\(4\)

\(2^4\) is \(16\)

\(\log_2 10\)

\(2\) to what power is \(10\text{?}\)

somewhere between

\(3\) and \(4\)

\(2^3 = 8\) and \(2^4 = 16\)

\(\log_8 2\)

\(8\) to what power is \(2\text{?}\)

\(\frac{1}{3}\)

\(8^{\frac{1}{3}}= \sqrt[3]{8} = 2\)

\(\log_{10} 10,000\)

\(10\) to what power is \(10,000\text{?}\)

\(4\)

\(10^4 = 10, 000\)

\(\log_{10} \frac{1}{100}\)

\(10\) to what power is \(=\frac{1}{100}\text{?}\)

\(-2\)

\(10^{-2} = \frac{1}{10^2} = \frac{1}{100}\)

\(\log_5 0\)

\(5\) to what power is \(0\text{?}\)

There is no answer

\(5^{?}\) will never be \(0\)

Review the graph of a logarithm function

The graph of any logarithm function with base greater than \(1\) has the same basic shape. We plot a few well chosen points to graph \(f(x) = \log_2(x)\text{:}\)

\(x\) \(y = \log_2(x)\)
\(\frac{1}{8}\) \(-3\)
\(\frac{1}{4}\) \(-2\)
\(\frac{1}{2}\) \(-1\)
\(1\) \(0\)
\(2\) \(1\)
\(4\) \(2\)
\(8\) \(3\)

As always, you can learn a great deal about the log function by reading the graph.

  • The domain is \(x \gt 0.\) (You can't take the log of \(0\) or a negative number – do you remember why?).
  • The range, on the other hand, is all numbers. Of course, all this inverses the function \(2^x\text{,}\) which has a domain of all numbers and a range of \(y \gt 0.\)
  • As \(x\) gets closer and closer to \(0,\) the function dives down to smaller and smaller negative numbers. So the \(y\)-axis serves as an “asymptote” for the graph, meaning a line that the graph approaches closer and closer as a guiding line.
  • As \(x\) moves to the right, the graph grows–but more and more slowly. As \(x\) goes from \(4\) to \(8,\) the graph goes up by \(1.\) As \(x\) goes from \(8\) to \(16,\) the graph goes up by another \(1.\) It doesn't make it up another \(1\) until \(x\) reaches \(32\dots \) and so on.

Using the log to model a real world problem

This pattern of slower and slower growth is one of the most important characteristics of the log. It can be used to "slow down" functions that have too wide a range to be practical to work with.

Using the log to model a real world problem: Lewis Fry Richardson (1881-1953) was a British meteorologist and mathematician. He was also an active Quaker and committed pacifist, and was one of the first men to apply statistics to the study of human conflict. Richardson catalogued \(315\) wars between 1820 and 1950, and categorized the by how many deaths they caused. At one end of the scale is a deadly quarrel, which might result in \(1\) or \(2\) deaths. At the other extreme are World War I and World War II, which are responsible for roughly \(10\) million deaths each.

Richardson's scale makes it practical to chart, discuss, and compare wars and battles from the smallest to the biggest. For instance, he discovered that each time you move up by one on the scale–that is, each time the number of deaths multiplies by \(10\)–the number of conflicts drops by a third. (So there are roughly three times as many “magnitude \(5\)”wars as “magnitude \(6\text{,}\)”and so on.)

The log is useful here because the logarithm function itself grows so slowly that it compresses the entire 1 to 10,000,000 range into a \(0\) to \(7\) scale. The same trick is used–for the same reason–to study topics ranging from earthquakes to sound waves.

Subsection4.B.1Rules of Logarithms

Just as there are fundamental rules of exponents, there are corresponding fundamental rules of logarithms.

For \(b\gt 0\text{,}\) \(b \neq 1\) and real numbers \(m\text{,}\) \(n\text{,}\) \(M\) and \(N\text{,}\) the exponent and logarithm rules are:

Rules for Exponents:

Rules for Logarithms:

Product Rule

\(b^m b^n = b^{m+n}\)

\(\log_b (MN) = \log_b M + \log_b N\)

Quotient Rule

\(\dfrac{b^m}{b^n} = b^{m-n}\)

\(\log_b \dfrac{M}{N} = \log_b M - \log_b N\)

Power Rule

\((b^m)^n = b^{mn}\)

\(\log_b M^n= n\log_b M\)

Zero Rule

\(b^0 = 1\)

\(\log_b(1) = 0\)

Example4.B.1Properties of Logarithms

Suppose you are given these two facts:

  • \(\log_4 5 = 1.16\)
  • \(\log_4 10 = 1.66\)

Then we can use the laws of logarithms to conclude that:

  • \(\log_4 (50) = \log_4 5 + \log_4 10 = 1.16 + 1.66 = 2.82\)
  • \(\log_4 (2) = \log_4 10 - \log_4 5 = 1.66 - 1.16 = 0.5\)
  • \(\log_4 (100,000) = 5\log_4 10 = 5(1.66) = 8.3\checkmark\)

NOTE: All three of these above results can be found quickly, and without a calculator. Note that the second result could also be figured out directly, since \(4^{1/2} = 2.\)

These rules of logarithms were very important historically, because they enabled pre-calculator mathematicians to perform multiplication (which is very time-consuming and error prone) by doing addition (which is faster and easier). These rules are still useful in simplifying complicated expressions and solving equations and we will explore these uses in the next module. The logarithm rules may seem a bit strange, but they come about because of the way exponents behave.

Subsection4.B.2Proving the Rules of Logarithms

If you understand what an exponent is, you can very quickly see why the rules of exponents work. But why do logarithms have the rules we listed above?

As you work through the text, you will demonstrate these rules intuitively, by viewing the logarithm as a counter. ( \(\log_2 8\) asks “How many \(2\)s do I need to multiply, in order to get \(8?\)”) However, these rules can also be rigorously proven, using the rules of exponents as our starting place.

Proving the Product Rule of Logarithms: \(\log_b (MN) = \log_b M + \log_b N\)

\begin{align*} c\amp = \log_b M \amp\amp\text{We're just inventing \(c\) to represent this log}\\ \amp\amp\amp\text{Rewriting the above expression as an exponent}\\ b^c\amp = M\amp\amp\log_b M \text{ asks: \(b\) to what power is \(M\)?}\\ \amp\amp\amp\text{And the equation answers: \(b\) to the \(c\) is \(M\)}\\ d\amp = \log_b N\amp\amp\text{Similarly, \(d\) will represent the other log}\\ b^d\amp = N\amp\amp\\ \log_b (MN)\amp = \log_b (b^c b^d)\amp\amp\text{Replacing \(M\) and \(N\) based on the previous equations}\\ \amp= \log_b (b^{c+d})\amp\amp\text{This is the key step! It uses the first rule of exponents.}\\ \amp\amp\amp\text{Thus you can see that the rules of logarithms}\\ \amp\amp\amp\text{come directly from the rules of exponents}\\ \amp = c + d\amp\amp\log_b (b^{c+d})\text{ asks the question: \(b\) to what power is \(b^{c+d}\)?}\\ \amp\amp\amp\text{Looked at this way, the answer is obviously \((c+d)\)}\\ \amp\amp\amp\text{Hence, you can see how the logarithm and exponential functions}\\ \amp\amp\amp\text{cancel each other out, as inverse functions must.}\\ \amp= \log_b M + \log_b N\amp\amp\text{Replacing \(c\) and \(d\) with what they were originally defined as} \end{align*}

Hence, we have proven what we set out to prove.

To test your understanding, try proving the Quotient Rule of logarithms: the proof is very similar to the proof just given above. For the Power Rule, you need invent only one variable, \(f = \log_b M\text{.}\) In each case, you will rely on a different one of the rules of exponents, showing how each exponent rule corresponds to one of the logarithms rules.

Subsection4.B.3Working with the Properties of Logarithms

The following examples help build familiarity with using the the log rules.

Example4.B.2Properties of Logarithms

Expand the following using the rules of logarithms and simplify. Assume when necessary that all quantities represent positive real numbers.

  1. \(\log_2\left( \dfrac{8}{x}\right)\)

    Solution: To expand \(\log_2\left( \frac{8}{x}\right)\text{,}\) we use the Quotient Rule:

    \begin{align*} \log_2\left( \dfrac{8}{x}\right)\amp = \log_2(8) - \log_2(x)\amp\amp\text{Quotient Rule}\\ \amp = 3 - \log_2(x)\amp\amp\text{Since \(2^3 = 8\) we can simplify the }\log_2(8)=3 \end{align*}
  2. \(\ln (x^2y)\)

    Solution: To expand this expression, we need both the Product Rule and the Power Rule:

    \begin{align*} \ln (x^2y)\amp = \ln(x^2) + \ln(y)\amp\amp\text{Product Rule}\\ \amp = 2\ln(x) + \ln(y)\amp\amp\text{Power Rule} \end{align*}
  3. \(\log \left( \dfrac{\sqrt{x}}{x+3} \right)\)

    Solution: The Quotient Rule and Power Rule will do the trick for this one:

    \begin{align*} \log \left( \dfrac{\sqrt{x}}{x+3} \right)\amp = \log(\sqrt{x}) - \log(x+3)\amp\amp\text{Quotient Rule}\\ \amp = \log(x^{1/2}) - \log(x+3)\amp\amp\text{Rewrite the square root as an exponent}\\ \amp = \frac{1}{2}\log(x) - \log(x+3)\amp\amp\text{Power Rule} \end{align*}

    Note that we cannot change \(\log(x+3)\) by any log rule since it is not a product nor a quotient.

  4. \(\log(100A^{0.3}B)\)

    Solution:

    \begin{align*} \log(100A^{0.3}B)\amp = \log(100) + \log(A^{0.3})+\log(B)\amp\amp\text{Product Rule}\\ \amp = 2 + \log(A^{0.3})+\log(B)\amp\amp\text{Simplify }\log(100) = 2\text{ since }10^2=100\\ \amp = 2 + 0.3\log(A)+\log(B)\text{Power Rule} \end{align*}
  5. \(\ln(x^2 - 5y)\)

    Solution: This one does not simplify since it is not a product nor quotient.\(\checkmark\)

Example4.B.3Log Rules

Use the rules of logarithms to write the following as a single logarithm.

  1. \(\log(x) + \log(y) - \log(5)\)

    Solution:

    \begin{align*} \log(x) + \log(y) - \log(5)\amp = \log(xy) - \log(5)\amp\amp\text{Product Rule to combine }\log(x) + \log(y)\\ \amp = \log\left( \dfrac{xy}{5} \right)\amp\amp\text{Quotient Rule} \end{align*}
  2. \(2\ln(x-1) - \ln(x+1)\)

    Solution:

    \begin{align*} 2\ln(x-1) -\ln(x+1)\amp = \ln(x-1)^2 -\ln(x+1)\amp\amp\text{Power Rule}\\ \amp = \ln\left(\dfrac{(x-1)^2}{x+1}\right)\amp\amp\text{Quotient Rule} \end{align*}
  3. \(\ln(x)\ln(x+1)\)

    Solution: This expression cannot be combined into one log since it is not a sum or difference of two logarithms.

  4. \(\dfrac{\log(5t)}{\log(t-3)}\)

    Solution: Like the previous example, this expression cannot be combined into one logarithm since it is not the sum or difference of two logarithms.\(\checkmark\)

Example4.B.4Earthquakes

In the western United States the area \(A\) (in \(\mbox{mi}^2\)) affected by an earthquake is related to the magnitude \(R\) of the quake by the formula:

\begin{gather*} R = 2.3 \log(A + 3000) - 5.1 \end{gather*}

  1. If \(5 \mbox{ mi}^2\) of land are affected by an earthquake, what was the magnitude of the quake?

    Solution: Use \(A = 5\) in the formula to find \(R\text{:}\)

    \begin{align*} R \amp = 2.3 \log(5 + 3000) - 5.1\\ \amp = 2.3 \log(3005) - 5.1\\ \amp \approx 2.3 (3.47784) - 5.1\\ \amp \approx 2.89903 \end{align*}

    \(R\) is about a magnitude \(3\) earthquake.

  2. How many square miles will be affected if a magnitude \(5\) earthquake hits?

    Solution: This time we know \(R\) but not \(A\text{.}\)

    \begin{align*} 5\amp = 2.3 \log(A + 3000) - 5.1\amp\amp\\ 5 + 5.1 \amp = 2.3 \log(A + 3000)\amp\amp\\ \frac{10.1}{2.3}\amp = \log(A + 3000)\amp\amp\text{Switch to exponential form}\\ A + 3000 \amp = 10^{10.1/2.3}\amp\amp\\ A\amp=10^{10.1/2.3} - 3000\amp\amp\\ \amp\approx 21,620.924 \text{ mi}^2\checkmark \end{align*}