Skip to content
Mathematics15 min

Vertical, Horizontal and Oblique Asymptotes: How to Find Them With Limits

by Andrea

In brief

Asymptotes are found with limits at the edges of the domain. Vertical: at the excluded points, if the right-hand or the left-hand limit is infinite. Horizontal: if the limit as x±x \to \pm\infty is a finite number LL, the line is y=Ly = L. Oblique: if it is infinite, with m=limf(x)xm = \lim \frac{f(x)}{x} and q=lim[f(x)mx]q = \lim [f(x) - mx]. Each side is checked separately.

In curve sketching, asymptotes are worth more than the marks they carry: they are the skeleton of the graph. Get them wrong and the curve you draw at the end is wrong too, even if the derivative, the maxima and the points of inflection are perfect. In our fifth-year courses we see that almost nobody gets the calculation of the limit itself wrong: the mistake comes earlier, in deciding which limits to calculate, or later, in reading the result. This guide lines up the three types, the method for each one, four examples with the numbers, and the mistakes we correct most often.

What is an asymptote, and why does it matter in curve sketching?

An asymptote is a line that the graph gets closer and closer to as you move along the curve: either towards a point where the function "blows up", or towards infinity. There are three types — vertical x=x0x = x_0, horizontal y=Ly = L, oblique (or slant) y=mx+qy = mx + q — and all three are found with a limit. That is why the chapter on limits comes before this one: if you need a refresher, our guide to limits for the Maturità starts from scratch.

In the calculus problem of the seconda prova, the Maturità maths paper, asymptotes are — after the domain and the sign — the first piece of the graph you can actually draw: you sketch the dashed lines and the curve has to slot in between them. That is why a missed or mistaken asymptote does not cost half a mark: it shifts the entire drawing. A useful detail for getting your bearings: a function can have infinitely many vertical asymptotes (tanx\tan x has one at every x=π2+kπx = \frac{\pi}{2} + k\pi), but at most two between horizontal and oblique, one for each side.

How do you find a vertical asymptote?

The method has three steps. First: work out the domain, because the candidates are the excluded points and the finite edges — the zeros of the denominator, the point where the argument of a logarithm vanishes. Second: at each candidate x0x_0, calculate the right-hand limit and the left-hand limit, separately. Third: if at least one of the two is ±\pm\infty, the line x=x0x = x_0 is a vertical asymptote.

Take f(x)=3x12x+5f(x) = \dfrac{3x-1}{2x+5}. Domain: 2x+502x + 5 \neq 0, that is x52x \neq -\frac{5}{2}. At x0=52x_0 = -\frac{5}{2} the numerator is 3(52)1=1723 \cdot \left(-\frac{5}{2}\right) - 1 = -\frac{17}{2}, a number other than zero, while the denominator tends to 00: the limit is infinite, and all that remains is to settle the sign.

limx52+3x12x+5=1720+=limx523x12x+5=1720=+\lim_{x \to -\frac{5}{2}^+} \frac{3x-1}{2x+5} = \frac{-\frac{17}{2}}{0^+} = -\infty \qquad\qquad \lim_{x \to -\frac{5}{2}^-} \frac{3x-1}{2x+5} = \frac{-\frac{17}{2}}{0^-} = +\infty

For the sign of the denominator a test value is enough: to the right of 2.5-2.5, at x=2.4x = -2.4 for instance, 2x+5=0.2>02x + 5 = 0.2 > 0; to the left, at x=2.6x = -2.6, it is 0.2<0-0.2 < 0. Vertical asymptote x=52x = -\frac{5}{2}, with the curve dropping to -\infty as it comes in from the right and climbing to ++\infty as it comes in from the left.

The two separate limits do two jobs. They tell you which way the curve goes, without which the drawing is impossible. And they protect you from the cases where the asymptote exists on one side only: lnx\ln x has the asymptote x=0x = 0 from the right alone, because to the left it is not even defined, and in a moment we shall see a function that blows up to the right of 00 and quietly reaches the origin from the left.

Now the case that catches people out. f(x)=x+2x24f(x) = \dfrac{x+2}{x^2-4}. Domain: x240x^2 - 4 \neq 0, that is x2x \neq 2 and x2x \neq -2. Two candidates, but with different fates.

At x=2x = 2 the numerator is 44 and the denominator tends to 00; x24x^2 - 4 is positive outside the interval [2,2][-2, 2] and negative inside it, so:

limx2+x+2x24=+limx2x+2x24=\lim_{x \to 2^+} \frac{x+2}{x^2-4} = +\infty \qquad\qquad \lim_{x \to 2^-} \frac{x+2}{x^2-4} = -\infty

Vertical asymptote x=2x = 2. At x=2x = -2, by contrast, numerator and denominator tend to 00: the indeterminate form 00\frac{0}{0}, from which nothing follows. So we factorise:

