# 4.8: L’Hôpital’s Rule

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

\(lim_{x→a}\frac{f(x)}{g(x)}\).

If \(lim_{x→a}f(x)=L_1\) and \(lim_{x→a}g(x)=L_2≠0,\) then

\(lim_{x→a}\frac{f(x)}{g(x)}=\frac{L_1}{L_2}\).

However, what happens if \(lim_{x→a}f(x)=0\) and \(lim_{x→a}g(x)=0\)? We call this one of the **indeterminate forms,** of type \(\frac{0}{0}\). This is considered an indeterminate form because we cannot determine the exact behavior of \(\frac{f(x)}{g(x)}\) as \(x→a\) without further analysis. We have seen examples of this earlier in the text. For example, consider

\(lim_{x→2}\frac{x^2−4}{x−2}\) and \(lim_{x→0}\frac{sinx}{x}\).

For the first of these examples, we can evaluate the limit by factoring the numerator and writing

\(lim_{x→2}\frac{x^2−4}{x−2}=lim_{x→2}\frac{(x+2)(x−2)}{x−2}=lim_{x→2}(x+2)=2+2=4.\)

For \(lim_{x→0}\frac{sinx}{x}\) we were able to show, using a geometric argument, that

\(lim_{x→0}\frac{sinx}{x}=1.\)

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 \(f\) and \(g\) such that \(lim_{x→a}f(x)=0=lim_{x→a}g(x)\) and such that \(g′(a)≠0\) For \(x\) near \(a\),we can write

\(f(x)≈f(a)+f′(a)(x−a)\)

and

\(g(x)≈g(a)+g′(a)(x−a).\)

Therefore,

\(\frac{f(x)}{g(x)}≈\frac{f(a)+f′(a)(x−a)}{g(a)+g′(a)(x−a)}\).

**Figure 1:** If \(lim_{x→a}f(x)=lim_{x→a}g(x)\), then the ratio \(f(x)/g(x)\) is approximately equal to the ratio of their linear approximations near a.

Since \(f\) is differentiable at \(a\), then \(f\) is continuous at \(a\), and therefore \(f(a)=lim_{x→a}f(x)=0\). Similarly, \(g(a)=lim_{x→a}g(x)=0\). If we also assume that \(f′\) and \(g′\) are continuous at \(x=a\), then \(f′(a)=lim_{x→a}f′(x)\) and \(g′(a)=lim_{x→a}g′(x)\). Using these ideas, we conclude that

\(lim_{x→a}\frac{f(x)}{g(x)}=lim_{x→a}\frac{f′(x)(x−a)}{g′(x)(x−a)}=lim_{x→a}\frac{f′(x)}{g′(x)}\).

Note that the assumption that \(f′\) and \(g′\) are continuous at \(a\) and \(g′(a)≠0\) can be loosened. We state L’Hôpital’s rule formally for the indeterminate form \(\frac{0}{0}\). Also note that the notation \(\frac{0}{0}\) does not mean we are actually dividing zero by zero. Rather, we are using the notation \(\frac{0}{0}\) to represent a quotient of limits, each of which is zero.

NOTE: L’Hôpital’s Rule (0/0 Case)

Suppose \(f\) and \(g\) are differentiable functions over an open interval containing \(a\), except possibly at \(a\). If \(lim_{x→a}f(x)=0\) and \(lim_{x→a}g(x)=0,\) then

\(lim_{x→a}\frac{f(x)}{g(x)}=lim_{x→a}\frac{f′(x)}{g′(x)}\),

assuming the limit on the right exists or is \(∞\) or \(−∞\). This result also holds if we are considering one-sided limits, or if \(a=∞ and−∞.\)

## Proof

We provide a proof of this theorem in the special case when \(f,g,f′,\) and \(g′\) are all continuous over an open interval containing a. In that case, since \(lim_{x→a}f(x)=0=lim_{x→a}g(x)\) and \(f\) and \(g\) are continuous at \(a\), it follows that \(f(a)=0=g(a)\). Therefore,

