We say a line is the asymptote of a curve if the distance between the line and curve approaches zero as the curve (specifically the x or y coordinate of the points on the curve) goes to + or .

 

vertical, horizontal, and oblique asymptotes
Figure 1

 

We study three types of asymptotes: (1) vertical, (2) horizontal, and (3) oblique (or inclined or slant).

In this section, we learn how to find them.

Vertical asymptotes

 

The curve has a vertical asymptote x=a when:

as x approaches a (from the right or left or both directions), the distance between the points on the graph of y=f(x) and the vertical line x=a gets smaller and smaller but they never reach the line x=a (Figure 2).

 

Figure 2. x=a is the vertical asymptote of a curve if as x approaches a (from the left or right or both directions), the y coordinates of the points on the curve approach + or

 

More precisely:

Definition 1. We say x=a is a vertical asymptote of (the graph of) the function y=f(x), if one of the following conditions holds:
(a) f(x)+ as xa or xa+ or xa
(b) f(x) as xa or xa+ or xa

When do we have vertical asymptotes? There are two cases that we need to pay attention

  1. There is a fraction f(x)=g(x)h(x)andlimxah(x)=0 If limxag(x)0 then x=a is a vertical asymptote, because it follows from Theorem 1 in Section 4.6 that limxaf(x)=+ or . However, if limxah(x)=limxag(x)=0, then f(x) may or may not approach + or

  2. Logarithmic functions. For example, because limx0+lnx= the vertical line x=0 is a vertical asymptote of the graph of y=lnx. See Figure 3.
    Figure 3. Graph of y=lnx.
Now we study each case.

The function is a fraction f(x) = g(x)/h(x)

 

Let’s start with simple situations:

 

Rational functions

 

If f(x)=P(x)Q(x) where P(x) and Q(x) are polynomials, you should follow these steps:

  1. Factor P(x) and Q(x) if you can.
  2. Cancel any common factor to simplify the fraction.
  3. Take the denominator of the simplified fraction and set it equal to zero. All the zeros of the denominator are where there are vertical asymptotes.

Example 1

Find the vertical asymptotes (if any) of the following functions:
(a) f(x)=42x2x2+x1

(b) g(x)=x2+4x+3x2+7x+12

(c) h(x)=x+7x2+1

Solution

(a) Let’s factor out the numerator and denominator: 42x=2(2x) To factor out the denominator, we can find the zeros: 2ax2+1bx+(1)c=0

x=b±b24ac2a=1±1242(1)22
x=1x=12 [In fact, because a+c=b=1, we already knew that x=1 is one of the zeros. See Section on Solutions and Roots. Therefore, 42x2x2+x1=2(x2)2(x+1)(x+12) We cannot simplify this fraction further. Thus, the zeros of the denominator x=1) and x=1/2 are the vertical asymptotes (see Figure 4).

 

Figure 4. Graph of f(x)=42x2x2+x1.
 

(b) To factor out the numerator and denominator, we can use the quadratic formula (b±b24ac)/(2a), or in this case to simply guess them. For the numerator, we need two numbers that their sum is 4 and their product is 3. It is easy to guess that they are 3 and thus x2+4x+3=(x+3)(x+1) For the denominator, we are looking for two numbers that their sum is 7 and their product is 12. Again, it is easy to guess that they are 4 and 3. Thus x2+7x+12=(x+3)(x+4) and x2+4x+3x2+7x+12=(x+3)(x+1)(x+4)(x+3)=x+1x+4(if x3) The zero of the simplified fraction is x=4. Therefore, x=4 is the only vertical asymptote. Note that although x=4 and x=3 both make the denominator of the original zero, but x=3 is not a vertical asymptote because limx3g(x)=limx3x+1x+4=3+13+4=2, and x=4 is a vertical asymptote because limx4g(x)=limx4x+1x+4=[30]+ and limx4+g(x)=limx4+x+1x+4=[30+]
[Whenever in doubt about the sign of the denominator as x approaches a from the left or right, test it for a number on the correct side of a. For example, as x4, we test for a number on the left of 4, say x=4.5. In this case x+4=4.5+4=0.5<0. And as x4+, we test for a number on the right of 4, say x=3.9. In this case x+4=3.9+4=0.1>0]

