Rational Functions: Asymptotes, Holes & Limits

#Calculus
TL;DR
Rational functions are ratios of two polynomials, $f(x) = \frac{P(x)}{Q(x)}$ with $Q(x) \neq 0$. Their whole behaviour follows three checks: the domain excludes the zeros of $Q$; a zero of $Q$ that does not cancel gives a vertical asymptote, while one that does cancel gives a hole; and comparing the degrees of $P$ and $Q$ gives the horizontal asymptote (or a slant one when $P$ is exactly one degree higher). Limits describe each asymptote precisely, and the quotient rule differentiates the function.
BT
Bhanzu TeamLast updated on September 23, 202613 min read

What Is A Rational Function?

A rational function is a function that can be written as one polynomial divided by another:

$$f(x) = \frac{P(x)}{Q(x)}, \qquad Q(x) \neq 0$$

Here $P(x)$ and $Q(x)$ are polynomials, and the denominator $Q(x)$ is not the zero polynomial. The name comes from ratio: a rational function is a ratio of two polynomials, the same way a rational number is a ratio of two integers.

The simplest example is the reciprocal function $f(x) = \frac{1}{x}$, whose graph is a hyperbola. Larger ones look like:

$$f(x) = \frac{x^2 - 1}{x^2 - 4}, \qquad g(x) = \frac{x^2 + 1}{x}, \qquad h(x) = \frac{3x + 5}{x - 2}$$

Everything interesting about a rational function happens where the denominator is small or the input is large. Those two situations produce the whole story: domain gaps, asymptotes, and holes.

What Is The Domain Of A Rational Function?

The domain of a rational function is every real number except the values that make the denominator zero. Division by zero is undefined, so those inputs are removed.

To find the domain, set $Q(x) = 0$, solve, and exclude those solutions.

Example: domain of $f(x) = \frac{x^2 - 1}{x^2 - 4}$.

$$Q(x) = x^2 - 4 = (x - 2)(x + 2) = 0 \implies x = 2 \ \text{or} \ x = -2$$

So the domain is all real numbers except $x = 2$ and $x = -2$. In interval form, $(-\infty, -2) \cup (-2, 2) \cup (2, \infty)$.

One caution that drives the most common error on this topic: exclude a value from the domain before you cancel anything. A factor you cancel still leaves a gap in the domain; it just becomes a hole instead of an asymptote.

How Do You Find Vertical Asymptotes And Holes?

Both come from the zeros of the denominator, and the single question that separates them is: does the factor cancel?

  • Vertical asymptote: a zero of $Q(x)$ that does not cancel with $P(x)$. The graph shoots off to $+\infty$ or $-\infty$ there.

  • Hole (removable discontinuity): a zero of $Q(x)$ that does cancel with a matching factor in $P(x)$. The graph is a normal curve with a single point punched out.

The method is always the same three steps: factor top and bottom, cancel common factors while recording every excluded value, then read what is left.

Worked Example 1: fully analyse $f(x) = \frac{x^2 - 1}{x^2 - 4}$.

Factor both parts:

$$f(x) = \frac{(x - 1)(x + 1)}{(x - 2)(x + 2)}$$

Nothing cancels, since no factor is shared between numerator and denominator. So this function has no holes, and both denominator zeros are vertical asymptotes:

$$\text{Vertical asymptotes: } x = 2 \ \text{and} \ x = -2$$

The zeros of the numerator give the x-intercepts, $x = 1$ and $x = -1$, and the y-intercept is $f(0) = \frac{-1}{-4} = \frac{1}{4}$.

A contrast case with a hole: $\ p(x) = \frac{x^2 - 4}{x^2 - 5x + 6}$.

$$p(x) = \frac{(x - 2)(x + 2)}{(x - 2)(x - 3)}$$

The factor $(x - 2)$ cancels. That value becomes a hole, not an asymptote. The remaining denominator zero, $x = 3$, is the vertical asymptote:

$$p(x) = \frac{x + 2}{x - 3} \ (x \neq 2), \qquad \text{hole at } x = 2, \quad \text{VA at } x = 3$$

The hole sits at $x = 2$ with height $\frac{2 + 2}{2 - 3} = -4$, so the point $(2, -4)$ is missing from an otherwise smooth curve. This cancel-or-not test is the same idea behind a removable discontinuity, and factoring cleanly first is exactly the skill from simplifying rational expressions.

How Do You Find The Horizontal Or Slant Asymptote?

Horizontal and slant asymptotes describe end behaviour, meaning what the graph does as $x$ runs far out to the left or right. The answer is a race between the degree of the top and the degree of the bottom.

Write $\deg P$ for the degree of the numerator and $\deg Q$ for the denominator. There are three cases.

