Skip to content
LoveToCalc

Theorem — what does that mean?

L'Hôpital's rule

When a quotient turns into 0/0 or ∞/∞, differentiate the numerator and the denominator separately and try the limit again.

In Swedish: L'Hôpitals regel

limx→af(x)g(x)=limx→af′(x)g′(x)

x
The variable, approaching a
a
The point the limit is taken at

What the theorem says

It holds when three things are true:

  1. f(x) and g(x) both go to 0, or both go to ±∞, as x approaches a.
  2. f and g are differentiable near a, and g′(x) is not 0 there.
  3. The limit on the right exists, or is ±∞.

a can be a number or ±∞. Note that it is f′ divided by g′, each differentiated on its own, and not the derivative of the quotient.

Worked examples

sin 2x / x as x → 0. Both go to 0. Differentiate: 2 cos 2x / 1, which is 2 at x = 0. The limit is 2.

(1 − cos x) / x² as x → 0. Both go to 0. Once: sin x / (2x), still 0/0. Twice: cos x / 2, which is 1/2 at 0. The rule may be used again as long as the form is still 0/0 or ∞/∞.

ln x / x as x → ∞. Both go to ∞. Differentiate: (1/x) / 1 = 1/x, which goes to 0. The logarithm grows slower than x.

x · ln x as x → 0⁺. A product 0 · (−∞) is rewritten as a quotient first: ln x / (1/x) is −∞/∞. Differentiate: (1/x) / (−1/x²) = −x, which goes to 0.

When it does not apply

Common mistakes

Frequently asked questions

Why the two spellings, l’Hôpital and l’Hospital? The French spelling changed in the 18th century, when the silent s was replaced by a circumflex. The marquis de l’Hôpital published the rule in 1696, in the first calculus textbook; it was worked out by his teacher, Johann Bernoulli.

Can I use it for sin x / x as x → 0? It gives the right answer, 1, but it is circular: the derivative of sin x is worked out from that very limit. As a proof it does not count; as a check it is fine.

Last reviewed October 6, 2026 ·How pages are reviewed

CalculusAll formulas