- Home
- English lessons
- Precalculus
- Rational functions
// Chapter 27.5 · Precalculus · Rational Functions
Rational Functions: Vertical, Horizontal and Slant Asymptotes, Holes and How to Graph Them
A rational function is a polynomial divided by a polynomial. It looks like an ordinary fraction, yet its graph has features polynomials never have: asymptotes that the graph approaches without end, and holes where a single point is missing. Such functions turn up often, in the average cost per item that falls as production grows, in intensity that weakens with distance, and in the transfer functions of control systems. This page gives a seven-step graphing method that works for every exercise, and an analyzer that checks your answer immediately.
- Cancel common factors first: fully cancelled → hole · left in the denominator → vertical asymptote
- Horizontal asymptote: deg top < deg bottom → y = 0 · equal → ratio of leading coefficients
- Top degree one more than bottom → slant asymptote = quotient of long division
- is stretched and shifted, with asymptotes
The reciprocal function and its transformations
The graph of is a hyperbola with branches in the first and third quadrants. Near x = 0, grows without bound; for large x it shrinks almost to zero, so both axes are asymptotes. Every rational function of degree one over degree one can be rewritten by division as a transformation of , which reveals its asymptotes and shape at once. is positive on both sides of zero, so both of its branches lie above the x-axis.
R1 Rational function
R2 Transformed reciprocal
, so HA , VA
Write as and give its asymptotes
Make the numerator contain :
That is stretched by 5, reflected in the x-axis, shifted left 1 and up 2
VA , HA ; the branches sit upper-left and lower-right of where the asymptotes meet
Holes and the three kinds of asymptote
Before looking for asymptotes, always factor the numerator and denominator and cancel common factors. A factor that cancels completely leaves a hole, whose y-coordinate comes from the reduced formula; a factor that remains in the denominator gives a vertical asymptote. For the ends of the graph, compare degrees, just as with polynomials, because the leading terms take over.
R3 Hole
R4 Vertical asymptote
R5 Horizontal asymptote
R6 Slant asymptote
Analyse
Factor: ; cancelling gives for
Hole at x = 2: · VA from the remaining factor:
Equal degrees (2 and 2): HA
x-intercept from the reduced numerator: · y-intercept
Hole · VA · HA · intercepts ,
Find the asymptotes of
The numerator degree 2 is one more than the denominator degree 1 ⇒ slant asymptote, no horizontal one
Long division: , so
For large , and the graph approaches
VA · slant asymptote · no x-intercept ·
Where does cross its horizontal asymptote?
HA: equal degrees, · the denominator is never zero, so there is no VA
Solve
At ; further left the graph approaches y = 2 from above
Graphing a rational function in 7 steps
- Factor numerator and denominator; write the domain
- Cancel common factors and record each hole with its y-coordinate
- Find vertical asymptotes from the zeros of the remaining denominator
- Find the horizontal or slant asymptote by comparing degrees
- Find the x-intercepts (zeros of the remaining numerator) and the y-intercept (if 0 is in the domain)
- Make a sign chart from the zeros of the numerator and the denominator, to know where the graph is above or below the axis
- Sketch along the asymptotes and draw an open circle at each hole
R7 Sign chart
A factor with an even power does not change the sign, in the numerator or in the denominator
Rational function analyzer
Type the numerator and denominator as polynomials or in factored form, for example (x-1)(x+2), or as coefficients 1, 0, -4. The analyzer cancels common factors, finds holes, all three kinds of asymptote, intercepts and the sign chart, and draws each branch separately at the vertical asymptotes, so there are no false vertical lines, a common fault of general graphing tools.
Rational inequalities and an application
Solve
Move everything left:
The numerator −5 is always negative, so the fraction is when the denominator is positive:
. Cross-multiplying at the start gives , always true, and the wrong answer “all x except −2”
A factory has fixed costs of 5,000 and a variable cost of 20 per item. What is the average cost per item when x items are made, and what value does it approach?
Total cost ; average cost
The horizontal asymptote means that however many items are made, the average never drops below 20
At 1,000 items the average is
, approaching 20 per item
Practice (with answers)
1Asymptotes of
VA from the denominator · equal degrees
,
2Hole of
, and no asymptote: the graph is a line with one point missing
3Horizontal asymptote of
Smaller degree on top
4Slant asymptote of
Synthetic division by c = −2: 2 | −1 | remainder 1 ⇒
5Solve
Cut points −4, 1; the outer intervals are positive
or
6A rational function with VA , HA , through the origin
Form ; through (0, 0):
Read next
- 27.6 Inverse functions — the inverse of is also rational
- Inverse Laplace transform by partial fractions — splitting rational functions in engineering
Frequently asked questions
What is the difference between a hole and a vertical asymptote?
Both come from a value that makes the denominator zero. If that factor cancels completely with the numerator, the graph has a single missing point, a hole, because the function still approaches a finite value there. If the factor is still in the denominator after cancelling, the function blows up and there is a vertical asymptote.
What are the rules for horizontal asymptotes?
Compare the degree n of the numerator with the degree m of the denominator: n < m gives y = 0; n = m gives y = ratio of the leading coefficients; n > m gives no horizontal asymptote, and if n = m + 1 there is a slant asymptote equal to the quotient from long division.
Can a graph cross its horizontal asymptote?
Yes. A horizontal asymptote only describes what happens as x goes to plus or minus infinity; in the middle the graph may cross it. Solve f(x) = L to find out. A graph never crosses a vertical asymptote, because that x is not in the domain.
Why does cross-multiplying a rational inequality go wrong?
The denominator may be positive or negative depending on x, and multiplying by a negative reverses the inequality. Move everything to one side, combine into one fraction and use a sign chart. Zeros of the denominator are never solutions.