NOTE: You may view the original PDFs of the notes written in class by clicking on the link for the 1:30 Section or 2:30 Section, respectively.

Lecture 21: Limits at Infinity

Goal: Understand the end behavior (asymptotic behavior) of functions.

Definition. We say:

\[ \displaystyle\lim_{x \to \infty} f(x) = L \]

to mean \( f(x) \) goes to \( L \) as \( x \) "goes to infinity" (i.e., \( x \) gets very, very large). Similarly,

\[ \displaystyle\lim_{x \to -\infty} f(x) = L \]

means \( f(x) \) goes to \( L \) as \( x \) "goes to negative infinity" (i.e., \( x \) gets very, very "largely negative").

NOTE: A number being "small" typically refers to when it is close to 0. Hence, why I am using the phrase "largely negative," even though it is a bit awkward.

Example 1.

For each part, determine \( \displaystyle\lim_{x \to \infty} f(x) \) and \( \displaystyle\lim_{x \to -\infty} f(x) \), where the graph of \( f \) is given:

Graph of the logistic curve f(x) = e^x/(1+e^x) rising from 0 to 1
Figure 1
A coordinate grid with the horizontal axis labeled from \( -10 \) to \( 10 \) with tick marks at \( -10 \), \( -5 \), \( 5 \), and \( 10 \), and the vertical axis labeled 0.2, 0.4, 0.6, 0.8, and 1. A thick blue S-shaped (logistic) curve is drawn, labeled \( f(x) = \frac{e^x}{1+e^x} \). On the far left the curve is nearly flat just above 0, it rises steeply between about \( x = -5 \) and \( x = 2 \), passing through about 0.5 at \( x = 0 \), and then flattens out approaching the horizontal line \( y = 1 \) on the right.

\( \displaystyle\lim_{x \to \infty} f(x) = \) 1

\( \displaystyle\lim_{x \to -\infty} f(x) = \) 0

Graph of the cubic f(x) = x^3 increasing from lower left to upper right
Figure 2
A coordinate grid with the horizontal axis labeled \( -4 \), \( -2 \), \( 2 \), and \( 4 \), and the vertical axis labeled \( -60 \), \( -40 \), \( -20 \), 20, 40, and 60. A thick blue curve labeled \( f(x) = x^3 \) comes up steeply from the bottom left near \( (-4, -60) \), flattens as it passes through the origin, and then rises steeply again toward the top right near \( (4, 60) \).

\( \displaystyle\lim_{x \to \infty} f(x) = \) \( \infty \)

\( \displaystyle\lim_{x \to -\infty} f(x) = \) \( -\infty \)

Example 2.

Determine the end behavior (limits at infinity) for the function \( f(x) = \frac{1}{x} \)

Hand-drawn graph of f of x equals 1 over x with two hyperbola branches about the axes
Figure 3
A freehand sketch of the graph of \( f(x) = \frac{1}{x} \) on a pair of unlabeled horizontal and vertical axes. In the upper-right region a branch of the hyperbola descends steeply from near the vertical axis and flattens out toward the horizontal axis as \( x \) increases. In the lower-left region a second branch approaches the horizontal axis from below as \( x \) becomes largely negative and plunges downward near the vertical axis. The drawing illustrates that the horizontal axis is a horizontal asymptote in both directions and the vertical axis is a vertical asymptote.
Values of \( f(x) = \frac{1}{x} \) as \( x \) grows large and positive
\( x \) \( f(x) \)
1 1
100 0.01
10000 0.0001
1000000 0.000001
\[ \displaystyle\lim_{x \to \infty} \frac{1}{x} = 0 \]
Values of \( f(x) = \frac{1}{x} \) as \( x \) grows largely negative
\( x \) \( f(x) \)
-1 -1
-100 -0.01
-10000 -0.0001
-1000000 -0.000001
\[ \displaystyle\lim_{x \to -\infty} \frac{1}{x} = 0 \]

In general, for any positive integer \( n \),

\[ \displaystyle\lim_{x \to \infty} \frac{1}{x^n} = \displaystyle\lim_{x \to -\infty} \frac{1}{x^n} = 0 \]

Example 3.

Compute \( \displaystyle\lim_{x \to \infty} \left( 2 + \frac{3}{x^2} \right) \)

