← Back to course

Lhopitals Rule

L'Hopital's Rule resolves indeterminate limits 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} by differentiating the numerator and denominator separately, then taking the limit of the new ratio. Always verify the indeterminate form before applying.

Understanding L'Hopital's Rule

When direct substitution in lim⁡x→af(x)g(x)\lim_{x\to a} \frac{f(x)}{g(x)} yields 00\frac{0}{0} or ±∞±∞\frac{\pm\infty}{\pm\infty}, we face an indeterminate form—the limit may or may not exist, and simple substitution cannot tell you which. L'Hopital's Rule provides a systematic solution: differentiate the numerator and denominator independently and evaluate the new ratio's limit.

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. This works because near the point in question, both functions behave like their tangent line approximations; comparing slopes reveals true limiting behavior.

Key Steps

  1. Verify the form: Confirm substitution gives exactly 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}
  2. Differentiate separately: Apply derivative to top and bottom independently—this is not the quotient rule
  3. Re-check after each step: If the new ratio remains indeterminate, apply the rule again; if not, substitute directly

Common Examples

For lim⁡x→0sin⁡xx\lim_{x\to 0} \dfrac{\sin x}{x}: substitution yields 00\frac{0}{0}. Differentiating gives lim⁡x→0cos⁡x1=1\lim_{x\to 0}\dfrac{\cos x}{1} = 1.

For lim⁡x→∞x2ex\lim_{x\to\infty} \dfrac{x^2}{e^x}: the form ∞∞\frac{\infty}{\infty} requires applying the rule twice. After the first application: lim⁡x→∞2xex\lim_{x\to\infty}\dfrac{2x}{e^x} remains ∞∞\frac{\infty}{\infty}. After the second: lim⁡x→∞2ex=0\lim_{x\to\infty}\dfrac{2}{e^x} = 0.

Graph illustrating Lhopitals Rule

Extending Beyond Standard Forms

Other indeterminate forms—0⋅∞0\cdot\infty, ∞−∞\infty-\infty, 1∞1^\infty, 000^0, ∞0\infty^0—can often be algebraically rewritten into 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} form, then solved using the rule.

Common Pitfall

Failing to verify that the form is genuinely indeterminate before applying the rule, or forgetting to re-verify after each differentiation step, leads to incorrect answers. Always check the form first.

Practice problems

Practice similar problems interactively, with instant feedback.

Start Closing the Gap