\(lim_{x→a}\frac{f(x)}{g(x)}=lim_{x→a}\frac{f(x)−f(a)}{g(x)−g(a)}\) since \(f(a)=0=g(a)\)

\(=lim_{x→a}\frac{\frac{f(x)−f(a)}{x−a}}{\frac{g(x)−g(a)}{x−a}}\) algebra

\(=\frac{lim_{x→a}\frac{f(x)−f(a)}{x−a}}{lim_{x→a}\frac{g(x)−g(a)}{x−a}}\) limit of a quotient

\(=\frac{f′(a)}{g′(a)}\) definition of the derivative

\(=\frac{lim_{x→a}f′(x)}{lim_{x→a}g′(x)}\) continuity of \(f′\) and \(g′\)

\(=lim_{x→a}\frac{f′(x)}{g′(x)}\). limit of a quotient

Note that L’Hôpital’s rule states we can calculate the limit of a quotient \(\frac{f}{g}\) by considering the limit of the quotient of the derivatives \(\frac{f′}{g′}\). It is important to realize that we are not calculating the derivative of the quotient \(\frac{f}{g}\).

□

#### Example

1)Applying L’Hôpital’s Rule (0/0 Case)

Evaluate each of the following limits by applying L’Hôpital’s rule.

a. \(lim_{x→0}\frac{1−cosx}{x}\)

b. \(lim_{x→1}\frac{sin(πx)}{lnx}\)

c. \(lim_{x→∞}\frac{e^{1/x}−1}{1/x}\)

d. \(lim_{x→0}\frac{sinx−x}{x^2}\)

Solution:

a.. Since the numerator \(1−cosx→0\) and the denominator \(x→0\), we can apply L’Hôpital’s rule to evaluate this limit. We have

\(lim_{x→0}\frac{1−cosx}{x}=lim_{x→0}\frac{\frac{d}{dx}(1−cosx)}{\frac{d}{dx}(x)}=lim_{x→0}\frac{sinx}{1}=\frac{lim_{x→0}(sinx)}{lim_{x→0}(1)}=\frac{0}{1}=0.\)

b. As \(x→1,\) the numerator \(sin(πx)→0\) and the denominator \(ln(x)→0.\) Therefore, we can apply L’Hôpital’s rule. We obtain

\(lim_{x→1}\frac{sin(πx)}{lnx}=lim_{x→1}\frac{πcos(πx)}{1/x}\)

\(=lim_{x→1}(πx)cos(πx)\)

\(=(π⋅1)(−1)=−π.\)

c. As \(x→∞\), the numerator \(e^{1/x}−1→0\) and the denominator \((\frac{1}{x})→0\). Therefore, we can apply L’Hôpital’s rule. We obtain

\(lim_{x→∞}\frac{e^{1/x}−1}{\frac{1}{x}}=lim_{x→∞}\frac{e^{1/x}(\frac{−1}{x2})}{(\frac{−1}{x^2})}=lim_{x→∞}e^{1/x}=e^0=1⋅lim_{x→∞}\frac{e^{1/x}−1}{lnx}\).

d. As \(x→0,\) both the numerator and denominator approach zero. Therefore, we can apply L’Hôpital’s rule. We obtain

\(lim_{x→0}\frac{sinx−x}{x^2}=lim_{x→0}\frac{cosx−1}{2x}\).

Since the numerator and denominator of this new quotient both approach zero as \(x→0\), we apply L’Hôpital’s rule again. In doing so, we see that

\(lim_{x→0}\frac{cosx−1}{2x}=lim_{x→0}\frac{−sinx}{2}=0.\)

Therefore, we conclude that

\(lim_{x→0}\frac{sinx−x}{x^2}=0.\)

2) Evaluate \(lim_{x→0}\frac{x}{tanx}.\)

Hint: \(\frac{d}{dx}tanx=sec^2x\)

Solution: \(1\)

