Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find the Asymptotes of a Function

An asymptote is a line the graph approaches without settling on it. For a rational function, vertical asymptotes come from the zeros of the reduced denominator and the horizontal or slant one from comparing degrees.

Recognize the task

The question asks for asymptotes, holes, behavior near an excluded value, or behavior as x→±∞x \to \pm\infty. Typical forms: rational functions 3xx+4\frac{3x}{x + 4}, x+1x2−9\frac{x + 1}{x^2 - 9}, x2+3x+1x+1\frac{x^2 + 3x + 1}{x + 1}, and also exponentials 2x−32^x - 3 and logarithms ln⁡(x−2)\ln(x - 2). Test: is there an xx in a denominator, an exponent or a log?
Asymptotes are defined in the lesson section Asymptotes.

Ways to do it

Rational function: factor and compare degreesusual
f(x)=P(x)Q(x):x=a where Q(a)=0, P(a)≠0f(x) = \frac{P(x)}{Q(x)}: \quad x = a \text{ where } Q(a) = 0,\ P(a) \neq 0
Vertical from the denominator zeros, horizontal or slant from the degrees (rational functions).
Exponential: read the shiftexponential
y=a bx−h+k  ⇒  y=ky = a\,b^{x - h} + k \;\Rightarrow\; y = k
The horizontal asymptote is the vertical shift; there is no vertical asymptote.
Logarithm: argument equal to zerologarithm
y=log⁡b(x−h)+k  ⇒  x=hy = \log_b(x - h) + k \;\Rightarrow\; x = h
The vertical asymptote is where the argument reaches 00; there is no horizontal asymptote.

Steps

StepOn f(x)=x2−1x2−3x+2f(x) = \dfrac{x^2 - 1}{x^2 - 3x + 2}
1Factor the numerator and the denominator. Use the factoring techniques for each polynomial.(x−1)(x+1)(x−1)(x−2)\dfrac{(x - 1)(x + 1)}{(x - 1)(x - 2)}
2Cancel common factors and mark the holes. A factor that cancels completely leaves a hole; find its height from the reduced formula.hole at x=1x = 1: 1+11−2=−2\frac{1 + 1}{1 - 2} = -2, point (1,−2)(1, -2)
3Set the remaining denominator to zero. Each zero of the reduced denominator is a vertical asymptote.vertical asymptote x=2x = 2
4Compare the degrees. Equal degrees: ratio of leading coefficients. Numerator lower: the x-axis.degree 22 over degree 22: y=11=1y = \frac{1}{1} = 1
5Check for a slant asymptote. Only when the numerator degree is exactly one more: divide and keep the linear quotient.degrees are equal: no slant asymptote

Worked examples

Example 1 · equal degrees

horizontal
f(x)=3xx+4f(x) = \dfrac{3x}{x + 4}
nothing cancels
x+4=0⇒x=−4x + 4 = 0 \Rightarrow x = -4
vertical asymptote
x=−4x = -4 and y=31=3y = \frac{3}{1} = 3
leading coefficients

Example 2 · numerator of lower degree

x-axis
f(x)=x+1(x−3)(x+3)f(x) = \dfrac{x + 1}{(x - 3)(x + 3)}
nothing cancels
vertical asymptotes x=3x = 3, x=−3x = -3
denominator zeros
horizontal asymptote y=0y = 0
degree 1<1 < degree 22

Example 3 · numerator one degree higher

slant
f(x)=x2+3x+1x+1f(x) = \dfrac{x^2 + 3x + 1}{x + 1}
degree 22 over degree 11
f(x)=x+2−1x+1f(x) = x + 2 - \dfrac{1}{x + 1}
long division
vertical x=−1x = -1, slant y=x+2y = x + 2
the remainder term dies out
For the division step, see polynomial long division. Explore the curves near their asymptotes in the asymptotes visualizer.

See it happen

Near a zero of the denominator, the fraction divides by a tiny number, so the outputs blow up: that is a vertical asymptote. If the numerator is zero at the same place, the two small factors cancel and only a hole is left. Far from the origin, only the leading terms matter: 3xx+4\frac{3x}{x + 4} behaves like 3xx=3\frac{3x}{x} = 3, which is why comparing degrees gives the horizontal asymptote.

Common mistakes

Calling a hole a vertical asymptote

✗ x2−1x2−3x+2\frac{x^2 - 1}{x^2 - 3x + 2} has vertical asymptotes x=1x = 1 and x=2x = 2
✓ (x−1)(x - 1) cancels: hole at (1,−2)(1, -2), asymptote only x=2x = 2

Using leading coefficients when degrees differ

✗ x+1x2−9\frac{x + 1}{x^2 - 9} has horizontal asymptote y=1y = 1
✓ numerator degree is lower: y=0y = 0

Believing the graph never crosses a horizontal asymptote

✗ x+1x2−9\frac{x + 1}{x^2 - 9} is never 00 because y=0y = 0 is its asymptote
✓ f(−1)=0f(-1) = 0: the graph crosses y=0y = 0 at x=−1x = -1

Forgetting the shift of an exponential

✗ 2x−32^x - 3 has asymptote y=0y = 0
✓ the graph is moved down 33: asymptote y=−3y = -3