3.4: l'Hôpital's Rule and Indeterminate Forms

Math 400: Calculus I - Differential Calculus · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    3.4: l'Hôpital's Rule and Indeterminate Forms
    Section Preview
    Note to the Instructor (click to expand)
    This is the typical l'Hôpital's Rule section found in many Differential Calculus texts. As usual, be thorough.

    The following is a list of learning objectives for this section.

    Learning Objectives (click to expand)
    • 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.

    This section examines a powerful tool for evaluating limits. This tool, 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 can show definitively that a limit exists and 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 \to a}\dfrac{f(x)}{g(x)}.\nonumber\]If \(\displaystyle \lim_{x \to a}f(x)=L_1\) and \(\displaystyle \lim_{x \to a}g(x)=L_2 \neq 0\), then\[\lim_{x \to a}\dfrac{f(x)}{g(x)}=\dfrac{L_1}{L_2}.\nonumber\]However, what happens if \(\displaystyle \lim_{x \to a}f(x)=0\) and \(\displaystyle \lim_{x \to 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 \to a\) without further analysis. We have seen examples of this earlier in the text. For example, consider\[\lim_{x \to 2}\dfrac{x^2-4}{x-2}\nonumber\]and\[\lim_{x \to 0}\dfrac{\sin x}{x}.\nonumber\]For the first of these examples, we can evaluate the limit by factoring the numerator and writing\[\lim_{x \to 2}\dfrac{x^2-4}{x-2}=\lim_{x \to 2}\dfrac{(x+2)(x-2)}{x-2}=\lim_{x \to 2}(x+2)=2+2=4.\nonumber\]For \(\displaystyle \lim_{x \to 0}\frac{\sin x}{x}\), we were able to show, using a geometric argument, that\[\lim_{x \to 0}\dfrac{\sin x}{x}=1.\nonumber\]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 it also (and more importantly) provides us with a way to evaluate many other limits we could not previously calculate.

    The idea behind l'Hôpital's Rule can be explained using local linear approximations. Consider two differentiable functions \(f\) and \(g\) such that \(\displaystyle \lim_{x \to a}f(x)=0=\lim_{x \to a}g(x)\) and such that \(g^{\prime}(a) \neq 0\). For \(x\) near \(a\),we can write\[f(x) \approx f(a)+f^{\prime}(a)(x-a)\nonumber\]and\[g(x) \approx g(a)+g^{\prime}(a)(x-a).\nonumber\]Therefore,\[\dfrac{f(x)}{g(x)} \approx \dfrac{f(a)+f^{\prime}(a)(x-a)}{g(a)+g^{\prime}(a)(x-a)}.\nonumber\]

    Two functions y = f(x) and y = g(x) are drawn such that they cross at a point above x = a. The linear approximations of these two functions y = f(a) + f'(a)(x – a) and y = g(a) + g'(a)(x – a) are also drawn.
    Figure \(\PageIndex{1}\): If \(\displaystyle\lim_{x \to a}f(x)=\lim_{x \to 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 \(\displaystyle f(a)=\lim_{x \to a}f(x)=0\). Similarly, \(\displaystyle g(a)=\lim_{x \to a}g(x)=0\). If we also assume that \(f^{\prime}\) and \(g^{\prime}\) are continuous at \(x=a\), then \(\displaystyle f^{\prime}(a)=\lim_{x \to a}f^{\prime}(x)\) and \(\displaystyle g^{\prime}(a)=\lim_{x \to a}g^{\prime}(x)\). Using these ideas, we conclude that\[\lim_{x \to a}\dfrac{f(x)}{g(x)}=\lim_{x \to a}\dfrac{f^{\prime}(x)(x-a)}{g^{\prime}(x)(x-a)}=\lim_{x \to a}\dfrac{f^{\prime}(x)}{g^{\prime}(x)} .\nonumber\]Note that the assumption that \(f^{\prime}\) and \(g^{\prime}\) are continuous at \(a\) and \(g^{\prime}(a) \neq 0\) can be loosened. We state l'Hôpital's Rule formally for the indeterminate form \(\frac{0}{0}\).

    Caution: Abusive Notation

    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.

    Theorem: 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 \(\displaystyle \lim_{x \to a}f(x)=0\) and \(\displaystyle \lim_{x \to a}g(x)=0\), then\[\lim_{x \to a}\dfrac{f(x)}{g(x)}=\lim_{x \to a}\dfrac{f^{\prime}(x)}{g^{\prime}(x)},\nonumber\]assuming the limit on the right exists or is \(\infty\) or \(-\infty\). This result also holds if we consider one-sided limits, or if \(a=\infty\) or \(a=-\infty\).

    Proof

    We provide a proof of this theorem in the special case when \(f\), \(g\), \(f^{\prime}\), and \(g^{\prime}\) are all continuous over an open interval containing \(a\). In that case, since \(\displaystyle\lim_{x \to a}f(x)=0=\lim_{x \to a}g(x)\) and \(f\) and \(g\) are continuous at \(a\), it follows that \(f(a)=0=g(a)\). Therefore,\[\begin{array}{rclcl} \displaystyle \lim_{x \to a}\dfrac{f(x)}{g(x)} & = & \displaystyle \lim_{x \to a}\dfrac{f(x)-f(a)}{g(x)-g(a)} & \quad & \left(f(a)=0=g(a)\right) \\[6pt] & = & \displaystyle \lim_{x \to a}\dfrac{\frac{f(x)-f(a)}{x-a}}{\frac{g(x)-g(a)}{x-a}} & \quad & \left( \text{multiplying numerator and denominator by }\frac{1}{x-a}\right) \\[6pt] & = & \dfrac{\displaystyle \lim_{x \to a}\frac{f(x)-f(a)}{x-a}}{\displaystyle \lim_{x \to a}\frac{g(x)-g(a)}{x-a}} & \quad & \left( \text{Limit Laws} \right) \\[6pt] & = & \dfrac{f^{\prime}(a)}{g^{\prime}(a)} & \quad & \left( \text{definition of the derivative} \right) \\[6pt] & = & \dfrac{\displaystyle \lim_{x \to a}f^{\prime}(x)}{\displaystyle \lim_{x \to a}g^{\prime}(x)} & \quad & \left( \text{continuity of }f^{\prime} \text{ and }g^{\prime} \right) \\[6pt] & = & \displaystyle \lim_{x \to a}\dfrac{f^{\prime}(x)}{g^{\prime}(x)} & \quad & \left( \text{The limit of a quotient} \right) \\[6pt] \end{array}\nonumber\]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^{\prime}}{g^{\prime}}\). It is essential to realize that we are not calculating the derivative of the quotient \(\frac{f}{g}\).

    Q.E.D.

    Example \(\PageIndex{1}\)

    Evaluate each of the following limits by applying l'Hôpital's Rule.

    1. \(\displaystyle \lim_{x \to 0}\frac{1-\cos x}{x}\)
    2. \(\displaystyle \lim_{x \to 1}\frac{\sin( \pi x)}{\ln x}\)
    3. \(\displaystyle \lim_{x \to \infty}\frac{e^{1/x}-1}{1/x}\)
    4. \(\displaystyle \lim_{x \to 0}\frac{\sin x-x}{x^2}\)
    Solutions
    1. Since the numerator \(1-\cos x \to 0\) and the denominator \(x \to 0\), we can apply l'Hôpital's Rule to evaluate this limit. We have\[\begin{array}{rcl} \displaystyle \lim_{x \to 0}\dfrac{1-\cos x}{x} & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to 0}\dfrac{\dfrac{d}{dx} \left( 1-\cos x \right)}{\dfrac{d}{dx} \left( x \right)} \\[6pt] & = & \displaystyle \lim_{x \to 0}\dfrac{\sin x}{1} \\[6pt] & = & \dfrac{\displaystyle \lim_{x \to 0}\sin x}{\displaystyle \lim_{x \to 0}1} \\[6pt] & = & \dfrac{0}{1}=0. \\[6pt] \end{array}\nonumber\]
    2. As \(x \to 1\), the numerator \(\sin( \pi x) \to 0\) and the denominator \(\ln(x) \to 0\). Therefore, we can apply l'Hôpital's Rule. We obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to 1}\dfrac{\sin( \pi x)}{\ln x} & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to 1}\dfrac{\pi \cos( \pi x)}{1/x} \\[6pt] & = & \displaystyle \lim_{x \to 1}( \pi x)\cos( \pi x) \\[6pt] & = & ( \pi \cdot 1)(-1) \\[6pt] & = & - \pi . \\[6pt] \end{array}\nonumber\]
    3. As \(x \to \infty\), the numerator \(e^{1/x}-1 \to 0\) and the denominator \(\frac{1}{x} \to 0\). Therefore, we can apply l'Hôpital's Rule. We obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to \infty}\dfrac{e^{1/x}-1}{\dfrac{1}{x}} & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to \infty}\dfrac{e^{1/x}(\tfrac{-1}{x^2})}{\left(\frac{-1}{x^2}\right)} \\[6pt] & = & \displaystyle \lim_{x \to \infty}e^{1/x} \\[6pt] & = & e^0 \\[6pt] & = & 1. \\[6pt] \end{array}\nonumber\]
    4. As \(x \to 0\), both the numerator and denominator approach zero. Therefore, we can apply l'Hôpital's Rule. We obtain\[\lim_{x \to 0}\dfrac{\sin x-x}{x^2} \overset{\text{l'H}}{=} \lim_{x \to 0}\dfrac{\cos x-1}{2x}.\nonumber\]Since the numerator and denominator of this new quotient both approach zero as \(x \to 0\), we apply l'Hôpital's Rule again. In doing so, we see that\[\lim_{x \to 0}\dfrac{\cos x-1}{2x} \overset{\text{l'H}}{=} \lim_{x \to 0}\dfrac{-\sin x}{2}=0.\nonumber\]Therefore, we conclude that\[\lim_{x \to 0}\dfrac{\sin x-x}{x^2}=0.\nonumber\]
    Checkpoint \(\PageIndex{1}\)

    Evaluate\[\lim_{x \to 0}\dfrac{x}{\tan x}.\nonumber\]

    Answer

    \(1\)

    We can also use l'Hôpital's Rule to evaluate limits of quotients \(\frac{f(x)}{g(x)}\) in which \(f(x) \to \pm \infty\) and \(g(x) \to \pm \infty\). Limits of this form are classified as indeterminate forms of type \(\frac{\infty}{\infty}\).

    Caution: More Notational Abuse

    Again, note that we are not actually dividing \(\infty\) by \(\infty\). Since \(\infty\) is not a real number, that is impossible; rather, \(\infty/\infty\) is used to represent a quotient of limits, each of which is \(\infty\) or \(-\infty\).

    Theorem: l'Hôpital's Rule (\(\infty/\infty\) Case)

    Suppose \(f\) and \(g\) are differentiable functions over an open interval containing \(a\), except possibly at \(a\). Suppose \(\displaystyle\lim_{x \to a}f(x)=\infty\) (or \(-\infty\)) and \(\displaystyle\lim_{x \to a}g(x)=\infty\) (or \(-\infty\)). Then,\[\lim_{x \to a}\dfrac{f(x)}{g(x)}=\lim_{x \to a}\dfrac{f^{\prime}(x)}{g^{\prime}(x)}\nonumber\]assuming the limit on the right exists or is \(\infty\) or \(-\infty\). This result also holds if the limit is infinite, if \(a=\infty\) or \(-\infty\), or if the limit is one-sided.

    Example \(\PageIndex{2}\)

    Evaluate each of the following limits by applying l'Hôpital's Rule.

    1. \(\displaystyle\lim_{x \to \infty}\frac{3x+5}{2x+1}\)
    2. \(\displaystyle \lim_{x \to 0^+}\frac{\ln x}{\cot x}\)
    Solutions
    1. Since \(3x+5\) and \(2x+1\) are first-degree polynomials with positive leading coefficients, \(\displaystyle\lim_{x \to \infty}(3x+5)=\infty\) and \(\displaystyle\lim_{x \to \infty}(2x+1)=\infty\). Therefore, we apply l'Hôpital's Rule and obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to \infty}{\dfrac{3x + 5}{2x + 1}} & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to \infty}{\dfrac{3}{2}} \\[6pt] & = & \dfrac{3}{2} \\[6pt] \end{array}\nonumber\]Note that this limit can also be calculated without invoking l'Hôpital's Rule. Earlier in the textbook, 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 \to \infty}\dfrac{3x+5}{2x+1}=\lim_{x \to \infty}\dfrac{3+5/x}{2+1/x}=\dfrac{3}{2}.\nonumber\] l'Hôpital's Rule provides us with an alternative means of evaluating this type of limit.
    2. Here, \(\displaystyle \lim_{x \to 0^+}\ln x=-\infty\) and \(\displaystyle \lim_{x \to 0^+}\cot x=\infty\). Therefore, we can apply l'Hôpital's Rule and obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to 0^+}{\dfrac{\ln{(x)}}{\cot{(x)}}} & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to 0^+}{\dfrac{1/x}{-\csc^2{(x)}}} \\[6pt] & = & \displaystyle \lim_{x \to 0^+}{\dfrac{1}{-x \csc^2{(x)}}} \\[6pt] \end{array}\nonumber\]Now as \(x \to 0^+, \csc^2x \to \infty\). 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 \(\csc x\) to write\[\lim_{x \to 0^+}\dfrac{1}{-x \csc^2x}=\lim_{x \to 0^+}\dfrac{\sin^2x}{-x}.\nonumber\]Now \(\displaystyle\lim_{x \to 0^+}\sin^2x=0\) and \(\displaystyle\lim_{x \to 0^+}-x=0\), so we apply l'Hôpital's Rule again. We find\[\begin{array}{rcl} \displaystyle \lim_{x \to 0^+}{\dfrac{\sin^2{(x)}}{-x}} & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to 0^+}{\dfrac{2 \sin{(x)} \cos{(x)}}{-1}} \\[6pt] & = & \dfrac{0}{-1} \\[6pt] & = & 0. \\[6pt] \end{array}\nonumber\]We conclude that \[\lim_{x \to 0^+}\dfrac{\ln x}{\cot x}=0.\nonumber\]
    Checkpoint \(\PageIndex{2}\)

    Evaluate\[\lim_{x \to \infty}\dfrac{\ln x}{5x}.\nonumber\]

    Answer

    \(0\)

    As mentioned, l'Hôpital's Rule is a handy tool for evaluating limits. It is important to remember, however, that to apply l'Hôpital's Rule to a quotient \(\frac{f(x)}{g(x)}\), it is essential that the limit of \(\frac{f(x)}{g(x)}\) be of the form \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\). Consider the following example.

    Example \(\PageIndex{3}\)

    Consider \(\displaystyle\lim_{x \to 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 zero or infinite, we cannot apply l'Hôpital's Rule. If we try to do so, we get\[\dfrac{d}{dx}(x^2+5)=2x\nonumber\]and\[\dfrac{d}{dx}(3x+4)=3.\nonumber\]At which point we would conclude erroneously that\[\lim_{x \to 1}\dfrac{x^2+5}{3x+4}=\lim_{x \to 1}\dfrac{2x}{3}=\dfrac{2}{3}.\nonumber\]However, since \(\displaystyle \lim_{x \to 1}(x^2+5)=6\) and \(\displaystyle \lim_{x \to 1}(3x+4)=7\), we actually have\[\lim_{x \to 1}\dfrac{x^2+5}{3x+4}=\dfrac{6}{7}.\nonumber\]We can conclude that\[\lim_{x \to 1}\dfrac{x^2+5}{3x+4} \neq \lim_{x \to 1}\dfrac{\dfrac{d}{dx}(x^2+5)}{\dfrac{d}{dx}(3x+4).}\nonumber\]

    Checkpoint \(\PageIndex{3}\)

    Explain why we cannot apply l'Hôpital's Rule to evaluate \(\displaystyle\lim_{x \to 0^+}\frac{\cos x}{x}\). Evaluate \(\displaystyle\lim_{x \to 0^+}\frac{\cos x}{x}\) by other means.

    Answer

    \(\displaystyle\lim_{x \to 0^+}\cos x=1\). Therefore, we cannot apply l'Hôpital's Rule. The limit of the quotient is \(\infty\).

    Other Indeterminate Forms

    l'Hôpital's Rule is very useful for evaluating limits involving the indeterminate forms \(\frac{0}{0}\) and \(\frac{\infty}{\infty}\). 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 \cdot \infty\), \(\infty - \infty\), \(1^{\infty}\), \(\infty^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 \(\frac{\infty}{\infty}\).

    Indeterminate Form of Type \(0 \cdot \infty\)

    Suppose we want to evaluate \(\displaystyle \lim_{x \to a}{(f(x) \cdot g(x))}\), where \(f(x) \to 0\) and \(g(x) \to \infty\) (or \(-\infty\)) as \(x \to a\). Since one term in the product is approaching zero, but the other is becoming arbitrarily large (in magnitude), anything can happen to the product. We use the notation \(0 \cdot \infty\) to denote the form in this situation. The expression \(0 \cdot \infty\) is considered indeterminate because we cannot determine without further analysis the exact behavior of the product \(f(x)g(x)\) as \(x \to \infty\). For example, let \(n\) be a positive integer and consider\[f(x) = \dfrac{1}{(x^n+1)}\nonumber\] and \[g(x) = 3x^2.\nonumber\]As \(x \to \infty, f(x) \to 0\) and \(g(x) \to \infty\). However, the limit as \(x \to \infty\) of \(f(x)g(x) = \frac{3x^2}{(x^n+1)}\) varies, depending on \(n\). If \(n=2\), then \(\displaystyle \lim_{x \to \infty}{f(x)g(x)} = 3\). If \(n=1\), then \(\displaystyle \lim_{x \to \infty}{f(x)g(x)} = \infty\). If \(n=3\), then \(\displaystyle \lim_{x \to \infty}{f(x)g(x)} = 0\). Here, we consider another limit involving the indeterminate form \(0 \cdot \infty\) and show how to rewrite the function as a quotient to use l'Hôpital's Rule.

    Interactive Element: Why \(0 \cdot \infty\) Is Indeterminate

    The following Interactive Element might help you visualize why the form \(0 \cdot \infty\) does not determine a limit.

    >

    Interact: Drag the large point left and right to change the exponent \(n\) in the product \(f(x)g(x)= \frac{1}{x^n + 1} \cdot 3x^2\).

    Observation: As \(n\) increases past \(2\), the limit of the product as \(x\to\infty\) switches from \(\infty\) to \(3\) to \(0\) — the same \(0 \cdot \infty\) form, three different fates.

    Example \(\PageIndex{4}\)

    Evaluate \(\displaystyle \lim_{x \to 0^+}{x \ln{(x)}}\).

    Solution

    We first note that, as \(x \to 0^+\), \(\ln{(x)} \to -\infty\). Therefore, this limit is indeterminate of the form \(0 \cdot \infty\).

    Rewrite the function \(x \ln{(x)}\) as a quotient to apply l'Hôpital's Rule. If we write\[x \ln{(x)} = \dfrac{\ln{(x)}}{1/x},\nonumber\]we see that \(\ln{(x)} \to -\infty\) as \(x \to 0^+\) and \(\frac{1}{x} \to \infty\) as \(x \to 0^+\). Therefore, we can apply l'Hôpital's Rule and obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to 0^+}{\dfrac{\ln{(x)}}{1/x}} & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to 0^+}{\dfrac{\dfrac{d}{dx} \left( \ln{(x)} \right)}{\dfrac{d}{dx} \left( 1/x \right)}} \\[6pt] & = & \displaystyle \lim_{x \to 0^+}{\dfrac{1/x}{-1/x^2}} \\[6pt] & = & \displaystyle \lim_{x \to 0^+}{(-x)} \\[6pt] & = & 0. \\[6pt] \end{array}\nonumber\]We conclude that\[\lim_{x \to 0^+}{x\ln{(x)}} = 0.\nonumber\]

    The function y = x ln(x) is graphed for values x ≥ 0. At x = 0, the value of the function is 0.
    Figure \(\PageIndex{2}\): Finding the limit at \(x=0\) of the function \(f(x)=x\ln x\).
    Checkpoint \(\PageIndex{4}\)

    Evaluate\[\lim_{x \to 0}x\cot x.\nonumber\]

    Answer

    \(1\)

    Indeterminate Form of Type \(\infty-\infty\)

    Another type of indeterminate form is \(\infty-\infty\). Consider the following example. Let \(n\) be a positive integer and let \(f(x)=3x^n\) and \(g(x)=3x^2+5\). As \(x\to \infty\), \(f(x)\to \infty\) and \(g(x)\to \infty\). We are interested in \(\displaystyle\lim_{x\to \infty}(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)\to \infty\) and \(g(x)\to \infty\), we write \(\infty-\infty\) to denote the form of this limit.

    Caution: Yet More Notational Abuse

    As with our other indeterminate forms, \(\infty-\infty\) 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\to \infty}(f(x)-g(x))=\lim_{x\to \infty}(3x^3-3x^2-5)=\infty.\nonumber\]On the other hand, if \(n=2\), then\[\lim_{x\to \infty}(f(x)-g(x))=\lim_{x\to \infty}(3x^2-3x^2-5)=-5.\nonumber\]However, if \(n=1\), then\[\lim_{x\to \infty}(f(x)-g(x))=\lim_{x\to \infty}(3x-3x^2-5)=-\infty.\nonumber\]Therefore, the limit cannot be determined by considering only \(\infty-\infty\). Next, we see how to rewrite an expression involving the indeterminate form \(\infty-\infty\) as a fraction to apply l'Hôpital's Rule.

    Example \(\PageIndex{5}\)

    Evaluate\[\lim_{x\to 0^+}\left(\dfrac{1}{x^2}-\dfrac{1}{\tan x}\right).\nonumber\]

    Solution

    As \(x \to 0^+\), \(\frac{1}{x^2} \to \infty\) and \(\frac{1}{\tan{(x)}} \to \infty\). Therefore, this limit is of the form \(\infty - \infty\).

    By combining the fractions, we can write the function as a quotient. Since the least common denominator is \(x^2\tan x\), we have\[\dfrac{1}{x^2}-\dfrac{1}{\tan x}=\dfrac{(\tan x)-x^2}{x^2\tan x}.\nonumber\]As \(x\to 0^+\), the numerator \(\tan x-x^2\to 0\) and the denominator \(x^2\tan x\to 0\). Therefore, we can apply l'Hôpital's Rule. Taking the derivatives of the numerator and the denominator, we have\[\lim_{x\to 0^+}\dfrac{(\tan x)-x^2}{x^2\tan x} \overset{\text{l'H}}{=}\lim_{x\to 0^+}\dfrac{(\sec^2x)-2x}{x^2\sec^2x+2x\tan x}.\nonumber\]As \(x\to 0^+\), \((\sec^2x)-2x\to 1\) and \(x^2\sec^2x+2x\tan x\to 0\). Since the denominator is positive as \(x\) approaches zero from the right, we conclude that\[\lim_{x\to 0^+}\dfrac{(\sec^2x)-2x}{x^2\sec^2x+2x\tan x}=\infty.\nonumber\]Therefore,\[\lim_{x\to 0^+}\left(\dfrac{1}{x^2}-\dfrac{1}{\tan x}\right)=\infty.\nonumber\]

    Checkpoint \(\PageIndex{5}\)

    Evaluate \(\displaystyle \lim_{x\to 0^+}\left(\frac{1}{x}-\frac{1}{\sin x}\right)\).

    Answer

    0

    Another indeterminate form that arises when evaluating limits involves exponents. The expressions \(0^0\), \(\infty^0\), and \(1^\infty\) are all indeterminate forms. These expressions are meaningless because we cannot evaluate them 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 \(\displaystyle \lim_{x\to a}f(x)^{g(x)}\) and we arrive at the indeterminate form \(\infty^0\). We proceed as follows. Let\[y=f(x)^{g(x)}.\nonumber\]Then,\[\ln y=\ln(f(x)^{g(x)})=g(x)\ln(f(x)).\nonumber\]Therefore,\[\lim_{x\to a}[\ln(y)]=\lim_{x\to a}[g(x)\ln(f(x))].\nonumber\]Since \(\displaystyle \lim_{x\to a}f(x)=\infty\), we know that \(\displaystyle \lim_{x\to a}\ln(f(x))=\infty\). Therefore, \(\displaystyle \lim_{x\to a}g(x)\ln(f(x))\) is of the indeterminate form \(0 \cdot \infty\), 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.

    The indeterminate forms \(0^0\) and \(1^\infty\) can be handled similarly.

    Example \(\PageIndex{6}\)

    Evaluate\[\lim_{x\to \infty}x^{1/x}.\nonumber\]

    Solution

    As \(x \to \infty\), \(\frac{1}{x} \to 0\). Therefore, this limit is indeterminate of the form \(\infty^0\).

    Let \(y=x^{1/x}\). Then,\[\ln(x^{1/x})=\dfrac{1}{x}\ln x=\dfrac{\ln x}{x}.\nonumber\]We need to evaluate \(\displaystyle \lim_{x\to \infty}\frac{\ln x}{x}\), which is now of the form \(\frac{\infty}{\infty}\). Applying l'Hôpital's Rule, we obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to \infty}{\ln{(y)}} & = & \displaystyle \lim_{x \to \infty}{\dfrac{\ln{(x)}}{x}} \\[6pt] & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to \infty}{\dfrac{1/x}{1}} \\[6pt] & = & 0. \\[6pt] \end{array}\nonumber\]Therefore, \(\displaystyle \lim_{x\to \infty}\ln y=0\). Since the natural logarithm function is continuous, we conclude that\[\ln\left(\lim_{x\to \infty}y\right)=0,\nonumber\]which leads to\[\lim_{x\to \infty}x^{1/x}=\lim_{x\to \infty}y=e^{\ln\left(\lim_{x\to \infty}y\right)}=e^0=1.\nonumber\]Hence,\[\lim_{x\to \infty}x^{1/x}=1.\nonumber\]

    Checkpoint \(\PageIndex{6}\)

    Evaluate\[\lim_{x\to \infty}x^{1/\ln(x)}.\nonumber\]

    Answer

    \(e\)

    Example \(\PageIndex{7}\)

    Evaluate\[\lim_{x\to 0^+}x^{\sin{(x)}}.\nonumber\]

    Solution

    This limit is definitely indeterminate of the form \(0^0\).

    Let\[y=x^{\sin{(x)}}.\nonumber\]Therefore,\[\ln{(y)} = \ln{(x^{\sin{(x)}})} = \sin{(x)} \ln{(x)}.\nonumber\]We now evaluate \(\displaystyle \lim_{x \to 0^+}{\sin{(x)} \ln{(x)}}\). Since \(\displaystyle \lim_{x \to 0^+}{\sin{(x)}} = 0\) and \(\displaystyle \lim_{x \to 0^+}{\ln{(x)}} = -\infty\), we have the indeterminate form \(0 \cdot \infty\). To apply l'Hôpital's Rule, we need to rewrite \(\sin{(x)} \ln{(x)}\) as a fraction. We could write\[\sin{(x)} \ln{(x)} = \dfrac{\sin{(x)}}{1/\ln{(x)}}\nonumber\]or\[\sin{(x)} \ln{(x)} = \dfrac{\ln{(x)}}{1/\sin{(x)}} = \dfrac{\ln{(x)}}{\csc{(x)}}.\nonumber\] Let's consider the first option. In this case, applying l'Hôpital's Rule, we would obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to 0^+}{\sin{(x)} \ln{(x)}} & = & \displaystyle \lim_{x \to 0^+}{\dfrac{\sin{(x)}}{1/\ln{(x)}}} \\[6pt] & = & \displaystyle \lim_{x \to 0^+}{\dfrac{\cos{(x)}}{-1/(x (\ln{(x)})^2)}} \\[6pt] & = & \displaystyle \lim_{x \to 0^+}{(-x \left( \ln{(x)})^2 \cos{(x)} \right)}. \\[6pt] \end{array}\nonumber\]Unfortunately, we not only have another expression involving the indeterminate form \(0 \cdot \infty\), 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\[\sin{(x)} \ln{(x)} = \dfrac{\ln{(x)}}{1/\sin{(x)}} = \dfrac{\ln{(x)}}{\csc{(x)}},\nonumber\]and applying l'Hôpital's Rule, we obtain\[\begin{array}{rcl} \displaystyle \lim_{x \to 0^+}{\sin{(x)} \ln{(x)}} & = & \displaystyle \lim_{x \to 0^+}{\dfrac{\ln{( x )}}{\csc{( x )}}} \\[6pt] & \overset{\text{l'H}}{=} & \displaystyle \lim_{x \to 0^+}{\dfrac{1/x}{-\csc{( x )} \cot{( x )}}} \\[6pt] & = & \displaystyle \lim_{x \to 0^+}{\dfrac{-1}{x\csc{( x )}\cot{( x )}}}. \\[6pt] \end{array}\nonumber\]Using the fact that \(\csc{( x )} = \frac{1}{\sin{( x )}}\) and \(\cot{( x )} = \frac{\cos{( x )}}{\sin{( x )}}\), we can rewrite the expression on the right-hand side as\[\lim_{x\to 0^+}{\dfrac{-\sin^2{( x )}}{x\cos{( x )}}} = \lim_{x\to 0^+}{\left[\dfrac{\sin{( x )}}{x} \cdot (-\tan{( x )})\right]} = \left( \lim_{x \to 0^+}{\dfrac{\sin{( x )}}{x}} \right) \cdot \left( \lim_{x \to 0^+}{(-\tan{( x )})} \right) = 1 \cdot 0 = 0.\nonumber\]We conclude that \(\displaystyle \lim_{x \to 0^+}{\ln{( y )}} = 0\). Therefore, \(\displaystyle \ln{\left( \lim_{x \to 0^+}{y}\right)}=0\) and we have\[\lim_{x \to 0^+}{y} = \lim_{x \to 0^+}{x^{\sin{( x )}}} = e^0 = 1.\nonumber\]Hence,\[\lim_{x \to 0^+}{x^{\sin{( x )}}} = 1.\nonumber\]

    Checkpoint \(\PageIndex{7}\)

    Evaluate \(\displaystyle \lim_{x\to 0^+}x^x\).

    Answer

    1

    Growth Rates of Functions

    We have shown how to use a function's first and second derivatives to describe the shape of a graph. To graph a function \(f\) defined on an unbounded domain, we also need to know the behavior of \(f\) as \(x \to \pm \infty\).

    Suppose the functions \(f\) and \(g\) both approach infinity as \(x \to \infty\). Although the values of both functions become arbitrarily large as the values of \(x\) become sufficiently large, sometimes one function grows more quickly than the other.

    We say \(g\) grows more rapidly than \(f\) as \(x \to \infty\) if\[\lim_{x \to \infty}\dfrac{g(x)}{f(x)}=\infty \quad \text{or, equivalently,} \quad \lim_{x \to \infty}\dfrac{f(x)}{g(x)}=0.\nonumber\]On the other hand, if there exists a constant \(M \neq 0\) such that\[\lim_{x \to \infty}\dfrac{f(x)}{g(x)}=M,\nonumber\]we say \(f\) and \(g\) grow at the same rate as \(x \to \infty\).

    Next, we see how to use l'Hôpital's Rule to compare the growth rates of power, exponential, and logarithmic functions.

    Example \(\PageIndex{8}\)

    For each of the following pairs of functions, use l'Hôpital's Rule to evaluate\[\lim_{x \to \infty}\dfrac{f(x)}{g(x)}.\nonumber\]

    1. \(f(x)=x^2\) and \(g(x)=e^x\)
    2. \(f(x)=\ln(x)\) and \(g(x)=x^2\)
    Solutions
    1. Since \(\displaystyle \lim_{x \to \infty}x^2=\infty\) and \(\displaystyle \lim_{x \to \infty}e^x=\infty\), we can use l'Hôpital's Rule to evaluate \(\displaystyle \lim_{x \to \infty}\left[\frac{x^2}{e^x}\right]\). We obtain\[\lim_{x \to \infty}\dfrac{x^2}{e^x} \overset{\text{l'H}}{=} \lim_{x \to \infty}\dfrac{2x}{e^x}.\nonumber\]Since \(\displaystyle \lim_{x \to \infty}2x=\infty\) and \(\displaystyle \lim_{x \to \infty}e^x=\infty\), we can apply l'Hôpital's Rule again. Since\[\lim_{x \to \infty}\dfrac{2x}{e^x} \overset{\text{l'H}}{=} \lim_{x \to \infty}\dfrac{2}{e^x}=0,\nonumber\]we conclude that\[\lim_{x \to \infty}\dfrac{x^2}{e^x}=0.\nonumber\]Therefore, \(e^x\) grows more rapidly than \(x^2\) as \(x \to \infty\) (See Figure \(\PageIndex{3}\) and Table \(\PageIndex{1}\))
      The functions g(x) = ex and f(x) = x2 are graphed. It is obvious that g(x) increases much more quickly than f(x).
      Figure \(\PageIndex{3}\): An exponential function grows at a faster rate than a power function.
      Table \(\PageIndex{1}\): Growth rates of a power function and an exponential function.
      \(x\) \(5\) \(10\) \(15\) \(20\)
      \(x^2\) \(25\) \(100\) \(225\) \(400\)
      \(e^x\) \(148\) \(22026\) \(3269017\) \(485165195\)
    2. Since \(\displaystyle \lim_{x \to \infty}\ln x=\infty\) and \(\displaystyle \lim_{x \to \infty}x^2=\infty\), we can use l'Hôpital's Rule to evaluate \(\displaystyle \lim_{x \to \infty}\frac{\ln x}{x^2}\). We obtain\[\lim_{x \to \infty}\dfrac{\ln x}{x^2} \overset{\text{l'H}}{=} \lim_{x \to \infty}\dfrac{1/x}{2x}=\lim_{x \to \infty}\dfrac{1}{2x^2}=0.\nonumber\]Thus, \(x^2\) grows more rapidly than \(\ln x\) as \(x \to \infty\) (see Figure \(\PageIndex{4}\) and Table \(\PageIndex{2}\)).
      The functions g(x) = x2 and f(x) = ln(x) are graphed. It is obvious that g(x) increases much more quickly than f(x).
      Figure \(\PageIndex{4}\): A power function grows at a faster rate than a logarithmic function.
      Table \(\PageIndex{2}\): Growth rates of a power function and a logarithmic function.
      \(x\) \(10\) \(100\) \(1000\) \(10000\)
      \(\ln(x)\) \(2.303\) \(4.605\) \(6.908\) \(9.210\)
      \(x^2\) \(100\) \(10000\) \(1000000\) \(100000000\)
    Checkpoint \(\PageIndex{8}\)

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

    Answer

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

    Using the same ideas as in Example \(\PageIndex{8a}\), it is not difficult to show that \(e^x\) grows more rapidly than \(x^p\) for any \(p>0\). In Figure \(\PageIndex{5}\) and Table \(\PageIndex{3}\), we compare \(e^x\) with \(x^3\) and \(x^4\) as \(x \to \infty\).

    This figure has two figures marked a and b. In figure a, the functions y = ex and y = x3 are graphed. It is obvious that ex increases more quickly than x3. In figure b, the functions y = ex and y = x4 are graphed. It is obvious that ex increases much more quickly than x4, but the point at which that happens is further to the right than it was for x3.
    Figure \(\PageIndex{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\).
    Table \(\PageIndex{3}\): An exponential function grows at a faster rate than any power function.
    \(x\) \(5\) \(10\) \(15\) \(20\)
    \(x^3\) \(125\) \(1000\) \(3375\) \(8000\)
    \(x^4\) \(625\) \(10000\) \(50625\) \(160000\)
    \(e^x\) \(148\) \(22026\) \(3269017\) \(485165195\)

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

    This figure shows y = the square root of x, y = the cube root of x, and y = ln(x). It is apparent that y = ln(x) grows more slowly than either of these functions.
    Figure \(\PageIndex{6}\): The function \(y=\ln(x)\) grows more slowly than \(x^p\) for any \(p>0\) as \(x \to \infty\).
    Table \(\PageIndex{4}\): A logarithmic function grows at a slower rate than any root function.
    \(x\) \(10\) \(100\) \(1000\) \(10000\)
    \(\ln(x)\) \(2.303\) \(4.605\) \(6.908\) \(9.210\)
    \(\sqrt[3]{x}\) \(2.154\) \(4.642\) \(10\) \(21.544\)
    \(\sqrt{x}\) \(3.162\) \(10\) \(31.623\) \(100\)
    Interactive Element: Exponential Growth Outruns Every Power

    The following Interactive Element might help you visualize why \(e^x\) eventually outgrows \(x^p\) for every power \(p\).

    Interact: Drag the large point (the top of the hump) left and right to change the power \(p\).

    Observation: No matter how large you make \(p\), the ratio \(\frac{x^p}{e^x}\) still rises to a hump and then falls back toward \(0\) — so \(e^x\) grows faster than \(x^p\) for every \(p>0\).


    Success in College: Environment and Learning Preferences

    Throughout your academic career, you have completed many exams. While you might not have thought about it, you should be able to identify a strong correlation between the environment you study in and your performance on exams.

    Learning preferences describe the situations in which you best learn math. Are you a visual, auditory, or kinesthetic learner? Should you take notes as you listen? Should you record your class? Should you trace the graphs in your book as you study?

    Think about whether you learn better by working by yourself or with others. Do you prefer to work in quiet or with music in the background? Do you like to sit at a desk or recline in an easy chair? Do you learn best at a particular time of the day? When you study, does it help if you can move around? All of these are part of your learning preferences.

    If you know your learning preferences, you can try to adjust your studying and class behavior to improve your work. It is your responsibility to think about and, if needed, make changes in how you are learning and studying.

    Think about the following list. When you study, do you prefer...

    • a quiet room, or background noise (music or TV)
    • bright light shining on your work, or dim lighting
    • sitting at a desk or table, or being relaxed on a couch or a bed
    • eating or drinking while you learn, or only eating or drinking during breaks
    • working hard for a reasonably long time or taking frequent breaks
    1. Do you work in conditions that match these preferences when you do your math homework?
    2. Do you work in conditions that match these preferences when you study for math tests?

    Success in Mathematics: Sequential Versus Global Learners

    Sequential learners tend to think in a linear manner and are able to function with only partial understanding of material they have been taught. Global learners think in a systems-oriented manner, and may have trouble applying new material until they fully understand it and see how it relates to material they already know about and understand. Once they grasp the big picture, however, their holistic perspective enables them to see innovative solutions to problems that sequential learners might take much longer to reach.

    Source: R. Felder, R. Brent , Journal of Engineering Education, 94 (1), 57-72 (2005).

    1. When learning math, do you think you are more of a sequential learner or a global learner?
    2. Students often have different learning preferences for different subjects. When learning history or another subject in the humanities, do you think you are more a sequential learner or a global learner?

    Applications of Mathematics: Game Theory Could Save the World!

    The following is from The Telegraph (U.K. newspaper):

    A team has been using "game theory" - where mathematics is used to capture how people deal with each other - to show that a classic problem that undermines the ability of individuals to cooperate can be overcome, if people are diverse enough, as is the case when it comes to the 6.5 billion citizens of planet Earth.

    Working together for the common good is crucial for progress in any society - not least for effectively addressing big issues such as recycling and tackling climate change. But there is a basic problem with how to make the public share responsibility for common problems, such as climate change.

    This was most vividly illustrated by Prof Garrett Hardin, of the University of California, Santa Barbara, in his highly influential 1968 paper 'The tragedy of the commons'.

    He used the example of a public pasture. Each herdsman will keep adding cows to a common field, because the benefit of an additional cow goes exclusively to the herdsman. Because the cost of overgrazing is shared by all, the pasture will end up ruined.

    Mathematical models have confirmed that this is a profound problem, whether for coming together to fight climate change or pay taxes, but today, in the journal Nature, hope for cooperation is raised by Prof Jorge Pacheco of the University of Lisbon, who did the work there with Ms Marta Santos and Dr Francisco Santos from the Free University of Brussels.

    Existing mathematical models treat individuals as equivalent, ignoring real-life diversity and population structure. So the team made the mathematics more realistic in this respect.

    The team shows that, contrary to expectations, the temptation to cheat ("Why shouldn't I let others pay more for being green?") declines as society becomes more diverse.

    Another discovery is that diversity also plays an important role in wealth distribution.

    "Cooperation blooms whenever the act of giving is more important than the amount given," said Prof Pacheco.

    The most important factor, he said, seems to be that people actually contribute to the public good.

    "In particular, the fact that the wealthy minority contributes stimulates the contribution from the rest, who take them as role models," he said.

    Prof Pacheco recalled the words of Anna Dreber and Prof Martin Nowak from Harvard University, leading game theorists, who stated that "preserving the global climate is the biggest public good dilemma ever, the one we cannot afford to lose."

    1. The basis of this article, game theory, is used to predict human behavior in many areas. Name one possible application of game theory.
    2. It turns out that we, as humans, are reasonably predictable. We do things in patterns, and our behaviors can be modeled using complex functions. Do you believe there is a formula for how many heartbeats you will have (that may depend on how many cigarettes you smoke, steps you take, etc.)?

    This page titled 3.4: l'Hôpital's Rule and Indeterminate Forms was last modified on Thu, 20 Aug 2026 14:23:40 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Gilbert Strang & Edwin “Jed” Herman via source content that was edited to the style and standards of the LibreTexts platform.