Asymptotes
An asymptote is a line that a graph gets closer and closer to. Vertical asymptotes are where a function blows up. Horizontal and slant asymptotes describe what it does far out to the left and right.
What is an asymptote?
An asymptote is a straight line that a curve approaches as it heads off to infinity. The graph of y = 1/x has two: as x gets close to 0, the curve shoots up or down along the y-axis (a vertical asymptote), and as x gets large, the curve flattens toward the x-axis (a horizontal asymptote).
How to find vertical asymptotes
- Factor the top and bottom, and cancel any common factors.
- Set what is left on the bottom equal to zero, and solve.
For (x + 1)/(x² − 4): the bottom factors as (x − 2)(x + 2), and nothing cancels. So the vertical asymptotes are x = 2 and x = −2.
A graph can never cross a vertical asymptote, because the function isn’t defined there.
How to find horizontal asymptotes
Compare the degree (the highest power) of the top with that of the bottom:
| Rule | Horizontal asymptote | Example |
|---|---|---|
| Bottom degree is bigger | y = 0 | (x + 1)/(x² + 3) → y = 0 |
| Degrees are equal | The ratio of the leading coefficients | (4x² + 1)/(2x² − 3) → y = 2 |
| Top degree is bigger | None | x³/(x + 1) |
Why this works: for large x, only the highest power matters. (4x² + 1)/(2x² − 3) behaves like 4x²/2x² = 2.
A graph can cross a horizontal asymptote, because the asymptote only describes what happens far from the origin. y = x/(x² + 1) crosses y = 0 at the origin, for example.
How to find slant (oblique) asymptotes
A slant asymptote occurs when the top’s degree is exactly one more than the bottom’s. Divide the polynomials, and the quotient, ignoring the remainder, is the asymptote.
For (x² + 3x + 2)/(x − 1): dividing gives x + 4 with a remainder of 6, so the function equals x + 4 + 6/(x − 1). As x gets large, 6/(x − 1) fades to 0, leaving the slant asymptote y = x + 4.
Holes vs vertical asymptotes
A factor that cancels from both top and bottom creates a hole, rather than an asymptote. (x² − 1)/(x − 1) simplifies to x + 1, with x ≠ 1. So its graph is a straight line with a single point missing at (1, 2). The test: cancel first, and only what is still on the bottom gives vertical asymptotes. The asymptote calculator does this for you and reports any holes.
Asymptotes of other functions
| Function | Asymptotes |
|---|---|
| eˣ | Horizontal: y = 0, on the left only |
| ln x | Vertical: x = 0 |
| tan x | Vertical: x = π/2 + nπ |
| arctan x | Horizontal: y = π/2 on the right, and y = −π/2 on the left |
| Logistic curve | Horizontal: y = 0 and y = L |
The formal definition, using limits
Asymptotes are defined by limits. The line x = a is a vertical asymptote if f(x) → ±∞ as x approaches a from either side. The line y = L is a horizontal asymptote if f(x) → L as x → ∞ or x → −∞. The line y = mx + b is a slant asymptote if f(x) − (mx + b) → 0 as x → ±∞.
A word about calculators
Many graphing calculators draw a false near-vertical line where a curve jumps across an asymptote, because they simply join the dots. We have written about why this happens and how to avoid it.
Frequently asked questions
How do you find a horizontal asymptote?
How do you find a vertical asymptote?
What is a slant asymptote?
Can a function cross its asymptote?
How many asymptotes can a function have?
What is the difference between a hole and an asymptote?
Keep going
Find them for any rational function.
The simplest function with asymptotes.
The formal idea behind asymptotes.
How asymptotes show up as gaps.
The vertical line that isn’t there.
A function with infinitely many asymptotes.
Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.