Sub topic 8
The Product Law: Logs Turn Products into Sums
This chapter assumes you can work with integer and fractional exponents, use basic algebra, and interpret a logarithm as the inverse of exponentiation. You should also know that logarithm arguments must be positive.
The product law
For a base \(b\) with \(b>0\) and \(b\ne1\), and positive numbers \(x\) and \(y\),
\[ \logb(xy)=\logb(x)+\log_b(y). \]
This is called the product law. It says that a logarithm changes multiplication into addition.
For example,
\[ \log2(8\cdot32) =\log2(8)+\log_2(32) =3+5 =8. \]
The left side is also \(\log_2(256)=8\).
import math
x, y = 8.0, 32.0
lhs = math.log2(x * y)
rhs = math.log2(x) + math.log2(y)
print(lhs, rhs) # 8.0 8.0Why the law works
Let
\[ p=\logb(x) \quad\text{and}\quad q=\logb(y). \]
The definition of a logarithm means
\[ x=b^p \quad\text{and}\quad y=b^q. \]
Multiply these equations:
\[ xy=b^p b^q. \]
Using the exponent law \(b^p b^q=b^{p+q}\), we get
\[ xy=b^{p+q}. \]
Therefore, the exponent needed to produce \(xy\) is \(p+q\):
\[ \log_b(xy)=p+q. \]
Substituting the definitions of \(p\) and \(q\) gives
\[ \logb(xy)=\logb(x)+\log_b(y). \]
Combining and expanding expressions
The product law can combine separate logarithms:
\[ \logb(x)+\logb(y)=\log_b(xy). \]
For instance,
\[ \log3(4)+\log3(9) =\log_3(36). \]
It can also expand a logarithm of a product:
\[ \log{10}(50x) =\log{10}(50)+\log_{10}(x), \]
provided \(x>0\). The condition matters because \(50x\) must be positive, and each separate logarithm must also have a positive argument.
For example, with \(x=3\) and \(y=5\),
\[ \log{10}(3+5)=\log{10}(8), \]
but
\[ \log{10}(3)+\log{10}(5)=\log_{10}(15). \]
These values are different.
A reliable procedure
When using the product law:
- Check that every logarithm has a positive argument.
- Confirm that the same base appears in every logarithm.
- Identify multiplication, not addition, inside the logarithm.
- Combine or expand using the product law.
- Simplify only after applying the law.
Exercise
Rewrite log2(5) + log2(8) as one logarithm, and explain why the result is valid.
Show answer
The bases match and the terms are added, so use the product law: log2(5) + log2(8) = log2(5 · 8) = log2(40). Both arguments are positive.