# Lesson Video: Graphs of Rational Functions Mathematics

In this video, we will learn how to graph rational functions whose denominators are linear, determine the types of their asymptotes, and describe their end behaviors.

18:59

### Video Transcript

In this video, we will learn how to graph rational functions whose denominators are linear, determine the types of their asymptotes, and describe their end behaviors.

A rational function is an algebraic fraction where both the numerator and denominator are polynomials. For example, 𝑓 of 𝑥 equal to five 𝑥 plus seven over two 𝑥 minus one is a rational function. It’s important to note that a regular polynomial function, for example, 𝑔 of 𝑥 equals three 𝑥 minus five, is also a rational function. We could rewrite three 𝑥 minus five as three 𝑥 minus five over one, and one is a degree zero polynomial.

However, regular polynomial functions like 𝑔 of 𝑥 are slightly different to other rational functions. This is because any value of 𝑥 is valid in the domain of 𝑔, whereas a rational function with a degree one polynomial on its denominator, like this one, will have one value of 𝑥 for which the polynomial is equal to zero. And therefore, the function 𝑓 of 𝑥 is undefined. In this case, if two 𝑥 minus one is equal to zero, then 𝑥 is equal to one-half. Therefore, the value of one-half must be excluded from the domain of 𝑓 because it is undefined at this value.

The simplest rational function with a non-zero-degree polynomial on its denominator is the reciprocal function 𝑓 of 𝑥 equals one over 𝑥. The graph of the function 𝑦 equals one over 𝑥 forms the shape of a hyperbola, which looks something like this. The hyperbola is symmetric about the lines 𝑦 equals 𝑥 and 𝑦 equals negative 𝑥. In the first quadrant, the curve approaches the line 𝑦 equals zero as 𝑥 tends to ∞ without ever actually touching it. The line 𝑦 equals zero or the 𝑥-axis is called an asymptote. The curve also approaches the line 𝑦 equals zero in the third quadrant, this time from below as 𝑥 tends to negative ∞. Similarly, the curve approaches ∞ as 𝑥 tends to zero from the positive side and negative ∞ as 𝑥 tends to zero from the negative side. The graph of 𝑦 equals one over 𝑥 therefore has a horizontal asymptote at 𝑦 equals zero and a vertical asymptote at 𝑥 equals zero.

We can use this most basic function 𝑦 equals one over 𝑥 and apply function transformations to obtain different graphs of different rational functions. In the first example, we will identify the graph of a rational function using a function transformation from the graph of 𝑦 equals one over 𝑥.

Which of the following graphs represents 𝑓 of 𝑥 equals one over 𝑥 plus one?

Let’s start by recalling the graph of the simplest rational function 𝑦 equals one over 𝑥. This graph has a horizontal asymptote at 𝑦 equals zero and a vertical asymptote at 𝑥 equals zero. We can obtain the graph of 𝑓 of 𝑥 equals one over 𝑥 plus one by using a function transformation on 𝑦 equals one over 𝑥. To transform the function one over 𝑥 into one over 𝑥 plus one, we simply let 𝑥 map to 𝑥 plus one. Now, recall that a function transformation of 𝑥 to 𝑥 plus 𝑎 corresponds to a horizontal shift to the left by 𝑎 units. Therefore, the graph of 𝑦 equals one over 𝑥 plus one is the same as the graph of 𝑦 equals one over 𝑥 shifted to the left by one unit.

Looking at the possible answers, we can see that graph (c) is the same as the graph of 𝑦 equals one over 𝑥 shifted to the left by one unit. Its vertical asymptote 𝑥 equals zero has shifted to the left to 𝑥 equals negative one. And its horizontal asymptote at 𝑦 equals zero is unchanged.

Now, let’s look at the opposite kind of example where we are given a graph and asked to find the function.

What function is represented in the figure below?

To begin with, notice that the given graph resembles the graph of 𝑦 equals one over 𝑥. We can obtain this graph from the graph of the parent function 𝑦 equals one over 𝑥 by applying a few function transformations. The graph of 𝑦 equals one over 𝑥 has a horizontal asymptote at 𝑦 equals zero and a vertical asymptote at 𝑥 equals zero. The given graph also has a vertical asymptote at 𝑥 equals zero, but its horizontal asymptote is at 𝑦 equals negative three. This means that a downward shift of three units is one of the function transformations used to obtain the given graph from the graph of the parent function. Before we apply this vertical shift, we first need to check if any other function transformations are involved, since the order of function transformations is very important.