x+2x24=x+2(x2)(x+2)=1x2(x2)limx21x2=14\frac{x+2}{x^2-4} = \frac{x+2}{(x-2)(x+2)} = \frac{1}{x-2} \quad (x \neq -2) \qquad\Longrightarrow\qquad \lim_{x \to -2} \frac{1}{x-2} = -\frac{1}{4}

A finite limit: no asymptote. At x=2x = -2 the function has a hole, a removable discontinuity, at the point (2,14)\left(-2, -\frac{1}{4}\right): on the graph you mark it with an open circle, not with a dashed line.

A point excluded from the domain does not mean an asymptote

"The denominator vanishes at 2-2, so there is a vertical asymptote x=2x = -2" is the sentence we read most often in class tests on this topic, and it is wrong. A point excluded from the domain is only a candidate. If numerator and denominator vanish together, the limit may well be finite, and then what you have is a hole, not a line. The check takes ten seconds: substitute x0x_0 into the numerator as well. If you get zero, factorise before declaring the asymptote.

Want to improve your performance?

Contact us for your first lesson and find out how we can help you with a personalized learning path.

Book now

How do you find a horizontal asymptote?

You calculate limx+f(x)\lim_{x \to +\infty} f(x) and limxf(x)\lim_{x \to -\infty} f(x), one at a time. If the limit is a finite number LL, the line y=Ly = L is a horizontal asymptote on that side. For rational functions the result depends only on the degrees: numerator of lower degree, asymptote y=0y = 0; equal degrees, yy equal to the ratio of the leading coefficients; numerator of higher degree, no horizontal asymptote (and you move on to look for the oblique one).

For f(x)=3x12x+5f(x) = \dfrac{3x-1}{2x+5} the degrees are equal. Taking xx out as a factor above and below:

limx±3x12x+5=limx±31x2+5x=32\lim_{x \to \pm\infty} \frac{3x-1}{2x+5} = \lim_{x \to \pm\infty} \frac{3 - \frac{1}{x}}{2 + \frac{5}{x}} = \frac{3}{2}

Horizontal asymptote y=32y = \frac{3}{2}, on both sides. For f(x)=x+2x24f(x) = \dfrac{x+2}{x^2-4} the numerator has degree 11 against 22: the limit is 00 and the asymptote is the xx-axis, y=0y = 0. You can see it from the simplified form 1x2\frac{1}{x-2} as well.

The two sides need not agree. arctanx\arctan x tends to π2\frac{\pi}{2} as x+x \to +\infty and to π2-\frac{\pi}{2} as xx \to -\infty: two different horizontal asymptotes. exe^x has the asymptote y=0y = 0 only towards the left, while towards the right it climbs to infinity with no line to accompany it. Rational functions always behave the same way on the two sides; all the others — exponentials, arctangents, roots, absolute values — have to be checked one side at a time.

A detail that always comes as a surprise: the graph can cross a horizontal asymptote. f(x)=xx2+1f(x) = \dfrac{x}{x^2+1} has the asymptote y=0y = 0 and passes through the origin, so it crosses it at x=0x = 0; sinxx\dfrac{\sin x}{x} crosses it infinitely many times. A horizontal asymptote describes where the curve goes at infinity, not a wall somewhere finite. It is the vertical asymptote that cannot be crossed, because at x0x_0 the function is not defined.

When does an oblique asymptote exist, and how do you calculate mm and qq?

You look for the oblique asymptote y=mx+qy = mx + q only where there is no horizontal one, that is on a side where f(x)±f(x) \to \pm\infty. On the same side, horizontal and oblique rule each other out: if you have found y=32y = \frac{3}{2} for x+x \to +\infty, looking for an oblique asymptote on the right as well is time wasted. For a rational function the condition is precise: the degree of the numerator equal to the degree of the denominator plus one. If the gap is two degrees or more, the function goes to infinity like a parabola or faster, and no line keeps up with it.

There are two formulas:

m=limx±f(x)xq=limx±[f(x)mx]m = \lim_{x \to \pm\infty} \frac{f(x)}{x} \qquad\qquad q = \lim_{x \to \pm\infty} \left[f(x) - mx\right]

The asymptote exists if both limits are finite and m0m \neq 0. If mm comes out as 00, or qq infinite, the function grows with no line to guide it: that is what happens with x\sqrt{x}, with lnx\ln x, with x2x^2.

Take f(x)=2x2+3x1x1f(x) = \dfrac{2x^2+3x-1}{x-1}. Degree 22 above, 11 below: a candidate. For completeness, the vertical asymptote is x=1x = 1 (numerator 44, hence ++\infty from the right and -\infty from the left) and there is no horizontal one, because the limit at infinity is infinite.

