Sketching a rational function is not an art project and it is not guesswork. It is a checklist. Work through the same steps in the same order every time and the graph assembles itself: the asymptotes build a frame, the intercepts pin the curve to real points, and a sign analysis tells you which of the regions between the asymptotes each branch lives in. Do the steps out of order and you will end up erasing.
The procedure
- Factor the numerator and denominator completely.
- State the restrictions (zeros of the original denominator) and simplify if anything cancels.
- Find the intercepts. -intercepts come from zeros of the simplified numerator; the -intercept is , if is in the domain.
- Find the asymptotes. Non-cancelling denominator factors give vertical asymptotes; the degree comparison gives the horizontal or oblique asymptote.
- Find any holes and their heights from the simplified function.
- Sign analysis. Mark every -intercept and every vertical asymptote on a number line and test the sign of in each interval.
- Sketch, drawing each branch so it approaches its asymptotes and passes through the known points.
Intercepts
A fraction equals zero only when its numerator equals zero, so the -intercepts are the zeros of the numerator — but only those that survive as part of the domain. A numerator zero that was also a denominator zero is a hole, not an intercept, so it gets an open circle and no crossing. The -intercept is simply , and it exists unless happens to be a restriction.
Sign analysis: the step people skip
The critical values are the -intercepts and the vertical asymptotes. Between consecutive critical values the function cannot change sign, because it can only cross the axis at an intercept and can only jump at an asymptote. So pick one convenient test value inside each interval, substitute it into the factored form, and record only the sign of each factor — you never need the actual number. An even number of negative factors gives a positive result.
| Interval | x − 1 | x + 2 | f(x) | Position |
|---|---|---|---|---|
| − | − | + | above the x-axis | |
| − | + | − | below the x-axis | |
| + | + | + | above the x-axis |
The sign chart also tells you the direction the curve takes at each vertical asymptote. Just to the left of the function is positive, so that branch climbs to ; just to the right it is negative, so that branch plunges to . You never need to guess which way a branch goes.
Behaviour near a hole
A hole changes almost nothing about the shape. The curve approaches the hole smoothly from both sides at the same height, and you simply leave the single point open. Do not break the curve, do not send it to infinity, and do not draw a vertical line. If you sketch the simplified function and then erase one point, you have drawn the original correctly.