The graph of g is shown in Figure 5.

Figure 5. Graph of g(x)=x2+4x+3x2+7x+12.

 

(c) We cannot factor the denominator and numerator and the denominator is never zero, because x2+11>0 Therefore, the graph of h(x) does not have any vertical asymptotes. See Figure 6.

Figure 6. Graph of h(x)=x+7x2+1.

 

Fractions in General

 

We learned how to find the vertical asymptotes of rational functions. More generally, if f(x) is a fraction, every zero (= every root) of the denominator can be potentially where a vertical asymptote occurs.

In other words, if f(x)=g(x)h(x) and h(a)=0, then we should test x=a and see if f(x) goes to + or as x approaches a (from either side).

If f(x)=g(x)h(x), to find the vertical asymptotes of the graph of f(x):

  1. Find the zeros of h(x).
  2. If h(a)=0 and g(a)0 then x=a is a vertical asymptote
  3. If h(a)=0 and g(a)=0, then find limxa+f(x),orlimxaf(x). If one of the above limits is + or , then x=a is a vertical asymptote.

  • In above, we assumed g(x) and h(x) are continuous functions on their domains. Almost all functions that we know are continuous except the greatest integer function y=x (also denoted by y=[[x]]) and some piecewise-defined functions.
  • Note that if f(x)=g(x)/h(x) and h(a)=0 but g(a)0, then x=a is a vertical asymptote because as x approaches a (from right or left) by Theorem 1 in Section 4.6  f(x)[g(a)(0)0]+ or  [Again, here we assumed h(x) and g(x) are continuous functions on their domains. Therefore, as x approaches a (from right or left), g(x)g(a) and h(x)h(a)]

Example 2

Find the vertical asymptotes of the function given by f(x)=x24x2.

Solution

The denominator 4x2 is zero when x=±2, so we need to find the limit of f as x approaches 2 and 2. The domain of f is the set of all x such that the expression under the square root is nonnegative 4x20 and the denominator is not zero 4x20. That is Dom(f)={x| 4x2>0}={x| x2<4}={x| 2<x<2}=(2,2). [Recall that x2<a2 is equivalent to |a|<x<|a|] Therefore x can approach 2 from the left and 2 only from the right. limx2f(x)=limx2x24x2=limx2x2(2x)(2+x)=limx2(2x)2x2+x=limx22x2x2x2+x=limx22x2+x=222+2=0. Therefore x=2 is not a vertical asymptote of the graph of f.

On the other hand, as x2+, the denominator goes to 0 through positive numbers [recall that the square root is always nonnegative] and the numerator goes to 4. Therefore by part (c) of Theorem 1 in Section 4.6 f(x) goes to [Symbolically 40+= or ()(+)=()]. Therefore, x=2 is a vertical asymptote of the graph of f. The graph of f is shown in Figure 7.

 

Figure7. Graph of f(x)=x24x2. The domain of f is the open interval (2,2). Because limx2+f(x)=, x=2 is a vertical asymptote to the graph of f.

 

Trigonometric functions
  • Recall that the graph of cosine is obtained by shifting the graph of sine to the left π/2, so if cosα=0, we know sinα0 and if sinβ=0, we know cosβ0.

Because tanx=sinxcosx,andsecx=1cosx their graphs have vertical asymptotes wherever cosx=0 (see Figure 8); that is, at x=±π2,±3π2,±5π2,

(a) (b)
Figure 8. Wherever cosine is zero, tangent and secant have a vertical asymptote.

 

