From our previous work, we know that if \(b > 0\) then the range of the exponential function \(f(x) = b(x)\) is the positive real numbers. If \(b > 0\) then the graph of \(f\) increases as we move right on the \(x\) axis, and if \(0 \lt b \lt 1\) then it increases as we move left on the \(x\)-axis. (The function \(f(x) = b^x\) is not very exciting if \(b = 1\text{.}\)) In either case, that means for any positive real number \(y\) there exists a unique real number \(x\) such that \(b^x = y\text{.}\) This number is the base-\(b\) logarithm of \(y\), and denoted by \(\log_b(y)\text{.}\) That is, if \(b > 0\) and \(b \neq 1\text{,}\) then \(\log_b(y)\) is the power to which \(b\) must be raised in order to get the positive number \(y\text{.}\)
It is important to notice that \(\log_b(y)\) is only defined for positive numbers \(y\text{.}\) Logarithms are exponents. By definition \(b^{\log_b(y)} = y\text{.}\) Since \(b\) is positive, so is any power of \(b\text{.}\) Thus \(\log_b(y)\) is undefined when \(y\) is negative because no power of a positive number can give us a negative number.
When the base \(b\) is omitted, as in \(\log(100)\text{,}\) it is assumed to be 10. Logarithms to base 10 are called common logarithms. Logarithms to base \(e\) are called natural logarithms, and denoted by \(ln(x)\) rather than \(log_e(x)\text{.}\)
We have \(2 = \log_8(x) + \log_8(x - 12) = \log_8(x(x - 12))\text{,}\) so that \(8^2 = x(x - 12)\text{,}\) by the definition of logarithms. Thus \(x^2 - 12x - 64 = 0\text{.}\) By factoring (or using the quadratic formula first for help), this is the same as \((x-16)(x+4) = 0\text{.}\) Therefore \(x = 16\) or \(x = -4\text{.}\) But \(x = -4\) is not a solution, as \(\log_8(-4)\) is undefined. Hence the solution is \(x = 16\text{.}\)
For a positive real number \(b \neq 1\text{,}\) the logarithm function with base \(b\) is the function \(f(x) = \log_b(x)\text{.}\) Its domain is the set of positive real numbers. Its range is the set of all real numbers.
Notice that the functions \(f(x) = b^x\) and \(g(y) = \log_b(y)\) are inverses by definition: \(b^x = y\) if and only if \(\log_b(y) = x\text{.}\) Thus, if \(b \neq 1\text{,}\) the logarithm function with base \(b\) is the inverse of the exponential function with base \(b\text{.}\) (The function \(f(x) = 1^x\) does not have an inverse because, for example \(1^2 = 1^3 = 1\text{.}\))
Finally, we observe that logarithm functions with different bases are just multiples of each other. We know \(b^{\log_b(x)} = x\text{.}\) Therefore, \(\log_a\left(b^{\log_b(x)}\right) = \log_a(x)\text{.}\) From one of the properties of logarithms, we know that \(\log_a\left(b^{\log_b(x)}\right) =\log_b(x) \log_a(b)\text{,}\) and so this is the same as \(\log_b(x) \log_a(b) = \log_a(x)\text{.}\) Since \(\log_a(b)\) is a number, this says that \(\log_a(x)\) is a multiple of \(\log_b(x)\text{.}\)
This graph has the same basic shape as the graph of \(y = \log(x)\text{.}\) It is shifted upwards by 3 and left by 2. Also, it is stretched in the vertical direction by a factor of 5.