5.3: L'Hôpital's Rule
( \newcommand{\kernel}{\mathrm{null}\,}\)
We shall now prove a useful rule for resolving indeterminate limits. Below, G¬p denotes a deleted globe G¬p(δ) in E1, or one about ±∞ of the form (a,+∞) or (−∞,a). For one-sided limits, replace G¬p by its appropriate "half."
Let f,g:E1→E∗ be differentiable on G¬p, with g′≠0 there. If |f(x)| and |g(x)| tend both to +∞,1 or both to 0, as x→p and if
limx→pf′(x)g′(x)=r exists in E∗,
then also
limx→pf(x)g(x)=r;
similarly for x→p+ or x→p−.
- Proof
-
It suffices to consider left and right limits. Both combined then yield the two-sided limit.
First, let −∞≤p<+∞,
limx→p+|f(x)|=limx→p+|g(x)|=+∞ and limx→p+f′(x)g′(x)=r (finite).
Then given ε>0, we can fix a>p(a∈G¬p) such that
|f′(x)g′(x)−r|<ε, for all x in the interval (p,a).
Now apply Cauchy's law of the mean (§2, Theorem 2) to each interval [x,a], p<x<a. This yields, for each such x, some q∈(x,a) with
g′(q)[f(x)−f(a)]=f′(q)[g(x)−g(a)].
As g′≠0 (by assumption), g(x)≠g(a)≠g(a) by Theorem 1, §2, so we may divide to obtain
f(x)−f(a)g(x)−g(a)=f′(q)g′(q), where p<x<q<a.
This combined with (1) yields
|f(x)−f(a)g(x)−g(a)−r|<ε,
or, setting
F(x)=1−f(a)/f(x)1−g(a)/g(x),
we have
|f(x)g(x)⋅F(x)−r|<ε for all x inside (p,a).
As |f(x)| and |g(x)|→+∞ (by assumption), we have F(x)→1 as x→p+. Hence by rules for right limits, there is b∈(p,a) such that for all x∈(p,b), both |F(x)−1|<ε and F(x)>12. (Why?) For such x, formula (2) holds as well. Also,
1|F(x)|<2 and |r−rF(x)|=|r||1−F(x)|<|r|ε.
Combining this with (2), we have for x∈(p,b)
|f(x)g(x)−r|=1|F(x)||f(x)g(x)F(x)−rF(x)|<2|f(x)g(x)⋅F(x)−r+r−rF(x)|<2ε(1+|r|).
Thus, given ε>0, we found b>p such that
|f(x)g(x)−r|<2ε(1+|r|),x∈(p,b).
As ε is arbitrary, we have limx→p+f(x)g(x)=r, as claimed.
The case limx→p+f(x)=limx→p+g(x)=0 is simpler. As before, we obtain
|f(x)−f(a)g(x)−g(a)−r|<ε.
Here we may as well replace "a′′ by any y∈(p,a). Keeping y fixed, let x→p+. Then f(x)→0 and g(x)→0, so we get
|f(y)g(y)−r|≤ε for any y∈(p,a).
As ε is arbitrary, this implies limy→p+f(y)g(y)=r. Thus the case x→p+ is settled for a finite r.
The cases r=±∞ and x→p− are analogous, and we leave them to the reader. ◻
Note 1. limf(x)g(x) may exist even if limf′(x)g′(x) does not. For example, take
f(x)=x+sinx and g(x)=x.
Then
limx→+∞f(x)g(x)=limx→+∞(1+sinxx)=1( why? ),
but
f′(x)g′(x)=1+cosx
does not tend to any limit as x→+∞.
Note 2. The rule fails if the required assumptions are not satisfied, e.g., if g′ has zero values in each G¬p; see Problem 4 below.
Often it is useful to combine L'Hôpital's rule with some known limit formulas, such as
limz→0(1+z)1/z=e or limx→0xsinx=1 (see §1, Problem 8).
(a) limx→+∞lnxx=limx→+∞(lnx)′1=limx→+∞1x=0.
(b) limx→0ln(1+x)x=limx→01/(1+x)1=1.
(c) limx→0x−sinxx3=limx→01−cosx3x2=limx→0sinx6x=16limx→0sinxx=16.
(Here we had to apply L'Hôpital's rule repeatedly.)
(d) Consider
limx→0+e−1/xx.
Taking derivatives (even n times), one gets
limx→0+e−1/xn!xn+1,n=1,2,3,… (always indeterminate!).
Thus the rule gives no results. In this case, however, a simple device helps (see Problem 5 below).
(e) limn→∞n1/n does not have the form 00 or ∞∞, so the rule does not apply directly. Instead we compute
limn→∞lnn1/n=limn→∞lnnn=0 (Example (a)).
Hence
n1/n=exp(lnn1/n)→exp(0)=e0=1
by the continuity of exponential functions. The answer is then 1.