Logarithms undo exponentials

$y = \log_b x$ and $y = b^x$ are inverse functions, so each one's input-output pairs are the other's swapped, their graphs mirror each other in $y = x$, and each undoes the other.

From AP Precalculus.