Simplify the function 𝑓 of 𝑥 equals 𝑥 squared plus two 𝑥 over 𝑥 squared
minus four and find its domain.
𝑓 of 𝑥 is a rational function and so the expression on the right-hand side is an
algebraic fraction. To simplify this fraction, we need to look for common factors of the numerator
and denominator which we can then cancel out. So our first task is to factor both the
numerator and denominator. Starting with the numerator, we can see that the two terms, 𝑥 squared and two
𝑥, have a common factor of 𝑥. 𝑥 squared is 𝑥 times 𝑥 and two 𝑥 is 𝑥 times two. And so together they are 𝑥 times 𝑥 plus two where here we have applied the distributive property.
Now we move on to the denominator which is 𝑥 squared minus four, and we notice
that that is a difference of two squares. It is 𝑥 minus two times 𝑥 plus two. Now that the numerator and denominator are fully factored, we can see that they
have a common factor of 𝑥 plus two. We can cancel this out. And we see that the simplified form of 𝑓 of 𝑥 is 𝑥 over 𝑥 minus two and that
we can’t simplify any further.
So we have simplified the function, but now we need to find its domain. The domain of a rational function is the set of values for which its denominator
is nonzero. In other words, it is the set of real numbers minus the set of values for which
the denominator of a rational function is zero. If you look at the simplified function, you might be tempted to think that the
only value of 𝑥 for which the denominator is zero is 𝑥 equals two. However, the denominator of the original function, as it was defined, is 𝑥
squared minus four and not 𝑥 minus two. And if you look at the factorized form of this denominator, it’s easy to see
there are actually two values of 𝑥 for which this denominator is zero, two and negative two. The domain is therefore the set of real numbers minus the set containing
negative two and two.
So this is our answer: For every value of 𝑥 in the domain of a function, 𝑓 of
𝑥 is equal to 𝑥 over 𝑥 minus two. However, the domain of the function is the real numbers
minus negative two and two. Had the function originally been defined as just 𝑥 over 𝑥 minus two, the
domain would’ve been bigger. It would’ve been the real numbers minus just the set of two. If the function had originally been defined as just 𝑥 over 𝑥 minus two, then
certainly the domain would be just the real numbers minus the set of two. Had we not excluded this negative two from the domain, then we wouldn’t be
allowed to have cancelled 𝑥 plus two on the numerator and the denominator because in effect
we would’ve been dividing by zero on both the top and bottom.
So while it’s possible often to simplify a rational function, the simplification
process doesn’t change the domain of the function. And so when talking about the domain of the function, you should look at the
original statement, the original definition of the function and not the simplified version that
you get after simplification.