Skip to main content

Section 4.3 Rules of Logarithms

Subsection 4.3.1 The Inverse Rules

Let \(f(x)=a^x\) and \(g(x)=\log_a(x)\text{,}\) where \(a \gt 0 \text{,}\) \(a \not= 1\text{.}\)
Writing the two compositions gives:
\begin{align*} f(g(x)) \amp =f(\log_a(x))=a^{\log_a(x)} \quad \text{for } x \gt 0 \\[0.25em]\\ g(f(x)) \amp =g(a^x)=\log_a(a^x) \quad \quad \text{for any real number $x$} \end{align*}
Since \(f\) and \(g\) are inverse functions, their compositions satisfy
\begin{equation*} f(g(x))=x \quad \text{and} \quad g(f(x))=x. \end{equation*}
Therefore, we obtain the Inverse Rules:
  1. \(a^{\log_a(x)}=x\) Β  Β  Β  for \(x \gt 0\text{.}\)
  2. \(\log_a(a^x) =x\) Β  Β  for any real number \(x\text{.}\)

Example 4.3.1.

Simplify each expression.
\begin{equation*} \text{(a) }10^{\log(3x+1)} \quad \quad \quad \quad \quad \quad \text{ (b) } \ln(e^{2k}) \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \end{equation*}
Solution
(a) Recall that \(\log(x)=\log_{10}(x)\text{.}\)
\begin{align*} 10^{\log(3x+1)} \amp = 10^{\log_{10}(3x+1)} \\ \amp =3x+1 \quad \quad \quad \text{by Inverse Rules} \end{align*}
(b) Recall that \(\ln(x)=\log_e(x)\text{.}\)
\begin{align*} \ln(e^{2k}) \amp =\log_e(e^{2k}) \\ \amp=2k \quad \quad \quad \text{by Inverse Rules} \end{align*}

Example 4.3.2.

Solve each for \(y\text{.}\)
\begin{equation*} \text{(a) }x=7^{y+2} \quad \quad \quad \quad \quad \quad \text{ (b) }x-4=\log_2(y-1) \quad \quad \quad \quad \quad \quad \quad \end{equation*}
Solution
(a) Take \(\log_7\) of both sides:
\begin{align*} \log_7(x) \amp =\log_7(7^{y+2}) \\ \log_7(x) \amp =y+2 \quad \quad \quad \text{by Inverse Rules.} \end{align*}
Therefore, \(y=\log_7(x)-2\text{.}\)
(b) Make both sides exponents of \(2\text{:}\)
\begin{align*} 2^{x-4} \amp =2^{\log_2(y-1)} \\ 2^{x-4} \amp = y-1 \quad \quad \quad \text{by Inverse Rules.} \end{align*}
Therefore, \(y=2^{x-4}+1\text{.}\)

Subsection 4.3.2 Product and Quotient Rules for Logarithms

Product Rule: \(\quad \log_a(MN)=\log_a(M) + \log_a(N) \quad \quad \) \(M \gt 0\text{,}\) \(N \gt 0\)

Example 4.3.3.

Rewrite each as a single logarithm.
\begin{equation*} \text{(a) } \ln(6) + \ln(2) \quad \quad \quad \quad \quad \quad \text{ (b) } \log_3(x+2) + \log_3(x-1) \quad \quad \quad \quad \end{equation*}
Solution
(a) By the Product Rule:
\begin{align*} \ln(6) + \ln(2) \amp = \ln(6 \cdot 2) \\ \amp =\ln(12) \end{align*}
(b) Don’t forget to simplify after using the Product Rule.
\begin{align*} \log_3(x+2)+\log_3(x-1) \amp= \log_3((x+2)(x-1)) \quad \quad \text{ Product Rule}\\ \amp=\log_3(x^2-x+2x-2) \quad \quad \text{FOIL} \\ \amp=\log_3(x^2+x-2) \end{align*}
Quotient Rule: \(\quad \log_a \left( \frac{M}{N} \right)=\log_a(M)-\log_a(N) \quad \quad \) \(M \gt 0\text{,}\) \(N \gt 0\)

Example 4.3.4.