m=limx±2x2+3x1x(x1)=limx±2x2+3x1x2x=2m = \lim_{x \to \pm\infty} \frac{2x^2+3x-1}{x\,(x-1)} = \lim_{x \to \pm\infty} \frac{2x^2+3x-1}{x^2-x} = 2
q=limx±[2x2+3x1x12x]=limx±2x2+3x12x(x1)x1=limx±5x1x1=5q = \lim_{x \to \pm\infty} \left[\frac{2x^2+3x-1}{x-1} - 2x\right] = \lim_{x \to \pm\infty} \frac{2x^2+3x-1-2x(x-1)}{x-1} = \lim_{x \to \pm\infty} \frac{5x-1}{x-1} = 5

Oblique asymptote y=2x+5y = 2x + 5, the same on both sides, as always for rational functions.

The step where marks get lost is the numerator of qq: 2x(x1)-2x(x-1) is 2x2+2x-2x^2 + 2x, and it is that +2x+2x that goes missing. Anyone who writes 2x2+3x12x22x=x12x^2 + 3x - 1 - 2x^2 - 2x = x - 1 gets q=1q = 1 and an asymptote y=2x+1y = 2x + 1: the right line shifted four units downwards, and a graph that no longer adds up.

There is a shorter and safer route, polynomial long division. Dividing 2x2+3x12x^2 + 3x - 1 by x1x - 1 gives quotient 2x+52x + 5 and remainder 44, that is

f(x)=2x+5+4x1f(x) = 2x + 5 + \frac{4}{x-1}

The quotient is the asymptote, and the remainder over the divisor is the part that tends to zero. A single line, with one extra piece of information into the bargain: 4x1\frac{4}{x-1} is positive for x>1x > 1 and negative for x<1x < 1, so the curve sits above the line y=2x+5y = 2x + 5 to the right of the vertical asymptote and below it to the left. When you get to the drawing, that tells you which side of the dashed line to run the curve along.

Want to improve your performance?

Contact us for your first lesson and find out how we can help you with a personalized learning path.

Book now

A Maturità classic, from start to finish

f(x)=xe1/xf(x) = x\,e^{1/x}. It is not rational, so there are no shortcuts with the degrees: you follow the whole scheme.

Domain: x0x \neq 0. One candidate for the vertical asymptote, two directions for infinity.

Vertical, x0+x \to 0^+: 1x+\frac{1}{x} \to +\infty, so e1/x+e^{1/x} \to +\infty. The product is an indeterminate form 00 \cdot \infty; setting t=1xt = \frac{1}{x} it becomes limt+ett=+\lim_{t \to +\infty} \frac{e^t}{t} = +\infty, because the exponential beats any power. Vertical asymptote x=0x = 0, from the right.

Vertical, x0x \to 0^-: 1x\frac{1}{x} \to -\infty, so e1/x0e^{1/x} \to 0, and the product xe1/x0x\,e^{1/x} \to 0. From the left the curve reaches the origin with no asymptote at all. The same candidate line, opposite behaviour on the two sides: which is exactly why the limits are taken separately.

Horizontal: as x±x \to \pm\infty, 1x0\frac{1}{x} \to 0 and e1/x1e^{1/x} \to 1, so f(x)f(x) behaves like xx and tends to ±\pm\infty. No horizontal asymptote, so we move on to the oblique one.

m=limx±xe1/xx=limx±e1/x=1m = \lim_{x \to \pm\infty} \frac{x\,e^{1/x}}{x} = \lim_{x \to \pm\infty} e^{1/x} = 1
q=limx±(xe1/xx)=limx±x(e1/x1)=limt0et1t=1q = \lim_{x \to \pm\infty} \left(x\,e^{1/x} - x\right) = \lim_{x \to \pm\infty} x\left(e^{1/x} - 1\right) = \lim_{t \to 0} \frac{e^t - 1}{t} = 1

The last step is the standard limit et1t1\frac{e^t - 1}{t} \to 1, which you will find explained in our guide to standard limits for the Maturità. Oblique asymptote y=x+1y = x + 1 on both sides.

To sum up: vertical asymptote x=0x = 0 from the right only, no horizontal asymptote, oblique y=x+1y = x + 1. With these three pieces of information and the sign of the function, the graph is already recognisable before you have even touched the derivative.

How we set it up in lessons

Before any limit at all, we get students to write out a table with one row for every "edge" of the domain: -\infty, each excluded point split into x0x_0^- and x0+x_0^+, ++\infty. For xe1/xx\,e^{1/x} that makes four rows: -\infty, 00^-, 0+0^+, ++\infty. Every row has to be closed off with a limit and a conclusion (asymptote, hole, nothing). An empty row stands out at a glance — and the empty row, in the papers we mark, is almost always 00^- or -\infty.

Want to improve your performance?

Contact us for your first lesson and find out how we can help you with a personalized learning path.

Book now

