Read the three answers: Vertical, Horizontal and Slant. Each lists the equations of the lines, or says there are none. Learn more about reading the answer
Look at the graph: vertical asymptotes are dashed red lines, horizontal ones dashed green, slant ones dashed amber.
Read How it was found to see which way the function runs on each side of a vertical asymptote and what it settles toward far out.
Asymptotes
Vertical
x=1
Horizontal
y=1
Slant
none
How it was found
At x=1: from the left f→−∞, from the right f→+∞.
Far out, f levels off: f(x)→1 as x→+∞, f(x)→1 as x→−∞.
Type the function in the f(x) box. The calculator looks for all three kinds of asymptote at once and draws each one it finds as a dashed line on the graph.
Rational functions are the usual case: type the numerator and the denominator in brackets with a slash between them, as in (x^2 + 1)/(x - 1). The calculator also handles exponentials, logarithms, arctan and the trigonometric functions.
Change the formula and the lines move with it. Try changing one coefficient in the denominator and watch a vertical asymptote slide.
Reading the answer
DemoSlant and one-sided asymptotes
Step 0 of 4
There are three answer boxes.
Vertical lists equations x=c: the vertical lines the graph runs up or down along.
Horizontal lists equations y=L: the levels the graph settles at far to the right or left. If the two sides settle at different levels, each is labelled with its side.
Slant lists lines y=mx+n that the graph hugs far out. A side of the graph has a horizontal asymptote or a slant one, never both.
A box says none when the function has no asymptote of that kind.
How it was found tells you, for each vertical asymptote, whether the function goes to +∞ or −∞ on its left and on its right, and what the function tends to as x→+∞ and x→−∞.
What an asymptote is
An asymptote is a straight line that the graph of a function comes arbitrarily close to as the graph runs off to infinity.
For f(x)=x−1x+1 there are two. Near x=1 the denominator is close to 0, the values become huge, and the graph runs along the vertical line x=1. Far to the right and left, the fraction is close to 1, and the graph flattens along the horizontal line y=1.
An asymptote is not part of the graph. It is a description of where the graph is heading.
x−1x+1 with its vertical asymptote x=1 and horizontal asymptote y=1.
Vertical asymptotes
The line x=c is a vertical asymptote when f(x) grows without bound as x approaches c from at least one side.
For a rational function, look where the denominator is zero. After cancelling any common factors, each remaining zero of the denominator gives a vertical asymptote. x2−1x has denominator (x−1)(x+1), so the asymptotes are x=1 and x=−1.
A zero that cancels gives a hole, not an asymptote: x−1x2−1 has no vertical asymptote at x=1.
Other sources: ln(x) has one at x=0, and tan(x) has one at every 2π+kπ. A graph never crosses its vertical asymptote, because the function has no value there.
x2−1x has vertical asymptotes at x=−1 and x=1.
Horizontal asymptotes
The line y=L is a horizontal asymptote when f(x) tends to L as x→+∞ or as x→−∞.
For a rational function, compare the degrees of the numerator and the denominator:
Numerator lower: y=0. Example: x2−1x.
Equal degrees: y = the ratio of the leading coefficients. Example: x2−42x2+1 gives y=12=2.
Numerator higher: no horizontal asymptote.
A function can have two different horizontal asymptotes, one on each side: arctan(x) tends to 2π on the right and −2π on the left. It can also have one on a single side: e−x tends to 0 on the right and grows without bound on the left.
Unlike a vertical asymptote, a horizontal one may be crossed; it only describes the far ends.
arctan(x) settles at a different level on each side.
Slant asymptotes
When the numerator of a rational function has degree exactly one more than the denominator, the graph follows a slanted line far out. This is a slant (or oblique) asymptote.
Find it by dividing. For x−1x2+1, polynomial division gives
x−1x2+1=x+1+x−12.
As x grows, the last fraction goes to 0, so the graph approaches the line y=x+1.
The calculator finds the same line numerically: the slope is what xf(x) settles at, and the intercept is what f(x)−mx settles at.
x−1x2+1 follows the line y=x+1 far out.
What the calculator checks
Vertical asymptotes are searched for x between −10 and 10; one further out is not seen. Horizontal and slant asymptotes are read from the values of the function at very large ∣x∣.
When vertical asymptotes repeat in a regular pattern, as for tan(x), the pattern is written once instead of listing every line.
Levels and positions that are whole numbers, simple fractions or simple multiples of π are written exactly; others are decimals.
Common mistakes
Calling a hole an asymptote. Cancel common factors first; only the zeros of the denominator that remain give vertical asymptotes.
Thinking a graph can never cross an asymptote. That holds for vertical ones only. x2+1x crosses its horizontal asymptote y=0 at the origin.
Looking for both a horizontal and a slant asymptote on one side. A side has at most one of the two.
Using the wrong coefficients. For equal degrees, the level is the ratio of the leading coefficients, not of the constant terms.
Forgetting one side.ex has a horizontal asymptote on the left only.
Related tools and lessons
To see the three kinds of asymptote on prepared examples, with sliders that move them, open the Asymptotes visual tool. Asymptotes are discussed with the other properties of functions.
A vertical asymptote is a number missing from the domain, found by the Domain Calculator; a horizontal one is often a value missing from the range, found by the Range Calculator. For everything about one function at once, use the Function Explorer.