\[ \begin{gathered} \displaystyle\lim_{x \to \infty} \left( 2 + \frac{3}{x^2} \right) = \displaystyle\lim_{x \to \infty} 2 + 3 \lim_{x \to \infty} \frac{1}{x^2} \\[0.5em] = 2 + 3 \cdot 0 \\[0.5em] = 2 \end{gathered} \]

Rational Functions

Main Strategy (Formally): Factor out the highest power of \( x \) in the denominator.

Example 4.

For \( f(x) = \frac{x^2 - 1}{2x^2 + 1} \), compute \( \displaystyle\lim_{x \to \infty} f(x) \) and \( \displaystyle\lim_{x \to -\infty} f(x) \).

\[ \begin{gathered} \displaystyle\lim_{x \to \infty} f(x) = \lim_{x \to \infty} \frac{x^2\left(\frac{x^2}{x^2} - \frac{1}{x^2}\right)}{x^2\left(\frac{2x^2}{x^2} + \frac{1}{x^2}\right)} = \displaystyle\lim_{x \to \infty} \frac{1 - \frac{1}{x^2}}{2 + \frac{1}{x^2}} = \frac{1 - 0}{2 + 0} = \frac{1}{2} \\[0.5em] \displaystyle\lim_{x \to -\infty} f(x) = \lim_{x \to -\infty} \frac{1 - \frac{1}{x^2}}{2 + \frac{1}{x^2}} = \frac{1}{2} \end{gathered} \]

Example 5.

For \( f(x) = \frac{x^2 + 2}{x^3 + x^2 - 1} \), compute \( \displaystyle\lim_{x \to \infty} f(x) \) and \( \displaystyle\lim_{x \to -\infty} f(x) \).

\[ \begin{gathered} \displaystyle\lim_{x \to \infty} \frac{x^2 + 2}{x^3 + x^2 - 1} = \displaystyle\lim_{x \to \infty} \frac{x^3\left(\frac{x^2}{x^3} + \frac{2}{x^3}\right)}{x^3\left(\frac{x^3}{x^3} + \frac{x^2}{x^3} - \frac{1}{x^3}\right)} \\[0.5em] = \lim_{x \to \infty} \frac{\frac{1}{x} + \frac{2}{x^3}}{1 + \frac{1}{x} - \frac{1}{x^3}} = \frac{0 + 0}{1 + 0 - 0} = 0 \\[0.5em] \displaystyle\lim_{x \to -\infty} \frac{x^2 + 2}{x^3 + x^2 - 1} = \displaystyle\lim_{x \to -\infty} \frac{\frac{1}{x} + \frac{2}{x^3}}{1 + \frac{1}{x} - \frac{1}{x^3}} = 0 \end{gathered} \]

Main Strategy (Informally): Compare the leading terms

Example 6.

For \( f(x) = \frac{x^2 + x}{-x + 3} \), compute \( \displaystyle\lim_{x \to \infty} f(x) \) and \( \displaystyle\lim_{x \to -\infty} f(x) \).

\[ \begin{gathered} \displaystyle\lim_{x \to \infty} \frac{x^2 + x}{-x + 3} = \displaystyle\lim_{x \to \infty} \frac{x^2}{-x} = \lim_{x \to \infty} (-x) = -\infty \\[0.5em] \displaystyle\lim_{x \to -\infty} \frac{x^2 + x}{-x + 3} = \displaystyle\lim_{x \to -\infty} \frac{x^2}{-x} = \displaystyle\lim_{x \to -\infty} (-x) = \infty \end{gathered} \]

In Summary: For a rational function:

\[ f(x) = \frac{a(x)}{b(x)} \]

if \( LT(a(x)) \) and \( LC(a(x)) \) denote the leading term and leading coefficient of the polynomial \( a(x) \) respectively, then,

\[ \begin{gathered} \displaystyle\lim_{x \to \infty} f(x) = \lim_{x \to \infty} \frac{LT(a(x))}{LT(b(x))} \\[0.5em] \lim_{x \to -\infty} f(x) = \displaystyle\lim_{x \to -\infty} \frac{LT(a(x))}{LT(b(x))} \end{gathered} \]