We can also use L’Hôpital’s rule to evaluate limits of quotients \(\frac{f(x)}{g(x)}\) in which \(f(x)→±∞\) and \(g(x)→±∞\). Limits of this form are classified as indeterminate forms of type \(∞/∞\). Again, note that we are not actually dividing \(∞\) by \(∞\). Since \(∞\) is not a real number, that is impossible; rather, \(∞/∞\). is used to represent a quotient of limits, each of which is \(∞\) or \(−∞\).

### NOTE: L’Hôpital’s Rule (\(∞/∞\) Case)

Suppose \(f\) and \(g\) are differentiable functions over an open interval containing \(a\), except possibly at \(a\). Suppose \(lim_{x→a}f(x)=∞\) (or \(−∞\)) and \(lim_{x→a}g(x)=∞\) (or \(−∞\)). Then,

\(lim_{x→a}\frac{f(x)}{g(x)}=lim_{x→a}\frac{f′(x)}{g′(x)}\),

assuming the limit on the right exists or is \(∞\) or \(−∞\). This result also holds if the limit is infinite, if \(a=∞\) or \(−∞\), or the limit is one-sided.

#### Example:

3) Applying L’Hôpital’s Rule \(

Evaluate each of the following limits by applying L’Hôpital’s rule.

b. \(

Solution:

a. Since \(3x+5\) and \(2x+1\) are first-degree polynomials with positive leading coefficients, \(lim_{x→∞}(3x+5)=∞\) and \(lim_{x→∞}(2x+1)=∞\). Therefore, we apply L’Hôpital’s rule and obtain

\(lim_{x→∞}\frac{3x+5}{2x+1}=lim_{x→∞}\frac{3+5/x}{2x+1}=lim_{x→∞}\frac{3}{2}=\frac{3}{2}\).

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 x in the denominator. In doing so, we saw that

\(lim_{x→∞}\frac{3x+5}{2x+1}=lim_{x→∞}\frac{3+5/x}{2x+1}=\frac{3}{2}\).

L’Hôpital’s rule provides us with an alternative means of evaluating this type of limit.

b. Here, \(lim_{x→0^+}lnx=−∞\) and \(lim_{x→0^+}cotx=∞\). Therefore, we can apply L’Hôpital’s rule and obtain

\(lim_{x→0^+}\frac{lnx}{cotx}=lim_{x→0^+}\frac{1/x}{−csc^2x}=lim_{x→0^+}\frac{1}{−xcsc^2x}\).

Now as \(x→0^+, csc^2x→∞\). 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 \(cscx\) to write

\(lim_{x→0^+}\frac{1}{−xcsc^2x}=lim_{x→0^+}\frac{sin^2x}{−x}\).

Now \(lim_{x→0^+}sin^2x=0\) and \(lim_{x→0^+}x=0\, so we apply L’Hôpital’s rule again. We find

\(lim_{x→0^+}\frac{sin^2x}{−x}=lim_{x→0^+}\frac{2sinxcosx}{−1}=\frac{0}{−1}=0.\)

We conclude that

\(lim_{x→0^+}\frac{lnx}{cotx}=0.\)

4) Evaluate \(lim_{x→∞}\frac{lnx}{5x}\).

Hint: \(\frac{d}{dx}lnx=\frac{1}{x}\)

Solution: \(0\)

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 f(x)g(x), it is essential that the limit of \(\frac{f(x)}{g(x)}\) be of the form \(\frac{0}{0}\) or \(∞/∞\). Consider the following example.

5) When L’Hôpital’s Rule Does Not Apply

Consider \(lim_{x→1}\frac{x^2+5}{3x+4}\). Show that the limit cannot be evaluated by applying L’Hôpital’s rule.

Solution: 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

\(\frac{d}{dx}(x^2+5)=2x\)

and

\(\frac{d}{dx}(3x+4)=3.\)

At which point we would conclude erroneously that

\(lim_{x→1}\frac{x^2+5}{3x+4}=lim_{x→1}\frac{2x}{3}=\frac{2}{3}\).

However, since \(lim_{x→1}(x^2+5)=6\) and \(lim_{x→1}(3x+4)=7,\) we actually have

\(lim_{x→1}\frac{x^2+5}{3x+4}=\frac{6}{7}\).

We can conclude that

\(lim_{x→1}\frac{x^2+5}{3x+4}≠lim_{x→1}\frac{\frac{d}{dx}(x^2+5)}{\frac{d}{dx}(3x+4).}\)

6) Explain why we cannot apply L’Hôpital’s rule to evaluate \(lim_{x→0^+}\frac{cosx}{x}\). Evaluate \(lim_{x→0^+}\frac{cosx}{x}\) by other means.

