A rational function is a quotient of polynomials, f(x)=p(x)/q(x). Factor first: a factor that cancels completely leaves a hole, and a zero of the denominator that remains gives a vertical asymptote. Comparing the degrees of p and q gives the horizontal asymptote, or a slant asymptote, that describes the end behavior.
Take f(x)=1/(x−2) and move xtoward 2. At x=2.1 the denominator is 0.1 and f(2.1)=10. At 2.01 the output is 100, and at 2.001 it is 1,000. From the left, f(1.99)=−100. The closer x gets to 2, the larger the outputs grow, positive on the right and negative on the left. At x=2 itself there is no output.
The graph runs up and down beside the line x=2 without ever touching it. That line is a vertical asymptote.
Now go far out. At x=102,f(102)=1/100=0.01, and at x=1,002 it is 0.001. The outputs shrink toward 0, and the graph flattens toward the line y=0, a horizontal asymptote.
Compare g(x)=(x2−4)/(x−2). It also has no value at 2. But its top is (x−2)(x+2), so for every other x,g(x)=x+2. Near 2 its outputs approach 4, not infinity. Its graph is the line y=x+2 with one point missing, a hole at (2,4).
f(x)=x−21,g(x)=x−2x2−4
Values of f(x)=1/(x−2) near 2
x
1.9
1.99
2
2.01
2.1
f(x)
−10
−100
none
100
10
The rule
Holes, vertical asymptotes and end behavior
A rational function is a quotient of two polynomials, f(x)=p(x)/q(x), where q is not the zero polynomial. Its domain is every x with q(x)=0.
Factor p and q, and cancel any factor they share. If a factor x−c cancels completely, the graph has a hole at x=c. If x−c is still in the denominator after cancelling, the line x=c is a vertical asymptote, and near c the outputs grow without bound.
The end behavior comes from the degrees of p and q, as the table shows. A horizontal asymptote y=L means f(x) approaches L as x moves far to the left or right. A slant asymptote is a line y=mx+b that the graph approaches in the same way.
The x-intercepts are the zeros of the simplified numerator that lie in the domain. The y-intercept is f(0), when 0 is in the domain.
Slant asymptote y= the quotient from polynomial division
degp>degq+1
No horizontal or slant asymptote
Why it works
Why small denominators blow up and large inputs level off
Near a zero c of the denominator that survives cancelling, the bottom is a tiny number and the top is not. Dividing by smaller and smaller numbers makes the quotient grow without bound, as 1/0.01=100 and 1/0.001=1,000.
When the factor x−c cancels, the tiny numbers on top and bottom divide out. What remains is defined at c, so the outputs approach its value there. Only the single point at c is missing.
Far out, divide the top and the bottom by the highest power of x in the denominator. For (3x2+1)/(x2−4), dividing by x2 gives (3+1/x2)/(1−4/x2). As x grows, the small fractions shrink to 0 and the quotient approaches 3/1=3. With a lower degree on top, every term of the top keeps an x below it, and the quotient approaches 0. With one degree more on top, division gives a linear quotient plus a remainder fraction that shrinks to 0.
x2−43x2+1=1−x243+x21
The method
Analyze a rational function in seven steps
The table works through f(x)=(2x2−8)/(x2−x−6). Find the domain from the original denominator, before cancelling anything, so that no excluded value is lost.
Step 7 decides which way the graph goes beside each vertical asymptote. Try one input just to each side and read the sign.
x2−x−62x2−8=x−32(x−2),x=−2
x2−x−62x2−8=x−32(x−2)x=−2
Analyzing f(x)=(2x2−8)/(x2−x−6)
Step
What to do
For this f
1
Factor the top and the bottom
2(x−2)(x+2) over (x−3)(x+2)
2
Find the domain
x=3 and x=−2
3
Cancel, and mark each hole
x+2 cancels; hole at (−2,8/5)
4
Mark each vertical asymptote
x=3
5
Compare degrees for the end behavior
Both 2, so y=2/1=2
6
Find the intercepts
x-intercept 2; y-intercept 4/3
7
Test inputs beside each asymptote
f(2.9)=−18 and f(3.1)=22
Where it breaks
Where it breaks
Not every zero of the denominator is a vertical asymptote. (x2−9)/(x−3) is x+3 with a hole at (3,6), and its graph is a line with one point missing.
A hole is still excluded. The simplified formula x+3 has a value at 3, but the original function does not.
The ratio of leading coefficients is the asymptote only when the degrees are equal. (3x+1)/(x2+1) has the asymptote y=0, not y=3.
A graph may cross its horizontal asymptote, which describes only the far left and right. x/(x2+1) crosses y=0 at the origin. A graph never crosses a vertical asymptote, where the function has no value.
When the top’s degree exceeds the bottom’s by two or more, there is no horizontal or slant asymptote. Division still describes the ends, and (x3−1)/(x−2) follows the parabola y=x2+2x+4 far out.
A zero of a cancelled factor is not an x-intercept. In (x2−1)/(x2−x−2),x=−1 makes the top 0, but it is the hole.
Check your answer
Check your answer
An asymptote is a claim about inputs near a number or far out, so try inputs there.
Test an input just beside each vertical asymptote. For (x2−1)/(x2−x−2) the simplified form is (x−1)/(x−2), and it gives 11 at x=2.1and −9 at x=1.9. The signs must match the sketch.
Test a large input against the horizontal asymptote. The same function gives 99/98≈1.0102 at x=100, just above y=1.
Multiply back after a division. x+1+2/(x−1) means x2+1=(x−1)(x+1)+2, and the right side expands to x2+1.
To have Chalk check a simplification, put the function on the first row of a Math box and the factored and cancelled forms below. The cancelled row reads ✓ “Equal wherever both are defined.”, with a note that the earlier line excludes x=−1. That note is the hole. A division row reads “Equivalent.” A wrong remainder reads ✗, as in “The two sides differ at a point Chalk checked.” For a value, define f(x) on the first row and write f(0)=1/2 below it. To test a crossing, solve f(x)=L as an equation, with the rows (2x2−8)/(x2+1)=2, then 2x2−8=2x2+2,then −8=2. The last row reads ✓ “Same solutions: none, so the equation has no solution.” Chalk reads the values and the algebra, not a sentence naming an asymptote.
In f(x)=(x−5)/(x−5)2, a factor x−5 cancels. Does the graph have a hole at x=5?
No, it has a vertical asymptote there. Cancelling one copy leaves 1/(x−5), so a factor x−5 is still in the denominator, and near 5 the outputs grow without bound. A hole needs the factor to cancel completely, so that what remains is defined at 5. Count the copies on the top and the bottom, not only whether a factor appears in both.
Asymptotes as limits, and division in reverse
Asymptotes are statements about limits. A vertical asymptote at c says the outputs grow without bound as x approaches c. A horizontal asymptote y=L says f(x) approaches L as x grows without bound. A Math box checks both kinds of limit.
Partial fractions run addition in reverse. 2/(x2−1)=1/(x−1)−1/(x+1), and calculus uses such splits to integrate rational functions.
Multiplicity matters here as it does for zeros. Beside a vertical asymptote from a squared factor, as in 1/(x−2)2, the outputs are positive on both sides. The graph shoots up on both sides instead of splitting into up and down.
Common mistakes
Calling every zero of the denominator a vertical asymptote. In (x2−1)/(x2−x−2) the factor x+1 cancels, so x=−1 is a hole and only x=2 is an asymptote.
Cancelling a factor and forgetting its exclusion. (x2−9)/(x−3) equals x+3 only for x=3, and its graph has a hole at (3,6).
Using the ratio of leading coefficients when the degrees differ. For (3x+1)/(x2+1) the bottom has the higher degree, so the asymptote is y=0, not y=3.
Believing a graph can never cross its horizontal asymptote. x/(x2+1) crosses y=0 at the origin, because the asymptote describes only the far ends.
Taking the zero of a cancelled factor as an x-intercept. In (x2−1)/(x2−x−2) the top is 0at −1,but −1 is excluded, so the only x-intercept is (1,0).
Key terms
Rational expression
A fraction whose numerator and denominator are polynomials. Any value that makes the original denominator zero stays excluded, even if that factor cancels when you simplify.
Vertical asymptote
A vertical line x=a that the graph approaches as the function’s values grow without bound near a, often where a denominator is zero. The graph is not joined across it.
Horizontal asymptote
A horizontal line y=L that the graph approaches as x→∞ or x→−∞. Unlike a vertical asymptote, the graph can cross it.
Removable discontinuity
A hole in a graph: the function has a limit at the point but is undefined there or has a different value. Redefining the value to match the limit removes the hole.
Slant asymptote
A slanted line y=mx+b that a graph approaches as x→±∞. A rational function has one when the numerator’s degree is one more than the denominator’s, and long division finds it.
End behavior
How a function behaves as x tends toward positive or negative infinity. For a polynomial, the degree and leading coefficient determine the eventual directions of both ends.
Work through an example
Find the domain, hole, asymptotes and intercepts of f(x)=(x2−1)/(x2−x−2).