L'Hopital's Rule Formula

L'Hopital's Rule: if lim_(x → a) f(x)/(g(x)) is an indeterminate form 0/0 or ∞/∞, then lim_(x → a) f(x)/(g(x)) = lim_(x → a) f'(x)/(g'(x)) provided the right-hand limit exists (or is ± ∞).

The Formula

lim⁡x→af(x)g(x)=00 or ∞∞lim⁡x→af′(x)g′(x)

Ask yourself: Does plugging in give 00 or ∞∞ in a quotient — and only then?

Quick example

lim⁡x→0sin⁡xx=lim⁡x→0cos⁡x1=11=1
This is 00, so L'Hopital's rule applies. Differentiate top and bottom separately.

Notation

Indeterminate forms: 00, ∞∞, 0⋅∞, ∞−∞, 00, 1∞, ∞0. The last five must be rewritten as 00 or ∞∞ before applying the rule.

What this formula means

If lim⁡x→af(x)g(x) is an indeterminate form 00 or ∞∞, then lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x) provided the right-hand limit exists (or is ±∞).

Two runners leave the same line at the same instant. A moment later both are barely past it, so comparing their distances directly is hopeless, but the ratio of their distances is about the ratio of their speeds. That is the rule for 00. The comparison only makes sense if both really started together at zero.

Formal view

If lim⁡x→af(x)=lim⁡x→ag(x)=0 (or both ±∞), g′(x)≠0 near a, and lim⁡x→af′(x)g′(x) exists (or is ±∞), then lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x).

Worked examples

Example 1

easy
Find lim⁡x→0sin⁡xx using L'Hôpital's rule.
Show solution

Answer

1

First step

1.
Direct substitution: sin⁡00=00 — indeterminate form.

Full solution

  1. 2.
    Apply L'Hôpital: differentiate numerator and denominator separately.
  2. 3.
    lim⁡x→0sin⁡xx=lim⁡x→0cos⁡x1=cos⁡01=1.
L'Hôpital's rule applies when we have a 00 form. Differentiate top and bottom independently (not using the quotient rule), then evaluate the limit.

Example 2

hard
Find lim⁡x→∞xe−x.

Example 3

easy
Evaluate lim⁡x→0e2x−1x.

Common mistakes

  • Applying it to a non-indeterminate form - confirm substitution gives 00 or ∞∞ first, otherwise it is invalid.
  • Using the quotient rule instead of separate derivatives - differentiate f and g independently, not as fg.
  • Stopping or not re-checking - if f′g′ is still 00, apply the rule again; rewrite forms like 0⋅∞ as a quotient before using it.

Why this formula matters

Limits of the form 00 sit at the heart of calculus, and many resist algebra: ex−1x, 1−cos⁡xx2, x2ex as x→∞. L'Hopital's rule settles them in a line or two and answers questions like "which grows faster, x10 or ex?" Applied to a limit that is not indeterminate, though, it produces an answer that looks confident and is wrong.

Frequently asked questions

What is the L'Hopital's Rule formula?

If lim⁡x→af(x)g(x) is an indeterminate form 00 or ∞∞, then lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x) provided the right-hand limit exists (or is ±∞).

How do you use the L'Hopital's Rule formula?

Use it when direct substitution into a quotient gives 00 or ∞∞ and algebra (factoring, rationalising, a known limit) does not cancel easily: exponentials, logarithms and trig functions mixed with polynomials. For 0⋅∞, ∞−∞ or exponent forms like 1∞, rewrite as a fraction first. If substitution gives a number, or a non-zero number over 0, the limit is already decided and the rule must not be used. For a bounded, oscillating factor, try the Squeeze Theorem.

What do the symbols mean in the L'Hopital's Rule formula?

Indeterminate forms: 00, ∞∞, 0⋅∞, ∞−∞, 00, 1∞, ∞0. The last five must be rewritten as 00 or ∞∞ before applying the rule.

Why is the L'Hopital's Rule formula important in Math?

Limits of the form 00 sit at the heart of calculus, and many resist algebra: ex−1x, 1−cos⁡xx2, x2ex as x→∞. L'Hopital's rule settles them in a line or two and answers questions like "which grows faster, x10 or ex?" Applied to a limit that is not indeterminate, though, it produces an answer that looks confident and is wrong.

What do students get wrong about L'Hopital's Rule?

The procedure for l'hopital's rule is the easy part; the trap is applying it to a non-indeterminate form. Asking "Does plugging in give 00 or ∞∞ in a quotient — and only then?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the L'Hopital's Rule formula?

Before studying the L'Hopital's Rule formula, you should understand: limit, derivative, infinity.

The full guide

This formula is covered in depth in Limits Explained Intuitively: The Foundation of Calculus.