Skip to main content

Section 13.4 Intro to Logarithms

Logarithms are a kind of inverse of exponents.

Example 13.4.1. Motivation for Logs with Base 10.

Consider these powers of 10,
\begin{align*} 10^1 \amp = 10\\ 10^2 \amp = 100\\ 10^3 \amp = 1000\\ 10^4 \amp = 10000 \end{align*}
These tell you that 10 to an exponent gives a number. Now reverse the question. Instead of asking what \(10^3\) equals, ask: 10 to what power equals 1000? Since \(10^3=1000\text{,}\) the answer is 3.
Logarithms are a shorthand for this reverse question. The expression \(\log_{10}(x)\) (read this as β€œlog base 10 of \(x\)”) means the exponent you put on 10 to get \(x\text{.}\) Intuitively, \(\log_{10}{x}\) is the number of 10s you need to multiply together in order to get \(x\text{.}\) So, for example,
\begin{align*} \begin{array}{lcl} \amp \text{means...} \amp \\ 10^3=1000 \amp \longrightarrow \amp \log_{10}(1000)=3 \\ 10^5=100000 \amp \longrightarrow \amp \log_{10}(100000)=5 \\ 10^0=1 \amp \longrightarrow \amp \log_{10}(1)=0 \end{array} \end{align*}
In other words,
  • Powers convert exponents to numbers
  • Logs convert numbers to exponent.
In this way, logarithms are a kind of inverse of exponents.

Example 13.4.2. Approximating Logarithms.

We know that for the equation \(2^x=8\text{,}\) the answer is \(x=3\text{,}\) because \(2^3=8\text{.}\) However, what about the equation \(2^x=11\text{?}\)
We know that \(2^3=8\) and \(2^4=16\text{,}\) so we expect the solution \(x\) to be between 3 and 4. Maybe a better guess is in the middle, like \(x=3.5\text{.}\) Here, \(2^{3.5} \approx 11.3\text{,}\) which is a bit more than 11. Try \(x=3.4\text{,}\) and we get \(2^{3.4} \approx 10.6\text{,}\) which is a bit less than 11. So, the solution is between 3.4 and 3.5.
Using logarithms, we can say that the exact answer is \(\log_{2}{11}\) (read this as β€œlog base 2 of 11”), which means the exponent you must put on 2 to get 11. It turns out that \(\log_2{11} \approx 3.45943 \dots\text{.}\)
You can try this on your calculator. You’ll see that \(2^{3.45943} = 10.99998766\text{,}\) which is very, very close to 11.

Example 13.4.3. Logarithm Examples.

Similarly,
  • \(\log_{4} 64 = 3\text{,}\) because \(4^3=64\text{.}\)
  • \(\log_{10}1000000 = 6\text{,}\) because \(10^6=1000000\text{.}\)
  • \(\log_{1/2}\left(\frac{1}{8}\right)=3\text{,}\) because \(\left(\frac{1}{2}\right)^3 = \frac{1}{8}\)

Subsection 13.4.1 Logarithms

The logarithm base b of a, denoted by \(\log_{b}a\text{,}\) is the exponent that \(b\) must be raised to, to get \(a\text{.}\) In other words,
\begin{gather*} \boxed{\log_{b}a = c \quad \text{is equivalent to} \quad b^c = a} \end{gather*}
The equations \(\log_{b}a = c\) (logarithmic form) and \(b^c = a\) (exponential form) are two ways of expressing the same relationship between the numbers \(a, b\text{,}\) and \(c\text{.}\)
With the logarithmic form \(\log_{b}a = c\text{,}\)
  • \(b\) is called the base of the logarithm.
  • \(a\) is called the argument (the value inputted into the function).
  • \(c\) is the logarithm (since it equals the logarithmic expression).
With the exponential form \(b^c = a\text{,}\)
Notice that the exponent \(c\) is equivalent to the logarithm above (since logarithms are an exponent), and that the result \(a\) is equivalent to the argument above.

Exercise Group 13.4.1. Converting Forms.

Convert each logarithmic or exponential equation to exponential or logarithmic form.
Logarithms are a name for a certain exponent. In particular, \(\log_b{a}\) is the exponent to which \(b\) must be raised, to obtain \(a\text{.}\)
When you see β€œ\(\log{\text{something}}\)”, mentally translate into β€œthe exponent you’d put on the base to get what’s inside”.

Exercise Group 13.4.2. Evaluating Basic Logarithms.

Evaluate each logarithm.

Subsection 13.4.2 Logarithm Bases

The two most commonly-used logarithm bases are:
  • Base 10, denoted by \(\log_{10}\text{,}\) called the common logarithm, which is used in many applied sciences.
  • Base \(e\text{,}\) called the natural logarithm, which is often used in calculus.
These are often denoted by simply \(\log\) and \(\ln\text{,}\) respectively. In other words,
\begin{gather*} \log{x} = \log_{10}{x} \quad \text{and} \quad \ln{x} = \log_e{x} \end{gather*}
These two logarithms are included on most calculators. The natural logarithm is denoted by \(\ln\) because it is an abbreviation of the Latin term β€œlogarithmus naturali”.

Remark 13.4.4.

In computer science, often log base 2 is used, or \(\log_2\text{.}\)

Remark 13.4.5.

