### Video Transcript

Find the domain and range of the function 𝑓 of 𝑥 equals negative one over 𝑥 minus
five.

We’re also given a graph of 𝑓 of 𝑥, and we’re going to see how the domain and range
of a function are linked to its graph and how in some cases we can just read off the
domain and range of our function from its graph. We had to find both the domain and the range of the function, but let’s just start
with the domain for now and with the definition of the domain.

The domain is a set of inputs to the function 𝑓 of 𝑥. We’re thinking about functions with graphs, so certainly the input to the function
has to be a real number. So, the domain is a subset of the real numbers. And because we’re not told anything else about the domain of the function, we assume
that we have to make it as big as it can possibly be within the real numbers.

We can’t just set the domain equal to the set of real numbers. The function has to be defined for every element of its domain. So the best we can do is to start with the real numbers and then remove any values of
𝑥 for which the function 𝑓 of 𝑥 is undefined.

Looking at the definition of the functions, can you see how the value of 𝑓 of 𝑥
could be undefined? Well, one way for that to happen would be if we were dividing by zero. So certainly, the function 𝑓 of 𝑥 is undefined when the denominator of the function
𝑥 minus five is equal to zero. And this happens when 𝑥 is equal to five.

And looking at the graph for a moment, we can see that something special happens when
𝑥 is equal to five. We have a vertical asymptote of the graph. And by looking at this first-class asymptote, even without knowing the equation which
defines the function, you would see that the function is undefined for this value of
𝑥, because any attempt to read off the value of the function would fail.

Are there any more values of 𝑥 for which the function is undefined? While having a look at the graph, we can’t see any more vertical asymptotes. We also can’t see any hollow circles on the graph which would represent a point for
which the function is undefined. And if we imagine moving a vertical line along the 𝑥-axis from negative ∞ to ∞, the
only value of 𝑥 for which this line will not intersect with the graph of the
function is the value of 𝑥 that we found already, 𝑥 equals five. And so, this set of 𝑥 for which 𝑓 of 𝑥 is undefined is just the set of five. And so the domain of our function is just the set of real numbers minus the set of
five.

Now that we found the domain of the function, we need to clear some room so we can
find the range of the function. The range of a function is the set of outputs of that function. And because we’re looking at a graph, we know it’s going to be a subset of the set of
real numbers, perhaps the entire set of real numbers. We don’t know yet. We can use the graph to help us.

Suppose you want to show that four is in the range. Well, that means finding a point on the graph whose 𝑦-coordinate is four. To find such a point if it exists, we draw the line 𝑦 equals four and look for
intersections with the graph. We see that there is an intersection. And so, there is a value of 𝑥 just below five which, when you put it into the
function 𝑓 of 𝑥, you get an output or 𝑦 value of four. And hence, four is in the range.

We can imagine moving this horizontal line, which currently has the equation 𝑦
equals four, up and down the 𝑦-axis. Values of 𝑦 for which this line intersects the graph are in the range, and values of
𝑦 for which this line does not intersect the graph are not in the range.

We can see that the 𝑥-axis with equation 𝑦 equals zero does not intersect the graph
at any point, and so zero is not in the range. But for every other value of 𝑦, this line does intersect the graph at some point,
and so the range is the entirety of the real numbers apart from this value zero. And so we found our final answer that the domain is the set of real numbers minus the
set of five, that is, the set of all real numbers apart from five, and the range is
the set of real numbers minus the set of zero, that is, the set of all real numbers
which aren’t zero.

You may also see this written using a backslash instead of a minus sign. This means exactly the same thing. It’s just the real numbers minus the set of five or the real numbers minus the set of
zero. The backslash symbol is used in the context of sets to avoid confusion with normal
subtraction of numbers.

You may have been able to work out the domain and range of this function by thinking
of it as a transformation of the reciprocal function 𝑓 of 𝑥 equals one over
𝑥. Recall that we found that the domain of the function is just the set of real numbers
minus the set of values of 𝑥 for which the denominator of the function was
zero. This is a general fact about rational functions, which are functions in the form of
fractions where both the numerator and the denominator is a polynomial. In that case, the domain of the rational function in question is just the set of real
numbers minus the set of zeros of that denominator polynomial. We found the range using graphical methods, imagining a horizontal line moving up and
down at the 𝑦-axis. But we can find it using algebraic methods. And the rest of the video will be dedicated to doing so. If you were happy with the graphical method, then feel free to skip this.

Which values of 𝐾 are in the range? Well, they are values which are output to the function and hence are equal to
negative one over 𝑥 minus five for some input 𝑥. So to show that a value of 𝐾 is in the range, we need to show that there’s a value
of 𝑥 for which 𝐾 is equal to negative one over 𝑥 minus five. And we can show that there is such a value of 𝑥 by finding a formula for that 𝑥 in
terms of 𝐾.

So our goal is to rearrange this equation to make 𝑥 the subject. We multiply both sides by 𝑥 minus five and then divide both sides by 𝐾 to get that
𝑥 minus five is equal to negative one over 𝐾. And adding five to both sides, we can see that 𝑥 is equal to five minus one over
𝐾. So when this value of 𝑥 is input into the function, we get an output of 𝐾.

For example, if we wanted to show that negative 17 is in the range, we just
substitute in this value of 𝐾. So 𝑥 is equal to five minus one over negative 17, which is equal to 86 over 17. And if you put this into our function we find that 𝑓 of 86 over 17 which,
substituted in, we see is negative one over 86 over 17 minus five, which simplifies
to negative 17. So clearly, negative 17 is an output of the function and hence is in the range. And similarly, we could show that any other number is in the range apart from, of
course, 𝐾 equals zero.

We can’t have 𝐾 as zero because we have this term of one over 𝐾, and so we can’t
find an input value of 𝑥 which will give us an output of 𝐾 equals zero. And so zero is not in the range. This is the only real value of 𝐾 for which we have this problem. And so we can see that the range is, as we saw graphically, just the set of real
numbers minus the set of zero.