Math Fundamentals18 sections · 814 units
Open in Course

Power Rule (Exponent comes out front)

Third logarithm property

When you take the logarithm of a power, the exponent moves out front as a multiplier: log⁡b(xk)=k⋅log⁡b(x)\log_b(x^k) = k \cdot \log_b(x).

For example, log⁡2(82)=2⋅log⁡2(8)=2⋅3=6\log_2(8^2) = 2 \cdot \log_2(8) = 2 \cdot 3 = 6. And indeed, log⁡2(64)=6\log_2(64) = 6.

This is the most powerful property for complexity analysis. When you have log⁡(n2)\log(n^2), you can simplify it to 2log⁡n2 \log n, which is still O(log⁡n)O(\log n) because the constant 22 drops in Big-O notation.