# 8.7 Logarithmic Functions

Logarithms are the inverse of exponential functions – they allow us to undo exponential functions and solve for the exponent. They are also commonly used to express quantities that vary widely in size.

**Logarithm Equivalent to an Exponential**

The logarithm (base [latex]b[/latex]) function, written [latex]\log_b (x)[/latex], is the inverse of the exponential function (base [latex]b[/latex]), [latex]b^x[/latex].

This means the statement [latex]b^a=c[/latex] is equivalent to the statement [latex]\log_b (c)=a[/latex].

#### Example 1

Write these exponential equations as logarithmic equations:

- [latex]2^3=8[/latex]
- [latex]5^2=25[/latex]
- [latex]10^{-4}=\frac{1}{10000}[/latex]

**Answer:**

- [latex]2^3=8[/latex] is equivalent to [latex]\log_2(8)=3[/latex].
- [latex]5^2=25[/latex] is equivalent to [latex]\log_5(25)=2[/latex].
- [latex]10^{-4}=\frac{1}{10000}[/latex] is equivalent to [latex]\log_{10}\left(\frac{1}{10000}\right)=-4[/latex].

#### Example 2

**By rewriting this equation using a logarithm, we get [latex]x=\log_2(10)[/latex].**

Answer:

Answer:

While this does define a solution, and an exact solution at that, you may find it somewhat unsatisfying since it is difficult to compare this expression to the decimal estimate we made earlier. Also, giving an exact expression for a solution is not always useful – often we really need a decimal approximation to the solution. Luckily, this is a task calculators and computers are quite adept at. Unluckily for us, most calculators and computers will only evaluate logarithms of two bases, base 10 and base [latex]e[/latex]. Happily, this ends up not being a problem, as we’ll see briefly.

**Common and Natural Logarithms**

**common log**is the logarithm with base 10, and is typically written [latex]\log(x)[/latex].

The

**natural log**is the logarithm with base [latex]e[/latex], and is typically written [latex]\ln(x)[/latex].

#### Example 3

Evaluate [latex]\log(1000)[/latex] using the definition of the common log.

**Answer:**

To evaluate [latex]\log(1000)[/latex], we can say [latex]x=\log(1000)[/latex], then rewrite into exponential form using the common log base of 10:[latex]10^x=1000.[/latex]

From this, we might recognize that 1000 is the cube of 10, i.e., [latex]10^3=1000[/latex], so [latex]x = 3[/latex].

We also can use the inverse property of logs to write [latex]\log_{10}\left(10^3\right) =3[/latex].

Number | Number as exponential | log(number) |

1000 | [latex]10^3[/latex] | 3 |

100 | [latex]10^2[/latex] | 2 |

10 | [latex]10^1[/latex] | 1 |

1 | [latex]10^0[/latex] | 0 |

0.1 | [latex]10^{-1}[/latex] | -1 |

0.01 | [latex]10^{-2}[/latex] | -2 |

0.001 | [latex]10^{-3}[/latex] | -3 |

#### Example 4

**Using a computer or calculator, we can evaluate and find that [latex]\log(500)\approx 2.69897[/latex].**

Answer:

Answer:

Because logarithms are inverse functions of exponentials, we can, in particular, use them to solve exponential equations, where the unknown is in the exponent, in much the same way as we use the inverse properties of addition vs. subtraction or multiplication vs. division when rearranging equations to solve for an unknown value.

**Properties of Logarithms**

**Inverse Properties:**

(1) [latex]\log_b(b^x)=x[/latex]

(2) [latex]b^{\log_b(x)}=x[/latex]

**Exponent Property**

(3) [latex]\log_b\left(A^r\right)=r\,\log_b(A)[/latex]

Here is an example how these properties are useful:

Suppose we have the following equation and had to determine the value of [latex]r[/latex]:

[latex]2\cdot 1.8^x=17.2[/latex]

To solve for [latex]x[/latex], we first have to determine which operations, and in which order, are acting on [latex]x[/latex], and then undo them in the opposite order. Because [latex]x[/latex] is first put into the exponent of 1.8, and then the new value is multiplied by 2, we first have to undo the last operation, i.e., we must divide by 2:

[latex]1.8^x=\frac{17.2}{2}[/latex]

Looking at the equation now, we can see that the only thing happening to [latex]x[/latex] is that [latex]x[/latex] is put into the exponent of 1.8. The opposite operation would be the inverse property (1), so we could apply [latex]log_{1.8}[/latex] to get just [latex]x[/latex]. However, the typical scientific calculator only calculates the common and the natural log, so [latex]log_{1.8}[/latex] won’t be helpful when applied to the other side of the equation. So instead we will apply either [latex]\log[/latex] or [latex]ln[/latex] to both sides of the equation, and then bring the exponent down by using the exponent property (3):

[latex]\begin{align*} \ln(1.8)^x&=\ln\left(\frac{17.2}{2}\right)\Rightarrow x\ln(1.8)=\ln\left(\frac{17.2}{2}\right)\\ &\Rightarrow x=\frac{\ln\left(\frac{17.2}{2}\right)}{\ln(1.8)}\approx 3.660788 \end{align*}[/latex]

**General process for solving exponential equations:**

- Isolate the exponential expressions when possible.
- Take the logarithm of both sides.
- Utilize the exponent property for logarithms to pull the variable down from the exponent.
- Continue to use algebra to solve for the variable.

#### Example 5 – solving for a variable in the exponent

In the last section, we predicted the population (in billions) of India [latex]t[/latex] years after 2008 by using the function [latex]f(t)=1.14(1+0.0134)^t[/latex]. If the population continues following this trend, when will the population reach 2 billion?

**Answer: **[latex]t =?[/latex], [latex]f(t) = 2[/latex], [latex]f(t)=1.14(1+0.0134)^t[/latex]

Initial equation. | [latex]1.14(1.0134)^t=2[/latex] |

Divide by 1.14 to isolate the exponential expression. | [latex]1.0134^t=\dfrac{2}{1.14}[/latex] |

Take the logarithm to both sides of the equation. | [latex]\ln\left(1.0134^t\right)=\ln\left(\dfrac{2}{1.14}\right)[/latex] |

Apply the exponent property on the right side. | [latex]t\cdot \ln(1.0134)=\ln\left(\dfrac{2}{1.14}\right)[/latex] |

Divide both sides by [latex]\ln(1.0134)[/latex] | [latex]t = \dfrac{\ln\left(\dfrac{2}{1.14}\right)}{\ln(1.0134)}[/latex] |

Calculate. | [latex]t\approx 42.23 \text{ years}[/latex] |

If this growth rate continues, the model predicts the population of India will reach 2 billion about 42 years after 2008, or approximately in the year 2050.

#### Example 6 – solving for a variable in the exponent

Solve [latex]5e^{-0.3t}=2[/latex] for [latex]t[/latex].

**Answer:**

State the initial equation. | [latex]5e^{-0.3t}=2[/latex] |

Divide by 5 to isolate the exponential. | [latex]e^{-0.3t}=\frac{2}{5}[/latex] |

Take the natural log of both sides. | [latex]\ln\left(e^{-0.3t}\right)=\ln\left(\dfrac{2}{5}\right)[/latex] |

Use the inverse property for logs (2). | [latex]-0.3t=\ln\left(\dfrac{2}{5}\right)[/latex] |

Divide by -0.3. | [latex]t = \dfrac{\ln\left(\dfrac{2}{5}\right)}{-0.3}[/latex] |

Calculate. | [latex]t\approx 3.054[/latex] |

In addition to solving exponential equations, logarithmic expressions are very useful in compound interest questions.

#### Example 7 – compound interest

Let’s consider an example from the previous section: Suppose an investment of $2,000 at the annual rate of 1.89% can be compounded quarterly and continuously. Determine when the total amount, including interest, will reach $2,500 in each of the two cases of compounding.

