This is the most fundamental truth about exponentials and logarithms that you really need to understand: one is the inverse of the other. That is, logarithms "undo" exponents, and exponents "undo" logarithms.
for any , and any positive. That's how logarithms are defined.
So .