Table: End-behaviour asymptote of $f(x) = \frac{P(x)}{Q(x)}$ by degree.

Degree comparison

End behaviour

Asymptote

$\deg P < \deg Q$

Bottom grows faster

Horizontal $y = 0$

$\deg P = \deg Q$

Grow at the same rate

Horizontal $y = \dfrac{\text{lead } P}{\text{lead } Q}$

$\deg P = \deg Q + 1$

Top grows one power faster

Slant (oblique), found by division

$\deg P > \deg Q + 1$

Top grows much faster

No horizontal or slant (curved end)

For $f(x) = \frac{x^2 - 1}{x^2 - 4}$, the degrees are equal ($2 = 2$), so the horizontal asymptote is the ratio of leading coefficients, $y = \frac{1}{1} = 1$.

Worked Example 2: the slant asymptote of $g(x) = \frac{x^2 + 1}{x}$.

Here $\deg P = 2$ and $\deg Q = 1$, exactly one higher, so the end behaviour is a slant line. Find it by dividing the polynomials:

$$g(x) = \frac{x^2 + 1}{x} = x + \frac{1}{x}$$

As $x$ grows large, $\frac{1}{x} \to 0$, so the graph presses against the line $y = x$. That is the slant asymptote:

$$\text{Slant asymptote: } y = x, \qquad \text{Vertical asymptote: } x = 0$$

The quotient from the division is the asymptote; the remainder term $\frac{1}{x}$ is what fades away. For the long-division mechanics behind this step, see long division of polynomials.

Final answer (Example 2): $g(x) = \frac{x^2+1}{x}$ has a vertical asymptote $x = 0$ and a slant asymptote $y = x$.

How Do Limits Describe The Asymptotes?

Asymptotes are a limit idea. Each asymptote is a precise statement about what $f(x)$ approaches, and the notation removes the vagueness of "gets close to."

At a vertical asymptote, use one-sided limits, because the sign can differ on each side. Take $f(x) = \frac{x^2 - 1}{x^2 - 4}$ near $x = 2$. The numerator approaches $2^2 - 1 = 3 > 0$. The denominator is $(x - 2)(x + 2)$, where $(x + 2) \to 4 > 0$ and $(x - 2)$ changes sign:

$$\lim_{x \to 2^{+}} \frac{x^2 - 1}{x^2 - 4} = +\infty, \qquad \lim_{x \to 2^{-}} \frac{x^2 - 1}{x^2 - 4} = -\infty$$

Coming from the right, $(x - 2) \to 0^{+}$, so the fraction is a positive number over a tiny positive number, which grows without bound. From the left, $(x - 2) \to 0^{-}$, so the same positive numerator sits over a tiny negative number, and the value plunges to $-\infty$. The two sides genuinely disagree, and that is the point of writing them separately. (At the other asymptote the signs flip: $\lim_{x \to -2^{+}} f(x) = -\infty$ and $\lim_{x \to -2^{-}} f(x) = +\infty$.)

At the far ends, use limits at infinity. Divide the top and bottom by the highest power, $x^2$:

$$\lim_{x \to \pm\infty} \frac{x^2 - 1}{x^2 - 4} = \lim_{x \to \pm\infty} \frac{1 - \frac{1}{x^2}}{1 - \frac{4}{x^2}} = \frac{1 - 0}{1 - 0} = 1$$

That single limit confirms the horizontal asymptote $y = 1$. Geometrically, the value $1$ is the height the curve settles toward on both far ends, and the limit is the exact, checkable version of "the floor it never reaches" from the opening image.

How Do You Differentiate A Rational Function?

Because a rational function is one expression divided by another, its derivative uses the quotient rule. For $f(x) = \frac{u(x)}{v(x)}$:

$$f'(x) = \frac{u'(x),v(x) - u(x),v'(x)}{\big[v(x)\big]^2}$$

The geometric meaning is the usual one: $f'(x)$ is the slope of the tangent line to the graph at $x$. Where $f'(x) = 0$, the tangent is flat and the curve turns.

Differentiate $f(x) = \frac{x^2 - 1}{x^2 - 4}$.

Set $u = x^2 - 1$ so $u' = 2x$, and $v = x^2 - 4$ so $v' = 2x$:

$$f'(x) = \frac{2x(x^2 - 4) - (x^2 - 1)(2x)}{(x^2 - 4)^2}$$

Factor $2x$ from the numerator and simplify:

$$f'(x) = \frac{2x\big[(x^2 - 4) - (x^2 - 1)\big]}{(x^2 - 4)^2} = \frac{2x(-3)}{(x^2 - 4)^2} = \frac{-6x}{(x^2 - 4)^2}$$

