01 / 21

Rational Functions &
Vertical Asymptotes

Master how to identify, analyze, and graph vertical asymptotes of rational functions: where the function blows up and the graph escapes to infinity.

AP Precalculus

What Is a Rational Function?

A rational function is any function that can be written as a ratio of two polynomials:

Examples include \(\frac{1}{x}\), \(\frac{x^2 + 1}{x - 3}\), and \(\frac{2x}{x^2 - 4}\). The domain excludes any \(x\)-value that makes the denominator zero.

When the Denominator Equals Zero

If \(q(a) = 0\) for some value \(x = a\), the function \(f(x) = \frac{p(x)}{q(x)}\) is undefined at \(x = a\). But what happens to the graph near that point?

\(x = 2\) x y \(f(x) = \frac{1}{x-2}\) 2 0

Defining the Vertical Asymptote

In plain language: the graph shoots off toward positive or negative infinity as \(x\) gets closer and closer to \(a\). The function never touches or crosses a vertical asymptote (in the neighborhood of the asymptote).

Graphically
A vertical line the curve approaches but never reaches
Algebraically
Occurs where the denominator is zero but the numerator is not

The Core Rule for Finding Vertical Asymptotes

The phrase "in lowest terms" is critical. Before applying this rule, you must factor both \(p(x)\) and \(q(x)\) and cancel any common factors. A common factor that cancels produces a hole, not an asymptote.

Visualizing the Rule

\(x = -2\) \(x = 2\) x y \(f(x) = \frac{x}{x^2-4}\)

Hole vs. Vertical Asymptote

When a factor cancels between numerator and denominator, the zero of that factor produces a hole (removable discontinuity), not a vertical asymptote.

Vertical Asymptote
\(q(a) = 0\) and \(p(a) \neq 0\) after simplifying. Graph shoots to \(\pm\infty\).
Hole
Common factor \((x - a)\) cancels. Graph has a missing point, not an asymptote.

Why You Must Factor First

Consider \(h(x) = \frac{x^2 - 1}{x^2 - 3x + 2}\). The denominator is zero at \(x = 1\) and \(x = 2\). But are both vertical asymptotes?

1
Factor: \(\frac{(x-1)(x+1)}{(x-1)(x-2)}\)
2
Cancel: The \((x-1)\) cancels, leaving \(\frac{x+1}{x-2}\)
3
Identify: \(x = 1\) is a hole. Only \(x = 2\) is a vertical asymptote.

How to Find Vertical Asymptotes

1
Factor completely: Factor both \(p(x)\) and \(q(x)\) into linear and irreducible quadratic factors.
2
Cancel common factors: Remove any factor that appears in both numerator and denominator. Those zeros are holes.
3
Set the remaining denominator to zero: Solve \(q_{\text{reduced}}(x) = 0\).
4
State the vertical asymptotes: Each real solution \(x = a\) gives the vertical asymptote line \(x = a\).

Example 1: \(f(x) = \frac{3}{x + 5}\)

Find the vertical asymptote(s).

1
Factor: Already in simplest form. Numerator is 3 (a constant), denominator is \(x + 5\).
2
No common factors to cancel.
3
Solve: \(x + 5 = 0 \implies x = -5\).
4
Check: \(p(-5) = 3 \neq 0\). Confirmed.

Example 2: \(g(x) = \frac{x + 3}{x^2 - 9}\)

Find the vertical asymptote(s) and any holes.

1
Factor: \(\frac{x+3}{(x-3)(x+3)}\)
2
Cancel: \((x+3)\) cancels. So \(x = -3\) is a hole. Simplified: \(\frac{1}{x-3}\)
3
Solve: \(x - 3 = 0 \implies x = 3\).
4
Result: \(p(3) = 1 \neq 0\). Confirmed.

Example 3: \(h(x) = \frac{2x^2 + 5x - 3}{x^2 + x - 6}\)

1
Factor numerator: \(2x^2 + 5x - 3 = (2x - 1)(x + 3)\)
2
Factor denominator: \(x^2 + x - 6 = (x + 3)(x - 2)\)
3
Cancel: \((x + 3)\) cancels. Hole at \(x = -3\). Simplified: \(\frac{2x - 1}{x - 2}\)
4
Remaining denominator zero: \(x - 2 = 0 \implies x = 2\). Check: \(p(2) = 2(2) - 1 = 3 \neq 0\).

Behavior Near a Vertical Asymptote

To determine which way the graph goes near \(x = a\), test the sign of \(f(x)\) for values just left and just right of \(a\):

From the Left
Plug in a value slightly less than \(a\) (like \(a - 0.01\)) and check if \(f(x)\) is positive or negative.
From the Right
Plug in a value slightly greater than \(a\) (like \(a + 0.01\)) and check the sign.

Multiplicity and Asymptote Behavior

The multiplicity of the zero in the denominator determines the behavior:

Odd Multiplicity
Graph goes to \(+\infty\) on one side and \(-\infty\) on the other. The sign of \(f(x)\) changes across the asymptote.
Even Multiplicity
Graph goes to \(+\infty\) on both sides (or \(-\infty\) on both). The sign of \(f(x)\) does not change.

Common Mistakes to Avoid

✕ Forgetting to Factor
Setting the unsimplified denominator to zero may give false asymptotes that are actually holes.
✕ Confusing Holes and VAs
A cancelled factor means a hole, not a vertical asymptote. Always simplify first.
✕ Claiming the Graph "Touches" the VA
The function is undefined at a VA. The graph approaches but never reaches or crosses it near that point.

Summary Comparison

Vertical Asymptote Hole
Condition \(q(a)=0\), \(p(a)\neq 0\) (after simplifying) Common factor \((x-a)\) cancels
Graph Behavior \(f(x) \to \pm\infty\) Missing point; finite limit exists
Domain \(x = a\) excluded \(x = a\) excluded
On the Graph Dashed vertical line Open circle at \((a, L)\)
Limit Does not exist (infinite) Exists: \(\lim_{x\to a} f(x) = L\)

Question 1 of 5

What are the vertical asymptote(s) of \(f(x) = \frac{2x}{x^2 - 1}\)?

Question 2 of 5

For \(g(x) = \frac{x^2 - 4}{x - 2}\), what occurs at \(x = 2\)?

Question 3 of 5

How many vertical asymptotes does \(h(x) = \frac{x + 1}{x^3 - x}\) have?

Question 4 of 5

As \(x \to 3^+\), what happens to \(f(x) = \frac{-2}{x - 3}\)?

Question 5 of 5

The function \(r(x) = \frac{5}{(x+4)^2}\) has a vertical asymptote at \(x = -4\). What is the behavior on both sides of this asymptote?