There are three different types of transformations to consider: translation, dilation, and reflection. We have already seen that there is a translation of three units downwards. Looking at these two points indicated on the given graph, if we translate these two points back up three units, then we get the points negative one, one and one, negative one. These two points clearly are not on the graph of the parent function 𝑦 equals one over 𝑥. Therefore, there must have been at least one other transformation involved. They do look similar to the points negative one, negative one and one, one. The two points are the same distance apart and have the same absolute values for their 𝑥- and 𝑦-coordinates. Therefore, there doesn’t seem to have been any dilation involved, which would either increase or decrease the distance between the points.

The given graph appears to be upside down when compared with the parent function. More specifically, the value of 𝑦 approaches positive ∞ as 𝑥 tends to zero from the negative direction. And it approaches negative ∞ as 𝑥 tends to zero from the positive direction. This is exactly the opposite behavior of the graph of the parent function, which implies that there is a reflection involved. Due to the symmetry of the graph of the parent function 𝑦 equals one over 𝑥, a reflection over the 𝑥-axis is the same as a reflection over the 𝑦-axis. So, for default, we will say this is a reflection over the 𝑥-axis.

When combining transformations, dilations and reflections must be done before translations. A reflection over the 𝑥-axis means we swapped the sign of the 𝑦-value of all of the points on the graph. So, 𝑓 of 𝑥 goes to negative 𝑓 of 𝑥. This implies that we multiply the original function by negative one. So, so far, we are taking the parent function one over 𝑥 and multiplying it by negative one to give negative one over 𝑥. Let’s clear a little space, and let’s look at the graph of what we have so far: 𝑦 equals negative one over 𝑥. The graph has been reflected in the 𝑥-axis. And the point negative one, negative one has become negative one, one, and the point one, one has become one, negative one. These are the two points that we obtained on the given graph when shifting it up by three units.

So, now, all we need to do is apply the translation of three units downwards. A vertical translation of 𝑐 units means adding 𝑐 to the 𝑦-values of all of the points on the graph. So, 𝑓 of 𝑥 goes to 𝑓 of 𝑥 plus 𝑐. And the sign of 𝑐 will indicate the direction the graph moves in. If 𝑐 is positive, it will move upwards, and if negative, it will move downwards. Therefore, to translate this graph three units downwards, we subtract three from 𝑓 of 𝑥. So, negative one over 𝑥 goes to negative one over 𝑥 minus three. Therefore, the given graph represents the function 𝑓 of 𝑥 equals negative one over 𝑥 minus three. And we can substitute in the original two points negative one, negative two and one, negative four to show that they do indeed satisfy this equation.

In the next example, we will determine missing parameters in a rational function from the given graph.

The graph shows 𝑦 equals 𝑘 over 𝑥 minus 𝑎 plus 𝑏. A single point is marked on the graph. What are the values of the constants 𝑎, 𝑏, and 𝑘?

We begin by noticing that this graph resembles the graph of 𝑦 equals one over 𝑥. We can obtain the given graph from the graph of the parent function 𝑦 equals one over 𝑥 by applying some function transformations. The graph of the parent function 𝑦 equals one over 𝑥 has a horizontal asymptote at 𝑦 equals zero and a vertical asymptote at 𝑥 equals zero. The given graph has a horizontal asymptote at 𝑦 equals negative two and a vertical asymptote at 𝑥 equals three. This means that a downward shift of two units and a rightward shift of three units is one of the function transformations used to obtain this graph from the graph of 𝑦 equals one over 𝑥.

Before applying this translation, however, we first need to check if any other transformations are involved, since the order of transformations is very important. There are three different types of transformations to consider: translation, dilation, and reflection. The given graph is oriented the same way as the parent function, so we can rule out reflection. Dilation is a possibility, but it’s difficult to judge by eye. Since we are given the point six, negative one on the graph, we can use this point to determine the dilation factor, if there is one. Recall that when combining transformations, dilations and reflections must be done before translations.

Recall that a horizontal dilation by a scale factor of 𝑑 one means that we map 𝑥 to 𝑥 over 𝑑 one. In other words, the 𝑥-values of all the points on the graph are reduced by a factor of 𝑑 one. A vertical dilation by a scale factor of 𝑑 two means mapping 𝑓 of 𝑥 to 𝑑 two times 𝑓 of 𝑥. In other words, we multiply all of the 𝑦-values on the graph by a factor of 𝑑 two. Beginning with the parent function 𝑓 of 𝑥 equals one over 𝑥 and performing a horizontal dilation, we get one over 𝑥 over 𝑑 one.

Next, performing a vertical dilation, we multiply this new 𝑓 of 𝑥 by 𝑑 two, giving 𝑑 two over 𝑥 over 𝑑 one. This simplifies to 𝑑 one 𝑑 two over 𝑥. 𝑑 one times 𝑑 two is just another constant in and of itself. So, we can call this constant 𝑘. We do not yet know the value of 𝑘. First, we need to move on to translations. The positions of asymptotes are unaffected by dilations. Therefore, these could only have been moved by the translation of two units downwards and three units to the right. A vertical translation of 𝑐 units means mapping 𝑓 of 𝑥 to 𝑓 of 𝑥 plus 𝑐. So, we change all of the 𝑦-values of the points on the graph from 𝑦 to 𝑦 plus 𝑐. 𝑐 being positive means the graph moves upwards and negative means it moves downwards.

In our case, we need to perform the dilation first. So, the parent function one over 𝑥 goes to 𝑘 over 𝑥. Then, to translate this by two units downwards, this goes to 𝑘 over 𝑥 minus two. Now, recall that for a horizontal translation by 𝑐 units, we map all of the 𝑥-values to 𝑥 minus 𝑐. Again, the value of 𝑐 will determine the direction, with positive 𝑐 giving a rightward shift and negative 𝑐 giving a leftward shift. But of course, the sign will be reversed since we are subtracting 𝑐 from 𝑥. So, starting from 𝑘 over 𝑥 minus two, to perform a rightward shift of three units, we need to change the 𝑥-values to 𝑥 minus three. So, this gives us 𝑘 over 𝑥 minus three minus two. So, this graph represents the function 𝑓 of 𝑥 equals 𝑘 over 𝑥 minus three minus two. So, we have found two of the parameters in the question. 𝑎 is equal to three and 𝑏 is equal to negative two.

Now we just need to find the value of 𝑘. This equation has three unknowns in it. We have 𝑓 of 𝑥, 𝑥, and 𝑘. We are given a point on the graph: six, negative one. And this corresponds to values of 𝑓 of 𝑥 and 𝑥, respectively, which we can then substitute into the equation and rearrange to find 𝑘. So, we have 𝑓 of 𝑥 equals negative one and 𝑥 equals six. Simplifying and rearranging gives 𝑘 equals three. So, we now have the values of all three constants. 𝑎 is equal to three, 𝑏 is equal to negative two, and 𝑘 is equal to three.

In the previous example, we saw how dilation of a graph is difficult to judge by eye. So, we used an unknown scale factor, 𝑘, and then found this scale factor by using a point on the graph. Specifically, if we start with the reciprocal function 𝑦 equals one over 𝑥 and perform a horizontal dilation by a scale factor of 𝑑 one, we get one over 𝑥 over 𝑑 one. And then performing a vertical dilation by a scale factor of 𝑑 two gives 𝑑 two over 𝑥 over 𝑑 one, which simplifies to 𝑑 one 𝑑 two over 𝑥.

Because 𝑑 one and 𝑑 two are multiplied together in the end, this transformation makes no distinction between horizontal and vertical dilations. For example, if the horizontal dilation factor 𝑑 one is equal to one and the vertical dilation factor 𝑑 two is equal to two, then we get two over 𝑥. Conversely, if the horizontal dilation factor is two and the vertical dilation factor is one, we get exactly the same result, two over 𝑥. This is a clear demonstration of the symmetry of the reciprocal function, but it does actually go further than this.

