Hôpital's Rule
Differential calculus offers a way to calculate limits in the case of indeterminate forms of the type 0/0 and ∞/∞.
L'Hospital's Rule is named after a French nobleman, the Marquis de l'Hospital (1661–1704) a student of Johann Bernoulli, a marquis for whom the latter wrote the first textbook of analysis in the years 1691-1692. The portion of this textbook devoted to differential calculus was published in slightly altered form by l'Hopital under his own name in the "Analyse des infiniments petits" in 1696, the first text on differential calculus. Thus "l'Hopital's rule" is really due to Johann Bernoulli. L'Hôpital actually considered only the following special case in which two functions f, g are coninuos on [a,b], differentiable on (a,b) and both infinitesimal for x ⟶ a and showed that
limx ⟶ a f(x)/g(x) = f'(a)/g'(a)
where a is finite, and both f'(a) and g'(a) exist, finite, and are not zero. Indeed, using the definition of derivative
since f(a) = g(a) = 0 from the continuity of f,g at a. But this last condition is too restrictive. Indeed we have the following more general theorem.
Theorem 5.7.1 (L'Hôpital's Rule: 0/0 case). Let f and g be defined and differentiable on (x0,b), such that g'(x) ≠ 0 ∀x ∈ (x0,b). Suppose that
Then
Proof. Without loss of generality, it can be assumed that f(x0) = g(x0) = 0, because redefining the function at x0 does not change the limits at x0 of f, g, f', g' or their ratios (see example 5.7.2 for which changing the value of f(x) for x ∉ (a,b) won't change the limit). For x ≠ x0, we may write
By Cauchy's Mean Value Theorem there is c between x and x0 such that
Now as x ⟶ x0, we must have also c ⟶ x0 because c is between x and x0. So if
then
Thefore
as desired. □
Note that there is nothing in this proof that requires ℓ to be finite. It works as well for the one-sided left-hand limits.
Example 5.7.2 Evaluate limx ⟶ 0+ f(x), where f is
Applying the de L’Hôpital’s Rule we have
limx ⟶ 0+ f(x) = limx ⟶ 0+(−2sen 2x + sen x)/(2x)
Applying a second time de L’Hôpital’s Rule
limx ⟶ 0+ f(x) = limx ⟶ 0+(−4cos 2x + cos x)/(2) = −3/2. ■
Theorem 5.7.3 (L’Hôpital’s Rule for ∞/∞ Indeterminate Forms). Let f(x),g(x) two functions defined on a open interval I = (a,b) with a ∈ ℝ; Suppose that g is divergent to +∞ (−∞) for x ⟶ a− and that both f,g are differentiable on I. Suppose also that g'(x) < 0 (g'(x) > 0) for all x ∈ I. Then if exists
It holds also that
Proof. We must show that for every decreasing sequence {an} of (a,b) such that limn ⟶ ∞ xn = a, results
Suppose that g'(x) > 0 ∀x ∈ I: this implies that g(x) is an increasing function and consequenlty by Lemma 5.6.2 that {g(xn)} is decreasing (if g'(x) < 0 it suffices to replace g and f by −g and −f and follow with the proof). By the Stolz–Cesàro theorem we have that the previous is verified if it results
From the differentiability of f,g ∈ I, we have that for every n ∈ ℕ there exits ξn ∈ (xn, xn+1) and by the Cauchy Mean Value theorem we have
Since the sequence {ξn} converges as {xn} to a+ we can deduce that being limx ⟶ a+ f'(x)/g'(x) = ℓ, that
which completes the proof. □
Theorem 5.7.4 Let f(x) and g(x) two function defined on the same interval I = (a, +∞); Suppose f,g to be both infinitesimal for x ⟶ +∞ and differentiable on (a, +∞). Suppose also that g'(x) > 0 (g'(x) < 0) for all x ∈ I. Then if exists
Then it holds also that
Proof. Suppose withouth loss of generality that a > 0 and let x = 1/z, F(z) = f(1/z), G(z) = g(1/z). The functions F(z), G(z) are defined on the interval I' = (a,1/a) and infinitesimal for z ⟶ 0+. By the Chain Rule, the functions F,G are both differentiable ∀z ∈ (0,1/a), and we have
from which it results G'(z) ≠ 0 if z ∈ (0,1/a) and it exists:
We can thus apply Theorem 5.7.1 to functions F(z) and G(z) and deduce the existence of the limit
which proves the theorem. □
Example 5.7.5. Evaluate the limit
We write
the right-hand side can also be written as
[ln(x + 1) − ln(x − 1)]/1/x
taking the derivative yields to
−[1/(x + 1) − 1/(x − 1)]/x2 = 2x2/(x2 − 1).
and limx ⟶ +∞ 2x2/(x2 − 1) = 2. ■