$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$

# 4.3 Logarithmic Functions

Consider this problem: 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. Consider the equation $$2^x=10$$ above. We know that $$2^3=9$$ and $$2^4=16$$, so it is clear that $$x$$ must be some value between 3 and 4 since $$g(x)=2^x$$ is increasing. We could use technology to create a table of values or graph to better estimate the solution.

From the graph, we could better estimate the solution to approximately 3.3. This result is still fairly unsatisfactory, and since the exponential function is one-to-one, it would be great to have an inverse function. None of the functions we have already discussed would serve as an inverse function and so we must introduce a new function, named $$\log$$ as the inverse of an exponential function. Since exponential functions have different bases, we will define corresponding logarithms of different bases as well.

Definition: Logarithm

The logarithm (base $$b$$) function, written $$\log_b(x)$$, is the inverse of the exponential function (base $$b$$), $$b^x$$.

Since the logarithm and exponential are inverse functions, it follows that:

#### Properties of Logs: Inverse Properties

$\log_b(b^x)=x$

and

$b^{\log_b x} = x$

Recall also from the definition of an inverse function that if $$f(a)=c$$, then $$f^{-1}(c)$$. Applying this to the exponential and logarithmic functions:

#### Logarithm Equivalent to an Exponential

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

Alternatively, we could show this by starting with the exponential function $$c=b^a$$, then taking the log base $$b$$ of both sides, giving $$\log_b(c)=log_b b^a$$. Using the inverse property of logs we see that $$\log_b(c)=a$$.

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 1

Write these exponential equations as logarithmic equations:

• $$2^3=8$$
• $$5^2=25$$
• $$10^{-4}=\dfrac{1}{10000}$$

SOLUTION

• $$2^3=8$$ is equivalent to $$\log_2(8)=3$$
• $$5^2=25$$ is equivalent to $$\log_5(25)=2$$
• $$10^{-4}=\dfrac{1}{10000}$$ is equivalent to $$\log_{10} \left(\dfrac{1}{1000} \right) =-4$$
Example 2

Write these logarithmic equations as exponential equations:

• $$\log_6 \left( \sqrt{6} \right) = \dfrac{1}{2}$$
• $$\log_3 (9)=2$$

SOLUTION

• $$\log_6 \left(\sqrt{6}\right) = \dfrac{1}{2}$$ is equivalent to $$6^{1/2}=\sqrt{6}$$
• $$\log_3 (9)=2$$ is equivalent to $$3^2=0$$
Try it Now: 1

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

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

Example 3

Solve $$\log_4 (x) =2$$ for $$x$$.

SOLUTION

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

Example 4

Solve $$2^x = 10$$  for $$x$$.

SOLUTION

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)$$ although $$\log_{10}(x)$$ is also commonly found
• The natural log is the logarithm with base $$e$$, and is typically written $$\ln(x)$$. While $$\log_e (x)$$ is technically a proper formalism it is never used.

Example 5
 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

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

SOLUTION

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

Try it now: 2

Evaluate $$\log(1000000)$$.

Example 6

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

SOLUTION

We can rewrite $$\ln\left( \sqrt{e}\right)$$ as $$\ln\left(e^{1/2}\right)$$. Since $$\ln$$ is a logarithm base $$e$$, we can use the inverse property for logs:

$\ln(e^{1/2}) =\log_e(e^{1/2})=\dfrac{1}{2}$.

Example 7

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

SOLUTION

Using a computer, we can numerically evaluate $$\log(500) \approx 2.69897$$

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)$

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

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(A^r)=\log_b \left(b^{r\log_b A}\right)$

Again utilizing the inverse property on the right side yields the result

$\log_b (A^r)=r\log_b A$

Example 8

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

SOLUTION

Since $$25 = 5^2$$,

$\log_3(25)=\log_3(5^2)=2\log_3 5$

Example 9

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

SOLUTION

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

Try it now: 3

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 (A) =\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_cb = \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.

Example 10

Evaluate $$\log_2(10)$$ using the change of base formula.

SOLUTION

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

$\log_2 10= \dfrac{\log_e 10}{\log_e 2}=\dfrac{\ln 10}{\ln 2}$

