L’Hôpital’s Rule
Learning Objectives
- Recognize when to apply L’Hôpital’s rule.
- Identify indeterminate forms produced by quotients, products, subtractions, and powers, and apply L’Hôpital’s rule in each case.
- Describe the relative growth rates of functions.
In this section, we examine a powerful tool for evaluating limits. This tool, known as L’Hôpital’s rule, uses derivatives to calculate limits. With this rule, we will be able to evaluate many limits we have not yet been able to determine. Instead of relying on numerical evidence to conjecture that a limit exists, we will be able to show definitively that a limit exists and to determine its exact value.
Applying L’Hôpital’s Rule
L’Hôpital’s rule can be used to evaluate limits involving the quotient of two functions. Consider
If [latex]\underset{x\to a}{\lim}f(x)=L_1[/latex] and [latex]\underset{x\to a}{\lim}g(x)=L_2 \ne 0[/latex], then
However, what happens if [latex]\underset{x\to a}{\lim}f(x)=0[/latex] and [latex]\underset{x\to a}{\lim}g(x)=0[/latex]? We call this one of the indeterminate forms, of type [latex]\frac{0}{0}[/latex]. This is considered an indeterminate form because we cannot determine the exact behavior of [latex]\frac{f(x)}{g(x)}[/latex] as [latex]x\to a[/latex] without further analysis. We have seen examples of this earlier in the text. For example, consider
For the first of these examples, we can evaluate the limit by factoring the numerator and writing
Here we use a different technique for evaluating limits such as these. Not only does this technique provide an easier way to evaluate these limits, but also, and more important, it provides us with a way to evaluate many other limits that we could not calculate previously.
The idea behind L’Hôpital’s rule can be explained using local linear approximations. Consider two differentiable functions [latex]f[/latex] and [latex]g[/latex] such that [latex]\underset{x\to a}{\lim}f(x)=0=\underset{x\to a}{\lim}g(x)[/latex] and such that [latex]g^{\prime}(a)\ne 0[/latex] For [latex]x[/latex] near [latex]a[/latex], we can write
and
Therefore,
L’Hôpital’s Rule (0/0 Case)
Suppose [latex]f[/latex] and [latex]g[/latex] are differentiable functions over an open interval containing [latex]a[/latex], except possibly at [latex]a[/latex]. If [latex]\underset{x\to a}{\lim}f(x)=0[/latex] and [latex]\underset{x\to a}{\lim}g(x)=0[/latex], then
assuming the limit on the right exists or is [latex]\infty [/latex] or [latex]−\infty[/latex]. This result also holds if we are considering one-sided limits, or if [latex]a=\infty[/latex] or [latex]-\infty[/latex].
Proof
We provide a proof of this theorem in the special case when [latex]f, \, g, \, f^{\prime}[/latex], and [latex]g^{\prime}[/latex] are all continuous over an open interval containing [latex]a[/latex]. In that case, since [latex]\underset{x\to a}{\lim}f(x)=0=\underset{x\to a}{\lim}g(x)[/latex] and [latex]f[/latex] and [latex]g[/latex] are continuous at [latex]a[/latex], it follows that [latex]f(a)=0=g(a)[/latex]. Therefore,
Note that L’Hôpital’s rule states we can calculate the limit of a quotient [latex]\frac{f}{g}[/latex] by considering the limit of the quotient of the derivatives [latex]\frac{f^{\prime}}{g^{\prime}}[/latex]. It is important to realize that we are not calculating the derivative of the quotient [latex]\frac{f}{g}[/latex].
□
Applying L’Hôpital’s Rule (0/0 Case)
Evaluate each of the following limits by applying L’Hôpital’s rule.
- [latex]\underset{x\to 0}{\lim}\frac{1- \cos x}{x}[/latex]
- [latex]\underset{x\to 1}{\lim}\frac{\sin (\pi x)}{\ln x}[/latex]
- [latex]\underset{x\to \infty }{\lim}\frac{e^{1/x}-1}{1/x}[/latex]
- [latex]\underset{x\to 0}{\lim}\frac{\sin x-x}{x^2}[/latex]
Answer:
- Since the numerator [latex]1- \cos x\to 0[/latex] and the denominator [latex]x\to 0[/latex], we can apply L’Hôpital’s rule to evaluate this limit. We have
[latex]\begin{array}{ll} \underset{x\to 0}{\lim}\frac{1- \cos x}{x} & =\underset{x\to 0}{\lim}\frac{\frac{d}{dx}(1- \cos x)}{\frac{d}{dx}(x)} \\ & =\underset{x\to 0}{\lim}\frac{\sin x}{1} \\ & =\frac{\underset{x\to 0}{\lim}(\sin x)}{\underset{x\to 0}{\lim}(1)} \\ & =\frac{0}{1}=0 \end{array}[/latex]
- As [latex]x\to 1[/latex], the numerator [latex]\sin (\pi x)\to 0[/latex] and the denominator [latex]\ln x \to 0[/latex]. Therefore, we can apply L’Hôpital’s rule. We obtain
[latex]\begin{array}{ll} \underset{x\to 1}{\lim}\frac{\sin (\pi x)}{\ln x} & =\underset{x\to 1}{\lim}\frac{\pi \cos (\pi x)}{1/x} \\ & =\underset{x\to 1}{\lim}(\pi x) \cos (\pi x) \\ & =(\pi \cdot 1)(-1)=−\pi \end{array}[/latex]
- As [latex]x\to \infty[/latex], the numerator [latex]e^{1/x}-1\to 0[/latex] and the denominator [latex](\frac{1}{x})\to 0[/latex]. Therefore, we can apply L’Hôpital’s rule. We obtain
[latex]\underset{x\to \infty }{\lim}\frac{e^{1/x}-1}{\frac{1}{x}}=\underset{x\to \infty }{\lim}\frac{e^{1/x}(\frac{-1}{x^2})}{(\frac{-1}{x^2})}=\underset{x\to \infty}{\lim} e^{1/x}=e^0=1[/latex]
- As [latex]x\to 0[/latex], both the numerator and denominator approach zero. Therefore, we can apply L’Hôpital’s rule. We obtain
[latex]\underset{x\to 0}{\lim}\frac{\sin x-x}{x^2}=\underset{x\to 0}{\lim}\frac{\cos x-1}{2x}[/latex].Since the numerator and denominator of this new quotient both approach zero as [latex]x\to 0[/latex], we apply L’Hôpital’s rule again. In doing so, we see that[latex]\underset{x\to 0}{\lim}\frac{\cos x-1}{2x}=\underset{x\to 0}{\lim}\frac{−\sin x}{2}=0[/latex].Therefore, we conclude that[latex]\underset{x\to 0}{\lim}\frac{\sin x-x}{x^2}=0[/latex].
Evaluate [latex]\underset{x\to 0}{\lim}\frac{x}{\tan x}[/latex].
Answer:
1
We can also use L’Hôpital’s rule to evaluate limits of quotients [latex]\frac{f(x)}{g(x)}[/latex] in which [latex]f(x)\to \pm \infty [/latex] and [latex]g(x)\to \pm \infty[/latex]. Limits of this form are classified as indeterminate forms of type [latex]\infty / \infty[/latex]. Again, note that we are not actually dividing [latex]\infty[/latex] by [latex]\infty[/latex]. Since [latex]\infty[/latex] is not a real number, that is impossible; rather, [latex]\infty / \infty[/latex] is used to represent a quotient of limits, each of which is [latex]\infty[/latex] or [latex]−\infty[/latex].
L’Hôpital’s Rule ([latex]\infty / \infty[/latex] Case)
Suppose [latex]f[/latex] and [latex]g[/latex] are differentiable functions over an open interval containing [latex]a[/latex], except possibly at [latex]a[/latex]. Suppose [latex]\underset{x\to a}{\lim}f(x)=\infty[/latex] (or [latex]−\infty[/latex]) and [latex]\underset{x\to a}{\lim}g(x)=\infty[/latex] (or [latex]−\infty[/latex]). Then,
assuming the limit on the right exists or is [latex]\infty[/latex] or [latex]−\infty[/latex]. This result also holds if the limit is infinite, if [latex]a=\infty[/latex] or [latex]−\infty[/latex], or the limit is one-sided.
Applying L’Hôpital’s Rule ([latex]\infty /\infty[/latex] Case)
Evaluate each of the following limits by applying L’Hôpital’s rule.
- [latex]\underset{x\to \infty }{\lim}\frac{3x+5}{2x+1}[/latex]
- [latex]\underset{x\to 0^+}{\lim}\frac{\ln x}{\cot x}[/latex]
Answer:
- Since [latex]3x+5[/latex] and [latex]2x+1[/latex] are first-degree polynomials with positive leading coefficients, [latex]\underset{x\to \infty }{\lim}(3x+5)=\infty [/latex] and [latex]\underset{x\to \infty }{\lim}(2x+1)=\infty[/latex]. Therefore, we apply L’Hôpital’s rule and obtain
[latex]\underset{x\to \infty}{\lim}\frac{3x+5}{2x+1}=\underset{x\to \infty }{\lim}\frac{3}{2}=\frac{3}{2}[/latex].Note that this limit can also be calculated without invoking L’Hôpital’s rule. Earlier in the chapter we showed how to evaluate such a limit by dividing the numerator and denominator by the highest power of [latex]x[/latex] in the denominator. In doing so, we saw that[latex]\underset{x\to \infty }{\lim}\frac{3x+5}{2x+1}=\underset{x\to \infty }{\lim}\frac{3+5/x}{2+1/x}=\frac{3}{2}[/latex].L’Hôpital’s rule provides us with an alternative means of evaluating this type of limit.
- Here, [latex]\underset{x\to 0^+}{\lim} \ln x=−\infty [/latex] and [latex]\underset{x\to 0^+}{\lim} \cot x=\infty[/latex]. Therefore, we can apply L’Hôpital’s rule and obtain
[latex]\underset{x\to 0^+}{\lim}\frac{\ln x}{\cot x}=\underset{x\to 0^+}{\lim}\frac{1/x}{−\csc^2 x}=\underset{x\to 0^+}{\lim}\frac{1}{−x \csc^2 x}[/latex].Now as [latex]x\to 0^+[/latex], [latex]\csc^2 x\to \infty[/latex]. Therefore, the first term in the denominator is approaching zero and the second term is getting really large. In such a case, anything can happen with the product. Therefore, we cannot make any conclusion yet. To evaluate the limit, we use the definition of [latex]\csc x[/latex] to write[latex]\underset{x\to 0^+}{\lim}\frac{1}{−x \csc^2 x}=\underset{x\to 0^+}{\lim}\frac{\sin^2 x}{−x}[/latex].Now [latex]\underset{x\to 0^+}{\lim} \sin^2 x=0[/latex] and [latex]\underset{x\to 0^+}{\lim} x=0[/latex], so we apply L’Hôpital’s rule again. We find[latex]\underset{x\to 0^+}{\lim}\frac{\sin^2 x}{−x}=\underset{x\to 0^+}{\lim}\frac{2 \sin x \cos x}{-1}=\frac{0}{-1}=0[/latex].We conclude that[latex]\underset{x\to 0^+}{\lim}\frac{\ln x}{\cot x}=0[/latex].
Evaluate [latex]\underset{x\to \infty }{\lim}\frac{\ln x}{5x}[/latex].
Answer: 0
Hint
[latex]\frac{d}{dx}\ln x=\frac{1}{x}[/latex]
As mentioned, L’Hôpital’s rule is an extremely useful tool for evaluating limits. It is important to remember, however, that to apply L’Hôpital’s rule to a quotient [latex]\frac{f(x)}{g(x)}[/latex], it is essential that the limit of [latex]\frac{f(x)}{g(x)}[/latex] be of the form [latex]0/0[/latex] or [latex]\infty / \infty[/latex] Consider the following example.
When L’Hôpital’s Rule Does Not Apply
Consider [latex]\underset{x\to 1}{\lim}\frac{x^2+5}{3x+4}[/latex]. Show that the limit cannot be evaluated by applying L’Hôpital’s rule.
Answer:
Because the limits of the numerator and denominator are not both zero and are not both infinite, we cannot apply L’Hôpital’s rule. If we try to do so, we get
and
At which point we would conclude erroneously that
However, since [latex]\underset{x\to 1}{\lim}(x^2+5)=6[/latex] and [latex]\underset{x\to 1}{\lim}(3x+4)=7[/latex], we actually have
We can conclude that
Explain why we cannot apply L’Hôpital’s rule to evaluate [latex]\underset{x\to 0^+}{\lim}\frac{\cos x}{x}[/latex]. Evaluate [latex]\underset{x\to 0^+}{\lim}\frac{\cos x}{x}[/latex] by other means.
Answer:
[latex]\underset{x\to 0^+}{\lim} \cos x=1[/latex]. Therefore, we cannot apply L’Hôpital’s rule. The limit of the quotient is [latex]\infty [/latex]
Hint
Determine the limits of the numerator and denominator separately.
Other Indeterminate Forms
L’Hôpital’s rule is very useful for evaluating limits involving the indeterminate forms [latex]0/0[/latex] and [latex]\infty / \infty[/latex]. However, we can also use L’Hôpital’s rule to help evaluate limits involving other indeterminate forms that arise when evaluating limits. The expressions [latex]0 \cdot \infty[/latex], [latex]\infty - \infty[/latex], [latex]1^{\infty}[/latex], [latex]\infty^0[/latex], and [latex]0^0[/latex] are all considered indeterminate forms. These expressions are not real numbers. Rather, they represent forms that arise when trying to evaluate certain limits. Next we realize why these are indeterminate forms and then understand how to use L’Hôpital’s rule in these cases. The key idea is that we must rewrite the indeterminate forms in such a way that we arrive at the indeterminate form [latex]0/0[/latex] or [latex]\infty / \infty[/latex].
Indeterminate Form of Type [latex]0 \cdot \infty[/latex]
Suppose we want to evaluate [latex]\underset{x\to a}{\lim}(f(x) \cdot g(x))[/latex], where [latex]f(x)\to 0[/latex] and [latex]g(x)\to \infty[/latex] (or [latex]−\infty[/latex]) as [latex]x\to a[/latex]. Since one term in the product is approaching zero but the other term is becoming arbitrarily large (in magnitude), anything can happen to the product. We use the notation [latex]0 \cdot \infty[/latex] to denote the form that arises in this situation. The expression [latex]0 \cdot \infty[/latex] is considered indeterminate because we cannot determine without further analysis the exact behavior of the product [latex]f(x)g(x)[/latex] as [latex]x\to \infty[/latex]. For example, let [latex]n[/latex] be a positive integer and consider
As [latex]x\to \infty[/latex], [latex]f(x)\to 0[/latex] and [latex]g(x)\to \infty[/latex]. However, the limit as [latex]x\to \infty [/latex] of [latex]f(x)g(x)=\frac{3x^2}{(x^n+1)}[/latex] varies, depending on [latex]n[/latex]. If [latex]n=2[/latex], then [latex]\underset{x\to \infty }{\lim}f(x)g(x)=3[/latex]. If [latex]n=1[/latex], then [latex]\underset{x\to \infty }{\lim}f(x)g(x)=\infty[/latex]. If [latex]n=3[/latex], then [latex]\underset{x\to \infty }{\lim}f(x)g(x)=0[/latex]. Here we consider another limit involving the indeterminate form [latex]0 \cdot \infty[/latex] and show how to rewrite the function as a quotient to use L’Hôpital’s rule.
Indeterminate Form of Type [latex]0·\infty [/latex]
Evaluate [latex]\underset{x\to 0^+}{\lim}x \ln x[/latex].
Answer:
First, rewrite the function [latex]x \ln x[/latex] as a quotient to apply L’Hôpital’s rule. If we write
we see that [latex]\ln x\to −\infty [/latex] as [latex]x\to 0^+[/latex] and [latex]\frac{1}{x}\to \infty [/latex] as [latex]x\to 0^+[/latex]. Therefore, we can apply L’Hôpital’s rule and obtain
We conclude that
Evaluate [latex]\underset{x\to 0}{\lim}x \cot x[/latex].
Answer:
1
Hint
Write [latex]x \cot x=\frac{x \cos x}{\sin x}[/latex]
Indeterminate Form of Type [latex]\infty -\infty[/latex]
Another type of indeterminate form is [latex]\infty -\infty[/latex]. Consider the following example. Let [latex]n[/latex] be a positive integer and let [latex]f(x)=3x^n[/latex] and [latex]g(x)=3x^2+5[/latex]. As [latex]x\to \infty[/latex], [latex]f(x)\to \infty [/latex] and [latex]g(x)\to \infty [/latex]. We are interested in [latex]\underset{x\to \infty}{\lim}(f(x)-g(x))[/latex]. Depending on whether [latex]f(x)[/latex] grows faster, [latex]g(x)[/latex] grows faster, or they grow at the same rate, as we see next, anything can happen in this limit. Since [latex]f(x)\to \infty [/latex] and [latex]g(x)\to \infty[/latex], we write [latex]\infty -\infty [/latex] to denote the form of this limit. As with our other indeterminate forms, [latex]\infty -\infty [/latex] has no meaning on its own and we must do more analysis to determine the value of the limit. For example, suppose the exponent [latex]n[/latex] in the function [latex]f(x)=3x^n[/latex] is [latex]n=3[/latex], then
On the other hand, if [latex]n=2[/latex], then
However, if [latex]n=1[/latex], then
Therefore, the limit cannot be determined by considering only [latex]\infty -\infty[/latex]. Next we see how to rewrite an expression involving the indeterminate form [latex]\infty -\infty [/latex] as a fraction to apply L’Hôpital’s rule.
Indeterminate Form of Type [latex]\infty -\infty[/latex]
Evaluate [latex]\underset{x\to 0^+}{\lim}(\frac{1}{x^2}-\frac{1}{\tan x})[/latex].
Answer:
By combining the fractions, we can write the function as a quotient. Since the least common denominator is [latex]x^2 \tan x[/latex], we have
As [latex]x\to 0^+[/latex], the numerator [latex]\tan x-x^2 \to 0[/latex] and the denominator [latex]x^2 \tan x \to 0[/latex]. Therefore, we can apply L’Hôpital’s rule. Taking the derivatives of the numerator and the denominator, we have
As [latex]x\to 0^+[/latex], [latex](\sec^2 x)-2x \to 1[/latex] and [latex]x^2 \sec^2 x+2x \tan x \to 0[/latex]. Since the denominator is positive as [latex]x[/latex] approaches zero from the right, we conclude that
Therefore,
Evaluate [latex]\underset{x\to 0^+}{\lim}(\frac{1}{x}-\frac{1}{\sin x})[/latex].
Answer:
0
Hint
Rewrite the difference of fractions as a single fraction.
Another type of indeterminate form that arises when evaluating limits involves exponents. The expressions [latex]0^0[/latex], [latex]\infty^0[/latex], and [latex]1^{\infty}[/latex] are all indeterminate forms. On their own, these expressions are meaningless because we cannot actually evaluate these expressions as we would evaluate an expression involving real numbers. Rather, these expressions represent forms that arise when finding limits. Now we examine how L’Hôpital’s rule can be used to evaluate limits involving these indeterminate forms.
Since L’Hôpital’s rule applies to quotients, we use the natural logarithm function and its properties to reduce a problem evaluating a limit involving exponents to a related problem involving a limit of a quotient. For example, suppose we want to evaluate [latex]\underset{x\to a}{\lim}f(x)^{g(x)}[/latex] and we arrive at the indeterminate form [latex]\infty^0[/latex]. (The indeterminate forms [latex]0^0[/latex] and [latex]1^{\infty}[/latex] can be handled similarly.) We proceed as follows. Let
Then,
Therefore,
Since [latex]\underset{x\to a}{\lim}f(x)=\infty[/latex], we know that [latex]\underset{x\to a}{\lim}\ln (f(x))=\infty[/latex]. Therefore, [latex]\underset{x\to a}{\lim}g(x) \ln (f(x))[/latex] is of the indeterminate form [latex]0 \cdot \infty[/latex], and we can use the techniques discussed earlier to rewrite the expression [latex]g(x) \ln (f(x))[/latex] in a form so that we can apply L’Hôpital’s rule. Suppose [latex]\underset{x\to a}{\lim}g(x) \ln (f(x))=L[/latex], where [latex]L[/latex] may be [latex]\infty [/latex] or [latex]−\infty[/latex]. Then
Since the natural logarithm function is continuous, we conclude that
which gives us
Indeterminate Form of Type [latex]\infty^0[/latex]
Evaluate [latex]\underset{x\to \infty }{\lim} x^{1/x}[/latex].
Answer:
Let [latex]y=x^{1/x}[/latex]. Then,
We need to evaluate [latex]\underset{x\to \infty }{\lim}\frac{\ln x}{x}[/latex]. Applying L’Hôpital’s rule, we obtain
Therefore, [latex]\underset{x\to \infty }{\lim}\ln y=0[/latex]. Since the natural logarithm function is continuous, we conclude that
which leads to
Hence,
Evaluate [latex]\underset{x\to \infty}{\lim} x^{1/ \ln x}[/latex].
Answer:
[latex]e[/latex]
Hint
Let [latex]y=x^{1/ \ln x}[/latex] and apply the natural logarithm to both sides of the equation.
Indeterminate Form of Type [latex]0^0[/latex]
Evaluate [latex]\underset{x\to 0^+}{\lim} x^{\sin x}[/latex].
Answer:
Let
Therefore,
We now evaluate [latex]\underset{x\to 0^+}{\lim} \sin x \ln x[/latex]. Since [latex]\underset{x\to 0^+}{\lim} \sin x=0[/latex] and [latex]\underset{x\to 0^+}{\lim} \ln x=−\infty[/latex], we have the indeterminate form [latex]0 \cdot \infty[/latex]. To apply L’Hôpital’s rule, we need to rewrite [latex] \sin x \ln x[/latex] as a fraction. We could write
or
Let’s consider the first option. In this case, applying L’Hôpital’s rule, we would obtain
Unfortunately, we not only have another expression involving the indeterminate form [latex]0 \cdot \infty[/latex], but the new limit is even more complicated to evaluate than the one with which we started. Instead, we try the second option. By writing
and applying L’Hôpital’s rule, we obtain
Using the fact that [latex]\csc x=\frac{1}{\sin x}[/latex] and [latex]\cot x=\frac{\cos x}{\sin x}[/latex], we can rewrite the expression on the right-hand side as
We conclude that [latex]\underset{x\to 0^+}{\lim} \ln y=0[/latex]. Therefore, [latex]\ln (\underset{x\to 0^+}{\lim} y)=0[/latex] and we have
Hence,
Evaluate [latex]\underset{x\to 0^+}{\lim} x^x[/latex].
Answer:
1
Hint
Let [latex]y=x^x[/latex] and take the natural logarithm of both sides of the equation.
Growth Rates of Functions
Suppose the functions [latex]f[/latex] and [latex]g[/latex] both approach infinity as [latex]x\to \infty[/latex]. Although the values of both functions become arbitrarily large as the values of [latex]x[/latex] become sufficiently large, sometimes one function is growing more quickly than the other. For example, [latex]f(x)=x^2[/latex] and [latex]g(x)=x^3[/latex] both approach infinity as [latex]x\to \infty[/latex]. However, as shown in the following table, the values of [latex]x^3[/latex] are growing much faster than the values of [latex]x^2[/latex].
[latex]x[/latex] | 10 | 100 | 1000 | 10,000 |
[latex]f(x)=x^2[/latex] | 100 | 10,000 | 1,000,000 | 100,000,000 |
[latex]g(x)=x^3[/latex] | 1000 | 1,000,000 | 1,000,000,000 | [latex]1,000,000,000,000[/latex] |
In fact,
As a result, we say [latex]x^3[/latex] is growing more rapidly than [latex]x^2[/latex] as [latex]x\to \infty[/latex]. On the other hand, for [latex]f(x)=x^2[/latex] and [latex]g(x)=3x^2+4x+1[/latex], although the values of [latex]g(x)[/latex] are always greater than the values of [latex]f(x)[/latex] for [latex]x>0[/latex], each value of [latex]g(x)[/latex] is roughly three times the corresponding value of [latex]f(x)[/latex] as [latex]x\to \infty[/latex], as shown in the following table. In fact,
[latex]x[/latex] | 10 | 100 | 1000 | 10,000 |
[latex]f(x)=x^2[/latex] | 100 | 10,000 | 1,000,000 | 100,000,000 |
[latex]g(x)=3x^2+4x+1[/latex] | 341 | 30,401 | 3,004,001 | 300,040,001 |
In this case, we say that [latex]x^2[/latex] and [latex]3x^2+4x+1[/latex] are growing at the same rate as [latex]x\to \infty[/latex].
More generally, suppose [latex]f[/latex] and [latex]g[/latex] are two functions that approach infinity as [latex]x\to \infty[/latex]. We say [latex]g[/latex] grows more rapidly than [latex]f[/latex] as [latex]x\to \infty [/latex] if
On the other hand, if there exists a constant [latex]M \ne 0[/latex] such that
we say [latex]f[/latex] and [latex]g[/latex] grow at the same rate as [latex]x\to \infty[/latex].
Next we see how to use L’Hôpital’s rule to compare the growth rates of power, exponential, and logarithmic functions.
Comparing the Growth Rates of [latex]\ln x[/latex], [latex]x^2[/latex], and [latex]e^x[/latex]
For each of the following pairs of functions, use L’Hôpital’s rule to evaluate [latex]\underset{x\to \infty }{\lim}(\frac{f(x)}{g(x)})[/latex].
- [latex]f(x)=x^2[/latex] and [latex]g(x)=e^x[/latex]
- [latex]f(x)=\ln x[/latex] and [latex]g(x)=x^2[/latex]
Answer:
- Since [latex]\underset{x\to \infty }{\lim} x^2=\infty [/latex] and [latex]\underset{x\to \infty }{\lim} e^x[/latex], we can use L’Hôpital’s rule to evaluate [latex]\underset{x\to \infty }{\lim}[\frac{x^2}{e^x}][/latex]. We obtain
[latex]\underset{x\to \infty }{\lim}\frac{x^2}{e^x}=\underset{x\to \infty }{\lim}\frac{2x}{e^x}[/latex].Since [latex]\underset{x\to \infty }{\lim}2x=\infty [/latex] and [latex]\underset{x\to \infty }{\lim}e^x=\infty[/latex], we can apply L’Hôpital’s rule again. Since[latex]\underset{x\to \infty }{\lim}\frac{2x}{e^x}=\underset{x\to \infty }{\lim}\frac{2}{e^x}=0[/latex],we conclude that[latex]\underset{x\to \infty }{\lim}\frac{x^2}{e^x}=0[/latex].Therefore, [latex]e^x[/latex] grows more rapidly than [latex]x^2[/latex] as [latex]x\to \infty [/latex] (See (Figure) and (Figure)).
Growth rates of a power function and an exponential function. [latex]x[/latex] 5 10 15 20 [latex]x^2[/latex] 25 100 225 400 [latex]e^x[/latex] 148 22,026 3,269,017 485,165,195 - Since [latex]\underset{x\to \infty }{\lim} \ln x=\infty [/latex] and [latex]\underset{x\to \infty }{\lim} x^2=\infty[/latex], we can use L’Hôpital’s rule to evaluate [latex]\underset{x\to \infty }{\lim}\frac{\ln x}{x^2}[/latex]. We obtain
[latex]\underset{x\to \infty }{\lim}\frac{\ln x}{x^2}=\underset{x\to \infty }{\lim}\frac{1/x}{2x}=\underset{x\to \infty }{\lim}\frac{1}{2x^2}=0[/latex].Thus, [latex]x^2[/latex] grows more rapidly than [latex]\ln x[/latex] as [latex]x\to \infty [/latex] (see (Figure) and (Figure)).
Growth rates of a power function and a logarithmic function [latex]x[/latex] 10 100 1000 10,000 [latex]\ln x[/latex] 2.303 4.605 6.908 9.210 [latex]x^2[/latex] 100 10,000 1,000,000 100,000,000
Compare the growth rates of [latex]x^{100}[/latex] and [latex]2^x[/latex].
Answer:
The function [latex]2^x[/latex] grows faster than [latex]x^{100}[/latex].
Hint
Apply L’Hôpital’s rule to [latex]x^{100}/2^x[/latex]
Using the same ideas as in (Figure)a. it is not difficult to show that [latex]e^x[/latex] grows more rapidly than [latex]x^p[/latex] for any [latex]p>0[/latex]. In (Figure) and (Figure), we compare [latex]e^x[/latex] with [latex]x^3[/latex] and [latex]x^4[/latex] as [latex]x\to \infty[/latex].
[latex]x[/latex] | 5 | 10 | 15 | 20 |
[latex]x^3[/latex] | 125 | 1000 | 3375 | 8000 |
[latex]x^4[/latex] | 625 | 10,000 | 50,625 | 160,000 |
[latex]e^x[/latex] | 148 | 22,026 | 3,269,017 | 485,165,195 |
Similarly, it is not difficult to show that [latex]x^p[/latex] grows more rapidly than [latex]\ln x[/latex] for any [latex]p>0[/latex]. In (Figure) and (Figure), we compare [latex]\ln x[/latex] with [latex]\sqrt[3]{x}[/latex] and [latex]\sqrt{x}[/latex].
[latex]x[/latex] | 10 | 100 | 1000 | 10,000 |
[latex]\ln x[/latex] | 2.303 | 4.605 | 6.908 | 9.210 |
[latex]\sqrt[3]{x}[/latex] | 2.154 | 4.642 | 10 | 21.544 |
[latex]\sqrt{x}[/latex] | 3.162 | 10 | 31.623 | 100 |
Key Concepts
- L’Hôpital’s rule can be used to evaluate the limit of a quotient when the indeterminate form [latex]0/0[/latex] or [latex]\infty / \infty[/latex] arises.
- L’Hôpital’s rule can also be applied to other indeterminate forms if they can be rewritten in terms of a limit involving a quotient that has the indeterminate form [latex]0/0[/latex] or [latex]\infty / \infty[/latex].
- The exponential function [latex]e^x[/latex] grows faster than any power function [latex]x^p[/latex], [latex]p>0[/latex].
- The logarithmic function [latex]\ln x[/latex] grows more slowly than any power function [latex]x^p[/latex], [latex]p>0[/latex].
For the following exercises, evaluate the limit.
1. Evaluate the limit [latex]\underset{x\to \infty }{\lim}\frac{e^x}{x}[/latex].
2. Evaluate the limit [latex]\underset{x\to \infty }{\lim}\frac{e^x}{x^k}[/latex].
Answer:
[latex]\infty [/latex]
3. Evaluate the limit [latex]\underset{x\to \infty }{\lim}\frac{\ln x}{x^k}[/latex].
4. Evaluate the limit [latex]\underset{x\to a}{\lim}\frac{x-a}{x^2-a^2}[/latex].
Answer:
[latex]\frac{1}{2a}[/latex]
5. Evaluate the limit [latex]\underset{x\to a}{\lim}\frac{x-a}{x^3-a^3}[/latex].
6. Evaluate the limit [latex]\underset{x\to a}{\lim}\frac{x-a}{x^n-a^n}[/latex].
Answer:
[latex]\frac{1}{na^{n-1}}[/latex]
For the following exercises, determine whether you can apply L’Hôpital’s rule directly. Explain why or why not. Then, indicate if there is some way you can alter the limit so you can apply L’Hôpital’s rule.
7. [latex]\underset{x\to 0^+}{\lim}x^2 \ln x[/latex]
Answer:
Cannot apply directly; use logarithms
9. [latex]\underset{x\to 0}{\lim} x^{2/x}[/latex]
10. [latex]\underset{x\to 0}{\lim}\frac{x^2}{1/x}[/latex]
Answer:
Cannot apply directly; rewrite as [latex]\underset{x\to 0}{\lim} x^3[/latex]
11. [latex]\underset{x\to \infty }{\lim}\frac{e^x}{x}[/latex]
For the following exercises, evaluate the limits with either L’Hôpital’s rule or previously learned methods.
12. [latex]\underset{x\to 3}{\lim}\frac{x^2-9}{x-3}[/latex]
Answer:
6
13. [latex]\underset{x\to 3}{\lim}\frac{x^2-9}{x+3}[/latex]
14. [latex]\underset{x\to 0}{\lim}\frac{(1+x)^{-2}-1}{x}[/latex]
Answer:
-2
15. [latex]\underset{x\to \pi /2}{\lim}\frac{\cos x}{\pi / 2 - x}[/latex]
16. [latex]\underset{x\to \pi }{\lim}\frac{x-\pi }{\sin x}[/latex]
Answer:
-1
17. [latex]\underset{x\to 1}{\lim}\frac{x-1}{\sin x}[/latex]
18. [latex]\underset{x\to 0}{\lim}\frac{(1+x)^n-1}{x}[/latex]
Answer:
[latex]n[/latex]
20. [latex]\underset{x\to 0}{\lim}\frac{\sin x- \tan x}{x^3}[/latex]
Answer:
[latex]-\frac{1}{2}[/latex]
21. [latex]\underset{x\to 0}{\lim}\frac{\sqrt{1+x}-\sqrt{1-x}}{x}[/latex]
22. [latex]\underset{x\to 0}{\lim}\frac{e^x-x-1}{x^2}[/latex]
Answer:
[latex]\frac{1}{2}[/latex]
23. [latex]\underset{x\to 0}{\lim}\frac{\tan x}{\sqrt{x}}[/latex]
24. [latex]\underset{x\to 1}{\lim}\frac{x-1}{\ln x}[/latex]
Answer:
1
25. [latex]\underset{x\to 0}{\lim}(x+1)^{1/x}[/latex]
26. [latex]\underset{x\to 1}{\lim}\frac{\sqrt{x}-\sqrt[3]{x}}{x-1}[/latex]
Answer:
[latex]\frac{1}{6}[/latex]
27. [latex]\underset{x\to 0^+}{\lim} x^{2x}[/latex]
28. [latex]\underset{x\to \infty }{\lim} x \sin (\frac{1}{x})[/latex]
Answer:
1
29. [latex]\underset{x\to 0}{\lim}\frac{\sin x-x}{x^2}[/latex]
30. [latex]\underset{x\to 0^+}{\lim} x \ln (x^4)[/latex]
Answer:
0
31. [latex]\underset{x\to \infty }{\lim}(x-e^x)[/latex]
32. [latex]\underset{x\to \infty }{\lim} x^2 e^{−x}[/latex]
Answer: 0
33. [latex]\underset{x\to 0}{\lim}\frac{3^x-2^x}{x}[/latex]
Answer:
-1
35. [latex]\underset{x\to \pi /4}{\lim}(1- \tan x) \cot x[/latex]
36. [latex]\underset{x\to \infty }{\lim} xe^{1/x}[/latex]
Answer:
[latex]\infty [/latex]
37. [latex]\underset{x\to 0}{\lim} x^{1/ \cos x}[/latex]
38. [latex]\underset{x\to 0}{\lim} x^{1/x}[/latex]
Answer: 1
39. [latex]\underset{x\to 0}{\lim} (1-\frac{1}{x})^x[/latex]
40. [latex]\underset{x\to \infty }{\lim} (1-\frac{1}{x})^x[/latex]
Answer:
[latex]\frac{1}{e}[/latex]
For the following exercises, use a calculator to graph the function and estimate the value of the limit, then use L’Hôpital’s rule to find the limit directly.
42. [T] [latex]\underset{x\to 0}{\lim}x \sin (\frac{1}{x})[/latex]
Answer:
0
43. [T] [latex]\underset{x\to 1}{\lim}\frac{x-1}{1- \cos (\pi x)}[/latex]
44. [T] [latex]\underset{x\to 1}{\lim}\frac{e^{x-1}-1}{x-1}[/latex]
Answer: 1
45. [T] [latex]\underset{x\to 1}{\lim}\frac{(x-1)^2}{\ln x}[/latex]
46. [T] [latex]\underset{x\to \pi }{\lim}\frac{1+ \cos x}{ \sin x}[/latex]
Answer:
0
47. [T] [latex]\underset{x\to 0}{\lim}( \csc x-\frac{1}{x})[/latex]
48. [T] [latex]\underset{x\to 0^+}{\lim} \tan (x^x)[/latex]
Answer:
[latex] \tan (1)[/latex]
49. [T] [latex]\underset{x\to 0^+}{\lim}\frac{\ln x}{ \sin x}[/latex]
50. [T] [latex]\underset{x\to 0}{\lim}\frac{e^x-e^{−x}}{x}[/latex]
Answer:
2
Glossary
- indeterminate forms
- when evaluating a limit, the forms [latex]0/0[/latex], [latex]\infty / \infty[/latex], [latex]0 \cdot \infty[/latex], [latex]\infty -\infty[/latex], [latex]0^0[/latex], [latex]\infty^0[/latex], and [latex]1^{\infty}[/latex] are considered indeterminate because further analysis is required to determine whether the limit exists and, if so, what its value is
- L’Hôpital’s rule
- if [latex]f[/latex] and [latex]g[/latex] are differentiable functions over an interval [latex]a[/latex], except possibly at [latex]a[/latex], and [latex]\underset{x\to a}{\lim} f(x)=0=\underset{x\to a}{\lim} g(x)[/latex] or [latex]\underset{x\to a}{\lim} f(x)[/latex] and [latex]\underset{x\to a}{\lim} g(x)[/latex] are infinite, then [latex]\underset{x\to a}{\lim}\frac{f(x)}{g(x)}=\underset{x\to a}{\lim}\frac{f^{\prime}(x)}{g^{\prime}(x)}[/latex], assuming the limit on the right exists or is [latex]\infty [/latex] or [latex]−\infty [/latex]
Licenses & Attributions
CC licensed content, Shared previously
- Calculus I. Provided by: OpenStax Located at: https://openstax.org/books/calculus-volume-1/pages/1-introduction. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License terms: Download for free at http://cnx.org/contents/[email protected].
Hint
[latex]\frac{d}{dx} \tan x= \sec ^2 x[/latex]