7.2 Logarithmic Functions

If a location has an R number of 1.2 for coronavirus and they have 1500 hospital beds available. Assuming they are starting with 2000 active cases today and about 20% of coronavirus patients will need a hospital bed, how many weeks will it be before their hospitals are overwhelmed? Remember the exponential function for this was f(t)=2000(1.2)^t.  The hospitals can handle 1500 patients so we need to know the number of cases the location can handle. 20% of that number is 1500.  So:
1500=0.2x
x=1500/0.2=7500

So the location will be overwhelmed after 7500 active cases, to find the number of weeks this will be, we solve the following equation:
7500=2000(1.2)^t

We can divide both sides by 2000:
3.75=1.2^t

While we have set up exponential models and used them to make predictions, you may have noticed that solving exponential equations has not yet been mentioned. The reason is simple: none of the algebraic tools discussed so far are sufficient to solve exponential equations. Consider the equation 3.75=1.2^t above. We can use our calculator to determine that 1.2^7 \approx 3.583 and 1.2^8 \approx 4.30, so it is clear that x must be some value between 7 and 8 since the function is increasing. We could use technology to create a table of values or graph to better estimate the solution.graph of the function and horizontal line at 3.75 to find intersection

Note that the graph of f(t)=1.2^t intersects with f(t)=3.75 at t=7.25, so we know that the number of weeks to 7500 cases and thus a requirement of 1500 or more hospital beds is a little over 7 weeks away, which might cause local officials to create mitigating efforts to lower the R number.

This result is still fairly unsatisfactory, since it would be nice to have a function that gives the answer.  None of the functions we have already discussed would work, so we must introduce a new function, named log, as the function that “undoes” an exponential function, like how a square root “undoes” a square.  Since exponential functions have different bases, we will define corresponding logarithms of different bases as well.

Logarithm

The logarithm (base b) function, written \log_b(x), “undoes” exponential function b^x .

The statement b^a=c is equivalent to the statement \log_b(c)=a.

Since the logarithm and exponential “undo” each other (in technical terms, they are inverses), the following properties of logs are no surprise.

Properties of Logs: Inverse Properties

  • \log_b\left(b^x\right)=x
  • b^{\log_b x}=x

Since log is a function, it is most correctly written as \log_b(c), using parentheses to denote function evaluation, just as we would with f(c).  However, when the input is a single variable or number, it is common to see the parentheses dropped and the expression written as \log_bc.

Example Using Inverse Properties of Logs

a. Write these exponential equations as logarithmic equations:

i. 2^3=8

This is equivalent to \log_2(8)=3

ii. 5^2=25

This is equivalent to \log_5(25)=2

iii. 10^{-4}=\dfrac{1}{10000}

This is equivalent to \log_{10}\left(\dfrac{1}{10000}\right)=-4

b. Write these logarithmic equations as exponential equations:

i. \log_6\left(\sqrt{6}\right)=\dfrac{1}{2}

This is equivalent to 6^{\frac{1}{2}}=\sqrt{6}

ii. \log_3(9)=2

This is equivalent to 3^2=9

Try it Now 1

a. Write the exponential equation 4^2=16 as a logarithmic equation.

b. Write the logarithmic equation \log_{3}(81)=4

By establishing the relationship between exponential and logarithmic functions, we can now solve basic logarithmic and exponential equations by rewriting.

Examples Solving by Rewriting

a.Solve {\log _4}\left( x \right) = 2 for x.

By rewriting this expression as an exponential, 4^2=x, so x=16

b. Solve 2^x=10 for x.

By rewriting this expression as a logarithm, we get x=\log_2(10)

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 \log(x).

The natural log is the logarithm with base e, and is typically written \ln(x).

History ScrollHistory Note: The reason that natural log is denoted by \ln instead of nl is because it comes from the latin logarithmus naturali which has the initials \ln.

 

Example of Common Log

Evaluate \log(1000) using the definition of the common log.

number number as

exponential

log(number)
1000 103 3
100 102 2
10 101 1
1 100 0
0.1 10-1 -1
0.01 10-2 -2
0.001 10-3 -3

To evaluate \log(1000), we can say x=log(1000), 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 x = 3.

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

Try it Now 2