Using our calculators to evaluate this,

$\dfrac{\ln 10}{\ln 2} \approx \dfrac{2.30250}{0.69315} \approx 3.3219$

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 11

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

SOLUTION

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 $$2^x=10$$ 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 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 12

Solve $$2^x=10$$ for $$x$$.

SOLUTION

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 (s) =\ln(10)$

Now dividing by $$\ln(2)$$,

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

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

Example 13

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

SOLUTION

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

$2=1.14(1.0134)^2$

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(1.0134^t)$

Apply the exponent property on the right side

$\ln \left( \dfrac{2}{1.14} \right) =t\, \ln(1.0134)$

Divide both sides by $$\ln(1.0134)$$

$t=\dfrac{\ln \left(\dfrac{2}{1.14} \right)} {\ln (1.0134)} \approx 42.23 \,\text{ 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: 4

Solve  $$5(0.93)^x=10$$.

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

Example 14

In chemistry, the pH scale is a measure of the acidity or basicity of a liquid. The pH is (approximately) related to the concentration of hydrogen ions, $$[H^+]$$, measured in moles per liter, by the equation

$pH=-log([H^+]).$

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

SOLUTION

To answer the first question, we evaluate the expression $$-log(0.0001)$$. 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(10^{-1})=-(-4)=4$

To answer the second question, we need to solve the equation

$7=-\log([H^+]).$

Begin by isolating the logarithm on one side of the equation by multiplying both sides by -1:

$-7=\log([H^+]).$

Rewriting into exponential form yields the answer

$[H^+] = 10^{-7} = 0.0000001 \, \text{ moles per liter}.$

Logarithms also provide us a mechanism for finding continuous growth models for exponential growth given two data points.

Example 15

A population grows from 100 to 130 in 2 weeks.  Find the continuous growth rate.

SOLUTION

Measuring $$t$$ in weeks, we are looking for an equation $$P(t)=ae^{rt}$$ so that $$P(0) = 100$$ and $$P(2) = 130$$. Using the first pair of values,

$100=ae^{r \, 0}$

so $$a = 100$$. Using the second pair of values,

$130=ae^{r \, 2}$

Divide by 100

$\dfrac{130}{100} = e^{r\, 2}$

Take the natural log of both sides

$\ln (1.3) = \ln(e^{r\, 2})$

Use the inverse property of logs

$\ln (1.3) = 2r$

$r = \dfrac{\ln (1.3)}{2} \approx 0.1312$

This population is growing at a continuous rate of 13.12% per week.

In general, we can relate the standard form of an exponential with the continuous growth form by noting (using $$k$$ to represent the continuous growth rate to avoid the confusion of using $$r$$ in two different ways in the same formula):

$a(1+r)^x = ae^kx$

$(1+r)^x = e^kx$

$1+r = e^k$

Using this, we see that it is always possible to convert from the continuous growth form of an exponential to the standard form and vice versa. Remember that the continuous growth rate $$k$$ represents the nominal growth rate before accounting for the effects of continuous compounding, while $$r$$ represents the actual percent increase in one time unit (one week, one year, etc.).

Example 16

A company’s sales can be modeled by the function $$S(t) = 5000e^{0.12\, t}$$, with $$t$$ measured in years. Find the annual growth rate.

SOLUTION

Noting that $$1+r=e^k$$, then $$r=e^{0.12}-1=0.1275$$, so the annual growth rate is 12.75%. The sales function could also be written in the form $$S(t)=5000(1+0.1275)^t$$.

### Important Topics of this Section

• The Logarithmic function as the inverse of the exponential function
• Writing logarithmic & exponential expressions
• Properties of logs
• Inverse properties
• Exponential properties
• Change of base
• Common log
• Natural log
• Solving exponential equations

1. $$\log_4(16)-2-\log_44^2-2\log_44$$
2. 6
3. $$-2\ln(x)$$
4. $$\dfrac{\ln(2)}{\ln(0.93)}\approx -9.5513$$

### Section 4.3 Exercises

Rewrite each equation in exponential form

1. $$\log_4(q)=m$$
2. $$\log_3(t)=k$$
3. $$\log_a(b)=c$$
4. $$\log_p(z)=u$$
5. $$\log(v)=t$$
6. $$\log(r)=s$$
7. $$\ln(w)=n$$
8. $$\ln(x)=y$$

Rewrite each equation in logarithmic form.

1. $$4^x=y$$
2. $$5^y=x$$
3. $$c^d=k$$
4. $$n^z=L$$
5. $$10^a=b$$
6. $$10^p=v$$
7. $$e^k=h$$
8. $$e^y=x$$

Solve for x.

1. $$\log_3(x)=2$$
2. $$\log_4(x)=3$$
3. $$\log_2(x)=-3$$
4. $$\log_5(x)=-1$$
5. $$\log(x)=3$$
6. $$\log(x)=5$$
7. $$\ln(x)=2$$
8. $$\ln(x)=-2$$

Simplify each expression using logarithm properties.

1. $$\log_5(25)$$
2. $$\log_2(8)$$
3. $$\log_3(\dfrac{1}{27})$$
4. $$\log_6(\dfrac{1}{36})$$
5. $$\log_6(\sqrt{6})$$
6. $$\log_5(\sqrt[3]{5})$$
7. $$\log(10,000)$$
8. $$\log(100)$$
9. $$\log(0.001)$$
10. $$\log(0.00001)$$
11. $$\ln(e^{-2})$$
12. $$\ln(e^3)$$

1. $$\log(0.04)$$
2. $$\log(1045)$$
3. $$\ln(15)$$
4. $$\ln(0.02)$$

Solve each equation for the variable.

1. $$5^x=14$$
2. $$3^x=23$$
3. $$7^x=\dfrac{1}{15}$$
4. $$3^x=\dfrac{1}{4}$$
5. $$e^{5x}=17$$
6. $$e^{3x}=12$$
7. $$3^{4x-5}=38$$
8. $$4^{2x-3}=44$$
9. $$10000(1.03)^t=5000$$
10. $$200(1.06)^t=550$$
11. $$3(1.04)^{3t}=8$$
12. $$2(1.08)^{4t}=7$$
13. $$50e^{-0.12t}=10$$
14. $$10e^{-0.03t}=4$$
15. $$10-8\left(\dfrac{1}{2}\right)^x=5$$
16. $$100-100\left(\dfrac{1}{4}\right)^x=70$$

Convert the equation into continuous growth form:$$f(t)=ae^{kt}$$.

1. $$f(t)=300(0.91)^t$$
2. $$f(t)=120(0.07)^t$$
3. $$f(t)=10(1.04)^t$$
4. $$f(t)=1400(1.12)^t$$

Convert the equation into annual growth form: $$f(t)=ab^t$$.

1. $$f(t)=150e^{0.06t}$$
2. $$f(t)=100e^{0.12t}$$
3. $$f(t)=50e^{0.012t}$$
4. $$f(t)=80e^{0.85t}$$

1. The population of Kenya was 39.8 million in 2009 and has been growing by about 2.6% each year. If this trend continues, when will the population exceed 45 million?
2. The population of Algeria was 34.9 million in 2009 and has been growing by about 1.5% each year. If this trend continues, when will the population exceed 45 million?
3. The population of Seattle grew from 563,374 in 2000 to 608,660 in 2010. If the population continues to grow exponentially at the same rate, when will the population exceed 1 million people?
4. The median household income (adjusted for inflation) in Seattle grew from $42,948 in 1990 to$45,736 in 2000. If it continues to grow exponentially at the same rate, when will median income exceed $50,000? 5. A scientist begins with 100 mg of a radioactive substance. After 4 hours, it has decayed to 80 mg. How long after the process began will it take to decay to 15 mg? 6. A scientist begins with 100 mg of a radioactive substance. After 6 days, it has decayed to 60 mg. How long after the process began will it take to decay to 10 mg? 7. If$1000 is invested in an account earning 3% compounded monthly, how long will it take the account to grow in value to $1500? 8. If$1000 is invested in an account earning 2% compounded quarterly, how long will it take the account to grow in value to \$1300?

### Contributors

• David Lippman (Pierce College)
• Melonie Rasmussen (Pierce College)