Skip to main content
Mathovia

Algebra / Common Graphs

Rational Functions: Asymptotes, Holes, and Graphing

A rational function is one polynomial divided by another, and everything distinctive about its graph comes from one question: what happens where the denominator is zero? This lesson covers the parent reciprocal curve, finding vertical asymptotes, the three degree rules for horizontal asymptotes, telling a hole from an asymptote, and a six-step routine for sketching any rational function.

Written by
Zohaib
Founder & Mathematics Content Creator
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication.

Every graph so far has been drawn in one unbroken stroke. Rational functions break that habit: divide by something that can reach zero and the curve tears apart, flying off toward invisible lines it never quite touches.

General form of a rational function
A rational function is one polynomial divided by another

What Counts as Rational

A rational function is one polynomial over another:

The word is from ratio, not from rational numbers. , and all qualify.

The parent curve is the reciprocal function .

The graph of y equals one over x, with two branches approaching the vertical line x equals zero and the horizontal line y equals zero
Two branches, and two lines the curve approaches but never reaches.

Both dashed lines are asymptotes — lines the graph gets arbitrarily close to without meeting. That behaviour is the signature of the whole family.

The Domain

Everything starts here: set the denominator to zero and exclude what you find.

For , solving gives , so the domain is all reals except and :

The numerator never restricts anything — a zero on top is a perfectly good output. More on this in domain.

Vertical Asymptotes

A vertical asymptote occurs where the denominator is zero and the factor does not cancel.

The graph of y equals (2x plus 1) over (x minus 3), showing a vertical asymptote at x equals 3 from the zero denominator and a horizontal asymptote at y equals 2 from the leading coefficients
Each asymptote traces back to a different feature of the equation.

Near it, the output grows without bound and the curve races up or down the line. Unlike a horizontal asymptote, a vertical one can never be crossed — the function is undefined there, so there is no point to plot. Vertical asymptotes has the full treatment, including one-sided behaviour.

Horizontal Asymptotes

A horizontal asymptote describes where the curve settles at the far left and far right. Compare the degrees of top and bottom.

A table of the three horizontal asymptote cases: top degree less than bottom gives y equals zero, equal degrees give the ratio of leading coefficients, top degree greater gives none
Three cases, decided entirely by the degrees.
DegreesHorizontal asymptoteExample
top bottom
top bottom
top bottomnone

The reasoning is straightforward. When the bottom grows faster, the fraction shrinks toward zero. When they grow at the same rate, only the leading coefficients matter. When the top grows faster, the output runs away and never settles.

A graph may cross its horizontal asymptote. This surprises people, but the asymptote only describes the extremes — in the middle the curve can do as it likes.

When the top degree is exactly one more than the bottom, there is a slant asymptote: divide the polynomials and the quotient is the line, remainder discarded.

Holes

Not every zero of the denominator is an asymptote. If a factor cancels with one on top, you get a hole — a single missing point.

The graph of (x squared minus 4) over (x minus 2), which is the straight line y equals x plus 2 with an open circle at the point (2, 4)
The factor cancels, so the graph is a line with one point removed.

The simplified form is a straight line, but the original was never defined at , so the point is missing. Draw it as an open circle.

The domain is set before you simplify. Cancelling does not un-exclude a value — that is the point of the tag, and it is the same discipline used in simplifying rational expressions.

To find a hole’s height, cancel first and substitute into what remains: here .

The Intercepts

-intercepts: set the numerator to zero. A fraction is zero only when its top is zero and its bottom is not — so discard any solution that also kills the denominator.

-intercept: substitute , provided is in the domain.

Sketching in Six Steps

The graph of y equals (x plus 3) over (x minus 1), with a vertical asymptote at x equals 1, a horizontal asymptote at y equals 1, and intercepts at (negative 3, 0) and (0, negative 3)
Asymptotes first, then intercepts, then the branches.
  1. Factor the top and the bottom completely.
  2. Cancel common factors — note each as a hole.
  3. Vertical asymptotes from what is left in the denominator.
  4. Horizontal or slant asymptote from the degrees.
  5. Intercepts from the numerator and from .
  6. Sketch each branch, using a test point in each region if the direction is unclear.

The asymptotes divide the plane into regions, and the curve occupies them one branch at a time. Drawing the dashed lines first makes the rest almost automatic.

Worked Example A: Domain

Find the domain of .

Factor: , zero at and .

Domain: .

Worked Example B: Both Asymptotes

Find the asymptotes of .

Nothing cancels, and the denominator is zero at , so that is a vertical asymptote.

Both degrees are 1, so the horizontal asymptote is the ratio of leading coefficients: .

Worked Example C: A Hole and an Asymptote

Describe .

The cancels, so there is a hole at , at height .

The remains, so is a vertical asymptote. Equal degrees give the horizontal asymptote .