Evaluate \log(1,000,000)

Example of Natural log

Evaluate \ln\left(\sqrt{e}\right).

We can rewrite \ln\left(\sqrt{e}\right) as \ln\left(e^{\frac{1}{2}}\right). Since \ln is a log base e we can use the inverse property for logs: \ln\left(e^{\frac{1}{2}}\right)=\log_e\left(e^{\frac{1}{2}}\right)=\dfrac{1}{2}.

Examples of evaluating logs with a a calculator

a. Evaluate \log(500) using your calculator or computer.

Using Excel, we can use the function =log10(500) and it will show up as 2.69897.  On a TI or Casio, hit the log key and then 500 enter.

b. Evaluate \ln(7) using your calculator or computer.

Using Excel, we can use the function =ln(7) and it will show up as 1.94591. On a TI or Casio, hit the ln key and then 7 enter.

Try it Now 3

Use your calculator or computer to evaluate:

a. \log(250)

b. \ln(0.8)

Graphs of Logarithms

Recall that the exponential function  produces this table of values:

x -3 -2 -1 0 1 2 3
f(x) \frac{1}{8} \frac{1}{4} \frac{1}{2} 1 2 4 8

Since the logarithmic function “undoes” the exponential,  g(x)=\log_2(x) produces the table of values:

x \frac{1}{8} \frac{1}{4} \frac{1}{2} 1 2 4 8
g(x) -3 -2 -1 0 1 2 3

In this second table, notice that

  1. As the input increases, the output increases.
  2. As input increases, the output increases more slowly.
  3. Since the exponential function only outputs positive values, the logarithm can only accept positive values as inputs, so the domain of the log function is (0,\infty).
  4. Since the exponential function can accept all real numbers as inputs, the logarithm can output any real number, so the range is all real numbers or (-\infty, \infty).Illustration of the graph of a log

Sketching the graph, notice that as the input approaches zero from the right, the output of the function grows very large in the negative direction, indicating a vertical asymptote at x = 0.

In symbolic notation we write as x \to {0^ + },f(x) \to - \infty, and as x \to \infty ,f(x) \to \infty.

Graphical Features of the Logarithm

Graphically, in the function g(x)=\log_b(x)

  • The graph has a horizontal intercept at (1, 0)
  • The graph has a vertical asymptote at x = 0
  • The graph is increasing and concave down
  • The domain of the function is x > 0, or (0, \infty)
  • The range of the function is all real numbers, or (-\infty, \infty)

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

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

Graphs of log base 2, natural and common logs

Notice that the larger the base, the slower the graph grows.  For example, the common log graph, while it grows without bound, it does so very slowly.  For example, to reach an output of 8, the input must be 100,000,000.

Another important observation made was the domain of the logarithm.  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 Finding the Domain of a Logarithmic Function

Find the domain of the function f(x)=\log(5-2x)

The logarithm is only defined when the input is positive, so this function will only be defined when 5-2x>0. Solving this inequality,
-2x>-5
x<\dfrac{5}{2}

The domain of this function is x<{5}{2}, or in interval notation \left( { - \infty ,\frac{5}{2}} \right)

Logarithm Properties

To utilize the common or natural logarithm functions to evaluate expressions like , we need to establish some additional properties.

Properties of Logs: Exponent Property

\log_b\left(A^r\right)=rlog_b\left(A\right)

To show why this is true, we offer a proof.

Since the logarithmic and exponential functions are inverses, {b^{{{\log }_b}A}} = A
So {A^r} = {\left( {{b^{{{\log }_b}A}}} \right)^r}

Utilizing the exponential rule that states {\left( {{x^p}} \right)^q} = {x^{pq}}:

{A^r} = {\left( {{b^{{{\log }_b}A}}} \right)^r} = {b^{r{{\log }_b}A}}

So then {\log _b}\left( {{A^r}} \right) = {\log _b}\left( {{b^{r{{\log }_b}A}}} \right)

Again utilizing the inverse property on the right side yields the result
{\log _b}\left( {{A^r}} \right) = r{\log _b}A

Examples using the Exponent Property of Logs

a. Rewrite \log_3(25) using the exponent property for logs.

