L'Hospital's rule evaluates certain quotients of differentiable functions. Consider a one-sided limit
at a finite point, or a limit as or
. Suppose the real-valued
functions
and
are differentiable on an open interval approaching the endpoint and
throughout that interval. If
and
both tend to zero, or if both tend to infinity in magnitude,
and if the limit of
exists as a real number or as
, then
|
(1)
|
A two-sided limit follows when the two one-sided results agree.
For example, both
and
vanish at
. Their derivatives are
and
, respectively, so
|
(2)
|
This is also the ratio of the slopes of the two local linear approximations (3Blue1Brown 2017).
Historically, this result first appeared in l'Hospital's 1696 treatise, which was the first textbook on differential calculus. Within the book, l'Hospital thanks the Bernoulli brothers for their assistance and their discoveries. An earlier letter by John Bernoulli gives both the rule and its proof, so it seems likely that Bernoulli discovered the rule (Larson et al. 1999, p. 524).
Note that l'Hospital's name is commonly seen spelled both "l'Hospital" (e.g., Maurer 1981, p. 426; Arfken 1985, p. 310) and "l'Hôpital" (e.g., Maurer 1981, p. 426; Gray 1997, p. 529), the two being equivalent in French spelling.
L'Hospital's rule occasionally fails to yield useful results, as in the case of the function , illustrated above.
Repeatedly differentiating the numerator and denominator separately cycles through
the same expressions,
|
(3)
| |||
|
(4)
| |||
|
(5)
| |||
|
(6)
| |||
|
(7)
|
The actual limit is 1.
The condition that
be nonzero cannot in general be dropped. For example, consider
with
|
(8)
| |||
|
(9)
|
Both functions tend to
as
, but
at arbitrarily large points where
. The quotient
tends to 0 on the points where it is defined,
while
has no limit (Boas 1986).
Another similar example is the limit with
|
(10)
| |||
|
(11)
|
as . While both
and
approach 0 as
, the limit of the ratio
is 0, while
is unbounded arbitrarily close to 0 (Wilf 1966, Rickert 1968).