6.7: L'Hopital's Rule
( \newcommand{\kernel}{\mathrm{null}\,}\)
While this chapter is devoted to learning techniques of integration, this section is not about integration. Rather, it is concerned with a technique of evaluating certain limits that will be useful in the following section, where integration is once more discussed.
Our treatment of limits exposed us to "0/0", an indeterminate form. If limx→cf(x)=0 and limx→cg(x)=0, we do not conclude that limx→cf(x)/g(x) is 0/0; rather, we use 0/0 as notation to describe the fact that both the numerator and denominator approach 0. The expression 0/0 has no numeric value; other work must be done to evaluate the limit.
Other indeterminate forms exist; they are: ∞/∞, 0⋅∞, ∞−∞, 00, 1∞ and ∞0. Just as "0/0" does not mean "divide 0 by 0," the expression "∞/∞" does not mean "divide infinity by infinity." Instead, it means "a quantity is growing without bound and is being divided by another quantity that is growing without bound." We cannot determine from such a statement what value, if any, results in the limit. Likewise, "0⋅∞" does not mean "multiply zero by infinity." Instead, it means "one quantity is shrinking to zero, and is being multiplied by a quantity that is growing without bound." We cannot determine from such a description what the result of such a limit will be.
This section introduces L'Hôpital's Rule, a method of resolving limits that produce the indeterminate forms 0/0 and ∞/∞. We'll also show how algebraic manipulation can be used to convert other indeterminate expressions into one of these two forms so that our new rule can be applied.
Theorem 6.7.1: L'Hôpital's Rule
Let limx→cf(x)=0 and limx→cg(x)=0, where f and g are differentiable functions on an open interval I containing c, and g′(x)≠0 on I except possibly at c. Then
limx→cf(x)g(x)=limx→cf′(x)g′(x).
We demonstrate the use of L'Hôpital's Rule in the following examples; we will often use "LHR" as an abbreviation of "L'Hôpital's"
Example 6.7.1: Using L'Hôpital's Rule
Evaluate the following limits, using L'Hôpital's Rule as needed.
- limx→0sinxx
- limx→1√x+3−21−x
- limx→0x21−cosx
- limx→2x2+x−6x2−3x+2
Solution
- We proved this limit is 1 in Example ??? using the Squeeze Theorem. Here we use L'Hôpital's Rule to show its power. limx→0sinxx by LHR =limx→0cosx1=1.
- limx→1√x+3−21−x by LHR =limx→112(x+3)−1/2−1=−14.
- limx→0x21−cosx by LHR =limx→02xsinx.
This latter limit also evaluates to the 0/0 indeterminate form. To evaluate it, we apply L'Hôpital's Rule again.limx→02xsinx by LHR =2cosx=2. Thus limx→0x21−cosx=2. - We already know how to evaluate this limit; first factor the numerator and denominator. We then have: limx→2x2+x−6x2−3x+2=limx→2(x−2)(x+3)(x−2)(x−1)=limx→2x+3x−1=5. We now show how to solve this using L'Hôpital's Rule.limx→2x2+x−6x2−3x+2 by LHR =limx→22x+12x−3=5.
Note that at each step where L'Hôpital's Rule was applied, it was needed: the initial limit returned the indeterminate form of "0/0." If the initial limit returns, for example, 1/2, then L'Hôpital's Rule does not apply.
The following theorem extends our initial version of L'Hôpital's Rule in two ways. It allows the technique to be applied to the indeterminate form ∞/∞ and to limits where x approaches ±∞.
Theorem 6.7.2: L'Hôpital's Rule, Part 2
- Let limx→af(x)=±∞ and limx→ag(x)=±∞, where f and g are differentiable on an open interval I containing a. Then limx→af(x)g(x)=limx→af′(x)g′(x).
- Let f and g be differentiable functions on the open interval (a,∞) for some value a, where g′(x)≠0 on (a,∞) and limx→∞f(x)/g(x) returns either 0/0 or ∞/∞. Then limx→∞f(x)g(x)=limx→∞f′(x)g′(x). A similar statement can be made for limits where x approaches −∞.
Example 6.7.2: L'Hôpital's Rule with limits involving ∞
Evaluate the following limits.
1.limx→∞3x2−100x+24x2+5x−10002. limx→∞exx3.
Solution
- We can evaluate this limit already using Theorem ???; the answer is 3/4. We apply L'Hôpital's Rule to demonstrate its applicability. limx→∞3x2−100x+24x2+5x−1000 by LHR =limx→∞6x−1008x+5 by LHR =limx→∞68=34.
- limx→∞exx3 by LHR =limx→∞ex3x2 by LHR =limx→∞ex6x by LHR =limx→∞ex6=∞. Recall that this means that the limit does not exist; as x approaches ∞, the expression ex/x3 grows without bound. We can infer from this that ex grows "faster" than x3; as x gets large, ex is far larger than x3. (This has important implications in computing when considering efficiency of algorithms.)
L'Hôpital's Rule can only be applied to ratios of functions. When faced with an indeterminate form such as 0⋅∞ or ∞−∞, we can sometimes apply algebra to rewrite the limit so that L'Hôpital's Rule can be applied. We demonstrate the general idea in the next example.
Example 6.7.3: Applying L'Hôpital's Rule to other indeterminate forms
Evaluate the following limits.
- limx→0+x⋅e1/x
- limx→0−x⋅e1/x
- limx→∞ln(x+1)−lnx
- limx→∞x2−ex
Solution
- As x→0+, x→0 and e1/x→∞. Thus we have the indeterminate form 0⋅∞. We rewrite the expression x⋅e1/x as e1/x1/x; now, as x→0+, we get the indeterminate form ∞/∞ to which L'Hôpital's Rule can be applied. limx→0+x⋅e1/x=limx→0+e1/x1/x by LHR =limx→0+(−1/x2)e1/x−1/x2=limx→0+e1/x=∞. Interpretation: e1/x grows "faster" than x shrinks to zero, meaning their product grows without bound.
- As x→0−, x→0 and e1/x→e−∞→0. The the limit evaluates to 0⋅0 which is not an indeterminate form. We conclude then that limx→0−x⋅e1/x=0.
- This limit initially evaluates to the indeterminate form ∞−∞. By applying a logarithmic rule, we can rewrite the limit as
limx→∞ln(x+1)−lnx=limx→∞ln(x+1x). As x→∞, the argument of the ln term approaches ∞/∞, to which we can apply L'Hôpital's Rule. limx→∞x+1x by LHR =11=1. Since x→∞ implies x+1x→1, it follows that x→∞ implies ln(x+1x)→ln1=0.Thus limx→∞ln(x+1)−lnx=limx→∞ln(x+1x)=0. Interpretation: since this limit evaluates to 0, it means that for large x, there is essentially no difference between ln(x+1) and lnx; their difference is essentially 0.
- The limit limx→∞x2−ex initially returns the indeterminate form ∞−∞. We can rewrite the expression by factoring out x2; x2−ex=x2(1−exx2). We need to evaluate how ex/x2 behaves as x→∞: limx→∞exx2 by LHR =limx→∞ex2x by LHR =limx→∞ex2=∞.
Thus limx→∞x2(1−ex/x2) evaluates to ∞⋅(−∞), which is not an indeterminate form; rather, ∞⋅(−∞) evaluates to −∞. We conclude that limx→∞x2−ex=−∞.
Interpretation: as x gets large, the difference between x2 and ex grows very large.
Indeterminate Forms 00, 1∞ and ∞0
When faced with an indeterminate form that involves a power, it often helps to employ the natural logarithmic function. The following Key Idea expresses the concept, which is followed by an example that demonstrates its use.
Key Idea 20: Evaluating Limits Involving Indeterminate Forms 00, 1∞ and ∞0
If limx→cln(f(x))=L, then limx→cf(x)=limx→celn(f(x))=eL.
Example 6.7.4: Using L'Hôpital's Rule with indeterminate forms involving exponents
Evaluate the following limits.
1.limx→∞(1+1x)x2.limx→0+xx.
Solution
- This equivalent to a special limit given in Theorem ???; these limits have important applications within mathematics and finance. Note that the exponent approaches ∞ while the base approaches 1, leading to the indeterminate form 1∞. Let f(x)=(1+1/x)x; the problem asks to evaluate limx→∞f(x). Let's first evaluate limx→∞ln(f(x)). limx→∞ln(f(x))=limx→∞ln(1+1x)x=limx→∞xln(1+1x)=limx→∞ln(1+1x)1/x This produces the indeterminate form 0/0, so we apply L'Hôpital's Rule. =limx→∞11+1/x⋅(−1/x2)(−1/x2)=limx→∞11+1/x=1. Thus limx→∞ln(f(x))=1. We return to the original limit and apply Key Idea 20. limx→∞(1+1x)x=limx→∞f(x)=limx→∞eln(f(x))=e1=e.
- This limit leads to the indeterminate form 00. Let f(x)=xx and consider first limx→0+ln(f(x)). limx→0+ln(f(x))=limx→0+ln(xx)=limx→0+xlnx=limx→0+lnx1/x. This produces the indeterminate form −∞/∞ so we apply L'Hôpital's Rule. =limx→0+1/x−1/x2=limx→0+−x=0. Thus limx→0+ln(f(x))=0. We return to the original limit and apply Key Idea 20. limx→0+xx=limx→0+f(x)=limx→0+eln(f(x))=e0=1. This result is supported by the graph of f(x)=xx given in Figure 6.7.1.
Figure 6.7.1: A graph of f(x)=xx supporting the fact that as x→0+, f(x)→1.
Our brief revisit of limits will be rewarded in the next section where we consider improper integration. So far, we have only considered definite integrals where the bounds are finite numbers, such as ∫10f(x) dx. Improper integration considers integrals where one, or both, of the bounds are "infinity." Such integrals have many uses and applications, in addition to generating ideas that are enlightening.
Contributors and Attributions
Gregory Hartman (Virginia Military Institute). Contributions were made by Troy Siemers and Dimplekumar Chalishajar of VMI and Brian Heinold of Mount Saint Mary's University. This content is copyrighted by a Creative Commons Attribution - Noncommercial (BY-NC) License. http://www.apexcalculus.com/
Integrated by Justin Marshall.