Sub topic 4
Raising a power to a power
This chapter covers the rule for an exponent applied to something that already has an exponent, such as (x^4)^3. It assumes you can multiply and divide integers and fractions, and that you know the product rule a^m · a^n = a^(m+n) from the earlier chapter. It also assumes you are comfortable with variables and with the order of operations.
The rule
For any nonzero base a and integers m and n:
(a^m)^n = a^(m·n)
You multiply the exponents. Compare this with the product rule, where you add them:
| Situation | Example | Operation on exponents | Result |
|---|---|---|---|
| Product of powers | x^4 · x^3 | add | x^7 |
| Power of a power | (x^4)^3 | multiply | x^12 |
Mixing up these two rules is the most common error with this topic. The next section shows why each one behaves the way it does.
Why multiplying is correct
The outer exponent says how many copies of the inner power to multiply together. So (x^4)^3 means three copies of x^4:
(x^4)^3 = x^4 · x^4 · x^4
The product rule says to add the exponents when you multiply powers of the same base:
x^4 · x^4 · x^4 = x^(4+4+4) = x^12
Adding the number 4 three times is the same as 3 · 4. In general, (a^m)^n adds m to itself n times, which gives m·n. That is the whole proof for positive whole-number exponents.
You can confirm one case in Python:
a, m, n = 2, 3, 2
print((a**m)**n) # 64
print(a**(m * n)) # 64
print(a**m * a**m) # 64, the same thing written as n = 2 copiesWorked examples
A variable base
Simplify (x^5)^2.
- The inner exponent is 5 and the outer exponent is 2.
- Multiply: 5 · 2 = 10.
- The result is x^10.
Several variables
Simplify (x^2 y^3)^4. Here the outer exponent applies to a product, so it applies to each factor. The power-of-a-product rule is covered in the next chapter. For now, treat it as a combination of two power-of-a-power steps:
(x^2 y^3)^4 = (x^2)^4 · (y^3)^4 = x^8 · y^12
Each variable's exponent gets multiplied by 4. The variables do not mix. You never add or multiply the x exponent with the y exponent.
A numeric coefficient
Simplify (3x^2)^3.
- The number 3 has an invisible exponent of 1, so it is also raised to the third power: 3^3 = 27.
- The variable part gives (x^2)^3 = x^6.
- The result is 27x^6.
The coefficient is the part people forget. Writing 3x^6 is wrong because the 3 must also be cubed.
A numeric check
Simplify (2^3)^2 and check it by evaluating both sides.
- Rule: 2^(3·2) = 2^6 = 64.
- Direct: 2^3 = 8, and 8^2 = 64.
Both routes agree.
Order matters: (a^m)^n is not a^(m^n)
Writing a power on top of a power without parentheses is a different expression. A tower such as a^m^n is read from the top down:
a^(m^n)
That means m is raised to the n first, and the result becomes the exponent of a. This is different from (a^m)^n.
| Expression | How to read it | Value for a=2, m=3, n=2 |
|---|---|---|
| (2^3)^2 | cube first, then square | 8^2 = 64 |
| 2^(3^2) | square the 3 first, giving exponent 9 | 2^9 = 512 |
Python follows the same convention. The ** operator groups from the right, so 2**3**2 is 2**(3**2):
print((2**3)**2) # 64
print(2**3**2) # 512
print(2**(3**2)) # 512When you write exponents in text or code, add parentheses whenever a power sits on a power. The rule in this chapter applies only to the parenthesized form (a^m)^n.
Negative and zero exponents
The rule works for any integer exponents, including negative ones and zero, as long as the base is not zero. The reason is that negative exponents are defined as reciprocals (a^(−n) = 1 / a^n), and the earlier rules carry over.
Examples:
- (x^−2)^3 = x^(−2·3) = x^−6 = 1 / x^6
- (x^−2)^−3 = x^((−2)(−3)) = x^6
- (x^4)^−1 = x^−4 = 1 / x^4
- (x^5)^0 = x^0 = 1, provided x ≠ 0
The second example shows that two negatives multiply to a positive. You can confirm it by reading the inside as a reciprocal. Since x^−2 = 1/x^2, the expression (x^−2)^−3 is the reciprocal of (1/x^2)^3, which is the reciprocal of 1/x^6, which is x^6.
If x = 0 and the exponent is negative, you would be dividing by zero. For example, (0^2)^−1 is not defined. State the restriction x ≠ 0 whenever a negative or zero exponent appears.
A quick exact check with fractions avoids rounding problems:
from fractions import Fraction
x = Fraction(2)
print((x**-2)**3) # 1/64
print(x**-6) # 1/64
print((x**-2)**-3) # 64
print(x**6) # 64Combining the rule with others
Real problems mix this rule with the product and quotient rules. Work from the inside out, and apply each rule to one piece at a time.
Simplify (2x^−3)^−2.
- Apply the outer exponent to both factors: 2^−2 · (x^−3)^−2.
- Evaluate the numeric part: 2^−2 = 1/4.
- Multiply the exponents on x: (−3)(−2) = 6, giving x^6.
- The result is x^6 / 4.
Check with x = 2. The original is (2 · 2^−3)^−2 = (1/4)^−2 = 16. The simplified form is 2^6 / 4 = 64 / 4 = 16. They match.
from fractions import Fraction
x = Fraction(2)
original = (2 * x**-3)**-2
simplified = x**6 / 4
print(original, simplified, original == simplified) # 16 16 TrueNow a longer case: simplify (x^2 · x^3)^4 / x^5.
- Inside the parentheses, use the product rule: x^2 · x^3 = x^5.
- Apply the power rule: (x^5)^4 = x^20.
- Divide using the quotient rule: x^20 / x^5 = x^15.
The order of operations tells you which rule to use first. Parentheses are handled first, then the exponent on the whole group, then the division.
Common errors
Adding when you should multiply
The error is writing (x^4)^3 = x^7. That is the product rule applied to the wrong situation. A quick test is to use small numbers: (2^2)^3 = 4^3 = 64, while 2^(2+3) = 32. The correct answer is 2^6 = 64.
Multiplying when you should add
The reverse mistake is x^4 · x^3 = x^12. Here the exponents should be added. The two rules look similar, so ask whether you have one power being raised to another power (multiply) or two powers being multiplied (add).
Forgetting the coefficient
The error is writing (3x^2)^3 = 3x^6. The 3 is inside the parentheses, so it is cubed too. The correct answer is 27x^6.
Dropping a sign
For a negative base, the parity of the result depends on the exponent. Compare:
- ((−2)^3)^2 = (−8)^2 = 64, and (−2)^6 = 64. These agree.
- (−2^3)^2 = (−8)^2 = 64, but −2^6 = −64. Here the minus sign is not inside the base in the second form.
The first line agrees with the rule. The second line shows what happens when a minus sign sits outside the exponent. In −2^6, the exponent applies only to the 2, so the result is −64. Keep parentheses around any negative base.
Applying the rule to a sum
The rule applies to a single base raised to powers. It does not apply to a sum such as (x + 1)^2, where you cannot simply write x^2 + 1. The expression (x^2 + 1)^3 is also not x^6 + 1. The exponent applies to the whole parenthesized sum, and expanding it needs multiplication of the binomials.
Edge case: even roots and absolute values
The rule extends to fractional exponents, which are covered in the last chapter. A warning is useful here, because the rule can fail for negative bases once the exponent is not an integer.
Take (x^2)^(1/2). The rule suggests x^(2 · 1/2) = x^1 = x. But if x = −3, then x^2 = 9, and the square root of 9 is 3, not −3. The correct simplification is |x|, the absolute value of x.
x = -3
print((x**2)**0.5) # 3.0
print(x**(2 * 0.5)) # -3.0For integer exponents you do not have this problem, so the rule holds for every nonzero base, positive or negative. Be careful once roots appear.
Checking your work
Substitution is the most reliable way to catch a mistake. Pick simple values for the variables that avoid zero, simplify, and compare both forms. One value agreeing does not prove the rule is correct, but a mismatch proves you made an error.
The next script tests the rule exactly over a grid of bases and integer exponents, including negative ones:
from fractions import Fraction
failures = []
for a in [Fraction(2), Fraction(-3), Fraction(1, 2)]:
for m in range(-3, 4):
for n in range(-3, 4):
if (a**m)**n != a**(m * n):
failures.append((a, m, n))
print(failures) # []An empty list means no counterexample was found among those 147 combinations. Fractions give exact arithmetic, so there are no rounding differences to confuse the comparison.
Summary of the rule
- To raise a power to a power, multiply the exponents: (a^m)^n = a^(mn).
- The rule follows from the product rule, because n copies of a^m add m a total of n times.
- It works for zero and negative integer exponents when a ≠ 0.
- Every factor inside the parentheses gets the outer exponent, including numeric coefficients.
- A tower without parentheses, a^m^n, means a^(m^n), which is a different value.
Exercise
Simplify (2x^3 y^−2)^3 and write the answer with positive exponents only. Then check it by substituting x = 2 and y = 1/2... or choose your own values that avoid 0 and 1.
Show answer
Apply the exponent 3 to every factor: 2^3 · (x^3)^3 · (y^−2)^3 = 8 · x^9 · y^−6. With positive exponents this is 8x^9 / y^6. Check with x = 2 and y = 3: the original is (2·8/9)^3 = (16/9)^3 = 4096/729, and the simplified form is 8·512/729 = 4096/729. They match.
Exercise
A student writes (x^5)^2 · x^3 = x^7 · x^3 = x^10. Find the error and give the correct answer.
Show answer
The student added the exponents 5 and 2 for the power of a power, but they should be multiplied. The correct steps are (x^5)^2 = x^10, then x^10 · x^3 = x^13. The answer is x^13. A check with x = 2 gives (32)^2 · 8 = 1024 · 8 = 8192, which equals 2^13.
Exercise
Evaluate (2^3)^2 and 2^(3^2), and explain why they differ.
Show answer
(2^3)^2 = 8^2 = 64, which is also 2^6. For 2^(3^2), the 3^2 = 9 is computed first and becomes the exponent, so the value is 2^9 = 512. The first multiplies the exponents (3 · 2 = 6), while the second raises 3 to the power 2 before using it as an exponent.