TOPICS
Search

L'Hospital's Rule


L'Hospital's rule evaluates certain quotients of differentiable functions. Consider a one-sided limit at a finite point, or a limit as x->infty or x->-infty. Suppose the real-valued functions f and g are differentiable on an open interval approaching the endpoint and g^'(x)!=0 throughout that interval. If f(x) and g(x) both tend to zero, or if both tend to infinity in magnitude, and if the limit of f^'(x)/g^'(x) exists as a real number or as +/-infty, then

 lim(f(x))/(g(x))=lim(f^'(x))/(g^'(x)).
(1)

A two-sided limit follows when the two one-sided results agree.

For example, both sin(pix) and x^2-1 vanish at x=1. Their derivatives are picos(pix) and 2x, respectively, so

 lim_(x->1)(sin(pix))/(x^2-1)=-pi/2.
(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.

LHospitalsRuleOscillatory

L'Hospital's rule occasionally fails to yield useful results, as in the case of the function lim_(u->infty)u(u^2+1)^(-1/2), illustrated above. Repeatedly differentiating the numerator and denominator separately cycles through the same expressions,

lim_(u->infty)u/((u^2+1)^(1/2))=lim_(u->infty)1/(u(u^2+1)^(-1/2))
(3)
=lim_(u->infty)((u^2+1)^(1/2))/u
(4)
=lim_(u->infty)(u(u^2+1)^(-1/2))/1
(5)
=lim_(u->infty)u/((u^2+1)^(1/2))
(6)
=....
(7)

The actual limit is 1.

LHospitalsRule1

The condition that g^'(x) be nonzero cannot in general be dropped. For example, consider f(x)/g(x) with

f(x)=x+cosxsinx
(8)
g(x)=e^(sinx)(x+cosxsinx)
(9)

Both functions tend to infty as x->infty, but g^'(x)=0 at arbitrarily large points where cosx=0. The quotient f^'(x)/g^'(x) tends to 0 on the points where it is defined, while f(x)/g(x)=e^(-sinx) has no limit (Boas 1986).

LHospitalsRule2

Another similar example is the limit f(x)/g(x) with

f(x)=xsin(x^(-4))e^(-1/x^2)
(10)
g(x)=e^(-1/x^2)
(11)

as x->0. While both f(x) and g(x) approach 0 as x->0, the limit of the ratio is 0, while f^'(x)/g^'(x) is unbounded arbitrarily close to 0 (Wilf 1966, Rickert 1968).


See also

Derivative, Extended Mean-Value Theorem, Limit

Explore with Wolfram|Alpha

References

3Blue1Brown. "L'Hôpital's Rule." May 4, 2017. https://www.3blue1brown.com/lessons/l-hopitals-rule/.Abramowitz, M. and Stegun, I. A. (Eds.). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, p. 13, 1972.Anton, H. "Improper Integrals; L'Hôpital's Rule." Ch. 10 in Calculus with Analytic Geometry, 2nd ed. New York: Wiley, pp. 532-555, 1984.Arfken, G. Mathematical Methods for Physicists, 3rd ed. Orlando, FL: Academic Press, 1985.Boas, R. P. "Counterexamples to L'Hopital's Rule." Amer. Math. Monthly 93, 644-645, 1986.Gray, A. Modern Differential Geometry of Curves and Surfaces with Mathematica, 2nd ed. Boca Raton, FL: CRC Press, 1997.Gruntz, D. In Computer Algebra Systems: A Practical Guide (Ed. M. J. Wester). Chichester, England: Wiley, 1999.L'Hospital, G. de L'analyse des infiniment petits pour l'intelligence des lignes courbes. 1696.Larson, R.; Hostetler, R. P.; and Edwards, B. H. Calculus: Early Transcendental Functions, 2nd ed. Boston, MA: Houghton Mifflin, 1999.Maurer, J. F. (Managing Ed.). Concise Dictionary of Scientific Biography. New York: Scribner's, 1981.Rickert, N. W. "A Calculus Counterexample." Amer. Math. Monthly 75, 166, 1968.Stolz, O. "Ueber die Grenzwerthe der Quotienten." Math. Ann. 15, 556-559, 1879.Stolz, O. Grundzüge der Differential- und Integralrechnung, Vol. 1. Leipzig, Germany: Teubner, pp. 72-84, 1893.Trott, M. The Mathematica GuideBook for Programming. New York: Springer-Verlag, p. 60, 2004. https://www.mathematicaguidebooks.org/.Wilf, H. S. Calculus and Linear Algebra. New York: Harcourt, Brace, and World, 1966.

Referenced on Wolfram|Alpha

L'Hospital's Rule

Cite this as:

Weisstein, Eric W. "L'Hospital's Rule." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/LHospitalsRule.html

Subject classifications