For logarithms, we use three letters \(\log\) to denote the common logarithm, and two letters \(\ln\) to denote the natural logarithm.
Typically, functions have been represented by a single letter, such that \(f\) for \(f(x)\) or \(g\) for \(g(x)\text{.}\)
In this way, \(\log{(x)}\) or \(\log_2{(x)}\) represents a function just like \(f(x)\) does. However, we often write logarithms without parentheses as \(\log{x}\) or \(\log_2{x}\text{.}\)
If you have seen the trig functions like \(\sin{x}\) or \(\cos{x}\text{,}\) then \(\log{x}\) is a similar kind of notation: \(\log{x}\) means the log function with \(x\) as its input, just like \(\sin{x}\) means the sine function with \(x\) as its input. In particular, \(\log{10}\) does not mean β€œ\(\log\) times 10”, just like \(\sin{30^{\circ}}\) doesn’t mean β€œ\(\sin\) times 30”.
If a log contains more than one term, then we use brackets. For example, \(\log(x + y)\text{.}\) Or, if there are a lot of factors, e.g. \(\log\left(\frac{x^2 y^3}{(x-1)^5}\right)\text{.}\)

Subsection 13.4.3 Basic Properties of Logarithms

Example 13.4.6. Logarithm of the Base.

Consider \(\log_5{5}\text{.}\) This means the exponent to put on 5 to get 5. This is 1, since \(5^1=5\text{.}\) Similarly
  • \(\displaystyle \log_3{3} = 1\)
  • \(\displaystyle \log_8{8} = 1\)
  • \(\displaystyle \log{10} = 1\)

Example 13.4.8. Logarithm of One.

Consider \(\log_{3}{1}\text{.}\) This means the exponent to put on 3 to get 1. This is 0, because \(3^0=1\text{.}\) Similarly,

Subsection 13.4.4 Evaluating Logarithms (By Hand)

Exercise Group 13.4.3. Evaluating Logarithms.

Evaluate each logarithm.

Subsection 13.4.5 Logs of Negative Numbers

It turns out, we can’t take the logarithm of a negative number, or 0.

Example 13.4.10. Log of a Negative Number.

Consider \(\log_2{(-4)}\text{.}\) This number represents the exponent to put on 2 to get \(-4\text{.}\) However, the equation \(2^x=-4\) has no solution, because 2 to the power of any number will always result in a positive number, never a negative.

Example 13.4.11. Log of Zero.

Consider \(\log_2{0}\text{.}\) This also doesn’t work, because \(2^x=0\) has no solution. Again, 2 to the power of any number will always be positive, and so will never equal to 0.
In general,
\begin{gather*} \boxed{\text{You can only take the log of a positive number}} \end{gather*}
This is because for any base \(b\text{,}\) the expression \(\log_b{x}\) means the exponent needed to raise \(b\) to get \(x\text{.}\) Since \(b\) to the power of any number is always positive, there is only an answer if \(x\) is positive.

Subsection 13.4.6 Evaluating Logarithms Using a Calculator

My recommended calculator Casio fx-991ES Plus C 2nd edition (or some other similar scientific calculators, as well as the TI-84 Plus CE) can calculate logarithms of any base.
However, many older and weaker calculators only have buttons for:
  • Base 10 (common logarithms) denoted by the \(\log\) key
  • Natural logarithms (base \(e\)) denoted by \(\ln\)
In fact, base 10 logs are enough to evaluate logs of any base, because of this rule,
\begin{gather*} \boxed{\log_b{a} = \frac{\log{a}}{\log{b}}} \end{gather*}
This allows us to change a log of any base (\(b\)) to something involving logs base 10. It also works for natural logarithms, but you can just stick with logs base 10.

Example 13.4.13. Using Change of Base.

For example,
  • \(\displaystyle \log_2{15} = \frac{\log{15}}{\log{2}} \approx 3.907\)
  • \(\log_2{8} = \frac{\log{8}}{\log{2}} = 3\) (we could have found this one without a calculator)
This equality is a particular case of what is called the change-of-base property, which we’ll explore further later on.

Subsection 13.4.7 Inverse Properties of Logarithms

Example 13.4.14. Logarithm of a Power.

Consider \(\log_3(3^5)\text{.}\) This means the exponent that 3 must be raised, to get \(3^5\text{.}\) The answer is 5, because literally, 3 to the 5 is 3 to the 5. Similarly,
  • \(\displaystyle \log_5(5^8) = 8\)
  • \(\displaystyle \log_8(8^{100})=100\)
  • \(\displaystyle \log{10^4} = 4\)
In general, if you take the log of a power of the base, the answer is the exponent.

Example 13.4.16. Power of a Logarithm.

Consider \(4^{\log_4{11}}\text{.}\) The exponent of \(\log_4{11}\) represents the exponent to put on 4 to get 11. We are taking 4 to the power of this number, so by definition, we should get 11. Therefore, \(4^{\log_4{11}}=11\text{.}\)
Similarly,
  • \(\displaystyle 5^{\log_5{125}} = 125\)
  • \(\displaystyle 3^{\log_3 \frac{1}{16}} = \frac{1}{16}\)
  • \(\displaystyle 6^{\log_6{x}} = x\)

Exercise Group 13.4.4. Evaluating with Inverse Properties.

Evaluate each expression.

Subsection 13.4.8 Solving Basic Logarithmic Equations (Finding the Unknown)

To solve for an unknown that involves logs, the main technique is to convert to exponential form.

Exercise Group 13.4.5. Solving Equations.

Solve each equation.
In the next examples, if there are multiple logs inside each other, then work from the outside in. Convert to exponential form to unwrap one layer.

Exercise Group 13.4.6. Advanced Examples.

Solve each equation.
(h)
\(\log_{3x}{27}=2\)
Answer.
\(x=\sqrt{3}\) (note: reject \(x=-\sqrt{3}\text{,}\) because the base cannot be negative)