### Video Transcript

Domain and Range of a Rational
Function

In this video, weβll go through
several different methods to help us find the domain and range of a rational
function. Weβll talk about the defining rule
for finding the domain of a rational function. And weβll talk about finding the
range of a rational function either by using a sketch or by using algebraic
techniques.

Before we start with this, letβs
recall what we mean by the domain and range of a function. Letβs start with the domain of a
function π of π₯. The domain of π of π₯ will be the
set of inputs for our function. So one way of thinking about this
is the value of π₯ weβre allowed to input into our function. For example, if our function π of
π₯ was the linear function two π₯ plus one, then we could say that our inputs π₯
could be any real value of π₯. And remember, we could write this
in set notation π₯ is a member of the real numbers β.

So we could have the domain of this
function π of π₯ as all real numbers. We could also pick a smaller set if
we wanted. For example, we could say that
weβre only allowed our inputs to be integers. We will write this as π₯ is a
member of the integers β€. But this is just one possible
example. What about if we were looking for
the domain of the function π of π₯ is equal to one over π₯?

Now we see something
interesting. We canβt just input any real value
of π₯ like we did last time. For example, if we had π₯ was equal
to zero, then we would have π of zero is one divided by zero. But we can input any other real
value of π₯. So one possible domain for our
reciprocal function would be the set of real numbers where we remove π₯ is equal to
zero. And we write this as β minus the
set with just the element zero. And in fact, if we wanted to
include as many real numbers in our domain as possible, this would be the biggest
possible set because we canβt include zero.

Now letβs move on to the range of a
function. One way of thinking about the range
of a function is itβs the set of all possible outputs of our function. But of course, this will change
depending on what weβre allowed to input into our function. In other words, this will depend on
the domain of our function.

For example, letβs go back to our
linear function π of π₯ is two π₯ plus one, and letβs have the domain π₯ is any
real number. Then we can sketch a graph of π¦ is
equal to π of π₯. We just get the straight line π¦ is
equal to two π₯ plus one. We want to find the range of our
function from this graph. Remember, the range of a function
is the set of all possible outputs of our function. Well, the outputs of our function
are the π¦-coordinates on the curve.

And if we pick any value of π¦, we
can see in this case, there is a value of π₯ where π of π₯ is equal to π¦. Itβs important to remember the
range of a function will depend on the domain of a function. For example, for π of π₯ is two π₯
plus one, if we restrict our domain to be integers, then weβre only allowed to input
integers to our function. So two times an integer plus one is
also an integer, so we will only be able to output integers. Normally, however, when we look for
the domain and range of a function, we want to include as many real values as
possible.

The last thing we need to do before
we talk about the range and domain of a rational function is recall what we mean by
a rational function. We say if a function π of π₯ is
equal to π of π₯ divided by π of π₯ where π of π₯ and π of π₯ are both
polynomials β in other words, itβs the quotient between two polynomials β then we
call the function π of π₯ a rational function. When we talk about the range and
domain of a rational function, weβll always be talking about this over the real
numbers.

To find the domain of our rational
function, we want to find as many values of π₯ over the real numbers where our
function is defined. And the same is true for the
range. Given as many inputs as possible
into our rational function, we want to find as many possible outputs of our
function. Letβs now take a look at some
examples.

Determine the domain of the
function π of π₯ is equal to π₯ plus one divided by π₯ minus one.

The question is asking us to find
the domain of a function π of π₯. And we can see that π of π₯ is the
quotient of two polynomials. π of π₯ is a rational
function. Remember, the domain of a function
is the set of possible inputs of that function. So letβs take a look at our
function π of π₯.

Well, π of π₯ is the quotient of
two polynomials. Itβs π₯ plus one all divided by π₯
minus one. Letβs start by just looking at our
numerator. Our numerator is π₯ plus one. Well, we know we can add one to any
real number. So this wonβt affect the domain of
our function. Letβs now look at the denominator
of our function. Itβs π₯ minus one. Well, we can subtract one from any
real number. So if we input a value of π₯, weβll
just get the quotient of two numbers.

But we have to be careful here. Remember, we canβt divide by
zero. Division by zero is not
defined. In other words, if we input π₯ in
our denominator is equal to zero, our function wonβt be defined. So we want to solve the denominator
equal to zero. In other words, we want to know the
values of π₯ where π₯ minus one is equal to zero. We see this is when π₯ is equal to
one. So the only place where our
function π of π₯ is not defined is when π₯ is equal to one. And we can see this. If we input π₯ is equal to one into
π of π₯, we get one plus one divided by one minus one, which is equal to two
divided by zero, which is of course not defined. But if we input any other value of
π₯, our function will be defined. It will just give us the quotient
of two numbers where the denominator is not equal to zero.

So in this case, we were able to
show the domain of the function π of π₯ is equal to π₯ plus one divided by π₯ minus
one is all real numbers except when π₯ is equal to one.

But letβs think about what weβve
just shown about our function π of π₯. In this case, we were able to find
the domain of our rational function by only looking at where the denominator is
equal to zero. But if we think about it, the exact
same is true about any rational function.

