A graphing calculator draws a rational function by plotting many points and joining them. Near a vertical asymptote it may connect a huge positive value to a huge negative one with a steep segment that is not part of the graph, and it usually cannot show a hole at all. A sketch built from the function’s features has neither problem. Most of this page follows one function,
Key terms
Domain and holes
Definition Let , where and are polynomials and is not the zero polynomial. The domain of is the set of real numbers with , and it stays the same after any simplification. Factor and and cancel every common factor to get the reduced form , in which and share no factor of positive degree. If is excluded from the domain of but , the graph has a hole at the point
If , the line is a vertical asymptote.
In plain words Find where the original denominator is zero before you cancel anything. A zero that cancels away leaves one missing point in the graph, and a zero that survives cancellation gives a vertical asymptote.
Example The running function factors as
Top and bottom share no factor, so this is already the reduced form. The domain is every real number except and . There are no holes, and the lines and are vertical asymptotes.
Intercepts
Definition The -intercept of the graph of is the point , which exists only when is in the domain. The -intercepts are the points with in the domain and . In terms of the reduced form , these are exactly the real zeros of that lie in the domain of . A number where the original numerator and denominator are both zero is never an -intercept, because it is not in the domain. It gives a hole when is not zero there and a vertical asymptote when is zero there. At an -intercept the graph crosses the axis when the zero has odd multiplicity in and touches the axis without crossing when the multiplicity is even.
In plain words Put into the function to see where the graph meets the -axis. Set the reduced numerator equal to zero to see where it meets the -axis, and throw out any value that is not in the domain.
Example At zero the function gives , so the -intercept is . The numerator is zero at and at , both in the domain, so the -intercepts are and . Each zero has multiplicity , so the graph crosses the axis at both.
Test intervals
Definition Mark on the number line the real zeros of and of from the reduced form. These cut points split the line into open intervals, called test intervals. On each test interval the reduced form is continuous and never zero, so it keeps one sign there. Its sign at any single test value in the interval is its sign on the whole interval, and has that same sign wherever it is defined in the interval.
In plain words A rational function can switch sign only at a zero or at a vertical asymptote. Between those places one test value tells you whether the graph runs above or below the -axis.
Example For the cut points are , , and .
| Interval | Test value | Value of | Graph runs |
|---|---|---|---|
| above the axis | |||
| below the axis | |||
| above the axis | |||
| below the axis | |||
| above the axis |
Every cut point here has multiplicity , so the sign flips at each one.
Approaching a vertical asymptote
Definition Let be a vertical asymptote, so that and in the reduced form. As approaches from either side, grows without bound, and the sign of on the neighboring test interval decides the direction. If is positive just to the right of , then as , and if is negative there, then as . The left side works the same way with . When is a zero of of odd multiplicity the two sides go in opposite directions, and when the multiplicity is even they go the same way.
In plain words Next to a vertical asymptote the graph shoots up or down along the line. The test intervals already tell you which way, so no new work is needed.
Example The values of are negative on and positive on , so
Around the values are negative on and positive on , so the graph falls toward on the left of the line and comes down from on the right. A quick check agrees, since and .
Approaching a horizontal or slant asymptote
Definition Let be the horizontal asymptote or the slant asymptote of the graph of . Subtracting in the horizontal case, or dividing by in the slant case, shows that for every in the domain of
where is a polynomial with . When is not the zero polynomial, this fraction keeps one sign for all large positive and one sign for all large negative . The graph approaches the asymptote from above as if the sign for large positive is positive, and from below if it is negative. The sign for large negative decides the side as in the same way.
In plain words Look at the leftover fraction between the function and its asymptote. Its sign far out tells you on which side of the line the graph runs, and the two ends can differ.
Example The degrees of the numerator and denominator of are equal and the leading coefficients are and , so is the horizontal asymptote. Then
For large positive the top and bottom are both positive, so the graph lies above , and indeed . For large negative the top is negative and the bottom positive, so the graph lies below the line, and .
Crossing a horizontal asymptote
Definition A horizontal asymptote describes the graph only as or , so the graph may cross it at moderate values of . Let be in reduced form and not constant, with horizontal asymptote . The graph meets the line exactly at the points where is in the domain of and
The polynomial is not the zero polynomial and has degree less than , so there are at most such points. Near such an the difference has the sign of times the fixed sign of , so the graph crosses the line at when is a zero of odd multiplicity of , and it touches the line without crossing when the multiplicity is even. The graph meets a slant asymptote in the same way, at the real zeros of the remainder that lie in the domain. A vertical asymptote is never crossed by the graph of a rational function, because is not in its domain.
In plain words Set the function equal to the height of the asymptote and solve. Each solution in the domain is a point where the graph meets the line, even though far out the graph only approaches it.
Example For in the domain of , the equation means
The terms cancel and , so , which is in the domain. The graph crosses at the point . This matches the previous section, where the numerator of changes sign exactly at . On the graph comes down from , passes through , crosses the asymptote at and reaches the -axis at .
Putting the graph together
Definition A sketch of a rational function is complete when it shows
- the domain, with every hole drawn as an open dot,
- the intercepts,
- the sign of on each test interval,
- each vertical asymptote, with the direction of the graph on both sides of it,
- the horizontal or slant asymptote, the side from which the graph approaches it at each end, and any points where the graph crosses it.
On each interval of the domain the graph is then drawn as one unbroken smooth curve that agrees with all of these facts, with a few extra plotted points wherever the shape is unclear.
In plain words Each step adds one fact about the graph. Together they fix the overall shape, so the drawing becomes a matter of connecting what you already know.
Example Take
The domain excludes and . The factor cancels, leaving the reduced form , so there is a hole at with height , and is a vertical asymptote. The graph passes through the origin, which is the -intercept, and the -intercepts are and .
The cut points , and give the signs. The test values , , and show that is negative on , positive on , negative on and positive on . So as and as .
Division gives , so for in the domain
The slant asymptote is . The leftover fraction is positive for and negative for , so the graph runs above the line on the far right and below it on the far left. The fraction is never zero, so the graph never crosses the slant asymptote.
Putting it together, the graph comes in from the lower left just under the line , rises through the open dot at to the origin, makes a small hump above the axis between and , and drops through down along . To the right of it comes down from , turns, and then follows from above.
Check yourself
- Where does the graph of the function below cross its horizontal asymptote?
Show the answer
The degrees are equal and the leading coefficients are and , so the horizontal asymptote is . Subtracting it gives
The denominator is never zero, and the numerator is zero only at , where it changes sign. So the graph crosses its asymptote exactly once, at .
- Describe the graph of the function below near and far out to the left and to the right.
Show the answer
The denominator is positive for every and the numerator is close to near , so from both sides of the vertical asymptote . The degree of the numerator is smaller, so is the horizontal asymptote. The function has the sign of , so the graph approaches from above as and from below as . It crosses this asymptote once, at the -intercept .
- Find the holes, intercepts and asymptotes of the function below.
Show the answer
Factoring gives
so the domain excludes and . The reduced form is . It equals at , so there is a hole at , and is the vertical asymptote. The only intercept is the origin. The horizontal asymptote is , and the graph never crosses it, since has no solution.