Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Rational Functions and Vertical Asymptotes

Lesson ~10 min read 8 MCQs

In simple terms: In simple terms, this lesson is about finding "invisible walls" on a graph, called vertical asymptotes, which appear at x-values that make the denominator of a rational function zero but not the numerator.

Why this matters

Have you ever played a video game where you're running across a map and suddenly hit an invisible wall? You can see the landscape on the other side, you can get right up to the edge, but your character just can't cross that line. The game's code forbids it.

Rational functions have something similar. Their graphs can look like smooth, flowing curves, but sometimes they approach a vertical line and then... whoosh! The graph shoots up toward the sky or plummets downward, getting infinitely close to that line but never, ever touching it.

These invisible walls are called vertical asymptotes. They are a fundamental feature of rational functions, and understanding them is key to sketching and analyzing graphs. In this lesson, we'll learn the simple algebraic trick to find exactly where these walls are located and how to describe the graph's dramatic behavior around them.

A rational function with a vertical asymptote at x=2 and a hole at x=-1.

Concept overview

flowchart TD
    A[Start with r(x) = P(x)/Q(x)] --> B{Factor P(x) and Q(x)};
    B --> C{Find real zeros of Q(x), let one be 'a'};
    C --> D{Is (x-a) a factor of P(x) too?};
    D -- No --> E[Vertical Asymptote at x = a];
    D -- Yes --> F{Compare multiplicity of (x-a). Is Denominator > Numerator?};
    F -- Yes --> E;
    F -- No --> G[Removable Discontinuity (Hole) at x = a];
This diagram shows a flowchart for determining if a rational function has a vertical asymptote or a hole at a specific x-value. It starts with factoring, then checks if a denominator's zero is also a numerator's zero, and finally compares multiplicities to make the final decision.

Core explanation

Hey everyone, it's Saavi. Let's dive into one of the most important features of rational functions: vertical asymptotes.

First, a quick refresher. A rational function is just a function that's a fraction of two polynomials, like r(x) = P(x) / Q(x), where P(x) is the numerator polynomial and Q(x) is the denominator polynomial.

The golden rule in algebra that we can never, ever break is: you cannot divide by zero. It's undefined. It's the one mathematical operation that just doesn't have an answer. So, whenever the denominator Q(x) of our rational function equals zero, the function has a problem at that x-value. This "problem" shows up on the graph in one of two ways:

  1. A Vertical Asymptote: An invisible vertical line that the graph approaches but never crosses.
  2. A Removable Discontinuity (or a "hole"): A single point missing from the graph.

Our job is to figure out which one we're dealing with.

The Three-Step Process: Factor, Identify, Cancel

The most reliable way to find vertical asymptotes is to follow a clear process. Let's use an example to walk through it.

Consider the function: r(x) = (x² + x - 2) / (x² + 2x - 3)

Step 1: Factor the numerator and the denominator completely. This is the most critical step. You have to break down the polynomials to see their building blocks.

  • Numerator: x² + x - 2 factors into (x + 2)(x - 1)
  • Denominator: x² + 2x - 3 factors into (x + 3)(x - 1)

So, our factored function is: r(x) = ((x + 2)(x - 1)) / ((x + 3)(x - 1))

Step 2: Identify the "problem spots." Look at the factored denominator and find the x-values that would make it zero. (x + 3)(x - 1) = 0 This gives us two potential problem x-values: x = -3 and x = 1.

Step 3: Distinguish between asymptotes and holes by canceling common factors. Now, look at the entire factored fraction. Do you see any factors that are identical in the numerator and the denominator?

r(x) = ((x + 2)(x - 1)) / ((x + 3)(x - 1))

Yes! The (x - 1) factor appears in both. We can cancel it out.

  • When a factor cancels, it creates a hole in the graph at that x-value. So, at x = 1, there is a removable discontinuity. The graph will look perfectly normal, but there will be a tiny, open circle at x=1 to show that the original function is undefined there.

  • When a factor in the denominator does not cancel, it creates a vertical asymptote. The (x + 3) factor is left in the denominator. It has no matching factor in the numerator. Therefore, at x = -3, we have a vertical asymptote. This is our invisible wall.

A Note on Multiplicity

What if you have repeated factors? For example, g(x) = (x - 2) / (x - 2)². Here, the zero x = 2 has a multiplicity of 1 in the numerator and 2 in the denominator. After canceling one (x-2) factor, you're left with g(x) = 1 / (x - 2). The rule is: A vertical asymptote occurs if the multiplicity of a zero in the denominator is greater than its multiplicity in the numerator. Since the multiplicity of (x-2) was higher in the denominator (2 > 1), we get a vertical asymptote at x = 2.

Describing the Behavior Near an Asymptote

Okay, so we have an asymptote at x = -3. What does the graph do there? Does it shoot up to infinity? Down to negative infinity? This is where we use limit notation to be precise.