Since 25=5^2,
\log_3(25)=log_3\left(5^2\right)=2\log_35

b. Rewrite 4\ln(x) using the exponent property for logs.

Using the property in reverse, 4\ln(x)=\ln \left(x^4\right)

Try it Now 4

Rewrite using the exponent property for logs: \ln \left( \dfrac{1}{x^2}\right).

The exponent property allows us to find a method for changing the base of a logarithmic expression.

Properties of Logs: Change of Base

{\log _b}\left( A \right) = \dfrac{{{{\log }_c}(A)}}{{{{\log }_c}(b)}}

Proof:
Let \log_b(A)=x.  Rewriting as an exponential gives b^x=A.  Taking the log base c of both sides of this equation gives
{\log _c}{b^x} = {\log _c}A

Now utilizing the exponent property for logs on the left side,
x{\log _c}b = {\log _c}A

Dividing, we obtain
x = \dfrac{{{{\log }_c}A}}{{{{\log }_c}b}}
or replacing our expression for x,
{\log _b}A = \dfrac{{{{\log }_c}A}}{{{{\log }_c}b}}

With this change of base formula, we can finally find a good decimal approximation to our question from the beginning of the section.

Examples using Change of Base Formula

a. Solve 3.75=1.2^t

Rewrite this in exponential form:
t=\log_{1.2} 3.75

Now use change of base with natural log.

t=\log_{1.2} 3.75=\dfrac{\ln(3.75)}{\ln(1.2)}=\dfrac{1.32176}{0.18232}=7.2496 which is very close to the answer we got from the graph.

b. Evaluate \log_5(100) using the change of base formula.

We can rewrite this expression using any other base. If our calculators are able to evaluate the common logarithm, we could rewrite using the common log, base 10.

{\log _5}(100) = \dfrac{{{{\log }_{10}}100}}{{{{\log }_{10}}5}} \approx \dfrac{2}{{0.69897}} = 2.861

While we were able to solve the basic exponential equation 1.2^t=3.75 by rewriting in logarithmic form and then using the change of base formula to evaluate the logarithm, the proof of the change of base formula illuminates an alternative approach to solving exponential equations.

Solving Exponential Equations

  1. Isolate the exponential expression when possible
  2. Take the logarithm of both sides (it does not matter if you use common or natural logs)
  3. Utilize the exponent property for logarithms to pull the variable out of the exponent
  4. Use algebra to solve for the variable

Examples Solving an Exponential Equation

a. Solve 2^x=10 for x.

Using this alternative approach, rather than rewrite this exponential into logarithmic form, we will take the logarithm of both sides of the equation. Since we often wish to evaluate the result to a decimal answer, we will usually utilize either the common log or natural log. For this example, we’ll use the natural log:
\ln \left( {{2^x}} \right) = \ln (10)

Use the exponent property for logs:
x\ln \left( 2 \right) = \ln (10)

x = \dfrac{{\ln(10)}}{{\ln\left( 2 \right)}} \approx 2.861

b. If the population of India t years after 2008 is modeled according to the function f(t)=1.14(1.0134)^t. If the population continues following this trend, when will the population reach 2 billion?

We need to solve for the t so that f(t) = 2

2 = 1.14{(1.0134)^t}

Divide by 1.14 to isolate the exponential expression:
\dfrac{2}{{1.14}} = {1.0134^t}

Take the logarithm of both sides of the equation:
\ln \left( {\dfrac{2}{{1.14}}} \right) = \ln \left( {{{1.0134}^t}} \right)

Apply the exponent property on the right side:
\ln \left( {\dfrac{2}{{1.14}}} \right) = t\ln \left( {1.0134} \right)

Divide both sides by \ln(1.0134):
t = \dfrac{{\ln \left( {\dfrac{2}{{1.14}}} \right)}}{{\ln \left( {1.0134} \right)}} \approx 42.23 years

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.

Try it Now 5

Solve 5{(0.93)^x} = 10

Additional Properties of Logarithms

Some situations cannot be addressed using the properties already discussed. For these, we need some additional properties.

Properties of Logs

Sum of Logs Property:
{\log _b}\left( A \right) + {\log _b}\left( C \right) = {\log _b}(AC)

