In this explainer, we will learn how to sketch logarithmic functions with different bases and their transformations and study their different characteristics.
Letโs start by recalling the definition of a logarithmic function.
Definition: Logarithmic Function
A logarithmic function is the inverse of an exponential function. For the exponential function , where and , the inverse logarithmic function is .
If the point satisfies the exponential function, then the point satisfies the logarithmic function. That is, if , then .
Since a logarithmic function is the inverse function of an exponential function, and the graphs of inverse functions are reflections in the line , we can sketch a graph of by reflecting an exponential curve.
Letโs sketch the graph of , which we can also write as . To do this, we will start by sketching the graph of .
We can see that the exponential function has a domain of and a range of . Its graph has the negative -axis as an asymptote, and no portion of the graph lies below the -axis. This is because 10 raised to a power can never be negative or 0. The graph has a -intercept of 1, since , and it passes through the point , since . Also, note that the graph increases throughout the functionโs domain, and as approaches infinity, the outputs will also approach infinity, since the base, 10, is greater than one.
Now we can plot the line and reflect the graph of in it to produce the graph of the logarithmic function (or, simply, ).
Reflecting the -intercept of through the line from the graph of the exponential function gives us an -intercept of on the graph of the logarithmic function. We can also reflect the point to see that lies on our logarithmic graph. Similarly, since the exponential function has a horizontal asymptote of the negative -axis, the logarithmic function will have a vertical asymptote of the negative -axis, with no portion of the graph lying to the left of the -axis.
The domain and range of a function are the range and domain, respectively, of the inverse function. Hence, the logarithmic function has a domain of and a range of . That is, the domain of the logarithmic function is the range of the exponential function, and the range of the logarithmic function is the domain of the exponential function. Finally, since the exponential function is an increasing function, its inverse will also be increasing.
Since the exponential curve will have similar properties if the base is any number greater than one, the logarithmic curve will also have a similar shape. Hence, we can use this to determine properties of the various logarithmic functions for , where .
When we sketched our exponential curve, we used a base larger than 1, to create an increasing function. The base could also be between 0 and 1, so that the exponential function is decreasing.
Letโs sketch the curve by reflecting the graph of . We will start by sketching .
The exponential function, , has a domain of and a range of . Its graph has the positive -axis as an asymptote, with no portion of it lying below the -axis, since 0.5 raised to a power can never be negative or 0. The graph has a -intercept of 1, since , and it passes through the point , since . Also, note that the graph decreases throughout the functionโs domain, and as approaches negative infinity, the outputs will approach infinity, since the base is between zero and one.
We can then reflect this graph through the line to sketch the curve .
Reflecting the -intercept of and the point through the line gives us an -intercept of and the point . Similarly, since the graph of the exponential function lies above the positive -axis as a horizontal asymptote, the graph of the logarithmic function will lie to the right of the positive -axis as a vertical asymptote.
Again, the logarithmic function has a domain of and a range of . That is, the domain of the logarithmic function is the range of its inverse exponential function, and the range of the logarithmic function is the domain of the exponential function. Finally, since is a decreasing function, its inverse, , is also a decreasing function.
Since the exponential curve will have similar properties if the base is any number between zero and one, the logarithmic curve will also have a similar shape. Hence, we can use this to determine properties of the various logarithmic functions for , where and .
Properties: Graph of the Logarithmic Function ๐ฆ = log๐(๐ฅ)
All graphs of logarithmic functions of the form , where and ,
- have only one -intercept, at 1;
- pass through the point ;
- have a vertical asymptote at ;
- have a domain of and a range of .
When ,
- the function is increasing,
- the function has a vertical asymptote to the right of the negative -axis.
When ,
- the function is decreasing,
- the function has a vertical asymptote to the right of the positive -axis.
This gives us enough information to utilize the inverse relationship between exponential and logarithmic functions and sketch the curve for any positive value of not equal to one. Letโs see a few examples.
Example 1: Finding the Values of a Logarithmic Function
Find the missing values for .
1 | 2 | ||
Answer
It would be possible to simply enter the values of into a calculator to evaluate in each case, but we will instead use the inverse relationship between logarithms and exponents to answer this question.
For the logarithmic function , the inverse exponential function is . If the point satisfies the logarithmic function, then the point satisfies the exponential function. If we let , we can say ; then, we can also say . Now we are looking for values of that satisfy this second equation for the given values of .
First, substituting gives us
We know that there is no power to which we can raise the base of any exponential function that will give us either 0 or a negative number. This means that we cannot evaluate the logarithmic function at . Thus, is undefined.
Next, substituting into the rule gives us
Remember, the base of any exponential function raised to the power 0 is equal to 1. In other words, since , it follows that . Thus, .
Finally, substituting into the rule gives us
Recall that the base of any exponential function raised to the power 1 is equal to itself. In other words, since , it follows that . Thus, .
Therefore, after filling in the missing values in the table, we have the following:
1 | 2 | ||
Undefined | 0 | 1 |
Note
Although the question does not require this, we can sketch a graph of the logarithmic function by first graphing the exponential function and then reflecting this graph in the line . This is because the two functions are inverses. The graphs of both and are shown below.
We can see that the graph of the logarithmic function agrees with the answers we found.
Next, we will look at a problem in which we must identify the graph of a logarithmic function with a certain base.
Example 2: Graphing a Logarithmic Function with a Specified Base
Which graph represents the function ?
Answer
The function is a logarithmic function of the form . We recall the following features for the graphs of such functions for any real value of greater than 0, such that :
- The graph has the -axis as an asymptote, with no portion of the graph lying to the left of the -axis.
- The graph has an -intercept of 1. This is because or, inversely, .
- The graph passes through the point , since . In our case, , so this means the graph passes through the point .
- If , the graph increases throughout the functionโs domain. In our case, , so this is true.
We can see that all of the given graphs have the -axis as an asymptote, with no portion of the graph lying to the left of the -axis, and they are all increasing.
However, only one of the graphs has an -intercept of 1 and passes through the point . The graph that represents the function is shown below.
We will now identify the graph of another logarithmic function. This time, all of the answer choices will be shown on the same coordinate plane.
Example 3: Recognizing the Graph of a Specified Logarithmic Function
Which curve is ?
Answer
The curve is the graph of a logarithmic function of the form . We recall the following features for the graphs of such functions for any real value of greater than 0, such that :
- The graph has the -axis as an asymptote, with no portion of the graph lying to the left of the -axis.
- The graph has an -intercept of 1. This is because or, inversely, .
- The graph passes through the point , since or, inversely, . In our case, since , this means the graph passes through the point .
- If , the graph increases throughout the functionโs domain. In our case, , so this is true.
We can see that all of the given graphs have the -axis as an asymptote, with no portion of the graph lying to the left of the -axis, and all of the graphs have an -intercept of 1.
However, only two of the graphs are increasing across their domain, and only one passes through the point . The graph that represents the curve is (a).
We will not always be working with logarithmic functions on their own; sometimes we will be dealing with composite functions. By recalling our knowledge of function transformations, we can transform the graph of a logarithmic function by translation, dilation, and reflection. Each of these transformations has a different effect on the graph. Letโs look at the graphs of some transformations of .
We will begin by looking at the graphs of when and when . Recall that these are horizontal translations of .
When , we have a translation of the graph of by 2 units to the left. This also translates the vertical asymptote and the -intercept 2 units to the left. Recall that the logarithm base is 10, so the graph of passes through the point , and this point, too, is translated 2 units to the left. Note that this translation has also increased the domain from to , while the range of remains unchanged.
When , we have a translation of the graph of by 2 units to the right. This also translates the vertical asymptote, the -intercept, and the point by 2 units to the right. It reduces the domain from to , while the range of remains unchanged.
These properties generalize to horizontal translations of logarithms of the form , where . There are analogous cases for horizontal translations where the value of the logarithm base, , lies in . We will briefly consider the graphs of when and when .
When , again we have a translation of the graph of by 2 units to the left. This also translates the vertical asymptote and the -intercept by 2 units to the left. The graph of passes through the point , and this point is also translated by 2 units to the left. Note that this translation has also increased the domain from to , while the range of remains unchanged.
When , we again have a translation of the graph of , the vertical asymptote, the -intercept, and the point by 2 units to the right. It reduces the domain from to , while the range of remains unchanged.
These properties generalize to horizontal translations of logarithms of the form , where .
Properties: Graphs of Horizontal Translations of the Logarithmic Function
In general, with a horizontal translation of the logarithmic function of the form , where but ,
- if , then the graph of is translated units to the left of ;
- if , then the graph of is translated units to the right of ;
- the domain of is , but the domain of is ;
- the range of is , and so is the range of ;
- if , then the function increases throughout its domain, and its graph increases;
- if , then the function decreases throughout its domain, and its graph decreases;
- the graph of has a vertical asymptote at ;
- the graph of has an -intercept of ;
- the graph of passes through the point .
Now let us consider some vertical translations of . We will look at the graphs of when and when .
When , the graph of is translated by 2 units upward. The vertical asymptote remains unchanged. The domain of remains unchanged, as does the range of .
When , the graph of is translated by 2 units downward. The vertical asymptote remains unchanged. The domain of remains unchanged, as does the range of .
These properties generalize to vertical translations of logarithms of the form , where . Again, there are analogous cases for vertical translations where the value of the logarithm base, , lies in .
Properties: Graphs of Vertical Translations of the Logarithmic Function
In general, with a vertical translation of the logarithmic function of the form , where but ,
- if , then the graph of is translated units upward from the graph of ;
- if , then the graph of is translated units downward from the graph of ;
- the domain of is , and so is the domain of ;
- the range of is , and so is the range of ;
- if , then the function increases throughout its domain, and its graph increases;
- if , then the function decreases throughout its domain, and its graph decreases;
- the graph of has the -axis as a vertical asymptote, the same as .
- the graph of has a different -intercept than the graph of ;
- the graph of passes through the point .
Next, letโs look at the graphs of when and when . Recall that these are vertical stretches of , although some people refer to the first case as a compression, because the fractional scale factor results in the curve being compressed toward the -axis.
This time our graphs show that when is 2, we have a vertical stretch of the graph of by a scale factor of 2, and when is 0.5, we have a vertical stretch by a scale factor of 0.5.
These properties generalize to vertical dilations of logarithms of the form , where , and there are analogous cases for vertical dilations where the value of the logarithm base, , lies in .
Properties: Graphs of Positive Vertical Dilations of the Logarithmic Function
In general, with a vertical stretch of the logarithmic function of the form , where is positive and but ,
- the graph of is vertically stretched by a scale factor of to produce the graph of ;
- the domain of is , and so is the domain of ;
- the range of is , and so is the range of ;
- if , then, since is positive, the function increases throughout its domain, and its graph increases;
- if , then, since is positive, the function decreases throughout its domain, and its graph decreases;
- the graph of has the -axis as a vertical asymptote, as does the transformed graph ;
- the transformed graph has the same -intercept, , as ;
- the graph of passes through the point .
It is also important to note that if is negative, the graph is reflected through the -axis. We can see this in the graphs of and below.
Properties: Graphs of Negative Vertical Dilations of the Logarithmic Function
In general, with a vertical stretch of the logarithmic function of the form , where is negative and but ,
- the graph of is vertically stretched by a scale factor of and reflected in the -axis to produce the graph of ;
- the domain of is , and so is the domain of ;
- the range of is , and so is the range of ;
- if , then, since is negative, the function decreases throughout its domain, and its graph decreases;
- if , then, since is negative, the function increases throughout its domain, and its graph increases;
- the graph of has the -axis as a vertical asymptote, as does the transformed graph ;
- the transformed graph has the same -intercept, , as ;
- the graph of passes through the point .
Finally, letโs look at the graphs of when and when . Recall that these are horizontal stretches of , although some people refer to the case where a fractional scale factor results in the curve being compressed toward the -axis as a compression.
Here our graphs show that when , we have a horizontal stretch of the graph of the logarithmic function by a scale factor of 0.5, and when , we have a horizontal stretch by a scale factor of 2.
These properties generalize to horizontal dilations of logarithms of the form , where , and there are analogous cases for horizontal dilations where the value of the logarithm base, , lies in .
Properties: Graphs of Positive Horizontal Dilations of the Logarithmic Function
In general, with a horizontal stretch of the logarithmic function of the form , where is positive and but ,
- the graph of is horizontally stretched by a scale factor of to produce the graph of ;
- while the graph of passes through the point , the graph of passes through the point ;
- the domain of is , and so is the transformed domain of ;
- the range of is , and so is the transformed range of ;
- if , then, since is positive, the function increases throughout its domain, and its graph increases;
- if , then, since is positive, the function decreases throughout its domain, and its graph decreases;
- the graph of has the -axis as a vertical asymptote, as does the horizontally dilated graph ;
- the graph of has an -intercept of , which is different (if ) than the -intercept of that has.
It is also important to note that if is negative, the graph is reflected through the -axis. We can see this in the graphs of and below.
Here our graphs show that when , we have a horizontal stretch of the graph of the logarithmic function by a scale factor of 0.5, but the graph is also reflected in the -axis. When , we have a horizontal stretch by a scale factor of 2, and again, the graph is reflected in the -axis.
These properties generalize to horizontal dilations of logarithms of the form , where , and there are analogous cases for horizontal dilations where the value of the logarithm base, , lies in .
Properties: Graphs of Negative Horizontal Dilations of the Logarithmic Function
In general, with a horizontal stretch of the logarithmic function of the form , where is negative and but ,
- the graph of is horizontally stretched by a scale factor of to produce the graph of ;
- while the graph of passes through the point , the graph of passes through the point ;
- the graph of is a reflection in the -axis of ;
- the domain of is , but the transformed domain of is ;
- the range of is , and so is the transformed range of ;
- if , then, since is negative, the function decreases throughout its domain, and its graph decreases;
- if , then, since is negative, the function increases throughout its domain, and its graph increases;
- the graph of has the -axis as a vertical asymptote, as does the horizontally dilated graph ;
- the graph of has an -intercept of , which is different than the -intercept of that has.
It is also worth noting at this point that with transformations of the form on the logarithmic function , we can rearrange the expression for using the product rule of logarithms if is positive:
Since is a constant, we can let and rewrite the transformed function as
Hence we can say
We recall that this describes a vertical translation of the function by units. Just like horizontal stretching or compression of the logarithmic function, a vertical translation leaves the functionโs domain, range, and vertical asymptote unchanged, and the graph increases throughout the functionโs domain, but the -intercept changes. It is a feature of the logarithmic function that these transformations are equivalent.
Now, letโs use this information about transformed logarithmic functions and their graphs to solve some more problems.
In our next problem, we are given the graph of a logarithmic function and are asked to determine which function the graph represents. We will see that we can use the concept of transformations to help us find the correct answer.
Example 4: Recognizing Differences between Transformations of Logarithmic Graphs
Which function represents the following graph?
Answer
Our initial observation of the graph tells us that the shape resembles that of the graph of a logarithmic function. There is a vertical asymptote at ; no part of the graph is to the left of the asymptote; and the function is increasing. The domain appears to be , and the range appears to be . Indeed, examining the options given for the answer, we are being asked to find which transformation of a logarithmic function fits the graph.
If this function were of the form , with and , then the graph would have an -intercept of 1 and pass through the point . However, the -intercept is at , so it looks like this is a transformation of a simple logarithmic function.
Because the vertical asymptote remains at , this could be one of the following transformations:
- A horizontal stretch (or compression) of the form , in which case the -intercept would be at , and the graph would pass through the point
- A vertical translation of the form
This could not be a horizontal translation, as that would change the position of the vertical asymptote. It also could not be a vertical stretch (or compression) of the form , as this would still have an -intercept of 1. However, it is possible that the transformation could be a combination of a vertical stretch with either a horizontal stretch, a vertical translation, or both. Looking at the options given in the question, we do not need to consider such combinations of transformations.
The graph we have been given has an -intercept of and passes through the point . If it is a horizontal stretch of the form , then, from the intercept, we could say that
This means that . Furthermore, from the -coordinate when , we could say that but we know that , so we can substitute this value into the above equation and rearrange to find that .
This would make our transformed logarithmic function .
This function can also be presented as a vertical translation, using the product rule of logarithms:
An alternative way to present our transformed logarithmic function is .
Looking at the options given, we see that our answer is A, .
Finally, letโs look at an example in which we must determine the values of multiple logarithmic expressions from the graph of an exponential function. We will need to keep in mind that every logarithmic function is the inverse of an exponential function.
Example 5: Finding Values of a Logarithm from a Graph
Use the graph of to list the values of for to two decimal places. For example, we see that .
Answer
Remember, a logarithmic function is the inverse of an exponential function. If the point satisfies the exponential function, then the point satisfies the logarithmic function. This means that since we are given the graph of the exponential function , we should look on the -axis for the value we will substitute for in the expression instead of the -axis. (Recall that, in the expression , a base of 10 is assumed, and we could write it as .)
For example, we can see that locating the point on the graph with a -coordinate of 2 and then finding the -coordinate of this point give a value of approximately 0.3 for the expression . Letโs repeat this process to find approximate values for , , , and .
First, we will approximate the value of by locating the point on the graph with a -coordinate of 3 and then finding the -coordinate of this point.
Since the -coordinate is approximately 0.48, we can say that this is the value of to two decimal places.
Next, letโs approximate the value of by locating the point on the graph with a -coordinate of 4 and then finding the -coordinate of this point.
The -coordinate is about 0.60, so we know that this is the value of to two decimal places.
Now we will approximate the value of by locating the point on the graph with a -coordinate of 5 and then finding the -coordinate of this point.
Since the -coordinate is about 0.70, we know that this is the value of to two decimal places.
Finally, letโs approximate the value of by locating the point on the graph with a -coordinate of 6 and then finding the -coordinate of this point.
The -coordinate is about 0.78, so we know that this is the value of to two decimal places.
In summary, the values of for to two decimal places are 0.30, 0.48, 0.60, 0.70, and 0.78.
Now letโs finish by recapping some key points from this explainer.
Key Points
- A logarithmic function is the inverse of an exponential function. For the exponential function , where and , the inverse logarithmic function is . If the point satisfies the exponential function, then the point satisfies the logarithmic function.
- The graphs of an exponential function and its inverse logarithmic function are reflections in the line .
- The graph of a logarithmic function can be translated, stretched, or reflected.
- For any real number value of greater than 0, such that , the graph of has the -axis as an asymptote and an -intercept of 1, with no portion of the graph lying to the left of the -axis.
- For any real number value of greater than 0, such that , the graph of passes through the point . That is, .
- If for the function , the functionโs graph decreases throughout its domain, and if , the graph increases throughout its domain.