Rewrite as a single logarithm:
\begin{equation*} \log_2(25)-\log_2(5). \end{equation*}
Solution
\begin{align*} \log_2(25)-\log_2(5) \amp =\log_2 \left( \frac{25}{5} \right) \quad \quad \quad \text{by Quotient Rule} \\[0.25em]\\ \amp =\log_2(5) \end{align*}

Example 4.3.5.

Rewrite each as a sum or difference of logarithms.
\begin{equation*} \text{ (i) } \ln \left(\frac{a+b}{b} \right) \quad \quad \quad \quad \quad \quad \text{ (ii) } \log(a^2-9) \quad \quad \quad \quad \quad \quad \end{equation*}
Solution
(i) By the Quotient Rule:
\begin{equation*} \ln \left(\frac{a+b}{b} \right) =\ln(a+b)-\ln(b) \end{equation*}
(ii) First, factor to get a product in the logarithm
\begin{align*} \log(a^2-9) \amp =\log(a^2-3^2) \\ \amp =\log((a-3)(a+3)) \quad \quad \quad \quad \quad \text{Difference of Squares} \\ \amp=\log(a-3)+\log(a+3) \quad \quad \quad \text{ by Product Rule} \end{align*}

Subsection 4.3.3 The Power Rule for Logarithms

\(\log_a \left(M^N \right) = N \cdot \log_a(M) \quad \quad \quad \) For \(M>0\text{,}\) \(N\) a real number.

Example 4.3.6.

Rewrite each expression in terms of \(\log(3)\text{.}\)
\begin{equation*} \text{ (a) } \log(3^8) \quad \quad \quad \quad \text{ (b) } \log(\sqrt{3}) \quad \quad \quad \quad \text{ (c) } \log \left(\frac{1}{3} \right) \quad \quad \quad \quad \end{equation*}
Solution
(a) By the Power Rule:
\begin{equation*} \log \left(3^8 \right)=8 \cdot\log(3) \end{equation*}
(b) First, rewrite the square root as an exponent.
\begin{align*} \log \left(\sqrt{3} \right) \amp =\log \left( 3^{1/2} \right) \\[0.25em]\\ \amp=\frac{1}{2}\log(3) \quad \quad \quad \text{by Power Rule} \end{align*}
(c) First, rewrite the fraction as a power of \(3\text{.}\)
\begin{align*} \log \left( \frac{1}{3} \right) \amp =\log \left( 3^{-1} \right) \\[0.25em]\\ \amp =-\log(3) \quad \quad \quad \text{by Power Rule} \end{align*}

Example 4.3.7.

Rewrite \(\log\left( \frac{16}{3} \right)\) in terms of \(\log(2)\) and \(\log(3)\text{.}\)
Solution: Β  Use the Quotient Rule followed by the Power Rule.
\begin{align*} \log\left( \frac{16}{3} \right) \amp =\log(16)-\log(3) \\[0.25em]\\ \amp =\log \left( 2 ^4 \right)-\log(3) \\ \amp=4\log(2)-\log(3) \end{align*}

Subsection 4.3.4 Rules of Logarithms

If \(M\text{,}\) \(N\text{,}\) and \(a\) are positive real numbers with \(a \not=1\text{,}\) and \(x\) is any real number,
1. \(\log_a(a)=1\)
5. \(\log_a(MN)=\log_a(M)+\log_a(N)\)
2. \(\log_a(1)=0\)
6. \(\log_a \left( \frac{M}{N} \right)=\log_a(M)-\log_a(N)\)
3. \(\log_a(a^x)=x\)
7. \(\log_a(M^x)=x \cdot \log_a(M)\)
4. \(a^{\log_a(N)}=N\)
8. \(\log_a \left(\frac{1}{N} \right)=-\log_a(N)\text{.}\)

Example 4.3.8.