Final answer: $f'(x) = \dfrac{-6x}{(x^2 - 4)^2}$.

Reading it geometrically: the denominator is always positive, so the sign of $f'(x)$ is just the sign of $-6x$. That makes $f$ increasing for $x < 0$ and decreasing for $x > 0$, with $f'(0) = 0$. So the graph has a single turning point, a local maximum at $(0, \tfrac{1}{4})$, tucked below the horizontal asymptote $y = 1$. The related product-rule pattern for two multiplied functions is covered under uv differentiation.

Why Do Rational Functions Have Asymptotes And Holes?

The rules are not arbitrary. Each one comes from a single fact about fractions: a fraction blows up when its bottom shrinks to zero, and it settles down when top and bottom grow at comparable rates.

  • Vertical asymptotes come from dividing by almost zero. As $x$ nears a denominator zero, the bottom becomes a tiny number while the top stays away from zero. A fixed number divided by something microscopic is enormous, so the graph escapes to infinity.

  • Holes come from a factor that was never really there. When the same factor sits on top and bottom, it cancels for every $x$ except the one value that makes it zero. The simplified function is perfectly smooth, but that one input stays banned by the original denominator, so a single point is missing.

  • Horizontal and slant asymptotes come from a growth race. Far from the origin, only the highest-power terms matter. If the bottom wins the race, the fraction shrinks to zero; if they tie, it locks onto the ratio of leading coefficients; if the top wins by one degree, the leftover linear part becomes a slanted line.

That is the whole subject in one sentence: watch what the denominator does. Small denominator, the graph explodes; large input, the highest powers decide the ending.

Who Discovered Asymptotes And Rational Functions?

The curve came long before the calculus. The Greeks studied the hyperbola, the graph of the simplest rational function $y = \frac{1}{x}$, and noticed a line the curve chased forever without meeting.

The rigour arrived much later:

  • Apollonius of Perga (c. 262 – c. 190 BCE, Greek Asia Minor) named and analysed the asymptotes of the hyperbola in Conics, the first careful study of the "line never touched."

  • Augustin-Louis Cauchy (1789 – 1857, France) gave the limit its modern definition, turning "gets arbitrarily close" into a precise statement. His work is why $\lim_{x \to 2^{+}} f(x) = +\infty$ means something exact rather than merely descriptive.

Where Are Rational Functions Used In The Real World?

Any quantity that is one thing per another thing tends to be rational, because "per" is division.

  • Chemistry and medicine: the concentration of a drug or a solute is amount divided by volume, and it decays toward a steady level as time runs on, a horizontal asymptote.

  • Economics: average cost is total cost divided by units produced, so the cost per unit falls steeply then flattens toward the marginal cost, exactly the shape in the opening image.

  • Physics: lens and mirror equations, gravitational and electrostatic inverse-square laws, and resistance in parallel circuits are all rational expressions in the distances or resistances involved.

  • Engineering and control: the response of a filter or a control system is written as a transfer function, a ratio of polynomials whose asymptotes describe how the system behaves at very low and very high frequencies.

  • Biology: enzyme reaction rates follow the Michaelis-Menten model, a rational function of the substrate concentration that levels off toward a maximum speed.

One family of functions covers dosage, pricing, optics, circuits, and cell chemistry. When something is measured per something else and then levels off, a rational function is usually hiding underneath.

What Are The Most Common Mistakes With Rational Functions?

These four errors account for most lost marks, and each was confirmed against real student-question threads and course notes on asymptotes and limits.

Cancelling a factor and then forgetting the hole.

Where it slips in:

A student simplifies $\frac{(x-2)(x+2)}{(x-2)(x-3)}$ to $\frac{x+2}{x-3}$ and treats the result as the whole story, graphing a smooth curve.

Don't do this:

Do not throw away the cancelled factor. The value $x = 2$ is still banned by the original denominator.

The correct way:

Record every denominator zero before cancelling. A cancelled factor marks a hole (plot an open circle at that point); an uncancelled one marks a vertical asymptote.

Calling every excluded value a vertical asymptote.

Where it slips in:

A student sets the denominator to zero, lists every solution, and labels them all vertical asymptotes without checking whether any factor cancels.

Don't do this:

Do not skip the cancellation check. An excluded value can be a hole rather than an asymptote.

The correct way:

Factor completely first. Uncancelled denominator zeros are vertical asymptotes; cancelled ones are holes. In $\frac{x^2-4}{x^2-5x+6}$, only $x = 3$ is a vertical asymptote, while $x = 2$ is a hole.

Getting the sign of a one-sided limit wrong.

Where it slips in:

