Tutorials › Calculus I › Testing Candidate Asymptotes With Residuals

One-Sided and Infinite Limits · Tutorial 254 of 1495

Testing Candidate Asymptotes With Residuals

Use residual limits to verify candidate horizontal and slant asymptotes, distinguish correct from incorrect candidates, and check which end of the domain a candidate describes.

Intermediate 10 min read

What You'll Learn

  • Define a residual for a proposed horizontal or slant asymptote.
  • State the limit test for an asymptote at positive or negative infinity.
  • Verify candidates by simplifying and evaluating residual limits.
  • Reject a line when its residual approaches a nonzero value or diverges.
  • Explain why a line asymptote, if it exists at a given end, is unique.
  • Distinguish asymptotes that apply at one end from those that apply at both ends.

Why Test a Candidate Line?

A graph may appear to approach a line as \(x\) grows large in magnitude, but appearance alone does not establish an asymptote. A direct test compares the function with the proposed line: subtract the line from the function, then determine whether the difference tends to zero at the end in question.

This comparison applies to horizontal lines as well as slant lines. A horizontal line is simply a line with slope zero. The test also makes clear that an asymptote is an end-specific claim: a line may describe the function as \(x\to+\infty\), as \(x\to-\infty\), at both ends, or at neither.

The Residual Test

Let \(f\) be defined for all sufficiently large positive \(x\), or for all sufficiently large negative \(x\), as appropriate. For a proposed line \(y=mx+b\), define its residual by subtracting the line from the function. The residual records the signed vertical difference between the function value and the line at the same input.

Definition: The line \(y=mx+b\) is an asymptote to the graph of \(f\) as \(x\to+\infty\) if \( \lim_{x\to+\infty}\bigl(f(x)-(mx+b)\bigr)=0 \). It is an asymptote as \(x\to-\infty\) if \( \lim_{x\to-\infty}\bigl(f(x)-(mx+b)\bigr)=0 \). The residual is \(f(x)-(mx+b)\). A horizontal asymptote \(y=c\) is the special case \(m=0\), \(b=c\).

Since a quantity tends to zero exactly when its absolute value tends to zero, the test says that the vertical distance between the graph and the candidate line becomes arbitrarily small. The residual need not be positive: it may approach zero from above or below.

For a horizontal candidate \(y=c\), the residual is \(f(x)-c\). For a slant candidate \(y=mx+b\), it is \(f(x)-mx-b\). A candidate is confirmed only if this residual tends to zero at the specified end. Merely finding that it stays bounded, or that it is small for some large input, is not enough.

Worked Example: Testing a Slant Asymptote at Both Ends

Worked Example: Testing a Slant Asymptote at Both Ends

Test the candidate line \(y=2x+1\) for the function \(f(x)=\frac{2x^2+3x+4}{x+1}\).

The residual is the function minus the candidate line:

$$ \begin{aligned} f(x)-(2x+1) &=\frac{2x^2+3x+4}{x+1}-(2x+1)\\ &=\frac{2x^2+3x+4-(2x+1)(x+1)}{x+1}\\ &=\frac{2x^2+3x+4-(2x^2+3x+1)}{x+1}\\ &=\frac{3}{x+1}. \end{aligned} $$

As \(x\to+\infty\), the denominator \(x+1\) grows without bound, so \(\frac{3}{x+1}\to0\). As \(x\to-\infty\), its magnitude also grows without bound, so \(\frac{3}{x+1}\to0\) there as well.

Therefore, \(y=2x+1\) is an asymptote at both ends. To check the result directly, rewrite the function as \(f(x)=2x+1+\frac{3}{x+1}\). Subtracting the proposed line gives exactly the residual just evaluated.

Worked Example: Testing a Horizontal Asymptote

Worked Example: Testing a Horizontal Asymptote

Test whether \(y=3\) is a horizontal asymptote of \(f(x)=\frac{3x^2-2}{x^2+5x+1}\), and determine at which ends it is an asymptote.

Subtract the candidate constant from the function, combining the terms over a common denominator:

$$ \begin{aligned} f(x)-3 &=\frac{3x^2-2}{x^2+5x+1}-3\\ &=\frac{3x^2-2-3(x^2+5x+1)}{x^2+5x+1}\\ &=\frac{3x^2-2-3x^2-15x-3}{x^2+5x+1}\\ &=\frac{-15x-5}{x^2+5x+1}. \end{aligned} $$