Rewrite each using sums and/or differences of multiples of logarithms.
\begin{equation*} \text{(i) } \log \left( \frac{4a}{3b} \right) \quad \quad \quad \quad \quad \quad \text{ (ii) } \ln \left( \sqrt{\frac{x}{4}} \right) \quad \quad \quad \quad \quad \quad \end{equation*}
Solution
(i) Use the Quotient Rule (#6) followed by the Product Rule (#5).
\begin{align*} \log \left( \frac{4a}{3b} \right) \amp =\log(4a)-\log(3b) \\[0.25em]\\ \amp =[\log(4)+\log(a)]-[\log(3)+\log(b)] \\ \amp=\log(4) + \log(a)-\log(3)-\log(b) \end{align*}
(ii) First, rewrite the square root as an exponent.
\begin{align*} \ln \left( \sqrt{\frac{x}{4}} \right) \amp =\ln \left( \left( \frac{x}{4} \right)^{1/2} \right) \\[0.25em]\\ \amp =\frac{1}{2}\ln \left( \frac{x}{4} \right) \quad \quad \quad \quad \quad \quad \text{Power Rule (\#7)} \\[0.25em]\\ \amp =\frac{1}{2}[\ln(x)-\ln(4)] \quad \quad \quad \text{Quotient Rule} \\[0.25em]\\ \amp =\frac{1}{2}\ln(x)-\frac{1}{2}\ln(4) \\[0.25em]\\ \amp =\frac{1}{2}\ln(x) - \ln \left( 4^{1/2} \right) \quad \quad \quad \text{Power Rule} \\[0.25em]\\ \amp =\frac{1}{2}\ln(x)-\ln(2) \end{align*}

Example 4.3.9.

Rewrite each as a single logarithm.
\begin{equation*} \text{(a) } \log_2(5) + 3 \cdot\log_2(x) \quad \quad \quad \quad \quad \text{ (b) } \log_7(x^5) - 4 \cdot\log_7(x^2 ) \quad \quad \quad \quad \quad \end{equation*}
\(\text{(c) } \log(2) + \log(x) + \log(y)-\log(z)\)
Solution
\begin{align*} \text{(a) } \log_2(5) + 3 \cdot\log_2(x) \amp =\log_2(5)+\log_2(x^3) \quad \quad \quad \quad \text{ Power Rule} \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \\ \amp =\log_2(5x^3) \quad \quad \quad \quad \quad \quad \quad \quad \text{Product Rule} \quad \end{align*}
\begin{align*} \text{(b) } \log_7(x^5) - 4 \cdot\log_7(x^2 ) \amp =\log_7(x^5)-\log_7 \left( (x^2)^4 \right) \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \\ \amp =\log_7(x^5)-\log_7(x^8) \\[0.25em]\\ \amp =\log_7 \left( \frac{x^5}{x^8} \right) \quad \quad \quad \quad \quad \quad \quad \quad \quad \\[0.25em]\\ \amp =\log_7(x^{5-8}) \\ \amp =\log_7(x^{-3}) \end{align*}
\begin{align*} \text{(c) } \log(2) + \log(x) + \log(y)-\log(z) \amp =\log(2x)+\log(y)-\log(z) \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \\ \amp =\log(2x \cdot y)-\log(z) \\[0.25em]\\ \amp =\log \left( \frac{2xy}{z} \right) \end{align*}

Subsection 4.3.5 The Base-Change Formula

The exact solution to \((1.06)^x=2 \text{ } \) would be \(\log_{1.06}(2)\text{,}\) but how do we calculate \(\log_{1.06}(2)\text{?}\)
We can find a rational approximation using rules of logarithms.

Example 4.3.10.

Find an approximate rational solution to \((1.06)^x=2\text{.}\) Round to \(4\) decimal places.
Solution: Β  Take the logarithm of each side using one of the bases available on a calculator. We’ll use base \(10\text{.}\)
\begin{align*} \log \left( (1.06)^x\right) \amp =\log(2) \\ x \cdot \log(1.06) \amp = \log(2) \quad \quad \quad \text{by Power Rule} \end{align*}
Divide both sides by \(\log(1.06)\text{:}\)
\begin{equation*} x=\frac{\log(2)}{\log(1.06)}\approx 11.8957 \end{equation*}
We can follow a similar procedure to find a formula for changing bases.
Base-Change Formula: Β  If \(a \gt 0\text{,}\) \(b \gt 0\text{,}\) \(a\not= 1\text{,}\) \(b\not=1\text{,}\) and \(M \gt 0\text{,}\) then:
\begin{equation*} \log_a(M)=\frac{\log_b(M)}{\log_b(a)} \end{equation*}

Example 4.3.11.

Using a calculator, find \(\log_3(4.78)\) to \(4\) decimal places.
Solution: Use the Base-Change Formula for \(a=3\text{,}\) \(b=e\) and \(M=4.78\text{.}\)
\begin{equation*} \log_3(4.78)=\frac{\ln(4.78)}{\ln(3)}\approx1.4240 \end{equation*}

Subsection 4.3.6 Application: Time for Growth

Example 4.3.12.

The time in years for a population of size \(P_0\) to grow to size \(P\) at the annual growth rate \(r\) is given by
\begin{equation*} t=\ln \left((P/P_0)^{1/r} \right). \end{equation*}
Use the rules of logarithms to express \(t\) in terms of \(\ln(P)\) and \(\ln(P_0)\text{.}\)
Solution: Β  Use the Power Rule followed by the Quotient Rule.
\begin{align*} t \amp = \ln \left( (P/P_0)^{1/r} \right) \\[0.25em]\\ t \amp =\frac{1}{r}\cdot\ln(P/P_0) \\[0.25em]\\ t \amp =\frac{1}{r}[\ln(P) - \ln(P_0)] \\[0.25em]\\ t \amp =\frac{1}{r}\ln(P)-\frac{1}{r}\ln(P_0) \end{align*}

Subsection 4.3.7 Finding the Rate With Interest Compounded Periodically

Example 4.3.13.

For what annual percentage rate would \(\$1,000\) grow to \(\$3,500\) in \(20\) years compounded monthly?
Solution: Β  Use \(A=P \left( 1+ \frac{r}{n} \right)^{nt}\) to find \(r\text{.}\)
We’re given:
Substitute these values into the formula:
\begin{align*} 3500 \amp =1000 \left(1+\frac{r}{12} \right) ^{12(20)} \\[0.25em]\\ 3500 \amp =1000 \left(1+\frac{r}{12} \right) ^{240} \end{align*}
Divide each side by \(1000\text{.}\)
\begin{align*} \frac{3500}{1000} \amp =\frac{1000\left(1+\frac{r}{12} \right)^{240}}{1000} \\[0.25em]\\ 3.5 \amp =\left(1+\frac{r}{12} \right)^{240} \end{align*}
The exponent is constant, so a logarithm isn’t needed. Instead, we’ll take a \(240\)th root of both sides. Specifically, we’ll take the positive \(240\)th root since a negative root would give us a negative interest rate.
\begin{align*} 1+\frac{r}{12} \amp =(3.5)^{1/240} \\[0.25em]\\ \frac{r}{12} \amp =(3.5)^{1/240}-1 \\[0.25em]\\ r \amp =12 \left( (3.5)^{1/240} -1 \right) \\[0.25em]\\ r \amp \approx 0.063 \end{align*}
Therefore, the interest rate is about \(6.3 \% \text{.}\)

Subsection 4.3.8 Application: Doubling Time

Doubling Time is the length of time it takes for the value of an investment to double.

Example 4.3.14.

How long does it take for a deposit of \(\$1,000\) to double at \(8\%\) compounded continuously?
Solution: Β  Use \(A=Pe^{rt}\) to find \(t\text{.}\)
We’re given:
  • \(\displaystyle P=\$1,000\)
  • \(\displaystyle r=8\%=0.08\)
  • \(\displaystyle A=2(\$1,000)=\$2,000\)
Substitute these values into the formula:
\begin{equation*} 2,000=1,000e^{0.08t} \end{equation*}
Divide both sides by \(\$1,000\text{.}\)
\begin{equation*} 2 =e^{0.08t} \end{equation*}
Take the natural logarithm of both sides and solve for \(t\text{.}\)
\begin{align*} \ln(2) \amp =\ln \left(e^{0.08t} \right) \\[0.25em]\\ \ln(2) \amp =0.08t \quad \quad \quad \text{by Inverse Rules} \end{align*}
Divide both sides by \(0.08\text{:}\)
\begin{equation*} t=\frac{\ln(2)}{0.08} \approx8.664 \text{ years}. \end{equation*}
Multiply the fractional part of the answer, \(0.664\text{,}\) by \(365\) to estimate the number of days
\begin{equation*} 365(0.664)=242.36 \end{equation*}
Therefore, it takes about \(8\) years \(242\) days.