In particular,

  1. If \( \deg(a(x)) = \deg(b(x)) \), then: \[ \lim_{x \to \infty} f(x) = \displaystyle\lim_{x \to -\infty} f(x) = \frac{LC(a(x))}{LC(b(x))} \]
  2. If \( \deg(a(x)) < \deg(b(x)) \), then: \[ \lim_{x \to \infty} f(x) = \displaystyle\lim_{x \to -\infty} f(x) = 0 \]
  3. If \( \deg(a(x)) > \deg(b(x)) \), more work is needed (since it depends on whether \( \deg(a(x)) - \deg(b(x)) \) is even or odd as well as whether \( \frac{LC(a(x))}{LC(b(x))} \) is positive or negative).

Horizontal and Vertical Asymptotes (HAs and VAs)

Definition. A function \( f(x) \) has a vertical asymptote at \( x = c \) if either \( \displaystyle\lim_{x \to c^-} f(x) \) or \( \displaystyle\lim_{x \to c^+} f(x) \) is NOT finite.

Definition. A function \( f(x) \) has a horizontal asymptote at \( y = L \) if either \( \displaystyle\lim_{x \to -\infty} f(x) = L \) or \( \displaystyle\lim_{x \to \infty} f(x) = L \).

Example 7.

Find the locations of any Horizontal and Vertical Asymptotes for \( f(x) = \frac{3x^2 + 5}{x^2 - 4} \)

For a rational function, VAs occur when the denominator is 0, but the numerator is non-zero (after canceling out any common factors on the top and bottom).

\[ \begin{gathered} x^2 - 4 \stackrel{\text{set}}{=} 0 \\[0.5em] \Rightarrow \quad x = 2, -2 \end{gathered} \]

The numerator is not \( 0 \) at \( x = 2 \) and \( x = -2 \), so \( f \) has VAs at \( x = -2 \) and \( x = 2 \).

For a rational function \( f(x) \), HAs occur when either \( \displaystyle\lim_{x \to -\infty} f(x) \) or \( \lim_{x \to \infty} f(x) \) is finite.

NOTE:

Rational functions have at most one HA.

\[ \displaystyle\lim_{x \to \infty} \frac{3x^2 + 5}{x^2 - 4} = \lim_{x \to \infty} \frac{3x^2}{x^2} = \displaystyle\lim_{x \to \infty} 3 = 3 \]

\( \displaystyle\lim_{x \to -\infty} f(x) \) is also \( 3 \)

Slant (Oblique) Asymptotes

Recall Polynomial Long Division:

Theorem (Polynomial Division Algorithm). For a rational function \( \frac{a(x)}{b(x)} \) there are unique polynomials \( q(x) \) (called the quotient) and \( r(x) \) (called the remainder) such that:

\[ \frac{a(x)}{b(x)} = q(x) + \frac{r(x)}{b(x)} \quad \text{AND} \quad \deg(r(x)) < \deg(b(x)) \]

Compare this with numbers:

\[ \begin{array}{r} 3 \phantom{)} \\ 2\overline{)\,7\phantom{0}} \\ \underline{-\,6\phantom{0}} \\ 1\phantom{0} \end{array} \]

So \( 7 = 3(2) + 1 \), or

\[ \frac{7}{2} = 3 + \frac{1}{2} \]

Example 8.

Find the quotient and remainder when \( 2x^2 + 3x + 1 \) is divided by \( x - 1 \).

\[ \begin{array}{r} 2x + 5 \phantom{)} \\ x-1\overline{)\,2x^2 + 3x + 1} \\ \underline{-\,(2x^2 - 2x)\phantom{+1}} \\ 5x + 1 \\ \underline{-\,(5x - 5)} \\ 6 \end{array} \]

We stop long division since

\[ \deg(6) = 0 < 1 = \deg(x-1) \]

Thus,

\[ \frac{2x^2 + 3x + 1}{x - 1} = (2x + 5) + \frac{6}{x - 1} \]

Definition. The line \( y = mx + b \) is a slant (oblique) asymptote of the graph of \( f(x) \) if:

\[ \displaystyle\lim_{x \to \infty} [f(x) - (mx + b)] = 0 \quad \text{OR} \quad \displaystyle\lim_{x \to -\infty} [f(x) - (mx + b)] = 0 \]

Informally, this means the graph of \( f(x) \) gets closer and closer to the line \( y = mx + b \) as \( x \) goes to positive or negative infinity.