Hint: Determine the limits of the numerator and denominator separately.

Solution: \(lim_{x→0^+}cosx=1.\) Therefore, we cannot apply L’Hôpital’s rule. The limit of the quotient is \(∞\)

## Other Indeterminate Forms

L’Hôpital’s rule is very useful for evaluating limits involving the indeterminate forms \(\frac{0}{0}\) and \(∞/∞\). 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 \(0⋅∞, ∞−∞, 1^∞, ∞^0\), and \(0^0\) 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 \(\frac{0}{0}\) or \(∞/∞\).

## Indeterminate Form of Type 0⋅∞

Suppose we want to evaluate \(lim_{x→a}(f(x)⋅g(x))\), where \(f(x)→0\) and \(g(x)→∞\) (or \(−∞\)) as \(x→a\). 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 \(0⋅∞\) to denote the form that arises in this situation. The expression \(0⋅∞\) is considered indeterminate because we cannot determine without further analysis the exact behavior of the product \(f(x)g(x)\) as \(x→∞\). For example, let \(n\) be a positive integer and consider

\(f(x)=\frac{1}{(x^n+1)}\) and \(g(x)=3x^2\).

As \(x→∞, f(x)→0\) and \(g(x)→∞\). However, the limit as \(x→∞\) of \(f(x)g(x)=\frac{3x^2}{(x^n+1)}\) varies, depending on \(n\). If \(n=2\), then \(lim_{x→∞}f(x)g(x)=3\). If \(n=1\), then \(lim_{x→∞}f(x)g(x)=∞\). If \(n=3\), then \(lim_{x→∞}f(x)g(x)=0\). Here we consider another limit involving the indeterminate form \(0⋅∞\) and show how to rewrite the function as a quotient to use L’Hôpital’s rule.

#### Example:

7) Indeterminate Form of Type \(0⋅∞\)

Evaluate \(lim_{x→0^+}xlnx.\)

Solution: First, rewrite the function \(xlnx\) as a quotient to apply L’Hôpital’s rule. If we write

\(xlnx=\frac{lnx}{1/x}\),

we see that \(lnx→−∞\) as \(x→0^+\) and \(\frac{1}{x}→∞\) as \(x→0^+\). Therefore, we can apply L’Hôpital’s rule and obtain

\(lim_{x→0^+}\frac{lnx}{1/x}=lim_{x→0^+}\frac{\frac{d}{dx}(lnx)}{\frac{d}{dx}(1/x)}=lim_{x→0^+}\frac{1/x^2}{−1/x}=lim_{x→0^+}(−x)=0.\)

We conclude that

\(lim_{x→0^+}xlnx=0.\)

**Figure 2:** Finding the limit at \(x=0\) of the function \(f(x)=xlnx.\)

8) Evaluate \(lim_{x→0}xcotx\).

Hint: Write \(xcotx=\frac{xcosx}{sinx}\)

Solution: \(1\)

## Indeterminate Form of Type \(∞−∞\)

