taking log(base a) of both sides we get
base other than a could also be taken.
So log was needed to find the inverse.
(Remember taking log creates some restrictions as log is a function.)
loga X=p (a is base)
hope this helps