Divide the numerator and denominator by \(x^2\) to evaluate the residual limit:

$$ \frac{-15x-5}{x^2+5x+1} = \frac{-15/x-5/x^2}{1+5/x+1/x^2}. $$

At either \(+\infty\) or \(-\infty\), the numerator tends to zero and the denominator tends to \(1\). Thus the residual tends to zero at both ends. The candidate \(y=3\) is a horizontal asymptote as \(x\to+\infty\) and as \(x\to-\infty\).

As a final check, the identity \(f(x)=3+\frac{-15x-5}{x^2+5x+1}\) shows that the difference between the function and \(3\) is precisely the expression whose limit was evaluated.

Why the Test Works

The residual test is not a separate trick for rational functions. It follows directly from what it means for the graph to approach a line. At a fixed input \(x\), the candidate line has height \(mx+b\), while the graph has height \(f(x)\). Their signed vertical difference is \(f(x)-(mx+b)\); their vertical distance is its absolute value. The graph approaches the line at an end exactly when this distance tends to zero there.

Result: To verify a proposed line \(y=mx+b\) at a specified end, compute \(f(x)-(mx+b)\) and evaluate its limit at that end. The line passes the test if and only if the limit is zero.

The condition is exact: a nonzero residual limit means the gap does not close, while an unbounded or otherwise nonconvergent residual also fails the test. If the limit is zero, the difference in heights can be made smaller than any prescribed positive amount by taking \(x\) sufficiently far toward the specified end.

For a rational function, polynomial division often makes the test convenient. Division can express the function as a polynomial quotient plus a remainder divided by the original denominator. When the quotient is linear and the remainder term tends to zero, the quotient line is a slant asymptote. But division proposes a candidate; the residual limit is what confirms it.

Worked Example: Rejecting an Incorrect Slant Candidate

Worked Example: Rejecting an Incorrect Slant Candidate

For \(f(x)=\frac{x^2+1}{x-1}\), test the proposed line \(y=x\). If it fails, test \(y=x+1\) instead.

For the first candidate, the residual is

$$ \begin{aligned} f(x)-x &=\frac{x^2+1}{x-1}-x\\ &=\frac{x^2+1-x(x-1)}{x-1}\\ &=\frac{x^2+1-(x^2-x)}{x-1}\\ &=\frac{x+1}{x-1}. \end{aligned} $$

Dividing the numerator and denominator by \(x\) gives \(\frac{1+1/x}{1-1/x}\), which tends to \(1\) at both \(+\infty\) and \(-\infty\). Since the residual does not tend to zero, \(y=x\) is not an asymptote at either end.

Now test \(y=x+1\):

$$ \begin{aligned} f(x)-(x+1) &=\frac{x^2+1-(x+1)(x-1)}{x-1}\\ &=\frac{x^2+1-(x^2-1)}{x-1}\\ &=\frac{2}{x-1}. \end{aligned} $$

The residual \(\frac{2}{x-1}\) tends to zero as \(x\to+\infty\) and as \(x\to-\infty\). Therefore \(y=x+1\) is an asymptote at both ends. Indeed, the identity \(f(x)=x+1+\frac{2}{x-1}\) verifies the residual calculation.

One End at a Time

A limit at \(+\infty\) and a limit at \(-\infty\) are separate statements. Even if a proposed line passes the test at one end, that does not establish that it passes at the other. A function may have different behavior in the two directions.

Worked Example: A Line That Is an Asymptote at Only One End

Let \(f(x)=x+e^{-x}\), and test the candidate \(y=x\) at each end. The residual is

$$ f(x)-x=(x+e^{-x})-x=e^{-x}. $$

As \(x\to+\infty\), \(e^{-x}\to0\), so the candidate line is an asymptote at that end. As \(x\to-\infty\), the exponent \(-x\to+\infty\), so \(e^{-x}\to+\infty\). The residual therefore does not tend to zero at the negative end, and \(y=x\) is not an asymptote there.

Substituting the line back into the difference confirms both conclusions: the gap from the graph to \(y=x\) is exactly \(e^{-x}\), which vanishes only in the positive direction.

