Sub topic 1
Quick review: exponents and their laws
Logarithms are defined through exponents, and every law of logarithms is an exponent law in disguise. This chapter reviews the exponent facts you will need, so that later chapters can use them without stopping to re-derive them. Work through the examples and check each one by hand before moving on.
Prerequisites
This chapter assumes you can already do the following:
- Evaluate whole-number powers such as 2^5 and 10^3 without a calculator.
- Solve simple linear equations, such as 3x + 2 = 11.
- Read function notation such as f(x) = 2^x and understand what "inverse function" means.
- Run a short Python script, or use a scientific calculator with a power key (usually ^, x^y or y^x).
If any of these feels shaky, fix it first. The rest of the tutorial builds directly on them.
What an exponent means
In the expression b^n, the number b is the base and n is the exponent. The meaning of the exponent grows in stages as n moves beyond the positive integers.
- Positive integer n: b^n means b multiplied by itself n times. So 2^5 = 2 · 2 · 2 · 2 · 2 = 32.
- Zero: b^0 = 1 for any b that is not 0.
- Negative integer: b^(−n) = 1 / b^n. So 2^(−3) = 1/8.
- Fraction 1/n: b^(1/n) is the n-th root of b. So 27^(1/3) = 3, because 3 · 3 · 3 = 27.
- General fraction m/n: b^(m/n) = (b^(1/n))^m. So 8^(2/3) = 2^2 = 4.
The extended meanings are not arbitrary. They are the only choices that keep the laws in the next section true. Section "Why zero and negative exponents are defined this way" below shows this.
The laws of exponents
Assume a and b are positive and not equal to 1, and that m and n are any real numbers. These conditions are the ones logarithms will use too.
| Law | Statement | Example |
|---|---|---|
| Product of powers | b^m · b^n = b^(m+n) | 2^3 · 2^4 = 2^7 = 128 |
| Quotient of powers | b^m / b^n = b^(m−n) | 3^5 / 3^2 = 3^3 = 27 |
| Power of a power | (b^m)^n = b^(mn) | (2^3)^2 = 2^6 = 64 |
| Power of a product | (ab)^n = a^n · b^n | (2 · 5)^3 = 8 · 125 = 1000 |
| Zero exponent | b^0 = 1 | 7^0 = 1 |
| Negative exponent | b^(−n) = 1 / b^n | 10^(−2) = 0.01 |
| Fractional exponent | b^(m/n) = (n-th root of b)^m | 8^(2/3) = 4 |
Three of these laws matter most for this tutorial. The product, quotient and power-of-a-power laws turn into the product, quotient and power laws of logarithms. Notice what each one does to the exponent:
- Multiplying powers adds exponents.
- Dividing powers subtracts exponents.
- Raising a power to a power multiplies exponents.
Keep that pattern in mind. A logarithm extracts the exponent, so the laws of logarithms will say that logs of products add, logs of quotients subtract, and exponents in a log come out as multipliers.
Why zero and negative exponents are defined this way
Suppose we want the quotient law to hold for every pair of exponents. Take b^n / b^n. Any nonzero number divided by itself is 1, so the result must be 1. The quotient law gives b^(n−n) = b^0. Therefore b^0 has to equal 1.
The same reasoning gives negative exponents. Apply the quotient law to b^0 / b^n:
b^0 / b^n = b^(0−n) = b^(−n)
The left side is 1 / b^n. So b^(−n) = 1 / b^n.
For fractions, apply the power-of-a-power law to b^(1/2). Squaring it gives (b^(1/2))^2 = b^(1/2 · 2) = b^1 = b. The only positive number whose square is b is the square root of b. So b^(1/2) must be the square root.
This is why the definitions are not a matter of taste. Each one is forced by the laws.
A table of powers of 2
Powers of 2 are the cleanest data for seeing the laws at work, and base 2 returns later in this tutorial.
| Exponent x | −3 | −2 | −1 | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|---|---|---|
| 2^x | 1/8 | 1/4 | 1/2 | 1 | 2 | 4 | 8 | 16 | 32 |
Each step right multiplies the value by 2, and each step left halves it. Two facts about the exponential function f(x) = 2^x show up in this table, and logarithms depend on both.
- The output is always positive, even for negative exponents.
- The output strictly increases. Different inputs never give the same output, so the function can be reversed.
The same holds for any base b > 0 with b ≠ 1. If 0 < b < 1, the function strictly decreases instead, which is still enough to reverse it.
Checking the laws numerically
Floating-point arithmetic stores most fractions approximately, so compare results with math.isclose instead of ==. The script below tests each law with specific numbers.
import math
b, a = 2.0, 5.0
m, n = 5, 3
checks = {
"product": math.isclose(b**m * b**n, b**(m + n)),
"quotient": math.isclose(b**m / b**n, b**(m - n)),
"power": math.isclose((b**m)**n, b**(m * n)),
"product-base": math.isclose((a * b)**n, a**n * b**n),
"zero": b**0 == 1,
"negative": math.isclose(b**-n, 1 / b**n),
"fraction": math.isclose(27**(1/3), 3.0),
}
for name, ok in checks.items():
print(name, ok)Every line prints True. Try changing m and n to negative or fractional values such as -2 and 0.5 and confirm that the laws still hold.
Edge cases and traps
Most exponent errors come from a handful of situations. Learn to spot them now, because the logarithm chapters reuse the same restrictions.
- Parentheses around negatives. (−2)^2 = 4, but −2^2 = −(2^2) = −4. The exponent applies only to what is directly to its left.
- Zero base. 0^n = 0 for positive n, but 0^(−1) would mean 1/0, which is undefined. The expression 0^0 is undefined in algebra, although some programming languages return 1 as a convention.
- Negative base with a fractional exponent. (−8)^(1/3) has a real cube root of −2, but the laws above are only guaranteed for positive bases. Python's
(-8) ** (1/3)returns a complex number, not −2. Restricting bases to positive numbers avoids the problem. - Adding bases or exponents wrongly. The product law needs the same base. 2^3 · 3^2 cannot be combined into a single power by adding exponents. Evaluate it as 8 · 9 = 72.
- Sums are not covered. There is no law for b^m + b^n. Likewise, (a + b)^2 is a² + 2ab + b², not a² + b².
Worked examples
Example 1: simplify with the laws. Simplify (x^3 · x^(−5)) / x^2 for x > 0.
- Combine the numerator: x^3 · x^(−5) = x^(3 + (−5)) = x^(−2).
- Divide: x^(−2) / x^2 = x^(−2−2) = x^(−4).
- Rewrite with a positive exponent: x^(−4) = 1 / x^4.
Example 2: rewrite with a common base. Write 16^(3/4) as a power of 2, then evaluate it.
- Since 16 = 2^4, we have 16^(3/4) = (2^4)^(3/4).
- By the power-of-a-power law, this is 2^(4 · 3/4) = 2^3.
- So 16^(3/4) = 8.
Rewriting numbers over a common base, as in Example 2, is a technique you will use again when solving exponential equations. If both sides of an equation have the form 2^something, you can compare the exponents directly.
Example 3: a hidden equation. Solve 2^(x+1) = 32.
- Write 32 = 2^5, so 2^(x+1) = 2^5.
- The function 2^x is strictly increasing, so equal outputs mean equal inputs: x + 1 = 5.
- Therefore x = 4.
This only works because 32 is an exact power of 2. For 2^x = 20 there is no whole-number exponent that works, and finding x requires a new tool. That tool is the logarithm, which the next chapter defines.
Exercises
Exercise
Simplify (3^4 · 3^(−1)) / 3^2 and give the result as a single number.
Show answer
Combine the numerator: 3^4 · 3^(−1) = 3^3. Divide: 3^3 / 3^2 = 3^1 = 3. The result is 3.
Exercise
Solve 4^x = 8 by writing both sides as powers of 2.
Show answer
Write 4 = 2^2 and 8 = 2^3. Then (2^2)^x = 2^(2x) = 2^3. Since 2^x is strictly increasing, 2x = 3, so x = 3/2 = 1.5. Check: 4^(1.5) = (√4)^3 = 2^3 = 8.
Exercise
A student writes 2^3 · 3^3 = 6^6 by adding the exponents. Which law applies instead, and what is the correct value?
Show answer
The product law needs the same base, so the exponents cannot be added. The power-of-a-product law applies in reverse: 2^3 · 3^3 = (2 · 3)^3 = 6^3 = 216. Check: 8 · 27 = 216.