1.4 Exponential and Logarithmic Functions

Coming Concepts

  • •

    Identify the form of an exponential function.

  • •

    Explain the difference between the graphs of xb and bx.

  • •

    Recognize the significance of the number e.

  • •

    Identify the form of a logarithmic function.

  • •

    Explain the relationship between exponential and logarithmic functions.

  • •

    Describe how to calculate a logarithm to a different base.

In this section we examine exponential and logarithmic functions. We use the properties of these functions to solve equations involving exponential or logarithmic terms, and we study the meaning and importance of the number e. (Note that we present alternative definitions of exponential and logarithmic functions in the Calculus II textbook, chapter Applications of Integrations), and prove that the functions have the same properties with either definition.)

1.4.1 Exponential Functions

Exponential functions arise in many applications. One common example is population growth.

For example, if a population starts with P0 individuals and then grows at an annual rate of 2%, its population after 1 year is

P⁢(1)=P0+0.02⁢P0=P0⁢(1+0.02)=P0⁢(1.02).

Its population after 2 years is

P⁢(2)=P⁢(1)+0.02⁢P⁢(1)=P⁢(1)⁢(1.02)=P0⁢(1.02)2.

In general, its population after t years is

P⁢(t)=P0⁢(1.02)t,

which is an exponential function. More generally, any function of the form f⁢(x)=bx, where b>0,b≠1, is an exponential function with base b and exponent x. Exponential functions have constant bases and variable exponents. Note that a function of the form f⁢(x)=xb for some constant b is not an exponential function but a power function.

To see the difference between an exponential function and a power function, we compare the functions y=x2 and y=2x. In Table 1.7, we see that both 2x and x2 approach infinity as x→∞. Eventually, however, 2x becomes larger than x2 and grows more rapidly as x→∞. In the opposite direction, as x→−∞,x2→∞, whereas 2x→0. The line y=0 is a horizontal asymptote for y=2x.

Table 1.7: Values of x2 and 2x
x−3−2−10123456x294101491625362x1/81/41/21248163264

In Figure 1.49, we graph both y=x2 and y=2x to show how the graphs differ.

−224102030y=x2y=2xxy
Figure 1.49: Both 2x and x2 approach infinity as x→∞, but 2x grows more rapidly than x2. As x→−∞,x2→∞, whereas 2x→0.

1.4.2 Evaluating Exponential Functions

Recall the properties of exponents: If x is a positive integer, then we define bx=b⋅b⁢⋯⁢b (with x factors of b). If x is a negative integer, then x=−y for some positive integer y, and we define bx=b−y=1/by. Also, b0 is defined to be 1. If x is a rational number, then x=p/q, where p and q are integers and bx=bp/q=bpq. For example, 93/2=93=27. However, how is bx defined if x is an irrational number? For example, what do we mean by 22⁢? This is too complex a question for us to answer fully right now; however, we can make an approximation. In Table 1.8, we list some rational numbers approaching 2, and the values of 2x for each rational number x are presented as well. We claim that if we choose rational numbers x getting closer and closer to 2, the values of 2x get closer and closer to some number L. We define that number L to be 22.

Table 1.8: Values of 2x for a List of Rational Numbers Approximating 2
x1.41.411.4141.41421.414211.4142132x2.6392.657372.664752.6651192.6651382.665143
Example 1.4.1 (Bacterial Growth).


Suppose a particular population of bacteria is known to double in size every 4 hours. If a culture starts with 1000 bacteria, the number of bacteria after 4 hours is n⁢(4)=1000⋅2. The number of bacteria after 8 hours is n⁢(8)=n⁢(4)⋅2=1000⋅22. In general, the number of bacteria after 4⁢m hours is n⁢(4⁢m)=1000⋅2m. Letting t=4⁢m, we see that the number of bacteria after t hours is n⁢(t)=1000⋅2t/4. Find the number of bacteria after 6 hours, 10 hours, and 24 hours.

Solution: The number of bacteria after 6 hours is given by n⁢(6)=1000⋅26/4≈2828 bacteria. The number of bacteria after 10 hours is given by n⁢(10)=1000⋅210/4≈5657 bacteria. The number of bacteria after 24 hours is given by n⁢(24)=1000⋅26=64,000 bacteria.

Checkpoint 1.4.1.

Given the exponential function f⁢(x)=100⋅3x/2, evaluate f⁢(4) and f⁢(10).

External Resource.

Go to World Population Balance for another example of exponential population growth.

1.4.3 Graphing Exponential Functions

For any base b>0,b≠1, the exponential function f⁢(x)=bx is defined for all real numbers x and bx>0. Therefore, the domain of f⁢(x)=bx is (−∞,∞) and the range is (0,∞). To graph bx, we note that for b>1,bx is increasing on (−∞,∞) and bx→∞ as x→∞, whereas bx→0 as x→−∞. On the other hand, if 0<b<1,f⁢(x)=bx is decreasing on (−∞,∞) and bx→0 as x→∞ whereas bx→∞ as x→−∞ (Figure 1.50).

−3−2−11232468y=2xy=4xy=(1/2)x=2−xy=(1/4)x=4−xxy
Figure 1.50: If b>1, then bx is increasing on (−∞,∞). If 0<b<1, then bx is decreasing on (−∞,∞).
External Resource.

Visit this site for more exploration of the graphs of exponential functions.

Note that exponential functions satisfy the general laws of exponents. To remind you of these laws, we state them as rules.

Rule 1.4.1 (Laws of Exponents).

For any constants a>0,b>0, and for all x and y,

  1. 1.

    bx⋅by=bx+y

  2. 2.

    bxby=bx−y

  3. 3.

    (bx)y=bx⁢y

  4. 4.

    (a⁢b)x=ax⁢bx

  5. 5.

    axbx=(ab)x

Example 1.4.2 (Using the Laws of Exponents).


Use the laws of exponents to simplify each of the following expressions.

  1. (a)

    (2⁢x2/3)3(4⁢x−1/3)2

  2. (b)

    (x3⁢y−1)2(x⁢y2)−2

Solution:

  1. (a)

    We can simplify as follows:

    (2⁢x2/3)3(4⁢x−1/3)2=23⁢(x2/3)342⁢(x−1/3)2=8⁢x216⁢x−2/3=x2⁢x2/32=x8/32.
  2. (b)

    We can simplify as follows:

    (x3⁢y−1)2(x⁢y2)−2=(x3)2⁢(y−1)2x−2⁢(y2)−2=x6⁢y−2x−2⁢y−4=x6⁢x2⁢y−2⁢y4=x8⁢y2.
Checkpoint 1.4.2.

Use the laws of exponents to simplify (6⁢x−3⁢y2)/(12⁢x−4⁢y5).

Hint: xa/xb=xa−b

1.4.4 The Number e

A special type of exponential function appears frequently in real-world applications. To describe it, consider the following example of exponential growth, which arises from compounding interest in a savings account. Suppose a person invests P dollars in a savings account with an annual interest rate r, compounded annually. The amount of money after 1 year is

A⁢(1)=P+r⁢P=P⁢(1+r).

The amount of money after 2 years is

A⁢(2)=A⁢(1)+r⁢A⁢(1)=P⁢(1+r)+r⁢P⁢(1+r)=P⁢(1+r)2.

More generally, the amount after t years is

A⁢(t)=P⁢(1+r)t.

If the money is compounded 2 times per year, the amount of money after half a year is

A⁢(12)=P+(r2)⁢P=P⁢(1+(r2)).

The amount of money after 1 year is

A⁢(1)=A⁢(12)+(r2)⁢A⁢(12)=P⁢(1+r2)+r2⁢(P⁢(1+r2))=P⁢(1+r2)2.

After t years, the amount of money in the account is

A⁢(t)=P⁢(1+r2)2⁢t.

More generally, if the money is compounded n times per year, the amount of money in the account after t years is given by the function

A⁢(t)=P⁢(1+rn)n⁢t.

What happens as n→∞⁢? To answer this question, we let m=n/r and write

(1+rn)n⁢t=(1+1m)m⁢r⁢t,

and examine the behavior of (1+1/m)m as m→∞, using a table of values (Table 1.9).

Table 1.9: Values of (1+1m)m as m→∞
m10100100010,000100,0001,000,000(1+1m)m2.59372.70482.716922.718152.7182682.718280

Looking at this table, it appears that (1+1/m)m is approaching a number between 2.7 and 2.8 as m→∞. In fact, (1+1/m)m does approach some number as m→∞. We call this number e. To six decimal places of accuracy,

e≈2.718282.

The letter e was first used to represent this number by the Swiss mathematician Leonhard Euler during the 1720s. Although Euler did not discover the number, he showed many important connections between e and logarithmic functions. We still use the notation e today to honor Euler’s work because it appears in many areas of mathematics and because we can use it in many practical applications.

Returning to our savings account example, we can conclude that if a person puts P dollars in an account at an annual interest rate r, compounded continuously, then A⁢(t)=P⁢er⁢t. This function may be familiar. Since functions involving base e arise often in applications, we call the function f⁢(x)=ex the natural exponential function. Not only is this function interesting because of the definition of the number e, but also, as discussed next, its graph has an important property.

Since e>1, we know ex is increasing on (−∞,∞). In Figure 1.51, we show a graph of f⁢(x)=ex along with a tangent line to the graph of at x=0. We give a precise definition of tangent line in the next chapter; but, informally, we say a tangent line to a graph of f at x=a is a line that passes through the point (a,f⁢(a)) and has the same “slope” as f at that point . The function f⁢(x)=ex is the only exponential function bx with tangent line at x=0 that has a slope of 1. As we see later in the text, having this property makes the natural exponential function the most simple exponential function to use in many instances.

−3−2−11231234f⁢(x)=exm=1xy
Figure 1.51: The graph of f⁢(x)=ex has a tangent line with slope 1 at x=0.
Example 1.4.3 (Compounding Interest).


Suppose $500 is invested in an account at an annual interest rate of r=5.5%, compounded continuously.

  1. (a)

    Let t denote the number of years after the initial investment and A⁢(t) denote the amount of money in the account at time t. Find a formula for A⁢(t).

  2. (b)

    Find the amount of money in the account after 10 years and after 20 years.

Solution:

  1. (a)

    If P dollars are invested in an account at an annual interest rate r, compounded continuously, then A⁢(t)=P⁢er⁢t. Here P=$500 and r=0.055. Therefore, A⁢(t)=500⁢e0.055⁢t.

  2. (b)

    After 10 years, the amount of money in the account is

    A⁢(10)=500⁢e0.055⋅10=500⁢e0.55≈$866.63.

    After 20 years, the amount of money in the account is

    A⁢(20)=500⁢e0.055⋅20=500⁢e1.1≈$1,502.08.
Checkpoint 1.4.3.

If $750 is invested in an account at an annual interest rate of 4%, compounded continuously, find a formula for the amount of money in the account after t years. Find the amount of money after 30 years.

Hint: A⁢(t)=P⁢er⁢t.

1.4.5 Logarithmic Functions

Using our understanding of exponential functions, we can discuss their inverses, which are the logarithmic functions. These come in handy when we need to consider any phenomenon that varies over a wide range of values, such as pH in chemistry or decibels in sound levels.

The exponential function f⁢(x)=bx is one-to-one, with domain (−∞,∞) and range (0,∞). Therefore, it has an inverse function, called the logarithmic function with base b. For any b>0,b≠1, the logarithmic function with base b, denoted logb, has domain (0,∞) and range (−∞,∞), and satisfies

logb⁡(x)=yif and only ifby=x.

For example,

log2⁡(8) =3 since ⁢23=8,
log10⁡(1100) =−2 since ⁢10−2=1102=1100,
logb⁡(1) =0 since ⁢b0=1⁢for any base⁢b>0.

Furthermore, since y=logb⁡(x) and y=bx are inverse functions,

logb⁡(bx)=xandblogb⁡(x)=x.

The most commonly used logarithmic function is the function loge. Since this function uses natural e as its base, it is called the natural logarithm. Here we use the notation ln⁡(x) or ln⁡x to mean loge⁡(x). For example,

ln⁡(e)=loge⁡(e)=1,ln⁡(e3)=loge⁡(e3)=3,ln⁡(1)=loge⁡(1)=0.

Since the functions f⁢(x)=ex and g⁢(x)=ln⁡(x) are inverses of each other,

ln⁡(ex)=xandeln⁡x=x,

and their graphs are symmetric about the line y=x (Figure 1.52).

−4−224−224f⁢(x)=exy=ln⁡(x)y=xxy
Figure 1.52: The functions y=ex and y=ln⁡(x) are inverses of each other, so their graphs are symmetric about the line y=x.
External Resource.

At this site you can see an example of a base-10 logarithmic scale.

In general, for any base b>0,b≠1, the function g⁢(x)=logb⁡(x) is symmetric about the line y=x with the function f⁢(x)=bx. Using this fact and the graphs of the exponential functions, we graph functions logb for several values of b>1 (Figure 1.53).

