The numerator is (x−1)(x+1) and the denominator (x−2)(x+1), which is zero at x=2 and x=−1. The domain excludes both, and it is read before anything cancels.
x2−x−2x2−1(x−2)(x+1)(x−1)(x+1)
2
Cancel to find the hole
x+1 cancels, so there is a hole at x=−1. For every other x the function equals (x−1)/(x−2), so the hole’s height is that value at −1.
−1−2−1−1=32
3
Find the vertical asymptote
x−2 stays in the denominator, and the numerator is 1 at x=2, so x=2 is a vertical asymptote. Just left of 2 the values fall toward −∞, and just right of 2 they rise toward +∞.
4
Find the horizontal asymptote
Numerator and denominator both have degree 2 and leading coefficient 1, so far out the quotient approaches 1/1. The horizontal asymptote is y=1.
5
Find the intercepts
The simplified numerator x−1 is zero at x=1, the x-intercept. The y-intercept is f(0).
0−20−1=21
Result
Domain x=−1,2. Hole at (−1,2/3), vertical asymptote x=2, horizontal asymptote y=1, intercepts (1,0) and (0,1/2).
Your turn
1. One like the example
Find the domain, the hole and the asymptotes of g(x)=(x2−4)/(x2+x−2).
Factor, (x−2)(x+2) over (x+2)(x−1). The factor x+2 cancels and leaves (x−2)/(x−1), so x=−2 is a hole at height (−4)/(−3)=4/3. The factor x−1 stays, so x=1 is a vertical asymptote. Equal degrees with leading coefficients 1 and 1 give y=1.
x2+x−2x2−4(x+2)(x−1)(x−2)(x+2)x−1x−2
2. A variation
Find the vertical and horizontal asymptotes and the intercepts of g(x)=(3x+1)/(x−4).
Show the answer and explanation
x=4 and y=3. The intercepts are (−1/3,0) and (0,−1/4).
The denominator is 0 at x=4 and the numerator is 13 there, so nothing cancels and x=4 is a vertical asymptote. Both degrees are 1, so the horizontal asymptote is y=3/1=3. The top is 0 at x=−1/3, and g(0)=1/(−4)=−1/4.
g(x)=x−43x+1g(0)=−41
3. Somewhere new
A print shop pays $500 to set up a job and $4 for each poster. The average cost per poster for x posters is C(x)=(500+4x)/x dollars. Find C(100) and the horizontal asymptote, and say what the asymptote means.
Show the answer and explanation
C(100)=$9. The asymptote is y=4, so the average cost falls toward $4 a poster without reaching it.
C(100)=900/100=9. Writing C(x)=500/x+4 shows the setup cost spread over more posters, and 500/x shrinks toward 0 as x grows. Equal degrees give the same answer, 4/1=4. For every x>0 the average stays above $4.
C(x)=x500+4xC(x)=x500+4C(100)=9
Keep exploring
Open the limit at the hole in Math, then change x→−1 to x→2− and the 2/3to −∞: it still reads ✓. From the right, x→2+, the limit is ∞. Outputs that run off in opposite directions are what a vertical asymptote looks like.