Let's look at our simplified function after cancellation: r(x) = (x + 2) / (x + 3).

We want to know what happens as x gets really close to -3.

  1. 1
    Approaching from the right (x → -3⁺)
    Let's pick a number just a tiny bit bigger than -3, like x = -2.99.
    • Numerator: -2.99 + 2 = -0.99 (a negative number)
    • Denominator: -2.99 + 3 = +0.01 (a tiny positive number) A negative number divided by a tiny positive number gives you a huge negative number. Think: -1 / 0.00001 = -100,000. So, as x approaches -3 from the right, r(x) plummets to negative infinity. We write this as: lim_{x→-3⁺} r(x) = -∞
  2. 2
    Approaching from the left (x → -3⁻)
    Now let's pick a number just a tiny bit smaller than -3, like x = -3.01.
    • Numerator: -3.01 + 2 = -1.01 (a negative number)
    • Denominator: -3.01 + 3 = -0.01 (a tiny negative number) A negative number divided by a tiny negative number gives you a huge positive number. Think: -1 / -0.00001 = +100,000. So, as x approaches -3 from the left, r(x) shoots up to positive infinity. We write this as: lim_{x→-3⁻} r(x) = ∞

This limit notation is the formal way to describe the "whoosh" behavior we see on the graph. It tells the full story of the vertical asymptote.

Visualizing the rational function r(x) = ((x + 2)(x - 1)) / ((x + 3)(x - 1)).

Worked examples

Let's put this into practice with a few examples. The process is always the same: factor, identify, and cancel.

Example 1

Finding an Asymptote and a Hole

Problem: Find all vertical asymptotes and removable discontinuities for the function r(x) = (x² + x - 2) / (x² + 2x - 3).

Solution:

  1. 1
    Factor the numerator and denominator
    This is always your first move.
    • Numerator: x² + x - 2 factors into (x + 2)(x - 1).
    • Denominator: x² + 2x - 3 factors into (x + 3)(x - 1). Our function is now r(x) = ((x + 2)(x - 1)) / ((x + 3)(x - 1)).
  2. 2
    Identify all zeros of the denominator
    These are our potential "problem spots." Setting (x + 3)(x - 1) = 0 gives us x = -3 and x = 1.
  3. 3
    Check for common factors to cancel
    The factor (x - 1) appears in both the top and the bottom. We can cancel it.
    • Because (x - 1) cancels, the discontinuity at x = 1 is a removable discontinuity (a hole).
    • The factor (x + 3) remains in the denominator and does not cancel. Therefore, the discontinuity at x = -3 is a vertical asymptote.

Common pitfall here: A student might see that x=1 makes the denominator zero and immediately declare it a vertical asymptote. You must complete the cancellation step to be sure!

Example 2

A Straightforward Asymptote

Problem: Find the vertical asymptote of f(x) = (2x + 1) / (x - 4) and describe its behavior using limits.

Solution:

  1. 1
    Factor
    In this case, the numerator and denominator are already factored (they are linear).
  2. 2
    Identify denominator zeros
    Set x - 4 = 0. This gives us x = 4.
  3. 3
    Check for cancellation
    The factor (x - 4) in the denominator does not have a matching factor in the numerator (2x + 1). Nothing cancels.
  4. 4
    Conclusion and Limit Behavior
    Since the factor didn't cancel, we have a vertical asymptote at x = 4. Now, let's check the behavior.
    • From the right (x → 4⁺)
      Try x = 4.1. f(4.1) = (2(4.1) + 1) / (4.1 - 4) = (9.2) / (0.1) = +92. This is a large positive number. So, lim_{x→4⁺} f(x) = ∞.
    • From the left (x → 4⁻)
      Try x = 3.9. f(3.9) = (2(3.9) + 1) / (3.9 - 4) = (8.8) / (-0.1) = -88. This is a large negative number. So, lim_{x→4⁻} f(x) = -∞.
Graph of f(x) = (2x + 1) / (x - 4) showing its vertical asymptote at x=4.

Try it yourself

Ready to try on your own? Remember the process: Factor, Identify, Cancel.

  1. 1
    Problem
    Find all vertical asymptotes and removable discontinuities for the function f(x) = (x² - 4) / (x² - x - 6).
    • Hint: Start by factoring both the numerator (x² - 4) and the denominator (x² - x - 6). One is a difference of squares, the other is a standard trinomial. See what cancels!
  2. 2
    Problem
    Does the function g(x) = (x - 3)² / (x² - 9) have a vertical asymptote or a hole at x = 3?
    • Hint: Remember to factor the denominator completely. Then, compare the multiplicity (the exponent) of the (x-3) factor in the numerator versus the denominator. Does the factor completely disappear from the denominator after cancellation?
Graph of f(x) = (x² - 4) / (x² - x - 6) with its asymptote and hole.