Similarly because cotx=cosxsinx,andcscx=1sinx their graphs have vertical asymptotes wherever sinx=0; that is, at x=0,±π,±2π,±3π,

 

Logarithmic Functions

If f(x)=ln(g(x)) and if limxag(x)=0, then x=a is a vertical asymptote to the graph of f.

This is also true if g0 as xa+ or xa.

  • Because the input of the logarithm has to be positive, in the above, we have to assume g(x) approaches 0 through positive values as xa+ or xa.

Example 3

Find the vertical asymptotes of the following functions:
(a) F(x)=ln(x2)
(b) g(x)=ln(x29).

Solution

(a) Method 1: Because x2=0 for x=2 [If x>2, x2>0. Therefore F(x) is defined for x>2], the graph of F has a vertical asymptote at x=2.
Method 2: Recall that if the graph of y=f(x) is given, the graph of y=f(xa) (a>0) and is obtained by shifting the graph of f to the right a units. Because the graph of y=ln(x2) is obtained by shifting the graph of y=lnx to the right 2 units, and the graph of y=lnx has a vertical asymptote at x=0, the graph of y=ln(x2) has a vertical asymptote at x=2. See Figure 9.

 

Figure 9. The graph of F(x)=ln(x2) is obtained by shifting the graph of y=lnx to the right 2 units. As we can see x=2 is a vertical asymptote of the graph of F.

 

(b) Because x29 is zero when x=±3, the graph of g has vertical asymptotes at x=±3. Note that because the domain of g is {x| x<3 or x>3}=(,3)(3,), x can approach 3 only from left and 3 only from the right. The graph of g is shown in Figure 10.

 

Figure 10. The graph of g(x)=ln(x29) has two vertical asymptotes at x=3 and x=3.

  • A function may have any number of vertical asymptotes or none at all. For example, f(x)=tanx has infinitely many vertical asymptotes at x=±π2,±3π2,±5π2,; g(x)=1x1 has only one asymptote x=1, and F(x)=x3 has zero vertical asymptotes.

 

Horizontal asymptotes

 

We say a horizontal line is the asymptote of a curve if the distance between the points on the curve and this line gets smaller and smaller as x goes to + or (see Figure 11)

 

Figure 11

More precisely

Definition 2. We say the horizontal line y=b is a horizontal asymptote of (the graph of) f(x), if one of the following conditions holds:

(a) limx+f(x)=b

(b) limxf(x)=b

  • A function has, at most, two horizontal asymptotes, but a function can have infinitely many vertical asymptotes. For example, f(x)=tanx has infinitely many vertical asymptotes.

Example 4

Determine the end behavior of the graph of y=2x23x2+1.

Solution

Because limx±2x23x2+1=limx±2x2x2=2, its graph has only one asymptote, namely the line y=2, as shown in Figure 12.

 

Figure 12. As we can see y2 as x±

Example 5

Determine the end behavior of the function f(x)=1x|x|+3

Solution

limx+f(x)=limx+1x|x|+3=limx+1xx+3=limx+xx=1 since |x|=x if x>0, while limx+f(x)=limx+1x|x|+3=limx+1xx+3=limx+xx=1 since |x|=x if x<0. Hence, f has two horizontal asymptotes, namely y=1 and y=1, as shown in Figure 13.

 

Figure 13. As we can see y1 as x and y1 as x+

Example 6

Determine the end behavior of the function g(x)=1ex+1.

Solution

Recall that limx+ex=0 (Important Limits at Infinity in Section 4.7)
limx+1ex+1=limx+1limx+ex+limx+1=10+1=1. Since limxex=+, limx(ex+1)=[+1=] limx+1ex+1=limx+1limx+(ex+1)=[1=0]0. Hence, the graph of g has two asymptotes, namely y=1 and y=0, as shown in Figure 14.

Figure 14. As we can see y0 as x and y1 as x+

 

Oblique (also known as inclined or slant) asymptotes

 

