When Does a Graph Have a Vertical Asymptote?
A graph can approach a vertical line while its function values grow without bound. But it matters how they grow: on at least one side of the line, the values must tend consistently to positive infinity or consistently to negative infinity.
This distinction is important. A function whose values become arbitrarily large in magnitude but keep switching between positive and negative does not have a signed infinite one-sided limit. Unbounded magnitude alone is not enough to establish a vertical asymptote.
We will use one-sided limits to describe this behavior precisely, then use signs to determine whether the graph rises or falls as it approaches the line.
Definition and Interpretation
The notation \(x\to a^-\) means that \(x\) approaches \(a\) from values less than \(a\); \(x\to a^+\) means that \(x\) approaches from values greater than \(a\). The symbols \(+\infty\) and \(-\infty\) describe the direction in which the function values grow without bound. They are not real numbers that the function reaches.
Precisely, \(\lim_{x\to a^+}f(x)=+\infty\) means that for every \(M>0\), the function values are greater than \(M\) whenever \(x\) is sufficiently close to \(a\) on the right and in the domain. For a limit of \(-\infty\), the values are less than \(-M\) sufficiently close to \(a\). Left-hand limits use the corresponding condition for \(x<a\).
The sign tells us how to read the graph:
| One-sided limit | Behavior near \(x=a\) |
|---|---|
| \(\lim_{x\to a^-}f(x)=+\infty\) | Rises without bound as it approaches from the left |
| \(\lim_{x\to a^-}f(x)=-\infty\) | Falls without bound as it approaches from the left |
| \(\lim_{x\to a^+}f(x)=+\infty\) | Rises without bound as it approaches from the right |
| \(\lim_{x\to a^+}f(x)=-\infty\) | Falls without bound as it approaches from the right |
It is enough for one of these behaviors to occur to make \(x=a\) a vertical asymptote. The behavior on the other side may be different, or the function may not be defined there at all. The value \(f(a)\), if it exists, does not determine whether \(x=a\) is a vertical asymptote.
Read the Sign Before Deciding the Direction
For many functions, the key question is whether the expression becomes positive or negative near \(a\). In a quotient, inspect the numerator and denominator separately. If the numerator stays close to a nonzero value, its sign is fixed sufficiently near \(a\). The denominator’s sign can then determine the direction of the quotient.
For example, near \(x=a\), the factor \(x-a\) is negative on the left and positive on the right. The factor \((x-a)^2\), in contrast, is positive on both sides. This simple sign difference explains why odd and even powers in a denominator can give different one-sided behavior.
Worked Example: Opposite Behavior on the Two Sides
Determine the one-sided limits of \(f(x)=\frac{x+1}{x-2}\) at \(x=2\), and decide whether \(x=2\) is a vertical asymptote.
First, the numerator approaches \(2+1=3\), which is positive. The denominator \(x-2\) approaches zero, but its sign depends on the side:
Thus, as \(x\to2^-\), the quotient has a positive numerator and a negative denominator whose magnitude approaches zero. It decreases without bound:
As \(x\to2^+\), the numerator is still positive and the denominator is positive and approaches zero, so the quotient increases without bound:
At \(x=1.9\), the function value is \(\frac{2.9}{-0.1}=-29\). At \(x=2.1\), it is \(\frac{3.1}{0.1}=31\). These values agree with the left-hand and right-hand directions just found; they check the signs, though the limits themselves follow from the sign and limiting behavior, not from these two samples.
Since at least one of the one-sided limits is infinite, \(x=2\) is a vertical asymptote. In fact, the graph falls without bound on the left and rises without bound on the right.
Even Powers Can Give the Same Direction on Both Sides
If a denominator contains an even power of \(x-a\), that factor is positive on both sides of \(a\). When the numerator is also positive near \(a\), both one-sided limits may be \(+\infty\). A vertical asymptote does not have to send the graph in opposite directions on its two sides.
Worked Example: Rising Without Bound on Both Sides
Find the one-sided limits of \(g(x)=\frac{1}{(x-3)^2}\) as \(x\to3\).
For every \(x\ne3\), the squared denominator is positive. As \(x\) approaches \(3\) from either side, \((x-3)^2\) approaches zero through positive values. The numerator remains \(1\), so the quotient is positive and grows without bound on both sides:
For a numerical sign check, at \(x=2.9\) the value is \(\frac{1}{(-0.1)^2}=100\), and at \(x=3.1\) it is \(\frac{1}{(0.1)^2}=100\). Both are positive, consistent with the two limits. Therefore \(x=3\) is a vertical asymptote, and the graph rises without bound on both sides.
The Domain Can Restrict Which Side Matters
Some functions are defined only on one side of a particular input. In that case, there is no one-sided behavior to analyze from the side outside the domain. A vertical asymptote can still exist if the function tends to positive or negative infinity from the side that is in the domain.
Worked Example: A Vertical Asymptote at a Domain Endpoint
Consider \(h(x)=\frac{1}{\sqrt{x+2}}\). Find the relevant one-sided limit at \(x=-2\) and decide whether \(x=-2\) is a vertical asymptote.
The square root requires \(x+2\ge0\), and the denominator cannot be zero. Therefore the domain is \(x>-2\). There are domain points to the right of \(-2\), but none to the left.
As \(x\to-2^+\), \(x+2\to0^+\), so \(\sqrt{x+2}\to0^+\). The numerator is positive, and division by a positive quantity approaching zero gives a positive infinite limit:
For instance, at \(x=-1.99\), \(x+2=0.01\), \(\sqrt{x+2}=0.1\), and \(h(x)=10\), a positive value consistent with the right-hand behavior. There is no left-hand limit to examine through domain points. The right-hand infinite limit is sufficient, so \(x=-2\) is a vertical asymptote.
Why a Nonzero Numerator Leads to Infinite Behavior
A useful way to understand many rational examples is to separate the part that stays away from zero from the part that approaches zero. Suppose \(N\) is continuous near \(a\), \(N(a)\ne0\), and \(f(x)=\frac{N(x)}{(x-a)^m}\) for \(x\ne a\), where \(m\) is a positive integer.
Because \(N(x)\to N(a)\ne0\), the numerator has the same sign as \(N(a)\) sufficiently near \(a\), and its magnitude stays near a nonzero value. The denominator approaches zero. Its sign is positive on both sides if \(m\) is even; if \(m\) is odd, it is negative on the left and positive on the right. Thus, on each side, the quotient has a fixed sign and its magnitude grows without bound. The sign combination identifies whether the corresponding one-sided limit is \(+\infty\) or \(-\infty\).
Determine whether the function has domain points approaching \(a\) from the left, the right, or both.
Identify the part of the expression that approaches zero or otherwise causes unbounded behavior.
Track the numerator and denominator, or the signs of the relevant factors.
Use \(+\infty\) for values rising without bound and \(-\infty\) for values falling without bound; declare \(x=a\) a vertical asymptote if either occurs.
A Hole Is Not a Vertical Asymptote
A denominator equal to zero in an unreduced formula does not by itself imply a vertical asymptote. If a factor cancels and the resulting function values approach a finite number, the behavior is not infinite. The original function may be undefined at the input, but that alone does not make the vertical line an asymptote.
Worked Example: A Canceled Factor Gives a Finite Limit
Analyze \(q(x)=\frac{x^2-4}{x-2}\) near \(x=2\), and determine whether \(x=2\) is a vertical asymptote.
Factor the numerator:
For \(x\ne2\), cancellation gives \(q(x)=x+2\). Therefore, as \(x\) approaches \(2\) from either side, the function approaches \(2+2=4\):
As a check, \(q(1.9)=\frac{1.9^2-4}{1.9-2}=\frac{-0.39}{-0.1}=3.9\), and \(q(2.1)=\frac{2.1^2-4}{2.1-2}=\frac{0.41}{0.1}=4.1\). Both are near \(4\), not growing without bound. Thus \(x=2\) is not a vertical asymptote. The function is undefined at \(2\), but its nearby values have a finite limit.
Common Mistake: Confusing Unbounded Magnitude with an Infinite Limit
It is possible for \(|f(x)|\) to grow without bound while \(f(x)\) has neither a \(+\infty\) nor a \(-\infty\) one-sided limit. The signed direction must settle; it is not enough that the values become large in magnitude.
For a concrete example, define \(r(x)=\frac{(-1)^{\lfloor 1/(x-a)\rfloor}}{x-a}\) for \(x>a\), where \(\lfloor t\rfloor\) denotes the greatest integer less than or equal to \(t\). Its magnitude is \(|r(x)|=\frac{1}{x-a}\), which grows without bound as \(x\to a^+\). But take \(x_n=a+\frac{1}{2n}\) and \(y_n=a+\frac{1}{2n+1}\), for positive integers \(n\). Both sequences approach \(a\) from the right. At \(x_n\), the floor is \(2n\), so \(r(x_n)=2n\); at \(y_n\), it is \(2n+1\), so \(r(y_n)=-(2n+1)\). Values therefore become arbitrarily large positive along one sequence and arbitrarily large negative along another. Neither signed infinite limit exists from the right, so this behavior does not establish a vertical asymptote at \(x=a\).
Why the One-Sided Description Matters
The equation \(x=a\) tells us the location of a possible vertical asymptote, but the one-sided limits describe the graph’s behavior there. Knowing the direction on each side prevents a vague description such as “the graph goes to infinity” from hiding a sign change or a domain restriction.
When analyzing a candidate line, report the actual limits rather than only naming the asymptote. For example, \(\lim_{x\to a^-}f(x)=-\infty\) and \(\lim_{x\to a^+}f(x)=+\infty\) say more than “\(x=a\) is a vertical asymptote”: they specify that the graph falls on one side and rises on the other. If only one side is in the domain, state that as well.
Check Your Understanding
For each question, focus on the signed one-sided behavior, not just whether the function is undefined or has large values.
- State the definition of a vertical asymptote using one-sided limits.
- If \(\lim_{x\to a^-}f(x)=+\infty\), what does the graph do as it approaches \(x=a\) from the left?
- Why does \(\frac{1}{(x-a)^2}\) have the same infinite-limit direction on both sides of \(a\)?
- If the domain includes points only to the right of \(a\), can \(x=a\) still be a vertical asymptote? Explain.
- Why does a finite limit after canceling a factor show that the input is not a vertical asymptote?
- Why does \(|f(x)|\to\infty\) by itself not guarantee a vertical asymptote under the signed one-sided definition?