Uniqueness of a Line Asymptote at One End

At a fixed end, a function cannot have two different line asymptotes. This useful fact follows from the residual condition itself.

Theorem: If both \(y=m_1x+b_1\) and \(y=m_2x+b_2\) are asymptotes to \(f\) at the same end, then \(m_1=m_2\) and \(b_1=b_2\).

To prove this, suppose both lines are asymptotes at the same end. By the residual test, each residual tends to zero there. Subtract the second residual from the first:

$$ \begin{aligned} \bigl(f(x)-m_1x-b_1\bigr)-\bigl(f(x)-m_2x-b_2\bigr) &=(m_2-m_1)x+(b_2-b_1). \end{aligned} $$

The left-hand side tends to zero, because it is the difference of two quantities that each tend to zero. Hence the linear expression on the right tends to zero at that end. If \(m_2-m_1\ne0\), its magnitude grows without bound as \(x\to+\infty\) and also as \(x\to-\infty\), so it cannot tend to zero. Therefore \(m_2=m_1\). The expression then reduces to the constant \(b_2-b_1\), which can tend to zero only if \(b_2=b_1\). This proves uniqueness.

The theorem concerns two lines at the same end. It does not rule out a function having different asymptote lines at opposite ends, because the two residual limits would then be evaluated in different directions.

Common Pitfall: Accepting a Nonzero Residual Limit

A frequent error is to simplify a residual and observe that it is bounded, then conclude that the candidate is an asymptote. Boundedness is weaker than tending to zero. In the preceding example, the wrong candidate \(y=x\) produced the residual \(\frac{x+1}{x-1}\). It is bounded for sufficiently large \(|x|\), but

$$ \lim_{x\to+\infty}\frac{x+1}{x-1} = \lim_{x\to-\infty}\frac{x+1}{x-1} =1, $$

not zero. The vertical gap approaches \(1\), so it does not close. The corrected candidate \(y=x+1\) gives residual \(\frac{2}{x-1}\), whose limit is zero at both ends.

Another way the same mistake occurs is to cancel the leading powers in a residual and assume the remaining expression vanishes. Cancellation alone does not determine the limit. Simplify the residual carefully, then evaluate its limit; the required conclusion is specifically zero.

A Reliable Checking Procedure

When given a candidate line, proceed in a fixed order. Keeping the proposed end explicit prevents a correct calculation in one direction from being mistaken for a conclusion about both.

1
Write the candidate clearly.
Identify its slope and intercept; for a horizontal line \(y=c\), use slope \(0\).
2
Form the residual.
Subtract the entire candidate expression from \(f(x)\): \(f(x)-(mx+b)\).
3
Simplify without losing terms.
For rational expressions, use a common denominator or an algebraic rewrite that preserves the exact difference.
4
Evaluate the limit at the stated end.
Test \(+\infty\) and \(-\infty\) separately when both are relevant.
5
State the conclusion from the residual limit.
A zero limit confirms the candidate at that end; a nonzero or nonexistent limit rejects it there.

Why Residuals Are Useful

The residual test turns a visual idea into a precise calculation. It is useful both for confirming a line suggested by polynomial division or end behavior and for detecting a plausible-looking but incorrect candidate. It also makes the scope of the conclusion precise: every successful test refers to a particular line and a particular direction.

When a proposed asymptote is used in a later calculation or graph interpretation, its residual describes exactly how far the function remains from that line. A limit of zero says that the difference becomes arbitrarily small; it does not say that the function equals the line, nor that the residual is zero at any finite input.

Check Your Understanding

For each question, use the residual and specify the end or ends being tested.

  1. What residual should be evaluated to test \(y=4\) as a horizontal asymptote of \(f\)?
  2. For \(f(x)=\frac{x^2+3x+2}{x}\), test \(y=x+3\) at \(+\infty\) by calculating the residual and its limit.
  3. If a proposed line has residual tending to \(-2\) as \(x\to-\infty\), is it an asymptote at that end? Explain.
  4. Can \(y=mx+b\) be an asymptote as \(x\to+\infty\) without being one as \(x\to-\infty\)? Give a reason based on the residual test.
  5. Why can two distinct lines not both be asymptotes to the same function at the same end?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon