5.2 Log Functions

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.

It’s possible to rewrite exponential functions in a logarithmic format and vice versa.

 

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].

 

Properties of Logs: Inverse Properties

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

 

Example 1

Write these exponential equations as logarithmic equations:

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

 

Example 2

Solve [latex]2^x=10[/latex] for [latex]x[/latex].

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

 

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. Happily, this ends up not being a problem, as we’ll see briefly.

 

Common and Natural Logarithms

The 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.

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:\[ 10^x=1000. \]

From this, we might recognize that 1000 is the cube of 10, 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].

Table 5.2 Values of the common log
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

Evaluate [latex]\log(500)[/latex] using your calculator or computer.

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

Another property provides the basis for solving exponential equations.

 

Properties of Logs: Exponent Property

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

 

Solving exponential equations:

  1. Isolate the exponential expressions when possible.
  2. Take the logarithm of both sides.
  3. Utilize the exponent property for logarithms to pull the variable out of the exponent.
  4. Use algebra to solve for the variable.

 

Example 5

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?

We need to solve for the [latex]t[/latex] so that [latex]f(t) = 2[/latex]

Table 5.3 Steps to solve Example 5
Equation Explanation
[latex]2=1.14(1.0134)^t[/latex] Initial equation.
[latex]\dfrac{2}{1.14}=1.0134^t[/latex] Divide by 1.14 to isolate the exponential expression.
[latex]\ln\left(\dfrac{2}{1.14}\right)=\ln\left(1.0134^t\right)[/latex] Take the logarithm of both sides of the equation.
[latex]\ln\left(\dfrac{2}{1.14}\right)=t\,\ln(1.0134)[/latex] Apply the exponent property on the right side.
[latex]t = \dfrac{\ln\left(\dfrac{2}{1.14}\right)}{\ln(1.0134)}[/latex] Divide both sides by [latex]\ln(1.0134)[/latex]
[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

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

First we divide by 5 to isolate the exponential: \[ e^{-0.3t}=\frac{2}{5}. \]

Since this equation involves [latex]e[/latex], it makes sense to use the natural log:

Table 5.4 Steps to solve Example 6
Equation Explanation
[latex]\ln\left(e^{-0.3t}\right)=\ln\left(\dfrac{2}{5}\right)[/latex] Take the natural log of both sides.
[latex]-0.3t=\ln\left(\dfrac{2}{5}\right)[/latex] Utilizing the inverse property for logs.
[latex]t = \dfrac{\ln\left(\dfrac{2}{5}\right)}{-0.3}[/latex] Now dividing by -0.3.
[latex]t\approx 3.054[/latex]

In addition to solving exponential equations, logarithmic expressions are common in many physical situations.

 

Example 7

In chemistry, pH is a measure of the acidity or basicity of a liquid. The pH is related to the concentration of hydrogen ions, [latex]\left[H^+\right][/latex], measured in moles per liter, by the equation\[\text{pH}=-\log\left(\left[H^+\right]\right)\]

If a liquid has concentration of 0.0001 moles per liter, determine the pH. Determine the hydrogen ion concentration of a liquid with pH of 7.

To answer the first question, we evaluate the expression [latex]-\log(0.0001)[/latex]. While we could use our calculators for this, we do not really need them here, since we can use the inverse property of logs: \[ -\log(0.0001)=-\log\left(10^{-4}\right)=-(-4)=4.\]

To answer the second question, we need to solve the equation [latex]7=-\log\left(\left[H^+\right]\right)[/latex]. Begin by isolating the logarithm on one side of the equation by multiplying both sides by -1: [latex]-7=\log\left(\left[H^+\right]\right)[/latex]. Rewriting into exponential form yields the answer: \[\left[H^+\right]=10^{-7}=0.0000001\text{ moles per liter}.\]

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]\left(\frac{1}{b}, -1\right)[/latex], [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:

 

Three logarithmic graphs are shown on the same coordinate system.  The graphs increase from left to right. The topmost graph is labeled as log to the base 2 of x. The middle graph is labeled as ln of x.  The bottom most graph is labeled as log of x.  The vertical axis extends from -4 to 4 in increments of 1.  The horizontal axis extends from -1 to 11 in increments of 1.  All three graphs pass through the point (1, 0).
Figure 5.7

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

Find the domain of the function [latex]f(x)=\log(5-2x)[/latex].

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].

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Techniques of Calculus 1 by Larry Musolino is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book