How do you find the domain and range of #(x+2)/(x^2-1)#?
Finding the Domain
The domain is where the function is defined in terms of real numbers.
The only thing that might make this function undefined is when the denominator equals zero. So let's solve for when that is the case:
This means that our domain is:
Finding the Range
You can usually reason your way to finding the range, but this function has some quite odd behaviour, so we're going to use a bit of a classic method.
The range of the function is the same as the domain of the inverse of the function. So let us find the inverse. We can do this by setting the function equal to
This is a quadratic in
The range of our original function is the same as the domain of this inverse function, so we want to look at when this might be undefined. The function is not defined if the bit in the square root is negative, so we can solve the following inequality to find out when that's the case:
We can use the quadratic formula to solve for the zeroes and factor like so:
For the product to be negative, only one of the factors may be negative, so we want to find where that's the case. There are three possible intervals where that could be the case, and they are between the zeroes (since that is where the function could go negative). The only one of these intervals that make one of the factors negative is:
You might think that the denominator equalling zero would make the function undefined - and it does, but that doesn't mean the range doesn't include those values.
This is because the division by
All this knowledge allows us to state the range of the function as follows: