Rewriting Logarithmic Expressions
The rules for logarithms come straight from the rules for exponents, because a logarithm is an exponent. This guide covers the product, quotient, power and change of base properties, what each one does to a graph, and the natural log.
Multiplying numbers adds their exponents, so the log of a product is the sum of the logs: \(\log_b(xy) = \log_b x + \log_b y\). In the same way, the log of a quotient is a difference and the log of a power is a multiple: \(\log_b x^n = n\log_b x\). Graphically, \(\log_b(kx) = \log_b k + \log_b x\) turns a horizontal dilation into a vertical shift, and \(\log_b x^k = k\log_b x\) is a vertical dilation. The change of base property \(\log_b x = \frac{\log_a x}{\log_a b}\) shows every log function is a vertical dilation of every other. The natural log is \(\ln x = \log_e x\).
1The properties
| Property | Rule | Graph meaning |
|---|---|---|
| Product | \(\log_b(xy) = \log_b x + \log_b y\) | \(\log_b(kx) = \log_b k + \log_b x\): horizontal dilation = vertical shift |
| Quotient | \(\log_b\dfrac{x}{y} = \log_b x - \log_b y\) | |
| Power | \(\log_b x^n = n\log_b x\) | \(\log_b x^k = k\log_b x\): raising the input to a power = vertical dilation |
| Change of base | \(\log_b x = \dfrac{\log_a x}{\log_a b}\) | Every log function is a vertical dilation of every other |
2Expanding and condensing
Expanding breaks one log into simpler pieces; condensing combines pieces into one log. Condense when you need a single log to solve an equation; expand when you want to see how each factor contributes.
Write \(\log_2\dfrac{8x^3}{y}\) as a sum and difference of simple logs (\(x, y \gt 0\)).
- 1Quotient: \(\log_2(8x^3) - \log_2 y\).
- 2Product: \(\log_2 8 + \log_2 x^3 - \log_2 y\).
- 3Power and a known value: \(3 + 3\log_2 x - \log_2 y\).
Write \(2\ln x + \ln 5 - \ln(x + 1)\) as a single logarithm.
- 1Power first: \(2\ln x = \ln x^2\).
- 2Product, then quotient: \(\ln x^2 + \ln 5 - \ln(x + 1) = \ln\dfrac{5x^2}{x + 1}\).
Evaluate \(\log_6 4 + \log_6 9\) and \(\log 5 + \log 20\).
- 1\(\log_6 4 + \log_6 9 = \log_6 36 = 2\), since \(6^2 = 36\).
- 2\(\log 5 + \log 20 = \log 100 = 2\).
\(\log(x + y)\) does not simplify. \(\log(1 + 10) = \log 11 \approx 1.041\), but \(\log 1 + \log 10 = 1\). The product property is about products only.
\(\log x^2 = 2\log x\), but \((\log x)^2\) is the log squared, a different thing. Only an exponent on the input comes down in front.
3What the properties do to graphs
Show that the graph of \(y = \log_3(9x)\) is the graph of \(y = \log_3 x\) moved up 2.
- 1Product property: \(\log_3(9x) = \log_3 9 + \log_3 x = 2 + \log_3 x\).
- 2Adding 2 to every output is a vertical translation by 2 (Figure 1).
“By the product property, \(\log_3(9x) = 2 + \log_3 x\), so the graph of \(y = \log_3(9x)\) is a vertical translation of \(y = \log_3 x\) by 2 units.”
4Change of base and ln
Calculators have keys for base 10 and base \(e\). Any other base goes through the change of base property. Because \(\log_b x\) is \(\ln x\) times the constant \(\frac{1}{\ln b}\), the graphs of all log functions are vertical stretches of one another and all pass through \((1, 0)\).
Find \(\log_5 40\) with a calculator, and describe \(\log_2 x\) as a stretch of \(\log x\).
- 1\(\log_5 40 = \dfrac{\ln 40}{\ln 5} \approx \dfrac{3.6889}{1.6094} \approx 2.292\). (Check: \(5^2 = 25\) and \(5^3 = 125\), so a value between 2 and 3 makes sense.)
- 2\(\log_2 x = \dfrac{\log x}{\log 2} \approx 3.3219\log x\): a vertical dilation of \(\log x\) by about 3.32.
\(\dfrac{\ln 40}{\ln 5}\) is not \(\ln\dfrac{40}{5} = \ln 8\). Change of base divides two separate logarithms.
5Domain cautions
The properties hold when every log in them is defined. Rewriting can change the domain without any warning, so check it, especially with even powers.
Are \(f(x) = \log(x^2)\) and \(g(x) = 2\log x\) the same function?
- 1For \(x \gt 0\) they agree, by the power property.
- 2But \(f(-3) = \log 9\) exists, while \(g(-3) = 2\log(-3)\) does not. \(f\) has domain \(x \ne 0\); \(g\) has domain \(x \gt 0\).
Quick reference
| Rewrite | Result |
|---|---|
| \(\log_b(xy)\) | \(\log_b x + \log_b y\) |
| \(\log_b \frac xy\) | \(\log_b x - \log_b y\) |
| \(\log_b x^n\) | \(n\log_b x\) (for \(x \gt 0\)) |
| \(\log_b x\) | \(\frac{\ln x}{\ln b} = \frac{\log x}{\log b}\) |
| \(\log_b(kx)\) | Vertical shift by \(\log_b k\) |
| \(\ln x\) | \(\log_e x\), \(e \approx 2.718\) |