# Difference between revisions of "005 Sample Final A, Question 20"

Question Consider the following rational function,

${\displaystyle f(x)={\frac {x^{2}+x-2}{x^{2}-1}}}$

a. What is the domain of f?
b. What are the x and y-intercepts of f?
c. What are the vertical and horizontal asymptotes of f, if any? Does f have any holes?
d. Graph f(x). Make sure to include the information you found above.

Foundations:
1) What are the asymptotes and zeros?
1) The vertical asymptote corresponds to zeros of the denominator. So there is a vertical asymptote at x = -1. The zero is at (1, 0). The horizontal asymptote is the ratio of leading coefficients. So the horizontal asymptote is ${\displaystyle y={\frac {1}{2}}}$

Solution:

Step 1:
We start by finding the asymptotes. The vertical asymptote corresponds to zeros of the denominator. So the vertical asymptote is at x = -1. They horizontal asymptote is determined by degree of the numerator and degree of the denominator. Since both of those values are 1, the horizontal asymptote is the ratio of leading coefficients. This means the horizontal asymptote is ${\displaystyle y={\frac {1}{2}}}$
Step 2:
Now we observe that the zero is at (1, 0), and proceed by looking at the intervals created by removing x = -1 and x = 1. This creates 3 intervals: ${\displaystyle (-\infty ,-1)}$, ${\displaystyle (-1,1)}$, and ${\displaystyle (1,\infty )}$
Step 3:
Now pick a number from each interval: -2, 0, 2 and find the value of the function for each number selected.
${\displaystyle x=-2:}$     ${\displaystyle {\frac {-2-1}{2(-2)+2}}={\frac {3}{2}}}$
${\displaystyle x=0:}$     ${\displaystyle {\frac {-1}{2}}}$
${\displaystyle x=2:}$     ${\displaystyle {\frac {2-1}{2(2)+2}}={\frac {1}{6}}}$
Step 4:
The last check is whether or not the function intersects its horizontal asymptote. So check: ${\displaystyle {\frac {1}{2}}={\frac {x-1}{2x+2}}}$.

${\displaystyle {\begin{array}{rcl}{\frac {1}{2}}&=&{\frac {x-1}{2x+2}}\\2x+2&=&2(x-1)\\2x+2&=&2x-2\\4&=&0\end{array}}}$

Since this is absurd, the function never intersects its horizontal asymptote. Now we graph while respecting the asymptotes