If we have π of π₯ is a rational
function π of π₯ divided by π of π₯ where π and π are both polynomials, then we
know that our polynomials π and π are defined for all real values of π₯. So the only time our function π of
π₯ wonβt be defined is when our denominator π of π₯ is equal to zero. This gives us a method of finding
the domain for any rational function. We just need to find all the values
of π₯ where our denominator is equal to zero.

Letβs go for an example of using
this to find the domain of a rational function.

Determine the domain of the
function π of π₯ is equal to π₯ minus two divided by π₯ squared minus four.

The question wants us to find the
domain of a function π of π₯. We can see π of π₯ is the quotient
of two polynomials. This means our function π of π₯ is
rational. We know the domain of a function is
the set of all possible inputs of that function. And whatβs more, we know a trick
for finding the domain of any rational function. We know if π of π₯ is a rational
function the polynomial π of π₯ divided by the polynomial π of π₯, then π is only
undefined when the denominator π of π₯ is equal to zero. In our case, the polynomial in our
denominator is π₯ squared minus four. So we need to find the values of π₯
where the denominator is equal to zero. We need to solve π₯ squared minus
four is equal to zero.

The easiest way of doing this is to
notice that π₯ squared is a square and four is a square, so this is a difference
between squares. Remember, we can factor π squared
minus π squared as π minus π times π plus π. So we can factor π₯ squared minus
four as π₯ minus two times π₯ plus two. So now we have the product of two
factors is equal to zero. This means one of our factors must
be equal to zero. Solving each factor is equal to
zero, we get either π₯ is equal to two or π₯ is equal to negative two. And remember because our function
π of π₯ is rational, the only time it wonβt be defined is when its denominator is
equal to zero. In other words, weβve shown the
domain of π of π₯ is all real numbers except when π₯ is equal to negative two or
two.

There is one more thing worth
pointing out in this example. Weβve said that two is not in the
domain of our function. So letβs see what π evaluated at
two would give us. If we substitute π₯ is equal to two
into our function π of π₯, we get two minus two divided by two squared minus four,
which simplifies to give us zero divided by zero. Remember, this is still not
defined.

Letβs now do one more example of
finding the domain of a rational function.

Determine the domain of the
function π of π₯ is equal to three divided by π₯ minus three plus one divided by π₯
plus four.

The question wants us to find the
domain of the function π of π₯. We recall the domain of a function
is the set of possible inputs of our function. In our case, we can see that our
function π of π₯ is defined to be the sum of two functions. In fact, itβs the sum of two
rational functions. Remember, we call a function
rational if itβs the quotient between two polynomials. A linear function and a constant
function are both examples of polynomials. So we need to find the set of
possible inputs for our function, which is the sum of two rational functions.

Letβs start by recalling what we
know about the domains of each of our rational functions individually. First, we recall any rational
function will be defined everywhere except where its denominator is equal to
zero. Remember, this is because we can
input any value of π₯, and weβll get a real number divided by another real
number. But we can never divide by
zero. It will always be undefined.

So letβs look at each term of π of
π₯ individually. Letβs start with three divided by
π₯ minus three. We see this is a rational
function. This will be defined everywhere
except where its denominator is equal to zero. And we know its denominator is
equal to zero only when π₯ is equal to three. We can do exactly the same with the
second term one divided by π₯ plus four. This is also a rational function,
so it will be defined everywhere except where its denominator is equal to zero,
which in this case is when π₯ is equal to negative four.

But letβs think about what this
means for our function π of π₯. For example, if we were to
substitute π₯ is equal to three into π of π₯, weβd get π of three is equal to
three divided by three minus three plus one divided by three plus four. And if we simplify this, we get
three over zero plus one over seven. Of course, three divided by zero is
undefined. We canβt divide by zero. And of course, the same will be
true when π₯ is equal to negative four. Since weβve already explained one
divided by π₯ plus four is not defined when π₯ is equal to negative four.

Every other input of π₯ will just
give us the sum of two real numbers. So weβve shown the domain of our
function π of π₯ is equal to three divided by π₯ minus three plus one divided by π₯
plus four is all real numbers except when π₯ is equal to negative four and when π₯
is equal to three.

Letβs now move on to an example of
finding both the range and domain of a rational function.

Determine the domain and range of
the function π of π₯ is equal to one divided by π₯ minus five.

The question wants us to determine
the domain and range of the function π of π₯. And we can see that our function π
of π₯ is a rational function. Itβs the quotient of two
polynomials. We can also see weβre given a graph
of the function π of π₯. Letβs start by finding the domain
of this function by using the graph. To start, remember, the domain is
all the inputs of our function.

To find all the possible inputs of
our function π of π₯, letβs take a look at the values of π₯ our function can
take. We want to find the values of π₯
where our function is undefined. We can see, for example, when π₯ is
equal to six, our function outputs the value of one. So we can see six is in the domain
of our function π of π₯. In fact, thereβs only one value
where our function π of π₯ is undefined.

If we draw the vertical line π₯ is
equal to five, we can see that our function π of π₯ does not intersect this
line. This means our function is not
defined when π₯ is equal to five. Every other vertical line will
intersect our function, so this is the only point where our function is not
defined. So weβve shown our function π of
π₯ is defined everywhere except where π₯ is equal to five. In other words, the domain of π of
π₯ is the real numbers minus the point where π₯ is equal to five.

We now need to find the range of
our function. Remember, the range of our function
is the set of all possible outputs of our function. We can do something very similar to
check whether a value is in the range of our function. For example, to check whether
negative one is in the range of our function, we draw a horizontal line from
negative one to the curve and then see the value of π₯ which gives us this
output. We see from the graph when π₯ is
equal to four, our function outputs negative one. Therefore, negative one is in the
range of our function. We can see all horizontal lines
will intercept our function except the one when π¦ is equal to zero. The line π¦ is equal to zero does
not intercept our curve. In other words, no value of π₯
outputs the value of zero.

So for our function π of π₯,
thereβs a value of π₯ which outputs every number except the value of zero. In other words, the range of π of
π₯ is the real numbers minus the point zero. Therefore, given a graph of the
function π of π₯ is equal to one divided by π₯ minus five, we were able to show the
domain of this function is all real numbers except when π₯ is equal to five and the
range of this function is all real numbers except for zero.

One important caveat of this
example is that we can find the domain of our rational function by finding the
vertical asymptotes and we can find the range of our function by finding the
horizontal asymptotes.

Letβs now go through finding the
domain and range of a rational function when weβre not given a graph of the
function.

Determine the domain and range of
the function π of π₯ is equal to one divided by π₯ minus two.

The question is asking us to find
the domain and range of the function π of π₯. And we can see that our function π
of π₯ is a rational function. Itβs the quotient of two
polynomials. Remember, the domain of a function
is the set of all possible inputs for that function and the range of a function is
the set of possible outputs of that function. We also need to remember that any
rational function will always be defined everywhere except when its denominator is
equal to zero.

So for our rational function π of
π₯ to find the values of π₯ where our function is not defined, we just need to solve
the denominator is equal to zero. This gives us π₯ minus two is equal
to zero. And we can solve this. It gives us π₯ is equal to two. So weβve shown our function π of
π₯ is defined everywhere except when π₯ is equal to two. In other words, the domain of π of
π₯ is all real numbers except when π₯ is equal to two.

But we still need to find the range
of our function. Thereβs a few different ways of
doing this. Weβre going to do this by sketching
a graph of our curve. And to do this, we should do the
following two things. First, we need to check either side
of every value of π₯ not in the domain of our function. And the only value of π₯ not in our
function is equal to two. So letβs take a look at our
function π of π₯ around the value of π₯ is equal to two.

When our value of π₯ is a tiny bit
less than two, our denominator will be a very small negative number. This tells us that our outputs will
be very large but negative. So as π₯ gets closer to two from
the left, our values of π₯ will be getting more and more negative. We can argue something similar to
the right of π₯ is equal to two. This time, our denominator will be
positive. So as π₯ approaches two from the
right, our outputs will be getting larger and larger.

The next thing we want to check is
what happens as our values of π₯ get larger and larger and what happens if they get
more and more negative. Again, to do this, we can just look
at our function π of π₯. When π₯ is a very large positive
number, our output will be one divided by a very large positive number. So what happens to our curve? Well, as π₯ is getting larger and
larger, our outputs are getting closer and closer to zero. But they never reach zero, so weβll
just get closer and closer to the π₯-axis. The same is true as π₯ gets more
and more negative. Weβll be dividing by a very large
negative number, so our outputs will be getting closer and closer to zero.

So our function gets larger and
larger as π₯ approaches two from the right and it gets more and more negative as π₯
approaches two from the left. However, no matter what input of π₯
we give, we canβt get our function to output zero. We can only get closer and closer
to this output. So the range of our function π of
π₯ is all real numbers except for zero. Therefore, given the function π of
π₯ is equal to one divided by π₯ minus two, we were able to show the domain of this
function is all real numbers except when π₯ is equal to two and the range of this
function is all real numbers except for zero.

Letβs now go over the key points of
this video. We were able to show that to find
the domain of a rational function, we just need to find the values of π₯ which make
the denominator zero, or even we just need to find the values of π₯ which make us
divide by zero. And we have a few different ways of
finding when a polynomial is equal to zero. For example, we know the factor
theorem, the quadratic formula, and difference between squares.

Next, to find the range of a
rational function, we just need to find all of the values that our function cannot
output. We saw how to do this from a graph
of our curve. However, if weβre not given this,
we can also just sketch a graph ourself. We remember we also need to take
particular care at what happens when π₯ is near the values where our function is
undefined. We also need to consider what
happens to our outputs as our inputs get larger and larger. Weβll also want to know what
happens to our outputs as our values of π₯ get more and more negative. All of this can help us find the
range of our rational function.