The mistakes we see most often in lessons

Marking fifth-year class tests and Maturità mock papers, six mistakes come back with more regularity than any others:

  1. The limit taken from one side only. limxx0\lim_{x \to x_0} gets calculated without distinguishing x0x_0^- from x0+x_0^+, and written as "== \infty" with no sign. Then you do not know which way to draw the curve, and in cases like xe1/xx\,e^{1/x} an asymptote on the left gets invented that does not exist.
  2. An excluded point mistaken for an asymptote. x+2x24\frac{x+2}{x^2-4} declared to have two vertical asymptotes. At 2-2 there is a hole. The check is to substitute x0x_0 into the numerator as well: if you get zero, factorise before concluding.
  3. A vertical asymptote written as y=y = \ldots A vertical asymptote is a vertical line, and its equation is x=x0x = x_0. "Vertical asymptote y=2y = 2" is an error of form that some examiners penalise, and one that shows the line was never actually pictured.
  4. The oblique asymptote hunted for where the horizontal one is, or forgotten where it is needed. If limx+f(x)\lim_{x \to +\infty} f(x) is finite, there is no oblique asymptote on the right: mm and qq should not even be calculated. If instead the limit is infinite and, for rational functions, the numerator exceeds the denominator by exactly one degree, the oblique asymptote does have to be looked for. Skipping it leaves the graph without guidance precisely where it needs it.
  5. The sign in the numerator of qq. Calculating f(x)mxf(x) - mx means subtracting a whole polynomial: the minus has to be distributed over every term. It is the mistake that turns y=2x+5y = 2x + 5 into y=2x+1y = 2x + 1. If in doubt, do the polynomial division and compare the two results.
  6. Only one infinity checked. For exe^x, arctanx\arctan x, and for functions with roots or absolute values, the two sides can give different results. The limit has to be calculated for ++\infty and for -\infty, always, even when the exercise looks symmetric.

From asymptotes to the complete graph

Domain, sign and asymptotes are the first draft of the graph: before you differentiate anything you already know which regions of the plane the curve lives in and which lines it stretches towards. That is why, in curve sketching, it pays to draw the dashed lines straight away, before moving on to the derivative — if the sign of ff' then sends the curve against a vertical asymptote from the wrong side, the mistake shows up on its own. The same limits at infinity reappear, unchanged, in the calculus questions of science admission tests and in your first university analysis exam: if you are already looking beyond the Maturità, take a look at our preparation paths.

If instead curve sketching feels like a list of steps with no logic behind it, the problem usually lies further back, in limits or in the algebra of fractions, and it has to be rebuilt from there: tell us about your situation and book your first lesson with a tutor who picks up from the point where the thread broke.

FAQ

When does a function have an oblique asymptote instead of a horizontal one?

When, on that side, f(x)f(x) tends to ±\pm\infty but "like a line": the limits m=limf(x)xm = \lim \frac{f(x)}{x} and q=lim[f(x)mx]q = \lim [f(x) - mx] are finite, with m0m \neq 0. For rational functions this happens exactly when the degree of the numerator exceeds that of the denominator by one. On the same side the two asymptotes rule each other out: if there is a horizontal one, the oblique one should not be looked for.

How do you find the vertical asymptote of a function?

You start from the domain: the candidates are the excluded points, such as the zeros of the denominator or of the argument of a logarithm. At each of them you calculate the right-hand limit and the left-hand limit; if at least one is ±\pm\infty, the line x=x0x = x_0 is a vertical asymptote. If numerator and denominator vanish together, factorise first: the limit may turn out to be finite, and in that case what you have is a hole, not an asymptote.

Can a graph cross a horizontal asymptote?

Yes. A horizontal asymptote describes the behaviour at infinity and imposes nothing at a finite point: f(x)=xx2+1f(x) = \frac{x}{x^2+1} has the asymptote y=0y = 0 and passes through the origin, and sinxx\frac{\sin x}{x} crosses y=0y = 0 infinitely many times. An oblique asymptote can be crossed too. A vertical one cannot, because at the point x0x_0 the function is not defined.

Can a function have two different horizontal asymptotes?

Yes, one on each side: arctanx\arctan x has y=π2y = \frac{\pi}{2} as x+x \to +\infty and y=π2y = -\frac{\pi}{2} as xx \to -\infty. Between horizontal and oblique a function has at most two, one for each side, whereas vertical asymptotes can be infinitely many, as with tanx\tan x. Rational functions always behave the same way on the two sides, so for them there is only one asymptote at infinity.

AN

Andrea

Responsabile Didattica Italiana Test d'Ingresso

STEM center of excellence in Milan. Certified tutors, structured methodology, and proprietary technology to guide every student toward their goals.

Need help with your studies?

Contact us for a personalized learning path.

Or message us on WhatsApp →

Maths TutoringBook now