Introduction to Logarithmic Functions

 

Learning Objective(s)

·         Convert logarithmic equations to exponential equations.

·         Convert exponential equations to logarithmic equations.

·         Graph logarithmic functions.

·         Solve logarithmic equations.

 

Introduction

 

A useful family of functions that is related to exponential functions is the logarithmic functions. You have been calculating the result of bx, and this gave us the exponential functions. A logarithm is a calculation of the exponent in the equation y = bx. Put another way, finding a logarithm is the same as finding the exponent to which the given base must be raised to get the desired value. The exponent becomes the output rather than the input.

 

Calculating Exponents

 

Consider these tables of values using a base of 2.

 

Table 1

Table 2

Input x, an exponent

Output y

Input x, a number that is a power of 2.

Output y, the exponent of 2.

x

y = 2x

x = 2y

y

−3

−3

−2

−2

−1

−1

0

1

1

0

1

2

2

1

2

4

4

2

3

8

8

3

 

Note the two tables are the same except the columns are reversed—the point (1, 2) taken from the first table will be the point (2, 1) in the second table.

 

The graphs of these two relationships should have the same general shape. As shown in the graph, the two curves are symmetrical about the line y = x. Another way to put it, if you rotate the red curve about the line y = x, it will coincide with the blue curve. (This makes sense, because y in the first table becomes x in the second table, and vice versa.)

 

 

The equation x = 2y is often written as a logarithmic function (called log function for short). The logarithmic function for x = 2y is written as y = log2 x or f(x) = log2 x. The number 2 is still called the base. In general, y = logb x is read, “y equals log to the base b of x,” or more simply, “y equals log base b of x.” As with exponential functions, b > 0 and b ≠ 1.

 

 

You can see from the graph that the range (y values) of the exponential function (in red) is positive real numbers. Since the input and output have been switched, the domain (x values) of the logarithmic function (in blue) is positive real numbers.

 

Similarly, the domain of the exponential function (in red) is all real numbers. The range of the logarithmic function (in blue) is all real numbers.

 

 

Definition of Logarithm

 

The logarithm of x in base b is written logb x and is defined as:

 

logb x = y if and only if by = x, where x > 0 and b > 0, b ≠ 1.

 

 

 


Connecting Exponential and Logarithmic Equations

 

It’s important to remember that the result of a logarithm is the exponent! That is, logb x asks, “What exponent on the base b will give the result x?”

 

 

Sometimes, you will need to convert logb x = y to by = x. Other times, you will convert by = x to logb x = y. The examples in the table show the logarithmic form and the corresponding exponential form of several equations.

 

Logarithmic Form

Exponential Form

log2 16 = 4

42 = 16

log7 1 = 0

70 = 1

log5 5 = 1

51 = 5

4-1 =

10-2 = 0.01

 

Knowing this connection is essential to understanding, and working with, logarithms.

 

 

Example

Problem

Rewrite log3 9 = 2 as an exponential equation.

 

 

 

 

 

 

 

 

 

You need to change

to the form by = x.

 

 

Here the base is 3 and the exponent is 2.

 

 

Substitute for b, y and x in the exponential equation, by = x.

 

Answer

                                           32 = 9

Check the result: Is 32 actually equal to 9? Yes!

 

 

Although the input of a logarithm must always be positive, the result (an exponent!) can be negative.

 

 

Example

Problem

Convert log4 = −2 into an exponential equation.

 

 

 

 

 

 

You need to rewrite   in the

form by = x.

 

 

Here the base is 4 and the exponent is

2.

 

 

Substitute for b, y and x in the exponential equation, by = x.

 

Answer

Check the result:

 

 

Convert  into an exponential equation.

 

A)

B)

C)

D)

Show/Hide Answer

A)

Incorrect. The exponent is negative, not positive. The correct answer is .

 

B)

Incorrect. Although this is a true statement, the base in this answer is 81, while the base in the original logarithmic equation is 3. The correct answer is .

 

C)

Correct. The base is 3 and the exponent is −4, so.

 

D)

Incorrect. Although this is a true statement, the exponent in the original logarithmic equation is -4, not 4. The correct answer is .

 

 

 

As you have just seen, it is possible to convert log equations into exponential equations. It is also possible to convert exponential equation into log equations.

 

 

Example

Problem

Rewrite 53 = 125 as a logarithmic equation.

 

 

 

 

 

 

You need to rewrite in the form logb x = y.

 

 

Here the base is 5 and the exponent is 3.

 

 

 

 

Substitute for b, y, and x in the logarithmic equation,

.

 

Answer

log5 125 = 3

 

 

Example

Problem

