Sub topic 2
Raising a power to a power
This chapter assumes you can multiply integers and fractions, evaluate expressions using the order of operations, and work with variables. It covers three rules for raising a power, a product, or a quotient to another exponent.
Power of a power
To raise a power to another exponent, multiply the exponents: (a^m)^n = a^(m·n).
The rule follows from the meaning of exponents. (a^m)^n means a^m used as a factor n times. Each a^m contains m copies of a, so the total is n·m copies of a.
Example: (x^2)^3 = x^2 · x^2 · x^2 = x^6.
a, m, n = 2, 3, 2
print((a**m)**n) # 64
print(a**(m * n)) # 64
print((a**m)**n == a**(m * n)) # TruePower of a product
A power of a product applies the exponent to each factor: (ab)^n = a^n · b^n.
Example: (3x)^4 = 3^4 · x^4 = 81x^4.
Power of a quotient
A power of a quotient applies the exponent to the numerator and the denominator: (a/b)^n = a^n / b^n, where b ≠ 0.
Example: (2y/3)^2 = 4y^2/9.
from fractions import Fraction
print(Fraction(2, 3) ** 2) # 4/9
print(Fraction(2) ** 2 / Fraction(3) ** 2) # 4/9
print(Fraction(2, 3) ** 2 == Fraction(2) ** 2 / Fraction(3) ** 2) # TrueExercise
Simplify (x^2)^3 · x.
Show answer
First, (x^2)^3 = x^6 by the power-of-a-power rule. Then x^6 · x = x^(6+1) = x^7.
Exercise
Simplify (2a^2b)^3 / (4b)^2.
Show answer
Apply the power-of-a-product rule to each numerator and denominator: (2a^2b)^3 = 8a^6b^3 and (4b)^2 = 16b^2. Dividing gives 8a^6b^3 / 16b^2 = a^6 b / 2.