Theorem. The following are equivalent for a rational function \( \frac{a(x)}{b(x)} \):

  1. \( \frac{a(x)}{b(x)} \) has a slant asymptote.
  2. The quotient in polynomial long division is a degree 1 polynomial.
  3. \( \deg(a(x)) = \deg(b(x)) + 1 \)

If these hold, the quotient obtained from long division is a slant asymptote.

Example 9.

Does the function \( f(x) = \frac{2x^2 + 3x + 1}{x - 1} \) have a slant asymptote? If so, find it.

Yes! Since the degree of the denominator (1) is exactly one less than the degree of the numerator (2). Moreover, Perform the long division we get

\[ \frac{2x^2 + 3x + 1}{x - 1} = [2x + 5] - \frac{6}{x - 1} \]

So \( f \) has \( y = 2x + 5 \) as a slant asymptote. We can see this in the graph of \( f(x) \); since \( -\frac{6}{x-1} \rightarrow 0 \) as \( x \to \pm\infty \), \( f(x) \) starts getting closer to the value of \( 2x+5 \) as \( x \to \pm\infty \)

Graph of f(x) in red approaching dotted slant asymptote line and dotted vertical asymptote
Figure 4
A hand-drawn graph on black coordinate axes. A dotted straight line of positive slope runs from the lower left to the upper right, representing the slant asymptote. A second dotted line is vertical, placed just to the right of the y-axis, representing a vertical asymptote. A red curve labeled f of x has two branches: the left branch comes up from the lower left, rising alongside and just below the dotted slant line, crosses above the x-axis briefly, then turns sharply downward and plunges along the left side of the dotted vertical line toward negative infinity, with a red arrow pointing down. The right branch starts low near the vertical dotted line on its right side, rises steeply, and then follows just above the dotted slant line toward the upper right, ending with a red arrow. Both red arrows at the far ends indicate the curve approaching the slant asymptote as x goes to plus and minus infinity.

Example 10.

Find all asymptotes (HAs, VAs, and slant) for the function

\[ f(x) = \frac{2x^3 - 3x + 1}{x^2 - x - 6} \]

Vertical Asymptotes:

\[ \begin{gathered} x^2 - x - 6 \stackrel{\text{set}}{=} 0 \\[0.5em] (x-3)(x+2) = 0 \\[0.5em] \Longrightarrow x = -2, 3 \end{gathered} \]

\( \) \( 2x^3 - 3x + 1 \) is not zero at \( x = -2 \) nor at \( x = 3 \), so those are the locations of the VAs.

Horizontal Asymptotes:

Comparing the degrees, \( f \) has a slant asymptote. So, (since \( f \) is rational) \( f \) can not have a HA.

Slant Asymptotes:

Performing the long division.

\[ \begin{array}{r} 2x+2 \phantom{\quad} \\[-2pt] x^2-x-6 \overline{\smash{)}\, 2x^3-3x+1\phantom{)}} \\[-2pt] \underline{-\,(2x^3-2x^2-12x)\phantom{)}} \\[-2pt] 2x^2+9x+1\phantom{)} \\[-2pt] \underline{-\quad (2x^2-2x-12)\phantom{)}} \\[-2pt] 11x+13\phantom{)} \end{array} \]

We get that \( f \) has \( y = 2x+2 \) as a slant asymptote.

Graph with vertical asymptotes at x = -2 and x = 3 and dotted slant asymptote y = 2x + 2
Figure 5
A hand-drawn graph on black x- and y-axes. Two dotted vertical lines mark the vertical asymptotes, labeled in red \( x = -2 \) on the left and \( x = 3 \) on the right. A dotted straight line rising from lower left to upper right is labeled in red \( y = 2x + 2 \); it is the slant asymptote. The red curve has three branches. On the far left, the branch follows the dotted slant line from the lower left and then turns sharply downward toward the vertical asymptote at \( x = -2 \). Between \( x = -2 \) and \( x = 3 \), the branch comes down steeply from the top near \( x = -2 \), falls, crosses the x-axis near a small circled point labeled \( -1 \), flattens briefly just right of the y-axis, then descends steeply downward toward the vertical asymptote at \( x = 3 \). To the right of \( x = 3 \), the branch rises steeply from below and then bends to follow the dotted slant line \( y = 2x + 2 \) up to the upper right.