Apply power law of logarithms (#503)

Apply power law of logarithms (#503)

Use log⁡a(xk)=klog⁡ax\log_a(x^k) = k \log_a x.