Convert 10-3 =  into a logarithmic equation.

 

 

 

 

 

 

 

 

You need to rewrite in the form logx = y.

 

 

 

Here the base is 10 and the exponent is 3.

 

 

 

 

 

Substitute for b, y, and x in the logarithmic equation,

.

 

 

Answer

 

 

 

Remember that roots are exponents too.

 

 

Example

Problem

Convert  into a logarithmic equation.

 

 

 

 

Rewrite the square root using a fractional exponent.

You need to rewrite in the form logx = y.

 

 

 

 

 

 

 

 

 

Here, the base is 49 and the exponent is 

 

 

 

Substitute for b, y, and x in the logarithmic equation, .

 

Answer

log49 7 =

 

 

 

Convert 112 = 121 into a logarithmic equation.

 

A)

B)

C)

D)

 

Show/Hide Answer

A)

Incorrect. Finding a logarithm is the same as finding the exponent to which the given base must be raised to get the desired value, so 2 should be by itself on one side on the equation. The correct answer is .

 

B)

Incorrect. The base of the exponential equation, 11, is also the base (the small subscript number at the end of “log”) in the logarithmic equation. The correct answer is .

 

C)

Correct. The base is 11, and the result of the logarithm, 2, is the exponent.

 

D)

Incorrect. The base of the exponential equation, 11, is also the base (the small subscript number at the end of “log”) in the logarithmic equation. The correct answer is .

 

 

 

Graphing Logarithmic Functions

 

Look at the graph below. It should look familiar—you saw it earlier in this topic! The blue graph is the logarithmic function, and the red graph is the corresponding exponential function.

 

 

When graphing logarithmic functions, it’s important to remember the following:

 

·         The graph can only appear to the right of the y-axis. This is because the domain is restricted to positive values of x.

·         The graph gets close to the y-axis for small values of x (close to x = 0).

 

Remember that logarithmic functions almost act like exponential functions. You just have to switch the x and y values. For example, the second bulleted item above is like the exponential function getting close to the x-axis (close to y = 0).

 

 

Example

Problem

Graph f(x) = log3 x.

 

 

Graph y = log3 x.

 

This is the same as 3y = x.

To make the calculations easier, first make this a logarithmic equation in y. Then convert the logarithm into an exponential equation.

 

x = 3y

y

 

−2

 

−1

 

0

 

1

 

2

Start with a table of values.

 

With logarithmic functions, it’s usually easier to choose the y values instead of the x values. Be sure to include some negative values for y.

 

x = 3y

y

−2

−1

1

0

3

1

9

2

Be careful with the negative exponents!

 

Use the table as ordered pairs. Remember that the graph of the function will show all x-y correspondences, so any pair that could be in the table must be on the graph.

 

 

 

 

 

Plot the points.

Answer

Since the points are not on a line, you can’t use a straightedge. Connect the points as best you can, using a smooth curve (not a series of straight lines).

 

Remember that logarithmic functions get close to the y-axis (but won’t touch or cross it).

 

 

Example

Problem

Graph f(x) = log4 x.

 

 

Graph y = log4x.

 

This is the same as 4y = x.

To make the calculations easier, first make this a logarithmic equation in y. Then convert the logarithm into an exponential equation.

 

x = 4y

y

−2

−1

1

0

4

1

16

2

Start with a table of values, choosing the y values and calculating x.

 

Be careful with the negative exponents!

 

 

 

Use the table as ordered pairs and plot the points.

 

In this case, (16, 2) won’t show on the graph. Because you know the square root of 4, try x =. In this case, it would be . That point is shown in blue.

Answer

Since the points are not on a line, you can’t use a straightedge. Connect the points as best you can, using a smooth curve (not a series of straight lines).

 

Remember that logarithmic functions get close to the y-axis (but won’t touch or cross it).

 

 

Let’s compare the logarithmic graphs you’ve seen: f(x) = log2 x, f(x) = log3 x, and f(x) = log4 x.

 

Notice that a larger base makes the graph less steep. (This is the opposite from exponential functions, where a larger base meant a steeper graph.) A larger base also makes the graph closer to the x-axis for y > 0 (or x > 1) and closer to the y-axis for y < 0 (or x < 1). All the graphs go through (1, 0), while exponential functions always go through (0, 1).

 

With exponential functions, the graphs were increasing (exponential growth) when the base b was greater than 1. The graphs were decreasing (exponential decay) when the base b was less than 1. The logarithmic graphs above are all increasing, and they all have a base greater than 1. Let’s see what happens with a base less than 1.

 

 

Example

Problem

Graph .

 

 

Write an exponential equation in y to help you.

 

x

y

16

−2

4

−1

1

0

1

2

Create a table of values. Again, remember to be careful with the negative exponents. Remember to take the reciprocal of the base to make the exponent positive..

 

Notice that in this table, the x values decrease as the y values increase.

 

 

Use the table pairs to plot points. You may want to include new points, especially when one of the points from the table won’t fit on your graph. (16,−2) is off the graph. Because you know the square root of 4, try x =:

The point (8,) has been included in blue. You may not feel it necessary to include additional points. You also may need to use a calculator, depending on the base.

Answer

Connect the points as best you can, using a smooth curve.

 

 

If the base is less than 1, the logarithmic function is decreasing. The graph gets close to the y-axis when x is small, but with positive y values instead of negative ones.

 

 

Which of the following is a graph for f(x) = ?

 

A)

B)

C)

D)

 

Show/Hide Answer

A)

 

Incorrect. This graph is increasing because the f(x) values are increasing as x increases. (Compare the values for x = 1 and x = 2.) This is a graph of f(x) = log3 x. The correct answer is Graph D.

 

B)

 

Incorrect. This function has a domain of all real numbers and a range of positive real numbers. Logarithmic functions have domains of positive real numbers and ranges of all real numbers. The correct answer is Graph D.

 

C)

 

Incorrect. This graph is decreasing, but it has a domain of all real numbers and a range of positive real numbers. Logarithmic functions have domains of positive real numbers and ranges of all real numbers. The correct answer is Graph D.

 

D)

 

Correct. The base is less than 1, so the graph shows a decreasing function. The domain is positive real numbers, and the range is all real numbers.

 

 

 

Solving Logarithmic Equations

 

As you’ve seen, there are three essential quantities in a logarithmic equation y = logb x: the base b, the exponent y, and the input x. Any of these could be missing in an equation you need to solve. Often the easiest way to solve these is to convert the logarithmic equation to an exponential equation.

 

Example

Problem

Solve 4 = log5 x.

 

 

4 = log5 x means 54 = x.

Convert the logarithmic equation to an exponential equation.

 

54 = 5 • 5 • 5 • 5

54 = 25 • 25

54 = 625

In this case, you only need to evaluate  to solve for x.

Answer

x = 625

 

 

 

When solving for b or y, it’s helpful to know a lot of exponential relationships, such as 53 = 125 and 25 = 32, off the top of your head. However, even if you don’t, you can do some thinking to approximate, or even find exactly, the solutions.

 

 

Example

Problem

Solve 3 = logb 64.

 

 

3 = logb 64 means b3 = 64.

Convert the logarithmic equation to an exponential equation.

 

 

You may not know what number to the third power is 64. You can try a few and zero in on it quickly, though.

 

13 = 1

103 = 1,000

13 and 103 are easy to calculate, so let’s start there.

 

64 is much closer to 1 than to 1,000, so the correct base will be closer to 1 than to 10.

 

 

Let’s try some other low values. Since 64 is even, you know you don’t need to try any odd numbers. An odd number to any power will always be odd, and an even number to any power will always be even.

 

23 = 8

43 = 4 • 16 = 64

So let’s try 2 and 4.

Answer

b = 4

Found it! Be sure you are providing the correct number for your answer. It would be easy to mistakenly answer “64” here!

 

 

Let’s try one more:

 

 

Example

Problem

Solve y = log5 125.

 

 

y = log5 125 means 5y = 125.

Convert the logarithmic equation to an exponential equation.

 

y

5y

1

5

2

25

3

125

What power of 5 is 125? You might know, but if you don’t, make a table of values for y and 5y. Look for 125, or close to it, in the 5y column.

Answer

y = 3

Again, be sure you provide the correct number. It would be easy to make a mistake and write 125 here!

 

 

Solve 4 = log2 x for x.

 

A)

B) 2

C) 8

D) 16

 

Show/Hide Answer

A)

Incorrect. The equivalent exponential equation is 24 = x. You may have incorrectly written 4x = 2. The correct answer is 16.

 

B) 2

Incorrect. The equivalent exponential equation is 24 = x. You may have incorrectly written 2x = 4. The correct answer is 16.

 

C) 8

Incorrect. The equivalent exponential equation is 24 = x. The correct answer is 16.

 

D) 16

Correct. The equivalent exponential equation is 24 = x, which is 16.

 

 

 

Summary

Logarithmic functions are closely related to exponential equations. In fact, logb x = y says the same thing as by = x. The graphs look similar, but with characteristics such as the domain and range switched between the x values and the y values. Converting a logarithmic equation to the equivalent exponential equation is helpful with both graphing and solving equations.