# 4.2. Logarithmic Functions

# Logarithmic Functions

A population of 50 flies is expected to double every week, leading to a function of the form *f*(*x*) = 50(2)^{x} , where *x* represents the number of weeks that have passed. When will this population reach 500? Trying to solve this problem leads to:

500 = 50(2)^{x} Dividing both sides by 50 to isolate the exponential

10 = 2^{x}

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. 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), it follows that:

**Properties of Logs: Inverse Properties**

log_{b}(*b ^{x}*) =

*x*

*b*^{logbx} = *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* _{b}c* .

Example 4.2.1

Write these exponential equations as logarithmic equations:

2^{3} = 8 5^{2} = 25 10^{-4} =

2^{3} = 8 is equivalent to log_{2}(8) = 3

5^{2} = 25 is equivalent to log_{5}(25) = 2

10^{-4} = is equivalent to log_{10}() = -4

Example 4.2.2

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

Example 4.2.3

Solve log_{4}(*x*) = 2 for *x*.

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

Most calculators and computers will only evaluate logarithms of two bases.

**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*) .

Example 4.2.4

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

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}(10^{3}) = 3

Values of the Common Log |
||

Number | Number as exponential | Log(number) |

1000 | 10^{3} |
3 |

100 | 10^{2} |
2 |

10 | 10^{1} |
1 |

1 | 10^{0} |
0 |

0.1 | 10^{-1} |
-1 |

0.01 | 10^{-2} |
-2 |

0.001 | 10^{-3} |
-3 |

Example 4.2.5

*e*, we can use the inverse property for logs: ln() = = .

# Graphs of Logarithms

Recall that the exponential function *f*(*x*) = 2^{x} produces this table of values:

x |
-3 | -2 | -1 | 0 | 1 | 2 | 3 |

f(x) |
1 | 2 | 4 | 8 |

Since the logarithmic function “undoes” the exponential, *g*(*x*) = log_{2}(*x*) produces the table of values:

x |
1 | 2 | 4 | 8 | |||

f(x) |
-3 | -2 | -1 | 0 | 1 | 2 | 3 |

In this second table, notice that:

- As the input increases, the output increases.
- As input increases, the output increases more slowly.
- 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, ∞) .
- 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 (-∞, ∞) .

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. A vertical asymptote is a vertical line *x* = *a* where the graph tends towards positive or negative infinity as the inputs approach a.

In symbolic notation we write as *x*→0^{+} , *f*(*x*)→-∞ , and as *x*→∞ , *f*(*x*)→∞

**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, ∞) - The range of the function is all real numbers, or (-∞, ∞)

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.

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.

# Logarithm Properties

To utilize the common or natural logarithm functions to evaluate expressions like log_{2}(10), we need to establish some additional properties.

**Properties of Logs: Exponent Property**

log_{b}(*A ^{r}*) =

*r*log

_{b}(

*A*)

Example 4.2.6

Rewrite log_{3}(25) using the exponent property for logs.

Since 25 = 5^{2},

log_{3}(25) = log_{3}(5^{2}) = 2log_{3}5

Example 4.2.7

*x*) using the exponent property for logs.

*x*) = ln(

*x*

^{4})

The second important property allows us to change the base of a logarithmic expression.

**Properties of Logs: Change of Base**

Example 4.2.8

Evaluate log_{2}(10) using the change of base formula.

According to the change of base formula, we can rewrite the log base 2 as a logarithm of any other base. Since our calculators can evaluate the natural log, we might choose to use the natural logarithm, which is the log base *e*:

Using our calculators to evaluate this:

This finally allows us to answer our original question – the population of flies we discussed at the beginning of the section will take 3.32 weeks to grow to 500.

Example 4.2.9

Evaluate log_{5}(100) using the change of base formula.

We can rewrite this expression using any other base. We can rewrite using the common log, base 10:

An alternative approach to solving exponential equations is described below:

**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 out of the exponent
- Use algebra to solve for the variable.

Example 4.2.10

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(2^{x}) = ln(10) Utilizing the exponent property for logs,

*x*ln(2) = ln(10) Now dividing by ln(2),

*x* = ≈ 2.861

Notice that this result matches the result we found using the change of base formula.

Example 4.2.11

Previously, we predicted the population (in billions) of India *t* years after 2008 by using the function *f*(*t*) = 1.14(1 + 0.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:

Divide by 1.14 to isolate the exponential expression | |

Take the logarithm of both sides of the equation | |

Apply the exponent property on the right side | |

Divide both sides by ln(1.0134) |

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.

# Additional Properties of Logarithms

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

**Sum of Logs Property**:

**Difference of Logs Property**:

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.

Example 4.2.12

Write log_{3}(5) + log_{3}(8) – log_{3}(2) as a single logarithm.

Using the sum of logs property on the first two terms:

log_{3}(5) + log_{3}(8) = log_{3}(5 · 8) = log_{3}(40)

This reduces our original expression to log_{3}(40) – log_{3}(2)

Then using the difference of logs property,

log_{3}(40) – log_{3}(2) = log_{3}() = log_{3}(20)

Example 4.2.13

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

On the first term, we can use the exponent property of logs to write:

2log(5) = log(5^{2}) = log(25)

With the expression reduced to a sum of two logs, log(25) + log(4) , we can utilize the sum of logs property:

log(25) + log(4) = log(4 · 25) = log(100)

Since 100 = 10^{2}, we can evaluate this log without a calculator:

log(100) = log(10^{2}) = 2

Example 4.2.14

Rewrite 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:

Then seeing the product in the first term, we use the sum property:

Finally, we could use the exponent property on the first term:

# Log Properties in Solving Equations

The logarithm properties often arise when solving problems involving logarithms.

Example 4.2.15

Solve .

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:

Rewriting in exponential form reduces this to an algebraic equation:

Solving:

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

**Practice questions**

**1.** Write the exponential equation 4^{2} = 16 as a logarithmic equation.

**2.** Evaluate log(1,000,000).

**3.** Rewrite using the exponent property for logs: ln.

**4.** Solve 5(0.93)* ^{x}* = 10.

**5.** Without a calculator evaluate by first rewriting as a single logarithm: log_{2}(8) + log_{2}(4)

**6.** Solve log(2*x* – 4) = 1 + log(*x* + 2).

**7.** Suppose the population of rats in a city is estimated to be 1.1 million. If the population size increases exponentially at a rate of 15% per year, how many years would it take for the population size to reach 5 million rats?