y = 2ˣ (blue) and y = log₂x (green) are reflections in the line y = x: inverse functions. Log is only defined for x > 0.