Sub topic 1
What an exponent means: repeated multiplication
An exponent is a short way to write repeated multiplication. Every exponent rule in this tutorial follows from that one idea. If you can expand a power into a list of factors, you can work out why each rule is true instead of memorizing it. This chapter sets up the vocabulary, the reading habit, and the edge cases that the later chapters rely on.
Prerequisites
This chapter assumes you can already do the following:
- Multiply and divide integers and fractions, including negative numbers.
- Evaluate simple numeric expressions using the order of operations (parentheses first, then multiplication and division, then addition and subtraction).
- Use a letter such as
xorato stand for a number.
You do not need any earlier knowledge of exponents beyond having seen a small raised number, as in 5². The chapter also uses short Python snippets. They are optional but useful, because they let you test every claim with real numbers.
Base and exponent
A power is an expression of the form aⁿ. It has two parts:
- The base
ais the number being multiplied. - The exponent
nis the small raised number. For now, it is a positive whole number that says how many copies of the base appear in the product.
In 3⁴, the base is 3 and the exponent is 4. The expression 3⁴ is read "3 to the fourth power" or "3 to the fourth." Written out, it means:
3⁴ = 3 · 3 · 3 · 3 = 81
The definition for a positive whole number n is:
aⁿ = a · a · a · ... · a, with exactly n factors of a.
Here is the same idea in code. The loop multiplies the base into a running product once for each unit of the exponent, and the ** operator does it in one step.
base, exponent = 3, 4
product = 1
for _ in range(exponent):
product *= base
print(product) # 81
print(base**exponent) # 81
print(product == base**exponent) # TrueReading a power as a list of factors
The most useful habit in this tutorial is expanding a power into factors before doing anything else. The table shows several kinds of base.
| Power | Expanded | Value |
|---|---|---|
| 2⁵ | 2 · 2 · 2 · 2 · 2 | 32 |
| 10³ | 10 · 10 · 10 | 1000 |
| (−3)³ | (−3)(−3)(−3) | −27 |
| (1/2)³ | (1/2)(1/2)(1/2) | 1/8 |
| 0.1² | 0.1 · 0.1 | 0.01 |
| x⁴ | x · x · x · x | depends on x |
The base can be a positive number, a negative number, a fraction, a decimal, or a variable. The rule is always the same: count the factors.
The exponent counts factors, not multiplication signs
A power with exponent n has n factors but only n − 1 multiplication signs. In 2⁵ there are five 2s and four dots between them. Miscounting by one is a common slip when expanding by hand, and it matters later. In the next chapter, when you multiply a³ by a², you will count factors to find the new exponent.
The exponent is not multiplied by the base
The most frequent beginner error is reading 2⁵ as 2 · 5 = 10. The exponent tells you how many times to use the base as a factor. It is not itself a factor.
print(2**5) # 32, which is 2 * 2 * 2 * 2 * 2
print(2 * 5) # 10, which is a different thing entirelyExponents grow results quickly. Doubling five times gives 32, and doubling ten times gives 1024. Multiplying 2 by 10 gives only 20.
Exponent 1 and the small cases
Applying the definition to the smallest positive exponent gives:
a¹ = a
There is one factor of a, so there is nothing to multiply. Any number to the first power is itself. Writing x for x¹ is standard: when you see a variable with no visible exponent, the exponent is 1. This matters when you combine terms later, because x · x² has exponents 1 and 2 even though only one of them is written.
The next smallest case is the exponent 2, which has a special name. The expression a² is read "a squared," and a³ is read "a cubed." These names come from geometry: a square with side a has area a², and a cube with edge a has volume a³. Larger exponents have no special names. You say "a to the fourth," "a to the fifth," and so on.
Special bases: 0, 1, and −1
Three bases behave in ways worth knowing, because they act as quick sanity checks.
- Base 1. Every factor is 1, so 1ⁿ = 1 for any positive whole number
n. - Base 0. Every factor is 0, so 0ⁿ = 0 for any positive whole number
n. - Base −1. The product alternates between −1 and 1, depending on whether
nis odd or even.
for n in range(1, 6):
print(n, 1**n, 0**n, (-1)**n)
# 1 1 0 -1
# 2 1 0 1
# 3 1 0 -1
# 4 1 0 1
# 5 1 0 -1This chapter covers only positive whole-number exponents. What 0⁰ means, and what happens with exponent 0 or with negative exponents, is the subject of later chapters. Those meanings are chosen so that the rules keep working, and they only make sense once you have the rules.
Signs with negative bases
When the base is negative, the sign of the result depends on how many negative factors there are. Each pair of negative factors multiplies to a positive number. So:
- If the exponent is even, the negative factors pair up completely and the result is positive.
- If the exponent is odd, one negative factor is left over and the result is negative.
for n in range(1, 7):
print(n, (-2)**n)
# 1 -2
# 2 4
# 3 -8
# 4 16
# 5 -32
# 6 64The magnitude, 2ⁿ, keeps growing. Only the sign alternates. You can predict the sign of (−5)⁹⁹ without computing anything: 99 is odd, so the result is negative.
Parentheses decide what the exponent applies to
An exponent applies only to the thing directly to its left. If that thing is a number or variable, the exponent applies to just that. If it is a parenthesized group, the exponent applies to the whole group.
This produces a classic difference:
- (−2)² means (−2)(−2) = 4. The base is −2.
- −2² means −(2 · 2) = −4. The base is 2, and the minus sign is applied afterward.
The order of operations puts exponents before the negation sign, which is why the second form is negative. Python follows the same convention.
print((-2)**2) # 4
print(-2**2) # -4
print(-(2**2)) # -4The same rule applies to products. Compare 2 · 3² with (2 · 3)²:
- 2 · 3² = 2 · 9 = 18, because the exponent applies only to the 3.
- (2 · 3)² = 6² = 36, because the exponent applies to the whole product.
The same issue shows up with a coefficient. In 3x², only x is squared, so 3x² means 3 · x · x. It does not mean (3x)(3x), which would be 9x².
Stacked exponents
Sometimes an exponent itself has an exponent, as in 2³². Convention reads this from the top down:
2^(3²) = 2⁹ = 512
This is different from (2³)² = 8² = 64. Python's ** operator follows the same top-down convention, so no parentheses are needed for the first form, and they are needed for the second.
print(2**3**2) # 512, read as 2 ** (3 ** 2)
print((2**3)**2) # 64The second form, (aᵐ)ⁿ, is a power of a power, and it gets its own rule in a later chapter. For now, just remember that parentheses make the grouping unambiguous. Use them whenever there is any doubt.
Variables and exact values
The definition works the same way when the base is a variable. The expression x³ means x · x · x, whatever number x stands for. This is what will let you prove rules in general: if the rule holds when you expand the factors, it holds for every base.
When you check results with a computer, floating-point decimals can introduce small rounding errors. Python's fractions module gives exact results, which is better for confirming an algebraic identity.
from fractions import Fraction
base = Fraction(2, 3)
print(base**3) # 8/27
print(base * base * base) # 8/27
print(base**3 == base * base * base) # TrueNote that (2/3)³ = 2³/3³ = 8/27. The exponent applies to both the numerator and the denominator. A later chapter explains why.
A first look at why the rules work
Expanding powers into factors is the whole reason the rules exist. Here is a preview using only counting.
Consider a³ · a². Expand each power:
a³ · a² = (a · a · a)(a · a) = a · a · a · a · a = a⁵
There are 3 factors, then 2 more, for 5 in total. The exponents were added. You did not need a formula, only the definition. The next chapters repeat this reasoning for quotients and for powers of powers, then turn each pattern into a rule.
a = 7
print(a**3 * a**2) # 16807
print(a**5) # 16807This single example is not a proof, since it only tests one value of a. The counting argument is the proof, because it works for any base.
Common errors at this stage
- Multiplying base and exponent. Reading 4³ as 12 instead of 64. Expand it: 4 · 4 · 4.
- Off-by-one counts. Writing 2⁴ as 2 · 2 · 2 (three factors) and getting 8 instead of 16. Count the factors, not the dots.
- Dropping the sign. Treating (−3)² as −9. The parentheses make −3 the base, so the answer is 9.
- Applying the exponent too widely. Treating 2 · 3² as 6² = 36 instead of 2 · 9 = 18.
- Applying the exponent too narrowly. Treating (2x)³ as 2x³ instead of 8x³. The parentheses mean the 2 is cubed as well.
- Forgetting the invisible exponent. Treating
xas having no exponent. It has exponent 1.
A reliable fix for all of these is to expand the power into factors and then simplify. It is slower than a rule, but it is hard to get wrong, and it is how you check a rule you are unsure of.
Summary of the working model
- A power aⁿ with a positive whole-number exponent is
ncopies ofamultiplied together. - The base is the repeated factor. The exponent counts the copies. It is not itself multiplied.
- a¹ = a. For bases 0 and 1, powers stay at 0 and 1. For base −1, the sign alternates.
- With a negative base, even exponents give positive results and odd exponents give negative results.
- An exponent applies only to what is directly to its left, so parentheses change the meaning.
- Expanding into factors is the tool that justifies every rule in the chapters ahead.
Exercise
Write 5^4 as repeated multiplication, then evaluate it. How many factors and how many multiplication signs does the expanded form have?
Show answer
5^4 = 5 · 5 · 5 · 5 = 625. The expanded form has 4 factors and 3 multiplication signs.
Exercise
Evaluate -4^2 and (-4)^2. Explain why the answers differ.
Show answer
-4^2 = -(4 · 4) = -16, because the exponent applies only to the 4 and the minus sign is applied afterward. (-4)^2 = (-4)(-4) = 16, because the parentheses make -4 the base.
Exercise
Without computing the size of the number, state the sign of (-2)^7 and of (-2)^8, and give a reason. Then compute (-2)^5.
Show answer
(-2)^7 is negative because 7 is odd, so one negative factor is left unpaired. (-2)^8 is positive because 8 is even, so all negative factors pair up. (-2)^5 = (-2)(-2)(-2)(-2)(-2) = -32.
Exercise
Evaluate 2 · 3^2 and (2 · 3)^2. Then expand x^3 · x^2 into individual factors and write the result as a single power of x.
Show answer
2 · 3^2 = 2 · 9 = 18, and (2 · 3)^2 = 6^2 = 36. Expanding gives x^3 · x^2 = (x · x · x)(x · x) = x · x · x · x · x = x^5.