# 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}\dfrac{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}\dfrac{f(x)}{g(x)}=\dfrac{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 \(\dfrac{0}{0}\). This is considered an indeterminate form because we cannot determine the exact behavior of \(\dfrac{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}\dfrac{x^2−4}{x−2}\]

and

\[\lim_{x→0}\dfrac{sinx}{x}.\]

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

\[\lim_{x→2}\dfrac{x^2−4}{x−2}=\lim_{x→2}\dfrac{(x+2)(x−2)}{x−2}=\lim_{x→2}(x+2)=2+2=4.\]

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

\[\lim_{x→0}\dfrac{\sin x}{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,

\[\dfrac{f(x)}{g(x)}≈\dfrac{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}\dfrac{f(x)}{g(x)}=\lim_{x→a}\dfrac{f′(x)(x−a)}{g′(x)(x−a)}=\lim_{x→a}\dfrac{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 \(\dfrac{0}{0}\). Also note that the notation \(\dfrac{0}{0}\) does not mean we are actually dividing zero by zero. Rather, we are using the notation \(\dfrac{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}\dfrac{f(x)}{g(x)}=\lim_{x→a}\dfrac{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}\dfrac{f(x)}{g(x)}=\lim_{x→a}\dfrac{f(x)−f(a)}{g(x)−g(a)}\) since \(f(a)=0=g(a)\)

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

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

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

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

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

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

□

Example \(\PageIndex{1}\): Applying L’Hôpital’s Rule (0/0 Case)

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

- \(\lim_{x→0}\dfrac{1−cosx}{x}\)
- \(\lim_{x→1}\dfrac{sin(πx)}{lnx}\)
- \(\lim_{x→∞}\dfrac{e^{1/x}−1}{1/x}\)
- \(\lim_{x→0}\dfrac{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}\dfrac{1−cosx}{x}=\lim_{x→0}\dfrac{\dfrac{d}{dx}(1−cosx)}{\dfrac{d}{dx}(x)}=\lim_{x→0}\dfrac{sinx}{1}=\dfrac{\lim_{x→0}(sinx)}{\lim_{x→0}(1)}=\dfrac{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}\dfrac{sin(πx)}{lnx}=\lim_{x→1}\dfrac{π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 \((\dfrac{1}{x})→0\). Therefore, we can apply L’Hôpital’s rule. We obtain

\(\lim_{x→∞}\dfrac{e^{1/x}−1}{\dfrac{1}{x}}=\lim_{x→∞}\dfrac{e^{1/x}(\dfrac{−1}{x2})}{(\dfrac{−1}{x^2})}=\lim_{x→∞}e^{1/x}=e^0=1⋅\lim_{x→∞}\dfrac{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}\dfrac{sinx−x}{x^2}=\lim_{x→0}\dfrac{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}\dfrac{cosx−1}{2x}=\lim_{x→0}\dfrac{−sinx}{2}=0.\)

Therefore, we conclude that

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

Exercise \(\PageIndex{1}\):

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

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

**Solution**

\(1\)

We can also use L’Hôpital’s rule to evaluate limits of quotients \(\dfrac{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}\dfrac{f(x)}{g(x)}=\lim_{x→a}\dfrac{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 \(\PageIndex{2}\):

Applying L’Hôpital’s Rule \(

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

\(\lim_{x→∞}\dfrac{3x+5}{2x+1}\) - \(
\lim_{x→0^+}\dfrac{lnx}{cotx}\)

**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→∞}\dfrac{3x+5}{2x+1}=\lim_{x→∞}\dfrac{3+5/x}{2x+1}=\lim_{x→∞}\dfrac{3}{2}=\dfrac{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→∞}\dfrac{3x+5}{2x+1}=\lim_{x→∞}\dfrac{3+5/x}{2x+1}=\dfrac{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^+}\dfrac{lnx}{cotx}=\lim_{x→0^+}\dfrac{1/x}{−csc^2x}=\lim_{x→0^+}\dfrac{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^+}\dfrac{1}{−xcsc^2x}=\lim_{x→0^+}\dfrac{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^+}\dfrac{sin^2x}{−x}=\lim_{x→0^+}\dfrac{2sinxcosx}{−1}=\dfrac{0}{−1}=0.\)

We conclude that

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

Exercise \(\PageIndex{2}\):

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

Hint: \(\dfrac{d}{dx}lnx=\dfrac{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 \(\dfrac{f(x)}{g(x)}\) be of the form \(\dfrac{0}{0}\) or \(∞/∞\). Consider the following example.

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

Consider \(\lim_{x→1}\dfrac{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

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

and

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

At which point we would conclude erroneously that

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

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

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

We can conclude that

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

6) Explain why we cannot apply L’Hôpital’s rule to evaluate \(\lim_{x→0^+}\dfrac{cosx}{x}\). Evaluate \(\lim_{x→0^+}\dfrac{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 \(\dfrac{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 \(\dfrac{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)=\dfrac{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)=\dfrac{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 \(\PageIndex{3}\):

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=\dfrac{lnx}{1/x}\),

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

\(\lim_{x→0^+}\dfrac{lnx}{1/x}=\lim_{x→0^+}\dfrac{\dfrac{d}{dx}(lnx)}{\dfrac{d}{dx}(1/x)}=\lim_{x→0^+}\dfrac{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.\)

Exercise \(\PageIndex{1}\):

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

Hint: Write \(xcotx=\dfrac{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 \(\PageIndex{4}\):

Indeterminate Form of Type \(∞−∞\)

Evaluate \(\lim_{x→0^+}(\dfrac{1}{x^2}−\dfrac{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

\(\dfrac{1}{x^2}−\dfrac{1}{tanx}=\dfrac{(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^+}\dfrac{(tanx)−x^2}{x^2tanx}=\lim_{x→0^+}\dfrac{(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^+}\dfrac{(sec^2x)−2x}{x^2sec^2x+2xtanx}=∞\).

Therefore,

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

Exercise \(\PageIndex{4}\):

Evaluate \(\lim_{x→0^+}(\dfrac{1}{x}−\dfrac{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})=\dfrac{1}{x}lnx=\dfrac{lnx}{x}\).

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

\(\lim_{x→∞}lny=\lim_{x→∞}\dfrac{lnx}{x}=\lim_{x→∞}\dfrac{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→∞}\dfrac{lnx}{x}=e^0=1\).

Hence,

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

Exercise \(\PageIndex{1}\):

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\)

Example \(\PageIndex{1}\): 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=\dfrac{sinx}{1/lnx}\)

or

\(sinxlnx=\dfrac{lnx}{1/sinx}=\dfrac{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^+}\dfrac{sinx}{1/lnx}=\lim_{x→0^+}\dfrac{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=\dfrac{lnx}{1/sinx}=\dfrac{lnx}{cscx,}\)

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

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

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

\(\lim_{x→0^+}\dfrac{−sin^2x}{xcosx}=\lim_{x→0^+}[\dfrac{sinx}{x}⋅(−tanx)]=(\lim_{x→0^+}\dfrac{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.\)

Exercise \(\PageIndex{1}\):

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 |

In fact,

\[\lim_{x→∞}\dfrac{x^3}{x^2}=\lim_{x→∞}x=∞.\)or, equivalently,\(\lim_{x→∞x}\dfrac{x^2}{x^3}=\lim_{x→∞}\dfrac{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→∞}\dfrac{x^2}{3x^2+4x+1}=\dfrac{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 |

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→∞}\dfrac{g(x)}{f(x)}=∞\);or, equivalently, \(\lim_{x→∞}\dfrac{f(x)}{g(x)}=0.\)

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

\(\lim_{x→∞}\dfrac{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 \(\PageIndex{1}\):

Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.

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→∞}(\dfrac{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→∞}[\dfrac{x^2}{e^x}]\). We obtain

\(\lim_{x→∞}\dfrac{x^2}{e^x}=\lim_{x→∞}\dfrac{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→∞}\dfrac{2x}{e^x}=\lim_{x→∞}\dfrac{2}{e^x}=0\),

we conclude that

\(\lim_{x→∞}\dfrac{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→∞}\dfrac{lnx}{x^2}\). We obtain

\(\lim_{x→∞}\dfrac{lnx}{x^2}=\lim_{x→∞}\dfrac{1/x}{2x}=\lim_{x→∞}\dfrac{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 \(\dfrac[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 |

\(\dfrac[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 \(\dfrac{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 \(\dfrac{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 \(\dfrac{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}\dfrac{f(x)}{g(x)}=\lim_{x→a}\dfrac{f′(x)}{g′(x)}\), assuming the limit on the right exists or is \(∞\) or \(−∞\)