Symmetry of exponential and logarithmic functions

The exponential function y=exy = e^x and the logarithmic function y=lnxy = \ln x are inverse functions, and their graphs are symmetric about the line y=xy = x.

An inverse function swaps the roles of xx and yy. y=exy = e^x takes xx and returns exe^x; going the other way — recovering xx from the value — is y=lnxy = \ln x. For instance exe^x passes through y=1y = 1 at x=0x = 0, and lnx\ln x passes through y=0y = 0 at x=1x = 1. Points like (0,1)(0, 1) and (1,0)(1, 0), with their xx- and yy-coordinates swapped, correspond to each other.

In general, the points (a,b)(a, b) and (b,a)(b, a) are symmetric about the line y=xy = x. Since an inverse swaps (x,y)(x, y), for every point (a,b)(a, b) on y=f(x)y = f(x) the inverse's graph contains (b,a)(b, a). So the two graphs are reflections of each other across y=xy = x as a mirror.

exe^x rises steeply with the xx-axis as its asymptote, while lnx\ln x grows slowly with the yy-axis as its asymptote, and they are exact mirror images across y=xy = x. The large dots on the graph are the symmetric pair (0,1)(0, 1) and (1,0)(1, 0).