Difference of Logs Property:
{\log _b}\left( A \right) - {\log _b}\left( C \right) = {\log _b}\left( {\dfrac{A}{C}} \right)

Warning SignIt’s just as important to know what properties logarithms do not satisfy as to memorize the valid properties listed above. In particular, the logarithm is not a linear function, which means that it does not distribute: \og(A + B) \neq \log(A) + \log(B).

With these properties, we can rewrite expressions involving multiple logs as a single log, or break an expression involving a single log into expressions involving multiple logs.

Examples using the Sum and Difference Properties of Logs

a. Write {\log _3}\left( 5 \right) + {\log _3}\left( 8 \right) - {\log _3}\left( 2 \right) as a single logarithm.

Using the sum of logs property on the first two terms,
{\log _3}\left( 5 \right) + {\log _3}\left( 8 \right) = {\log _3}\left( {5 \cdot 8} \right) = {\log _3}\left( {40} \right)
This reduces our original expression to {\log _3}\left( {40} \right) - {\log _3}\left( 2 \right)

Then using the difference of logs property,
{\log _3}\left( {40} \right) - {\log _3}\left( 2 \right) = {\log _3}\left( {\dfrac{{40}}{2}} \right) = {\log _3}\left( {20} \right)

b. Evaluate 2\log \left( 5 \right) + \log \left( 4 \right) without a calculator by first rewriting as a single logarithm.

On the first term, we can use the exponent property of logs to write
2\log \left( 5 \right) = \log \left( {{5^2}} \right) = \log \left( {25} \right)

With the expression reduced to a sum of two logs, \log \left( {25} \right) + \log \left( 4 \right),
we can utilize the sum of logs property:
\log \left( {25} \right) + \log \left( 4 \right) = \log (4 \cdot 25) = \log (100)

Since 100 = 10^^2, we can evaluate this log without a calculator:
\log (100) = \log \left( {{{10}^2}} \right) = 2

c. Rewrite \ln \left( {\dfrac{{{x^4}y}}{7}} \right) as a sum or difference of logs.

First, noticing we have a quotient of two expressions, we can utilize the difference property of logs to write \ln \left( {\dfrac{{{x^4}y}}{7}} \right) = \ln \left( {{x^4}y} \right) - \ln (7)

Then seeing the product in the first term, we use the sum property:
\ln \left( {{x^4}y} \right) - \ln (7) = \ln \left( {{x^4}} \right) + \ln (y) - \ln (7)

Finally, we could use the exponent property on the first term:
\ln \left( {{x^4}} \right) + \ln (y) - \ln (7) = 4\ln (x) + \ln (y) - \ln (7)

Try it Now 6

Without a calculator evaluate by first rewriting as a single logarithm:
{\log _2}\left( 8 \right) + {\log _2}\left( 4 \right)

Log properties in solving equations

The logarithm properties often arise when solving problems involving logarithms.

Example Using Log Properties to Solve Equations

Solve \log (50x + 25) - \log (x) = 2.

In order to rewrite in exponential form, we need a single logarithmic expression on the left side of the equation.  Using the difference property of logs, we can rewrite the left side:
\log \left( {\dfrac{{50x + 25}}{x}} \right) = 2

Rewriting in exponential form reduces this to an algebraic equation:
\dfrac{{50x + 25}}{x} = {10^2} = 100

Solving:
\begin{array}{l} 50x + 25 = 100x\\ 25 = 50x\\ \;\\ x = \dfrac{{25}}{{50}} = \dfrac{1}{2} \end{array}

Checking this answer in the original equation, we can verify there are no domain issues, and this answer is correct.

Try it Now 7

Solve \log ({x^2} - 4) = 1 + \log (x + 2).

Try it Now Answer

    1. a.  {\log _4}\left( {16} \right) = 2       b.  3^4=81
    2.  6
    3. a. 2.39794                b. -0.22314
    4. - 2\ln (x)
    5. \dfrac{{\ln (2)}}{{\ln (0.93)}} \approx - 9.5513
    6. 5
    7. 12

 

Media Attributions

License

Icon for the Creative Commons Attribution-ShareAlike 4.0 International License

College Algebra for the Managerial Sciences Copyright © by Terri Manthey is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book