A student decides a vertical asymptote sends the graph to $+\infty$ on both sides, without testing each side separately.

Don't do this:

Do not assume both sides match. Near $x = 2$ in $\frac{x^2-1}{x^2-4}$, the left side goes to $-\infty$ while the right side goes to $+\infty$.

The correct way:

Check the sign of the numerator and of each factor of the denominator as $x$ approaches from the left and from the right. The sign of the whole fraction tells you which infinity each side reaches.

Misreading the horizontal-asymptote degree rule.

Where it slips in:

A student takes the ratio of leading coefficients even when the degrees differ, or reports $y = 0$ whenever there is any $x$ on the bottom.

Don't do this:

Do not apply the equal-degree shortcut to unequal degrees. The three cases are genuinely different.

The correct way:

Compare degrees first. Bottom degree larger gives $y = 0$; equal degrees give the ratio of leading coefficients; top larger by one gives a slant asymptote found by division.

Practice Problems On Rational Functions

Work each one, then check against the answer.

  1. State the domain of $f(x) = \frac{x + 3}{x^2 - 9}$.
    (Answer: $x^2 - 9 = (x-3)(x+3)$, so exclude $x = 3$ and $x = -3$. Domain: all real numbers except $x = \pm 3$. Note $x = -3$ cancels, so it is a hole, but it is still excluded from the domain.)

  2. Find the vertical asymptote and any hole of $g(x) = \frac{x^2 - 1}{x^2 - x - 2}$.
    (Answer: $\frac{(x-1)(x+1)}{(x-2)(x+1)}$; $(x+1)$ cancels, so a hole at $x = -1$ and a vertical asymptote at $x = 2$.)

  3. Find the horizontal asymptote of $h(x) = \frac{3x^2 + 2}{6x^2 - x}$.
    (Answer: equal degrees, so $y = \frac{3}{6} = \frac{1}{2}$.)

  4. Find the horizontal asymptote of $\frac{2x + 1}{x^2 + 5}$.
    (Answer: bottom degree is larger, so $y = 0$.)

  5. Find the slant asymptote of $\frac{x^2 + 3x}{x - 1}$.
    (Answer: dividing gives $x + 4 + \frac{4}{x-1}$, so the slant asymptote is $y = x + 4$.)

  6. Differentiate $f(x) = \frac{x}{x + 1}$ with the quotient rule.
    (Answer: $f'(x) = \frac{(1)(x+1) - (x)(1)}{(x+1)^2} = \frac{1}{(x+1)^2}$.)

Where Should You Go Next After Rational Functions?

Rational functions sit at the meeting point of algebra and calculus, so several doors open from here.

  1. Dividing polynomials. The engine behind slant asymptotes and behind rewriting any top-heavy rational function.

  2. The derivative formula. Build on the quotient rule to analyse slopes, turning points, and concavity of these curves.

  3. Functions. Step back to domain, range, and graph-reading, the foundation every asymptote rule rests on.

If your child is bridging from algebra into calculus, a live Bhanzu trainer teaches rational functions from the "why", the fraction that explodes near zero and settles far away, in the Bhanzu math classes.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is a rational function in simple terms?
It is one polynomial divided by another, $f(x) = \frac{P(x)}{Q(x)}$, where the bottom polynomial is not zero. If you can write a function as a fraction with polynomials on top and bottom, it is rational.
What is the difference between a hole and a vertical asymptote?
A hole appears where a factor cancels from both the numerator and denominator, so the graph is smooth with one point missing. A vertical asymptote appears where a denominator factor does not cancel, so the graph shoots off to infinity there. Factor completely and check for cancellation to tell them apart.
How do I find the horizontal asymptote of a rational function?
Compare degrees. If the numerator degree is smaller, the horizontal asymptote is $y = 0$; if the degrees are equal, it is the ratio of the leading coefficients; if the numerator is exactly one degree higher, there is a slant asymptote instead of a horizontal one, found by dividing.
Can a rational function cross its horizontal asymptote?
Yes. A horizontal asymptote describes only the far-left and far-right behaviour, so the curve may cross it near the middle. A vertical asymptote, by contrast, is never crossed, because the function is undefined there.
How do you differentiate rational functions?
Use the quotient rule: $f'(x) = \frac{u'v - uv'}{v^2}$, where $u$ is the numerator and $v$ is the denominator. It gives the slope of the tangent line at each point, and setting $f'(x) = 0$ locates the turning points.
Which curricula cover rational functions?
They appear in India's NCERT Class 11 (Relations and Functions, then Limits and Derivatives) and continue in Class 12, and in the United States under Common Core high-school standards (A-APR.7 and F-IF) with asymptotes and limits treated in AP Precalculus and AP Calculus.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →