The exponential function and the logarithmic function are inverse functions, and their graphs are symmetric about the line .
An inverse function swaps the roles of and . The function takes and returns ; going the other way, recovering from the value, is . For instance passes through at , and passes through at . Points like and , with their - and -coordinates swapped, correspond to each other.
An inverse can be built mechanically. Solving for gives ; renaming the letters so that the input is again called gives . That recipe, solve and then swap the names, is how inverses are made, and the swap of names is exactly what reflecting the graph across does.
In general the points and are symmetric about the line . Since an inverse swaps , for every point on the inverse has the point . So the two graphs are reflections of each other in as a mirror.
| Item | ||
|---|---|---|
| Domain | all real numbers | |
| Range | all real numbers | |
| Asymptote | the -axis | the -axis |
| A point it passes through |
Applying the two in succession returns you to the start: and say that a round trip changes nothing. That has the -axis as an asymptote while has the -axis is likewise the same fact seen in the mirror.
Tangent slopes correspond as well. The tangent to at has slope , and the tangent to at also has slope . Reflection turns a slope into its reciprocal, and the reciprocal of is .
Only a one-to-one function has an inverse, and qualifies because it increases monotonically. The symmetry is not special to : and stand in exactly the same relation. The large dots on the graph are the symmetric pair and .