Another type of indeterminate form is \(∞−∞.\) Consider the following example. Let \(n\) be a positive integer and let \(f(x)=3x^n\) and \(g(x)=3x^2+5\). As \(x→∞, f(x)→∞\) and \(g(x)→∞\). We are interested in \(lim_{x→∞}(f(x)−g(x))\). Depending on whether \(f(x)\) grows faster, \(g(x)\) grows faster, or they grow at the same rate, as we see next, anything can happen in this limit. Since \(f(x)→∞\) and \(g(x)→∞\), we write \(∞−∞\) to denote the form of this limit. As with our other indeterminate forms, \(∞−∞\) has no meaning on its own and we must do more analysis to determine the value of the limit. For example, suppose the exponent n in the function \(f(x)=3x^n\) is \(n=3\), then

\(lim_{x→∞}(f(x)−g(x))=lim_{x→∞}(3x^3−3x^2−5)=∞.\)

On the other hand, if \(n=2,\) then

\(lim_{x→∞}(f(x)−g(x))=lim_{x→∞}(3x^2−3x^2−5)=−5\).

However, if \(n=1\), then

\(lim_{x→∞}(f(x)−g(x))=lim_{x→∞}(3x−3x^2−5)=−∞.\)

Therefore, the limit cannot be determined by considering only \(∞−∞\). Next we see how to rewrite an expression involving the indeterminate form \(∞−∞\) as a fraction to apply L’Hôpital’s rule.

#### Example:

9) Indeterminate Form of Type \(∞−∞\)

Evaluate \(lim_{x→0^+}(\frac{1}{x^2}−\frac{1}{tanx})\).

Solution: By combining the fractions, we can write the function as a quotient. Since the least common denominator is \(x^2tanx,\) we have

\(\frac{1}{x^2}−\frac{1}{tanx}=\frac{(tanx)−x^2}{x^2tanx}\).

As \(x→0^+\), the numerator \(tanx−x^2→0\) and the denominator \(x^2tanx→0.\) Therefore, we can apply L’Hôpital’s rule. Taking the derivatives of the numerator and the denominator, we have

\(lim_{x→0^+}\frac{(tanx)−x^2}{x^2tanx}=lim_{x→0^+}\frac{(sec^2x)−2x}{x^2sec^2x+2xtanx}\).

As \(x→0^+\), \((sec^2x)−2x→1\) and \(x^2sec^2x+2xtanx→0\). Since the denominator is positive as \(x\) approaches zero from the right, we conclude that

\(lim_{x→0^+}\frac{(sec^2x)−2x}{x^2sec^2x+2xtanx}=∞\).

Therefore,

\(lim_{x→0^+}(\frac{1}{x^2}−\frac{1}{tanx})=∞.\)

10) Evaluate \(lim_{x→0^+}(\frac{1}{x}−\frac{1}{sinx})\).

Hint: Rewrite the difference of fractions as a single fraction.

Solution: 0

Another type of indeterminate form that arises when evaluating limits involves exponents. The expressions \(0^0, ∞^0\), and \(1^∞\) 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 \(lim_{x→a}f(x)^{g(x)}\) and we arrive at the indeterminate form \(∞^0\). (The indeterminate forms \(0^0\) and \(1^∞\) can be handled similarly.) We proceed as follows. Let

\(y=f(x)^{g(x)}\).

Then,

\(lny=ln(f(x)^{g(x)})=g(x)ln(f(x)).\)

Therefore,

\(lim_{x→a}[ln(y)]=lim_{x→a}[g(x)ln(f(x))]\).

Since \(lim_{x→a}f(x)=∞,\) we know that \(lim_{x→a}ln(f(x))=∞\). Therefore, \(lim_{x→a}g(x)ln(f(x))\) is of the indeterminate form \(0⋅∞\), and we can use the techniques discussed earlier to rewrite the expression \(g(x)ln(f(x))\) in a form so that we can apply L’Hôpital’s rule. Suppose \(lim_{x→a}g(x)ln(f(x))=L\), where \(L\) may be \(∞\) or \(−∞.\) Then

\(lim_{x→a}[ln(y)]=L\).

Since the natural logarithm function is continuous, we conclude that

\(ln(lim_{x→a}y)=L\),

which gives us

\(lim_{x→a}y=lim_{x→a}f(x)^{g(x)}=e^L\).