We say a line L is the oblique asymptote of f(x) if the graph of f(x) gets closer and closer to this line as x+ or x (Figure 15).

 

Figure 15

More precisely

Definition 3. We say a line with equation y=mx+b (m0) is the oblique asymptote (of the graph) of f if
(a) limx+[f(x)(mx+b)]=0 or
(b) limx[f(x)(mx+b)]=0

  • The distance between a point on the curve P(x,f(x)) and the line y=mx+b is d=|f(x)(mx+b)|m2+1. But d0 as x+ (or ) if and only if f(x)(mx+b)0 as x+ (or ).
  • Consider a function of the form f(x)=mx+b+P(x)Q(x), where P(x) and Q(x) are two polynomials such that degree of P(x)<degree of Q(x). As we explained in Section on the Other Indeterminate Forms P(x)Q(x)0as x±. Therefore f(x)(mx+b)=P(x)Q(x)0as x±, which shows the line y=mx+b is the oblique asymptote of f(x).

Example 7

Find the oblique asymptote of f(x)=3x+1+3x+7x42x+2

Solution

Because limx±3x+7x42x+2=limx±3xx4=0,
limx±[f(x)(3x+1)]=0 and therefore, the line y=3x+1 is the oblique asymptote of f(x), as shown in Figure 16.

Figure 16. The distance between the graph of f(x) and the line goes to zero as x±.

  • If f(x)=P1(x)P2(x) where P1(x) and P2(x) are two polynomials such that degree of P1(x)=degree of P2(x)+1 then f(x) has an oblique asymptote which is the quotient of dividing P1(x) by P2(x).

Example 8

Find the oblique asymptote of the graph of f(x)=3x2+5x3x+1.

Solution

Let’s divide the numerator by the denominator:

Thus 3x2+5x3x+1=3x+2+5x+1 Because 5x+10asx± the line y=3x+2 is the oblique asymptote of the graph of f, as shown in Figure 17. Also notice that the graph of f has a vertical asymptote at x=1.

 

Figure 17. The distance between the graph of f(x) and the line y=3x+1 goes to zero as x±.

  • More generally, when f(x)=mx+b+g(x) where g(x)0 as x+ (or ), the line y=mx+b is an oblique asymptote of f(x).

 

 

How to determine the oblique asymptotes

 

If the line y=mx+b is the oblique asymptote of f(x) as x+ then m=limx+f(x)x and b=limx+[f(x)mx]. If this line is the oblique asymptote of f(x) as x, it is sufficient to replace + by in the above equations.

 

Read why the above formulas work

 

Example 9

Find the oblique asymptote(s) of the graph of the function f(x)=2x217x.

Solution

The slope of the oblique asymptote as x+ is m1=limx+f(x)x=limx+2x217xx=limx+x2(21x2)7xx=limx+|x|(21x2)7xx Since |x|=x when x>0, we have m1=limx+x(21x2)7xx=limx+(21x27)=2limx+1x27=207=27 The y-intercept of the asymptote is
b1=limx+[f(x)(27)x]=limx+[(2x217x)(27)x]=limx+[2x212x] Multiplying and dividing by
the conjugate of 2x212 b1=limx+(2x212x)(2x21+2x)(2x21+2x)=limx+(2x21)(2x)22x21+2x=limx+12x21+2x=[1]=00. Hence, y=(27)x+0 is the oblique asymptote of f(x) as x+.

The slope of the oblique asymptote as x is obtained similarly: m2=limxf(x)x=limx2x217xx=limxx2(21x2)7xx=limx|x|(21x2)7xx Since |x|=x when x<0, we have m2=limxx(21x2)7xx=limx(21x27)=2limx1x27=207=27 In this case, we can show the y-intercept is also zero. That is, y=(2+7)x is the oblique asymptote of f(x) as x. The two oblique asymptotes of f(x) are shown in Figure 18.

 

Figure 18. The graph of f(x) has an oblique asymptote as x+ and another one as x.