In Section ExponentialFunctions, we saw exponential functions \(f(x) = b^x\) are are one-to-one which means they are invertible. In this section, we explore their inverses, the logarithmic functions which are called ‘logs’ for short.

We have special notations for the common base, \(b=10\), and the natural base, \(b=e\).

Since logs are defined as the inverses of exponential functions, we can use Theorems inversefunctionprops and expfcnprops to tell us about logarithmic functions. For example, we know that the domain of a log function is the range of an exponential function, namely \((0, \infty )\), and that the range of a log function is the domain of an exponential function, namely \((-\infty , \infty )\).

Moreover, since we know the basic shapes of \(y = f(x) = b^{x}\) for the different cases of \(b\), we can obtain the graph of \(y = f^{-1}(x) = \log _{b}(x)\) by reflecting the graph of \(f\) across the line \(y=x\). The \(y\)-intercept \((0,1)\) on the graph of \(f\) corresponds to an \(x\)-intercept of \((1,0)\) on the graph of \(f^{-1}\). The horizontal asymptotes \(y=0\) on the graphs of the exponential functions become vertical asymptotes \(x=0\) on the log graphs.

Below we use desmos to graph \(f(x) = 2^{x}\) along with \(y = \log _{2}(x)\). Note the corresponding points and asymptotes and the symmetry across the line \(y=x\).

Next, we graph \(f(x) = \left (\frac {1}{2}\right )^{x}\) along with its inverse \(y = \log _{\frac {1}{2}}(x)\).

Procedurally, logarithmic functions ‘undo’ the exponential functions. Consider the function \(f(x) = 2^{x}\). When we evaluate \(f(3) = 2^{3} = 8\), the input \(3\) becomes the exponent on the base \(2\) to produce the real number \(8\). The function \(f^{-1}(x) = \log _{2}(x)\) then takes the number \(8\) as its input and returns the exponent \(3\) as its output. In symbols, \(\log _{2}(8) = 3\).

More generally, \(\log _{2}(x)\) is the exponent you put on \(2\) to get \(x\). Thus, \(\log _{2}(16) = 4\), because \(2^{4} = 16\). The following theorem summarizes the basic properties of logarithmic functions, all of which come from the fact that they are inverses of exponential functions.

As we have mentioned, Theorem logfcnprops is a consequence of Theorems inversefunctionprops and expfcnprops. However, it is worth the reader’s time to understand Theorem logfcnprops from an exponent perspective.

As an example, we know that the domain of \(g(x) = \log _{2}(x)\) is \((0,\infty )\). Why? Because the range of \(f(x) = 2^{x}\) is \((0,\infty )\). In a way, this says everything, but at the same time, it doesn’t.

To really understand why the domain of \(g(x) = \log _{2}(x)\) is \((0,\infty )\), consider trying to compute \(\log _{2}(-1)\). We are searching for the exponent we put on \(2\) to give us \(-1\). In other words, we are looking for \(x\) that satisfies \(2^{x} = -1\). There is no such real number, since all powers of \(2\) are positive.

While what we have said is exactly the same thing as saying ‘the domain of \(g(x) = \log _{2}(x)\) is \((0,\infty )\) because the range of \(f(x) = 2^{x}\) is \((0,\infty )\)’, we feel it is in a student’s best interest to understand the statements in Theorem logfcnprops at this level instead of just merely memorizing the facts.

Our first example gives us practice computing logarithms as well as constructing basic graphs.

Up until this point, restrictions on the domains of functions came from avoiding division by zero and keeping negative numbers from beneath even indexed radicals. With the introduction of logs, we now have another restriction. Since the domain of \(f(x) = \log _{b}(x)\) is \((0, \infty )\), the argument of the logarithm must be strictly positive.

While logarithms have some interesting applications of their own which you’ll explore in the exercises, their primary use to us will be to undo exponential functions. (This is, after all, how they were defined.) Our last example reviews not only the major topics of this section, but reviews the salient points from Section InverseFunctions.