10) Indeterminate Form of Type \(∞^0\)

Evaluate \(lim_{x→∞}x^{1/x}\).

Solution: Let \(y=x^{1/x}\).Then,

\(ln(x^{1/x})=\frac{1}{x}lnx=\frac{lnx}{x}\).

We need to evaluate \(lim_{x→∞}\frac{lnx}{x}\). Applying L’Hôpital’s rule, we obtain

\(lim_{x→∞}lny=lim_{x→∞}\frac{lnx}{x}=lim_{x→∞}\frac{1/x}{1}=0.\)

Therefore, \(lim_{x→∞}lny=0.\) Since the natural logarithm function is continuous, we conclude that

\(ln(lim_{x→∞}y)=0,\)

which leads to

\(lim_{x→∞}y=lim_{x→∞}\frac{lnx}{x}=e^0=1\).

Hence,

\(lim_{x→∞}x^{1/x}=1.\)

11) Evaluate \(lim_{x→∞}x^{1/ln(x)}\).

Hint: Let \(y=x^{1/ln(x)}\) and apply the natural logarithm to both sides of the equation.

Solution: \(e\)

12) Indeterminate Form of Type \(0^0\)

Evaluate \(lim_{x→0^+}x^{sinx}.\)

Solution: Let

\(y=x^{sinx}\).

Therefore,

\(lny=ln(x^{sinx})=sinxlnx.\)

We now evaluate \(lim_{x→0^+}sinxlnx.\) Since \(lim_{x→0^+}sinx=0\) and \(lim_{x→0^+}lnx=−∞\), we have the indeterminate form \(0⋅∞\). To apply L’Hôpital’s rule, we need to rewrite \(sinxlnx\) as a fraction. We could write

\(sinxlnx=\frac{sinx}{1/lnx}\)

or

\(sinxlnx=\frac{lnx}{1/sinx}=\frac{lnx}{cscx}\).

Let’s consider the first option. In this case, applying L’Hôpital’s rule, we would obtain

\(lim_{x→0^+}sinxlnx=lim_{x→0^+}\frac{sinx}{1/lnx}=lim_{x→0^+}\frac{cosx}{−1/(x(lnx)^2)}=lim_{x→0^+}(−x(lnx)^2cosx).\)

Unfortunately, we not only have another expression involving the indeterminate form \(0⋅∞,\) 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

\(sinxlnx=\frac{lnx}{1/sinx}=\frac{lnx}{cscx,}\)

and applying L’Hôpital’s rule, we obtain

\(lim_{x→0^+}sinxlnx=lim_{x→0^+}\frac{lnx}{cscx}=lim_{x→0^+}\frac{1/x}{−cscxcotx}=lim_{x→0^+}\frac{−1}{xcscxcotx}\).

Using the fact that \(cscx=\frac{1}{sinx}\) and \(cotx=\frac{cosx}{sinx}\), we can rewrite the expression on the right-hand side as

\(lim_{x→0^+}\frac{−sin^2x}{xcosx}=lim_{x→0^+}[\frac{sinx}{x}⋅(−tanx)]=(lim_{x→0^+}\frac{sinx}{x})⋅(lim_{x→0^+}(−tanx))=1⋅0=0.\)

We conclude that \(lim_{x→0^+}lny=0.\) Therefore, \(ln(lim_{x→0^+}y)=0\) and we have

\(lim_{x→0^+}y=lim_{x→0^+}x^{sinx}=e^0=1.\)

Hence,

\(lim_{x→0^+}x^{sinx}=1.\)

13) Evaluate \(lim_{x→0^+}x^x\).

Hint: Let \(y=x^x\) and take the natural logarithm of both sides of the equation.

Solution: 1

## Growth Rates of Functions

Suppose the functions \(f\) and \(g\) both approach infinity as \(x→∞\). Although the values of both functions become arbitrarily large as the values of \(x\) become sufficiently large, sometimes one function is growing more quickly than the other. For example, \(f(x)=x^2\) and \(g(x)=x^3\) both approach infinity as \(x→∞\). However, as shown in the following table, the values of \(x^3\) are growing much faster than the values of \(x^2\).