**Answer:** [latex]t=?[/latex]

Compounding quarterly: [latex]A_q(t)=P\left(1+\frac{r}{m}\right)^{mt}=2000\left(1+\frac{0.0189}{4}\right)^{4t}[/latex]

[latex]\begin{align*} A_q(t)&=2500\Rightarrow 2000\left(1+\frac{0.0189}{4}\right)^{4t}=2500\\ &\Rightarrow\left(1+\frac{0.0189}{4}\right)^{4t}=\frac{2500}{2000}\\ &\Rightarrow\ln\left(\left(1+\frac{0.0189}{4}\right)^{4t}\right)=\ln\left(\frac{2500}{2000}\right)\\ &\Rightarrow 4t\cdot\ln\left(1+\frac{0.0189}{4}\right)=\ln\left(\frac{2500}{2000}\right)\\ &\Rightarrow t=\frac{\ln\left(\frac{2500}{2000}\right)}{4\cdot \ln\left(1+\frac{0.0189}{4}\right)}\\ &\Rightarrow t\approx 11.834 \end{align*}[/latex]

Since 11.834 years is between 11 years and three quarters and 12 years, the time it will for the investment to reach $2500 by compounding quarterly is 12 years.

Compounding continuously: [latex]A_c(t)=Pe^{rt}=2000e^{0.0189t}[/latex]

[latex]\begin{align*} A_c(t)&=2500\Rightarrow 2000e^{0.0189t}=2500\\ &\Rightarrow e^{0.0189t}=\frac{2500}{2000}\\ &\Rightarrow\ln\left(e^{0.0189t}\right)=\ln\left(\frac{2500}{2000}\right)\\ &\Rightarrow 0.0189t\ln(e)=\ln\left(\frac{2500}{2000}\right)\\ &\Rightarrow 0.0189t=\ln\left(\frac{2500}{2000}\right)\\ &\Rightarrow t=\frac{\ln\left(\frac{2500}{2000}\right)}{0.0189}\\ &\Rightarrow t\approx 11.807 \end{align*}[/latex]

Since 11.807 years is approximately 11 years and [latex]0.807(12)[/latex] months, the time it will for the investment to reach $2500 by compounding continuously is 11 years and 10 months.

While we don’t often need to sketch the graph of a logarithm, it is helpful to understand the basic shape.

**Graphical Features of the Logarithm**

Graphically, given the function [latex]g(x)=\log_b(x)[/latex].

- The graph has a horizontal intercept at (1, 0).
- The graph has a vertical asymptote at [latex]x = 0[/latex].
- The graph is increasing and concave down.
- The domain of the function is [latex]x \gt 0[/latex], or [latex](0, \infty)[/latex] in interval notation.
- The range of the function is all real numbers, or [latex](-\infty, \infty)[/latex] in interval notation.

When sketching a general logarithm with base [latex]b[/latex], it can be helpful to remember that the graph will pass through the points [latex](1, 0)[/latex] and [latex](b, 1)[/latex].

To get a feeling for how the base affects the shape of the graph, examine the graphs below:

Another important observation made was the domain of the logarithm: [latex]x \gt 0[/latex]. Like the reciprocal and square root functions, the logarithm has a restricted domain which must be considered when finding the domain of a composition involving a log.

#### Example 8 – domain of a logarithmic function

**The logarithm is only defined when the input is positive, so this function will only be defined when [latex]5-2x \gt 0[/latex].Solving this inequality, [latex]-2x \gt -5[/latex], so [latex]x\lt \frac{5}{2}[/latex].The domain of this function is [latex]x\lt \frac{5}{2}[/latex], or, in interval notation, [latex]\left(-\infty, \frac{5}{2} \right)[/latex].**

Answer:

Answer:

## Section Exercises

Work on the following exercises. Discuss your solutions with your peers and/or course instructor.