Graphs of Rational Functions
A rational function is one polynomial divided by another. This page focuses on the simplest interesting kind, a linear expression over a linear expression, like . Once you can find its two asymptotes and its intercepts, you can sketch it in a minute. You’ll also see what happens when the top and bottom share a factor.
Key ideas
Section titled “Key ideas”The form
Section titled “The form”Its graph looks like a transformed : two branches separated by a vertical asymptote, both levelling off toward a horizontal asymptote.
Vertical asymptote
Section titled “Vertical asymptote”The function is undefined where the denominator is . If the numerator is not also there, the graph has a vertical asymptote:
Near the asymptote, the numerator is close to a fixed number and the denominator is tiny, so is huge, positive on one side and negative on the other. Test a value just to each side to see which.
Horizontal asymptote
Section titled “Horizontal asymptote”For very large (positive or negative), the constants and hardly matter, so
The horizontal asymptote is , the ratio of the leading coefficients. For example, for , very close to .
Intercepts, domain, and range
Section titled “Intercepts, domain, and range”- -intercept: the fraction is when the numerator is : .
- -intercept: (if ).
- Domain: .
- Range: (as long as the top and bottom have no common factor; otherwise the graph is a horizontal line with a hole).
Increasing or decreasing
Section titled “Increasing or decreasing”On each branch, a graph of this type is either always increasing or always decreasing, and both branches do the same. Once you have the asymptotes and one or two points, the sketch shows you which.
If the numerator and denominator share a factor, cancel it, but remember the restriction. Where the cancelled factor is , the graph has a hole (a single missing point), not an asymptote. For example,
has a vertical asymptote but only a hole at (Example 3).
Oblique asymptotes (a preview)
Section titled “Oblique asymptotes (a preview)”If the numerator’s degree is one more than the denominator’s, use polynomial division to split off a linear part:
For large , the fraction is almost , so the graph gets closer and closer to the slanted line . That line is an oblique asymptote. There’s no horizontal asymptote in this case.
Steps for sketching
Section titled “Steps for sketching”- Factor and cancel any common factors (note the holes).
- Draw the vertical and horizontal asymptotes as dashed lines.
- Plot the intercepts.
- Test a point just to each side of the vertical asymptote, and draw each branch approaching the asymptotes.
Worked examples
Section titled “Worked examples”Example 1: Sketching from the key features
Section titled “Example 1: Sketching from the key features”Sketch . State the domain, range, intercepts, positive and negative intervals, and intervals of increase or decrease.
Solution.
- Vertical asymptote: , so . (The numerator is there.)
- Horizontal asymptote: .
- -intercept: , so .
- -intercept: .
- Near : and . So the graph goes up on the right of the asymptote and down on the left.
Domain: . Range: .
The sign changes only at the -intercept and the asymptote. From the graph (or test points), for or , and for .
The graph is decreasing on both branches: for and for .
Example 2: Different leading coefficients
Section titled “Example 2: Different leading coefficients”Find the key features of and describe its graph.
Solution.
- Vertical asymptote: , so .
- Horizontal asymptote: .
- -intercept: . -intercept: .
- Near the asymptote: , and .
For very large , and .
Putting this together: the left branch starts just above on the far left and rises toward the top beside . The right branch starts very low beside , rises through and , and levels off just below .
Domain: . Range: . The graph is increasing on both branches. It is positive for or and negative for .
Example 3: A graph with a hole
Section titled “Example 3: A graph with a hole”Sketch .
Solution. Factor and cancel:
- The factor cancelled, so there’s a hole at . Its height comes from the simplified form: . The hole is at .
- Vertical asymptote: . Horizontal asymptote: .
- -intercept: . -intercept: .
Domain: . Range: . (The graph reaches the height only at , where the hole is.)
Example 4: Writing an equation from features
Section titled “Example 4: Writing an equation from features”Find an equation of the form with vertical asymptote , horizontal asymptote , and -intercept .
Solution. The -intercept means the numerator has the factor . The asymptote means the denominator has the factor . So try
The horizontal asymptote is the ratio of leading coefficients, , so :
Check: numerator at ✓; denominator at (numerator ) ✓; leading coefficients give ✓.
Common mistakes
Section titled “Common mistakes”Setting the numerator to zero to find the vertical asymptote. The numerator gives the -intercept. The denominator gives the vertical asymptote.
Using the constants for the horizontal asymptote. For , the asymptote is (leading coefficients), not . That second number is the -intercept.
Drawing an asymptote where a factor cancels. If a factor cancels, it leaves a hole. Factor first, every time.
Forgetting the hole in the domain and range. The hole’s -value is still excluded from the domain, and its -value is missing from the range (unless the graph reaches that height somewhere else).
Guessing which way each branch goes. Don’t rely on memory: test one value just left and one just right of the vertical asymptote.
Thinking a graph can never cross its horizontal asymptote. For the functions on this page it doesn’t, but for other rational functions it can, especially for small . A horizontal asymptote describes the far-left and far-right behaviour only.
Practice
Section titled “Practice”1. (Warm-up) State the asymptotes, domain, and range of .
Solution
Vertical asymptote ; horizontal asymptote .
Domain: . Range: .
2. (Warm-up) Find the intercepts of .
Solution
-intercept: , so .
-intercept: .
3. (Core) For , find the asymptotes, intercepts, positive and negative intervals, and intervals of increase or decrease. Sketch the graph.
Solution
- Vertical asymptote ; horizontal asymptote .
- -intercept ; -intercept .
- and : up on the right of , down on the left.
Positive for or ; negative for .
The left branch comes in just below , passes through and , and drops beside . The right branch comes down from the top and levels off above . It’s decreasing on both branches.
4. (Core) Sketch , and state where it is increasing or decreasing.
Solution
- Vertical asymptote: , so .
- Horizontal asymptote: .
- -intercept ; -intercept .
- Test: at , ; at , .
- Far right: at , , just above . Far left: at , , just below .
The right branch comes down from the top beside , passes through and , and levels off just above . The left branch starts just below on the far left and drops toward the bottom beside .
So the graph is decreasing on both branches: for and for .
5. (Core) Find any holes and asymptotes of , and state the domain.
Solution
Hole at : , so the hole is at .
Vertical asymptote ; horizontal asymptote .
Domain: .
6. (Core) Let . Find , , , , and . What do these values tell you about the graph?
Solution
As approaches from the left, grows without bound; from the right, it drops without bound. So is a vertical asymptote, with the left branch going up and the right branch going down. For large , is close to , which is the horizontal asymptote .
7. (Core) Write an equation of a function of the form with vertical asymptote and horizontal asymptote , whose graph passes through the origin.
Solution
Through the origin means an -intercept at , so the numerator is . The asymptote gives the denominator . The horizontal asymptote gives :
Check: at , ✓; denominator at ✓; ratio of leading coefficients ✓.
8. (Challenge) Use long division to write as a linear function plus a fraction. What happens to the graph of for very large positive and negative ?
Solution
Divide by : the quotient is and the remainder is . Check: ✓.
For very large , is close to , so the graph gets closer and closer to the line , an oblique asymptote. (For large positive the fraction is positive, so the graph is just above the line; for large negative it is just below.) There’s also a vertical asymptote at .
9. (Challenge) For which value of does have a hole instead of a vertical asymptote? Describe the graph for that value of .
Solution
A hole needs the numerator to be at too: , so .
Then
The graph is the horizontal line with a hole at .