\(x\) | 10 | 100 | 1000 | 10,000 |

\(f(x)=x^2\) | 100 | 10,000 | 1,000,000 | 100,000,000 |

\(g(x)=x^3\) | 1000 | 1,000,000 | 1,000,000,000 | 1,000,000,000,000 |

Comparing the Growth Rates of \(x^2\) and \(x^3\)

In fact,

\(lim_{x→∞}\frac{x^3}{x^2}=lim_{x→∞}x=∞.\)or, equivalently,\(lim_{x→∞x}\frac{x^2}{x^3}=lim_{x→∞}\frac{1}{x}=0.\)

As a result, we say \(x^3\) is growing more rapidly than \(x^2\) as \(x→∞\). On the other hand, for \(f(x)=x^2\) and \(g(x)=3x^2+4x+1\), although the values of \(g(x)\) are always greater than the values of \(f(x)\) for \(x>0\), each value of \(g(x)\) is roughly three times the corresponding value of \(f(x)\) as \(x→∞\),as shown in the following table. In fact,

\(lim_{x→∞}\frac{x^2}{3x^2+4x+1}=\frac{1}{3}\).

\(x\) | 10 | 100 | 1000 | 10,000 |
---|---|---|---|---|

\(f(x)=x^2\) | 100 | 10,000 | 1,000,000 | 100,000,000 |

\(g(x)=3x^2+4x+1\) | 341 | 30,401 | 3,004,001 | 300,040,001 |

Comparing the Growth Rates of \(x^2\) and \(3x^2+4x+1\)

In this case, we say that \(x^2\) and \(3x^2+4x+1\) are growing at the same rate as \(x→∞.\)

More generally, suppose \(f\) and \(g\) are two functions that approach infinity as \(x→∞\). We say \(g\) grows more rapidly than \(f\) as \(x→∞\) if

\(lim_{x→∞}\frac{g(x)}{f(x)}=∞\);or, equivalently, \(lim_{x→∞}\frac{f(x)}{g(x)}=0.\)

On the other hand, if there exists a constant \(M≠0\) such that

\(lim_{x→∞}\frac{f(x)}{g(x)}=M,\)

we say \(f\) and \(g\) grow at the same rate as \(x→∞\).

Next we see how to use L’Hôpital’s rule to compare the growth rates of power, exponential, and logarithmic functions.

#### Example:

14) Comparing the Growth Rates of \(ln(x),x^2\), and \(e^x\)

For each of the following pairs of functions, use L’Hôpital’s rule to evaluate

\(lim_{x→∞}(\frac{f(x)}{g(x)})\).

a. \(f(x)=x^2\) and \(g(x)=e^x\)

b. \(f(x)=ln(x)\) and \(g(x)=x^2\)

Solution:

a. Since \(lim_{x→∞}x^2=∞\) and \(lim_{x→∞}e^x\), we can use L’Hôpital’s rule to evaluate \(lim_{x→∞}[\frac{x^2}{e^x}]\). We obtain

\(lim_{x→∞}\frac{x^2}{e^x}=lim_{x→∞}\frac{2x}{e^x}\).

Since \(lim_{x→∞}2x=∞\) and l\(im_{x→∞}e^x=∞\), we can apply L’Hôpital’s rule again. Since

\(lim_{x→∞}\frac{2x}{e^x}=lim_{x→∞}\frac{2}{e^x}=0\),

we conclude that

\(lim_{x→∞}\frac{x^2}{e^x}=0.\)

Therefore, \(e^x\) grows more rapidly than \(x^2\) as \(x→∞\) (See Figure and Table)

**Figure 3:** An exponential function grows at a faster rate than a power function.

\(x\) | 5 | 10 | 15 | 20 |
---|---|---|---|---|

\(x^2\) | 25 | 100 | 225 | 400 |