If we take the function after performing a horizontal and a vertical dilation and reflect it over the 𝑥-axis, we swap the sign of 𝑓 of 𝑥. So, this gives negative 𝑑 one 𝑑 two over 𝑥. Conversely, if we reflect the function over the 𝑦-axis, we swap the sign of 𝑥, which gives 𝑑 one 𝑑 two over negative 𝑥. Rearranging this, we get exactly the same result as the reflection over the 𝑥-axis. What’s more, just as we did in the previous example, this numerator here is still a constant, which we can call 𝑘.

So, after a horizontal dilation and a vertical dilation and a reflection over either axis or both, we get just 𝑘 over 𝑥. So, this scalar constant, 𝑘, accounts for all horizontal and vertical dilations and all reflections. This greatly simplifies the function transformation since we can account for all dilations and reflections by simply multiplying by a constant 𝑘.

Now, all that remains are translations. We can perform a horizontal translation by 𝑎 units by mapping 𝑥 two 𝑥 minus 𝑎. And we vertically translate the graph by 𝑏 units by adding 𝑏 to the 𝑦-values. Therefore, a hyperbola with vertical asymptote 𝑥 equals 𝑎 and horizontal asymptote 𝑦 equals 𝑏 is the graph of a rational function 𝑓 of 𝑥 equals 𝑘 over 𝑥 minus 𝑎 plus 𝑏, for some 𝑘 not equal to zero.

In the next example, we will use this to identify the range of values for an unknown parameter in the given graph of a rational function.

The graph shows 𝑦 equals 𝑘 over 𝑥 minus three minus two. We can see that the intersection of its asymptotes is at three, negative two and that the points 0.5, negative 1.5 and 1.5, negative one are below and above the graph, respectively. Determine the interval in which 𝑘 lies.

Recall first that a hyperbola with a horizontal asymptote at 𝑥 equals 𝑎 and a vertical asymptote 𝑦 equals 𝑏 is the graph of the function 𝑓 of 𝑥 equals 𝑘 over 𝑥 minus 𝑎 plus 𝑏, for 𝑘 not equal to zero. In this case, the vertical asymptote is at 𝑥 equals three. So, 𝑎 is equal to three. And the horizontal asymptote is at 𝑦 equals negative two. So, 𝑏 is equal to negative two. This matches the equation of the given function 𝑓 of 𝑥 equals 𝑘 over 𝑥 minus three minus two.

The value of 𝑘 cannot be determined exactly unless we have any of the points on the graph, which we do not. Instead, we have one point above and one point below the graph, which we can use to determine an interval in which 𝑘 must lie. Consider the point above the graph: 1.5, negative one. Since this point is above the graph, its 𝑦-value is greater than 𝑓 of 𝑥 at this point. In other words, 𝑓 of 1.5 is less than the 𝑦-value of this point, negative one. Therefore, 𝑘 over 1.5 minus three minus two is less than negative one. Taking the two to the other side and simplifying gives us negative 𝑘 over 1.5 is less than one. And rearranging for 𝑘 gives us 𝑘 is greater than negative 1.5. We now have a lower bound for 𝑘 of negative 1.5.

Now, let’s consider the other point below the graph: 0.5, negative 1.5. Since this point is below the graph, its 𝑦-value is less than the 𝑦-value of 𝑓 of 𝑥 at this point. In other words, 𝑓 of 0.5 is greater than negative 1.5, which means that 𝑘 over 0.5 minus three minus two is greater than negative 1.5. Taking the two over to the right-hand side and simplifying gives us negative 𝑘 over 2.5 is greater than 0.5. Solving for 𝑘 gives us the upper bound of 𝑘. 𝑘 is less than negative 1.25. This gives us our final answer, the interval for 𝑘. 𝑘 is greater than negative 1.5 and less than negative 1.25.

Let’s now finish this video by recapping some key points. Unlike a graph of a nonconstant polynomial, the graph of a rational function may have vertical and horizontal asymptotes, that is, straight lines which the graph may approach but never touch. The graph of 𝑦 equals one over 𝑥 is a hyperbola with a horizontal asymptote 𝑦 equals zero and a vertical asymptote 𝑥 equals zero. And finally, a hyperbola with vertical asymptote 𝑥 equals 𝑎 and horizontal asymptote 𝑦 equals 𝑏 is the transformed graph of a rational function 𝑓 of 𝑥 equals 𝑘 over 𝑥 minus 𝑎 plus 𝑏, for some 𝑘 not equal to zero.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.