−1123−3−2−11y=log2⁡(x)y=ln⁡(x)y=log10⁡(x)xy
Figure 1.53: Graphs of y=logb⁡(x) are depicted for b=2,e,10.

Before solving some equations involving exponential and logarithmic functions, let’s review the basic properties of logarithms.

Rule 1.4.2 (Properties of Logarithms).

If a,b,c>0,b≠1, and r is any real number, then

1.logb(ac) =logb⁡(a)+logb⁡(c) (Product property)
2.logb(ac) =logb⁡(a)−logb⁡(c) (Quotient property)
3.logb(ar) =r⁢logb⁡(a) (Power property)
Example 1.4.4 (Solving Equations Involving Exponential Functions).


Solve each of the following equations for x.

  1. (a)

    5x=2

  2. (b)

    ex+6⁢e−x=5

Solution:

  1. (a)

    Applying the natural logarithm function to both sides of the equation, we have

    ln⁡5x=ln⁡2.

    Using the power property of logarithms,

    x⁢ln⁡5=ln⁡2.

    Therefore, x=ln⁡2/ln⁡5.

  2. (b)

    Multiplying both sides of the equation by ex, we arrive at the equation

    e2⁢x+6=5⁢ex.

    Rewriting this equation as

    e2⁢x−5⁢ex+6=0,

    we can then rewrite it as a quadratic equation in ex:

    (ex)2−5⁢(ex)+6=0.

    Now we can solve the quadratic equation. Factoring this equation, we obtain

    (ex−3)⁢(ex−2)=0.

    Therefore, the solutions satisfy ex=3 and ex=2. Taking the natural logarithm of both sides gives us the solutions x=ln⁡3,ln⁡2.

Checkpoint 1.4.4.

Solve e2⁢x/(3+e2⁢x)=1/2.

Hint: First solve the equation for e2⁢x.

Example 1.4.5 (Solving Equations Involving Logarithmic Functions).


Solve each of the following equations for x.

  1. (a)

    ln⁡(1x)=4

  2. (b)

    log10⁡x+log10⁡x=2

  3. (c)

    ln⁡(2⁢x)−3⁢ln⁡(x2)=0

Solution:

  1. (a)

    By the definition of the natural logarithm function,

    ln⁡(1x)=4if and only ife4=1x.

    Therefore, the solution is x=1/e4.

  2. (b)

    Using the product and power properties of logarithmic functions, rewrite the left-hand side of the equation as

    log10⁡x+log10⁡x=log10⁡x⁢x=log10⁡x3/2=32⁢log10⁡x.

    Therefore, the equation can be rewritten as

    32⁢log10⁡x=2orlog10⁡x=43.

    The solution is x=104/3=10⁢103.

  3. (c)

    Using the power property of logarithmic functions, we can rewrite the equation as ln⁡(2⁢x)−ln⁡(x6)=0.

    Using the quotient property, this becomes

    ln⁡(2x5)=0.

    Therefore, 2/x5=1, which implies x=25. We should then check for any extraneous solutions.

Checkpoint 1.4.5.

Solve ln⁡(x3)−4⁢ln⁡(x)=1.

Hint: First use the power property, then use the product property of logarithms.

When evaluating a logarithmic function with a calculator, you may have noticed that the only options are log10 or log, called the common logarithm, or l⁢n, which is the natural logarithm. However, exponential functions and logarithm functions can be expressed in terms of any desired base b. If you need to use a calculator to evaluate an expression with a different base, you can apply the change-of-base formulas first. Using this change of base, we typically write a given exponential or logarithmic function in terms of the natural exponential and natural logarithmic functions.

Rule 1.4.3 (Change-of-Base Formulas).

Let a>0,b>0, and a≠1,b≠1.

  1. 1.

    ax=bx⁢logb⁡a for any real number x.

    If b=e, this equation reduces to ax=ex⁢loge⁡a=ex⁢ln⁡a.

  2. 2.

    loga⁡x=logb⁡xlogb⁡a for any real number x>0.

    If b=e, this equation reduces to loga⁡x=ln⁡xln⁡a.

Proof.

For the first change-of-base formula, we begin by making use of the power property of logarithmic functions. We know that for any base b>0,b≠1,logb⁡(ax)=x⁢logb⁡a. Therefore,

blogb⁡(ax)=bx⁢logb⁡a.

In addition, we know that bx and logb⁡(x) are inverse functions. Therefore,

blogb⁡(ax)=ax.

Combining these last two equalities, we conclude that ax=bx⁢logb⁡a.

To prove the second property, we show that