Worked Example D: A Full Sketch

Sketch .

Vertical asymptote ; horizontal asymptote .

-intercept where , so . -intercept: , so .

Both intercepts are left of the vertical asymptote, so that branch passes through them. The right branch sits above , coming down from the asymptote.

Worked Example E: No Horizontal Asymptote

Does have a horizontal asymptote?

No — the top degree (2) exceeds the bottom (1). Since it exceeds by exactly one, there is a slant asymptote instead. Dividing gives with a remainder, so the slant asymptote is .

Common Mistakes to Avoid

  • Treating every denominator zero as an asymptote. Cancel first; cancelled factors give holes.
  • Simplifying before stating the domain. The exclusion survives the cancelling.
  • Believing a horizontal asymptote cannot be crossed. It often is, in the middle.
  • Using the numerator for the domain. Only the denominator restricts it.
  • Comparing coefficients instead of degrees. Degrees decide the case; coefficients only matter once they are equal.
  • Forgetting the -intercept check. A numerator zero that also kills the denominator is not an intercept.
  • Joining the branches. They are separated by the vertical asymptote and never meet.

Where Rational Functions Lead Next

  • Rational equations. Multiplying through by the denominator can create extraneous solutions that must be checked against the domain.
  • Rational inequalities. The asymptotes and intercepts split the number line into test regions.
  • Limits. “Approaches but never reaches” is exactly what a limit formalises.
  • Inverse variation. is the simplest rational model — pressure against volume, time against speed.
  • Rates and concentrations. Any “amount per amount” that changes as the total changes is naturally rational.

Practice Problems

Work each one before opening the answer.

Problem 1. Find the domain of .

Show answer

All reals except 4: .

Problem 2. Find the vertical asymptote of .

Show answer

.

Problem 3. Find the horizontal asymptote of .

Show answer

Top degree 0 is less than bottom degree 2, so .

Problem 4. Find the horizontal asymptote of .

Show answer

Equal degrees, so .

Problem 5. Does have a horizontal asymptote?

Show answer

No — the top degree is larger.

Problem 6. Find the -intercept of .

Show answer

Numerator zero at , which does not kill the denominator. So .

Problem 7. Find the -intercept of .

Show answer

, so .

Problem 8. Where is the hole in ?

Show answer

It simplifies to with , so there is a hole at .

Problem 9. Find the vertical asymptotes of .

Show answer

, so and .

Problem 10. Give the asymptotes and hole of .

Show answer

Hole at ; vertical asymptote ; horizontal asymptote .

Problem 11. What kind of asymptote does have?

Show answer

The top degree exceeds the bottom by one, so a slant asymptote. Dividing gives .

Problem 12. Can the graph of cross ?

Show answer

Yes — at . Horizontal asymptotes describe the extremes only.

Quick Reference

TaskMethod
Rational function
Domainexclude every zero of the denominator
Vertical asymptoteuncancelled zero of the denominator
Holea factor that cancels top and bottom
Horizontal, top bottom
Horizontal, degrees equalratio of leading coefficients
Horizontal, top bottomnone
Slant asymptotetop degree exactly one more; divide
-interceptsnumerator zero, denominator non-zero
Crossing an asymptotehorizontal yes, vertical never

Rational functions are rational expressions turned into graphs, and the cancelling step is the one from simplifying rational expressions. Their domain work is covered in domain, and vertical asymptotes goes deeper on the most distinctive feature. To drill the algebra, try the rational expression practice problems. More Algebra lessons are available.

Frequently Asked Questions

What is a rational function?+

It is a function that can be written as one polynomial divided by another, with not the zero polynomial. The name comes from ratio, not from rational numbers.

How do you find the domain of a rational function?+

Set the denominator equal to zero and solve. Every solution is excluded; everything else is allowed. The domain is all real numbers except those values.

How do you find the horizontal asymptote of a rational function?+

Compare degrees. If the top degree is smaller, the asymptote is . If the degrees are equal, it is the ratio of the leading coefficients. If the top degree is larger, there is no horizontal asymptote.

What is the difference between a hole and a vertical asymptote?+

A factor that cancels between the top and bottom leaves a hole — a single missing point. A factor that remains in the denominator after cancelling gives a vertical asymptote, where the curve shoots off to infinity.

Can a graph cross a horizontal asymptote?+

Yes. A horizontal asymptote describes what happens at the far left and far right only. In the middle the curve may cross it freely. A vertical asymptote can never be crossed.

What is a slant asymptote?+

When the numerator's degree is exactly one more than the denominator's, the graph approaches a slanted line instead of a horizontal one. Polynomial long division gives its equation — the quotient, ignoring the remainder.

How do you find the x-intercepts of a rational function?+

Set the numerator equal to zero and solve, then discard any value that also makes the denominator zero. A fraction is zero only when its top is zero and its bottom is not.

Related lessons