Sub topic 11
Laws of Logarithms
Prerequisites and the working model
Assume that you can use the laws of indices and convert between exponential and logarithmic form. A logarithm answers an exponent question:
\[ \log_b(x)=y \quad\Longleftrightarrow\quad b^y=x \]
The base must satisfy \(b>0\) and \(b\ne1\). The argument must be positive, so \(x>0\). These conditions matter whenever you simplify or solve a logarithmic expression.
The logarithm laws come directly from the laws of indices. For positive \(x\) and \(y\):
| Logarithm expression | Equivalent form |
|---|---|
| \(\log_b(xy)\) | \(\log_b x+\log_b y\) |
| \(\log_b(x/y)\) | \(\log_b x-\log_b y\) |
| \(\log_b(x^k)\) | \(k\log_b x\) |
The product law changes multiplication into addition:
\[ \logb(xy)=\logb x+\log_b y \]
For example,
\[ \log2(8\cdot4)=\log2 8+\log_2 4=3+2=5. \]
The quotient law changes division into subtraction:
\[ \logb\left(\frac{x}{y}\right)=\logb x-\log_b y. \]
For example,
\[ \log3\left(\frac{81}{9}\right)=\log3 81-\log_3 9=4-2=2. \]
The power law brings an exponent to the front:
\[ \logb(x^k)=k\logb x. \]
For example,
\[ \log5(25^3)=3\log5 25=3(2)=6. \]
A negative or fractional exponent follows the same rule:
\[ \logb\left(\frac{1}{x}\right)=-\logb x, \qquad \logb(\sqrt{x})=\frac12\logb x. \]
Combining and expanding logarithms
To combine separate logarithms, reverse the laws:
\[ \logb x+\logb y=\log_b(xy) \]
\[ \logb x-\logb y=\log_b\left(\frac{x}{y}\right). \]
For example,
\[ 2\log7 a-\frac12\log7 c =\log7(a^2)-\log7(\sqrt c) =\log_7\left(\frac{a^2}{\sqrt c}\right). \]
To expand one logarithm, factor its argument first:
\[ \log2(12x^2) =\log2(3\cdot4\cdot x^2) =\log2 3+2\log2 2+2\log2 x =\log2 3+2+2\log_2 x. \]
Do not split addition inside an argument. In general,
\[ \logb(x+y)\ne\logb x+\log_b y. \]
There is no logarithm law that converts a sum inside brackets into separate logarithms.
import math
x, y = 12.0, 5.0
assert math.isclose(math.log10(x * y),
math.log10(x) + math.log10(y))
assert math.isclose(math.log10(x / y),
math.log10(x) - math.log10(y))
assert math.isclose(math.log10(x ** 3),
3 * math.log10(x))
print("The product, quotient, and power laws hold.")Why the laws work
Suppose \(b^p=x\) and \(b^q=y\). Then the index law gives
\[ xy=b^p b^q=b^{p+q}. \]
Therefore, \(\log_b(xy)=p+q\), which proves the product law. The quotient and power laws follow in the same way from subtraction and multiplication of exponents.
Exercise
Simplify \(3\log2 x-\log2 4+\frac12\log_2 y\) as one logarithm.
Show answer
\(\log_2\left(\frac{x^3\sqrt y}{4}\right)\).