L'Hopital's Rule Formula

L'hopital's rule is if _x a f(x)/g(x) is an indeterminate form 0/0 or /, then _x a f(x)/g(x) = _x a f'(x)/g'(x) provided the right-hand limit exists (or.

The Formula

lim⁑xβ†’af(x)g(x)=00Β or ∞∞lim⁑xβ†’afβ€²(x)gβ€²(x)\lim_{x \to a} \frac{f(x)}{g(x)} \stackrel{\frac{0}{0} \text{ or } \frac{\infty}{\infty}}{=} \lim_{x \to a} \frac{f'(x)}{g'(x)}

When to use: When both numerator and denominator go to zero (or both to infinity), the limit depends on which one gets there faster. Taking derivatives measures the rates at which they approach 0 or ∞\infty, so the ratio of derivatives captures this 'race.'

Quick Example

lim⁑xβ†’0sin⁑xx=lim⁑xβ†’0cos⁑x1=11=1\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = \frac{1}{1} = 1
This is 00\frac{0}{0}, so L'Hopital's rule applies. Differentiate top and bottom separately.

Notation

Indeterminate forms: 00\frac{0}{0}, ∞∞\frac{\infty}{\infty}, 0β‹…βˆž0 \cdot \infty, βˆžβˆ’βˆž\infty - \infty, 000^0, 1∞1^{\infty}, ∞0\infty^0. The last five must be rewritten as 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} before applying the rule.

What This Formula Means

If lim⁑xβ†’af(x)g(x)\lim_{x \to a} \frac{f(x)}{g(x)} is an indeterminate form 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, then lim⁑xβ†’af(x)g(x)=lim⁑xβ†’afβ€²(x)gβ€²(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)} provided the right-hand limit exists (or is ±∞\pm\infty).

When both numerator and denominator go to zero (or both to infinity), the limit depends on which one gets there faster. Taking derivatives measures the rates at which they approach 0 or ∞\infty, so the ratio of derivatives captures this 'race.'

Formal View

If lim⁑xβ†’af(x)=lim⁑xβ†’ag(x)=0\lim_{x \to a} f(x) = \lim_{x \to a} g(x) = 0 (or both ±∞\pm\infty), gβ€²(x)β‰ 0g'(x) \neq 0 near aa, and lim⁑xβ†’afβ€²(x)gβ€²(x)\lim_{x \to a} \frac{f'(x)}{g'(x)} exists (or is ±∞\pm\infty), then lim⁑xβ†’af(x)g(x)=lim⁑xβ†’afβ€²(x)gβ€²(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}.

Worked Examples

Example 1

easy
Find lim⁑xβ†’0sin⁑xx\displaystyle\lim_{x \to 0} \frac{\sin x}{x} using L'HΓ΄pital's rule.

Answer

11

First step

1
Direct substitution: sin⁑00=00\frac{\sin 0}{0} = \frac{0}{0} β€” 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\lim_{x\to 0}\frac{\sin x}{x} = \lim_{x\to 0}\frac{\cos x}{1} = \frac{\cos 0}{1} = 1.
L'HΓ΄pital's rule applies when we have a 00\frac{0}{0} form. Differentiate top and bottom independently (not using the quotient rule), then evaluate the limit.

Example 2

hard
Find lim⁑xβ†’βˆžxeβˆ’x\displaystyle\lim_{x \to \infty} x e^{-x}.

Example 3

easy
Evaluate lim⁑xβ†’0e2xβˆ’1x\displaystyle\lim_{x\to 0}\frac{e^{2x}-1}{x}.

Common Mistakes

  • Applying it to a non-indeterminate form - confirm substitution gives 00\frac00 or ∞∞\frac\infty\infty first, otherwise it is invalid.
  • Using the quotient rule instead of separate derivatives - differentiate ff and gg independently, not as fg\frac fg.
  • Stopping or not re-checking - if fβ€²gβ€²\frac{f'}{g'} is still 00\frac00, apply the rule again; rewrite forms like 0β‹…βˆž0\cdot\infty as a quotient before using it.

Why This Formula Matters

It cracks limits that resist algebra, like lim⁑xβ†’0sin⁑xx\lim_{x\to0}\frac{\sin x}{x} or lim⁑xβ†’βˆžxex\lim_{x\to\infty}\frac{x}{e^x}, and reveals which of two competing quantities approaches its endpoint faster. Knowing it ONLY applies to 00\frac00 and ∞∞\frac\infty\infty (after rewriting other indeterminate forms) is what keeps students from misusing it. Recognizing it by "Does plugging in give 00\frac00 or ∞∞\frac\infty\infty in a quotient β€” and only then?" β€” rather than by familiar numbers β€” is what lets a student tell it apart from quotient rule and direct substitution / factoring and squeeze theorem in a mixed problem set.

Frequently Asked Questions

What is the L'Hopital's Rule formula?

If lim⁑xβ†’af(x)g(x)\lim_{x \to a} \frac{f(x)}{g(x)} is an indeterminate form 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, then lim⁑xβ†’af(x)g(x)=lim⁑xβ†’afβ€²(x)gβ€²(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)} provided the right-hand limit exists (or is ±∞\pm\infty).

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

When both numerator and denominator go to zero (or both to infinity), the limit depends on which one gets there faster. Taking derivatives measures the rates at which they approach 0 or ∞\infty, so the ratio of derivatives captures this 'race.'

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

Indeterminate forms: 00\frac{0}{0}, ∞∞\frac{\infty}{\infty}, 0β‹…βˆž0 \cdot \infty, βˆžβˆ’βˆž\infty - \infty, 000^0, 1∞1^{\infty}, ∞0\infty^0. The last five must be rewritten as 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} before applying the rule.

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

It cracks limits that resist algebra, like lim⁑xβ†’0sin⁑xx\lim_{x\to0}\frac{\sin x}{x} or lim⁑xβ†’βˆžxex\lim_{x\to\infty}\frac{x}{e^x}, and reveals which of two competing quantities approaches its endpoint faster. Knowing it ONLY applies to 00\frac00 and ∞∞\frac\infty\infty (after rewriting other indeterminate forms) is what keeps students from misusing it. Recognizing it by "Does plugging in give 00\frac00 or ∞∞\frac\infty\infty in a quotient β€” and only then?" β€” rather than by familiar numbers β€” is what lets a student tell it apart from quotient rule and direct substitution / factoring and squeeze theorem in a mixed problem set.

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\frac00 or ∞∞\frac\infty\infty 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.

Want the Full Guide?

This formula is covered in depth in our complete guide:

Limits Explained Intuitively: The Foundation of Calculus β†’