\(e^x\) | 148 | 22,026 | 3,269,017 | 485,165,195 |

Growth rates of a power function and an exponential function.

b. Since \(lim_{x→∞}lnx=∞\) and \(lim_{x→∞}x^2=∞\), we can use L’Hôpital’s rule to evaluate \(lim_{x→∞}\frac{lnx}{x^2}\). We obtain

\(lim_{x→∞}\frac{lnx}{x^2}=lim_{x→∞}\frac{1/x}{2x}=lim_{x→∞}\frac{1}{2x^2}=0.\)

Thus, \(x^2\) grows more rapidly than \(lnx\) as \(x→∞\) (see Figure and Table).

**Figure 4: **A power function grows at a faster rate than a logarithmic function.

\(x\) | 10 | 100 | 1000 | 10,000 |

\(ln(x)\) | 2.303 | 4.605 | 6.908 | 9.10 |

\(x^2\) | 100 | 10,000 | 1,000,000 | 100,000,000 |

Growth rates of a power function and a logarithmic function

15) Compare the growth rates of \(x^{100}\) and \(2^x\).

Hint: Apply L’Hôpital’s rule to \(x^{100}/2^x\)

Solution: The function \(2^x\) grows faster than \(x^{100}\).

Using the same ideas as in Examplea. it is not difficult to show that \(e^x\) grows more rapidly than \(x^p\) for any \(p>0\). In Figure and Table, we compare \(e^x\) with \(x^3\) and \(x^4\) as \(x→∞\).

**Figure 5: **The exponential function \(e^x\) grows faster than \(x^p\) for any \(p>0\). (a) A comparison of \(e^x\) with \(x^3\). (b) A comparison of \(e^x\) with \(x^4\).

\(x\) | 5 | 10 | 15 | 20 |

\(x^3\) | 125 | 1000 | 3375 | 8000 |

\(x^4\) | 625 | 10,000 | 50,625 | 160,000 |

\(e^x\) | 148 | 22,026 | 3,326,017 | 485,165,195 |

An exponential function grows at a faster rate than any power function

Similarly, it is not difficult to show that \(x^p\) grows more rapidly than \(lnx\) for any \(p>0\). In Figure and Table, we compare \(lnx\) with \(\frac[3]{x}\) and \(\sqrt{x}\).

**Figure 6: **The function \(y=ln(x)\) grows more slowly than \(x^p\) for any \(p>0\) as \(x→∞\).

\(x\) | 10 | 100 | 1000 | 10,000 |
---|---|---|---|---|

\(ln(x)\) | 2.303 | 4.605 | 6.908 | 9.210 |

\(\frac[3]{x}\) | 2.154 | 4.642 | 10 | 21.544 |

\(\sqrt{x}\) | 3.162 | 10 | 31.623 | 100 |

A logarithmic function grows at a slower rate than any root function

## Key Concepts

- L’Hôpital’s rule can be used to evaluate the limit of a quotient when the indeterminate form \(\frac{0}{0}\) or \(∞/∞\) 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 \(\frac{0}{0}\) or \(∞/∞.\)
- The exponential function \(e^x\) grows faster than any power function \(x^p, p>0\).
- The logarithmic function \(lnx\) grows more slowly than any power function \(x^p, p>0\).

## Glossary

**indeterminate forms**

when evaluating a limit, the forms \(\frac{0}{0}\),\(∞/∞, 0⋅∞, ∞−∞, 0^0, ∞^0\), and \(1^∞\) 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 \(f\) and \(g\) are differentiable functions over an interval \(a\), except possibly at \(a\), and \(lim_{x→a}f(x)=0=lim_{x→a}g(x)\) or \(lim_{x→a}f(x)\) and \(lim_{x→a}g(x)\) are infinite, then \(lim_{x→a}\frac{f(x)}{g(x)}=lim_{x→a}\frac{f′(x)}{g′(x)}\), assuming the limit on the right exists or is \(∞\) or \(−∞\)