(logb⁡a)⋅(loga⁡x)=logb⁡x.

Let u=logb⁡a,v=loga⁡x, and w=logb⁡x. We will show that u⋅v=w. By the definition of logarithmic functions, we know that bu=a,av=x, and bw=x. From the previous equations, we see that

bu⁢v=(bu)v=av=x=bw.

Therefore, bu⁢v=bw. Since exponential functions are one-to-one, we can conclude that u⋅v=w.

∎

Example 1.4.6 (Changing Bases).


Use a calculating utility to evaluate log3⁡7 with the change-of-base formula presented earlier.

Solution: Use the second equation with a=3 and e=3:

log3⁡7=ln⁡7ln⁡3≈1.77124.

Checkpoint 1.4.6.

Use the change-of-base formula and a calculating utility to evaluate log4⁡6.

Hint: Use the change of base to rewrite this expression in terms of expressions involving the natural logarithm function.

Example 1.4.7 (Chapter Opener: The Richter Scale for Earthquakes).


A photograph of an earthquake fault
Figure 1.54: (credit: modification of work by Robb Hannawacker, NPS)

In 1935, Charles Richter developed a scale (now known as the Richter scale) to measure the magnitude of an earthquake. The scale is a base-10 logarithmic scale, and it can be described as follows: Consider one earthquake with magnitude R1 on the Richter scale and a second earthquake with magnitude R2 on the Richter scale. Suppose R1>R2, which means the earthquake of magnitude R1 is stronger, but how much stronger is it than the other earthquake? A way of measuring the intensity of an earthquake is by using a seismograph to measure the amplitude of the earthquake waves. If A1 is the amplitude measured for the first earthquake and A2 is the amplitude measured for the second earthquake, then the amplitudes and magnitudes of the two earthquakes satisfy the following equation:

R1−R2=log10⁡(A1A2).

Consider an earthquake that measures 8 on the Richter scale and an earthquake that measures 7 on the Richter scale. Then,

8−7=log10⁡(A1A2).

Therefore,

log10⁡(A1A2)=1,

which implies A1/A2=10 or A1=10⁢A2. Since A1 is 10 times the size of A2, we say that the first earthquake is 10 times as intense as the second earthquake. On the other hand, if one earthquake measures 8 on the Richter scale and another measures 6, then the relative intensity of the two earthquakes satisfies the equation

log10⁡(A1A2)=8−6=2.

Therefore, A1=100⁢A2. That is, the first earthquake is 100 times more intense than the second earthquake.

How can we use logarithmic functions to compare the relative severity of the magnitude 9 earthquake in Japan in 2011 with the magnitude 7.3 earthquake in Haiti in 2010?

Solution: To compare the Japan and Haiti earthquakes, we can use an equation presented earlier:

9−7.3=log10⁡(A1A2).

Therefore, A1/A2=101.7, and we conclude that the earthquake in Japan was approximately 50 times more intense than the earthquake in Haiti.

Checkpoint 1.4.7.

Compare the relative severity of a magnitude 8.4 earthquake with a magnitude 7.4 earthquake.

Hint: R1−R2=log10⁡(A1/A2).

Key Concepts

  • •

    The exponential function y=bx is increasing if b>1 and decreasing if 0<b<1. Its domain is (−∞,∞) and its range is (0,∞).

  • •

    The logarithmic function y=logb⁡(x) is the inverse of y=bx. Its domain is (0,∞) and its range is (−∞,∞).

  • •

    The natural exponential function is y=ex and the natural logarithmic function is y=ln⁡x=loge⁡x.

  • •

    Given an exponential function or logarithmic function in base a, we can make a change of base to convert this function to any base b>0,b≠1. We typically convert to base e.

Glossary

base

the number b in the exponential function f⁢(x)=bx and the logarithmic function f⁢(x)=logb⁡x

exponent

the value x in the expression bx

hyperbolic functions

the functions denoted sinh,cosh,tanh,csch,sech, and coth, which involve certain combinations of ex and e−x

inverse hyperbolic functions

the inverses of the hyperbolic functions where cosh and sech are restricted to the domain [0,∞); each of these functions can be expressed in terms of a composition of the natural logarithm function and an algebraic function

natural exponential function

the function f⁢(x)=ex

natural logarithm

the function ln⁡x=loge⁡x

number e

as m gets larger, the quantity (1+(1/m))m gets closer to some real number; we define that real number to be e; the value of e is approximately 2.718282