How to apply L'Hopital's rule

L'Hopital's rule evaluates limits of indeterminate forms by differentiating the numerator and denominator independently. It applies strictly to limits resulting in 0/00/0 or ±/\pm\infty/\infty.

The setup

Identify the limit limxocf(x)g(x)\lim_{x o c} \frac{f(x)}{g(x)}. Substitute cc into f(x)f(x) and g(x)g(x) to verify the expression evaluates exactly to the indeterminate form 0/00/0 or ±/\pm\infty/\infty.

The steps

  1. Differentiate the numerator f(x)f(x) to find f(x)f'(x). 2. Differentiate the denominator g(x)g(x) to find g(x)g'(x). Do not use the quotient rule. 3. Form the new limit limxocf(x)g(x)\lim_{x o c} \frac{f'(x)}{g'(x)}. 4. Substitute cc into the new limit. 5. If the new limit yields another indeterminate form, repeat steps 1-4.

Checking the result

Substitute a test value extremely close to cc (e.g., c+0.001c + 0.001) into the original function f(x)g(x)\frac{f(x)}{g(x)}. The numerical output must closely approximate your calculated limit.

Common errors

Applying the quotient rule to f(x)g(x)\frac{f(x)}{g(x)} instead of taking derivatives independently. Applying the rule when the limit is not indeterminate (e.g., 1/01/0 or 0/10/1), which yields incorrect results.

Worked example

Evaluate limxo0sin(x)xx3\lim_{x o 0} \frac{\sin(x) - x}{x^3}.

Substitute x=0x = 0: sin(0)003=00\frac{\sin(0) - 0}{0^3} = \frac{0}{0}. The form is indeterminate. Apply L'Hopital's rule by differentiating numerator and denominator: limxo0cos(x)13x2\lim_{x o 0} \frac{\cos(x) - 1}{3x^2}. Substitute x=0x = 0: cos(0)10=00\frac{\cos(0) - 1}{0} = \frac{0}{0}. The form is still indeterminate. Apply L'Hopital's rule a second time: limxo0sin(x)6x\lim_{x o 0} \frac{-\sin(x)}{6x}. Substitute x=0x = 0: sin(0)0=00\frac{-\sin(0)}{0} = \frac{0}{0}. Apply L'Hopital's rule a third time: limxo0cos(x)6\lim_{x o 0} \frac{-\cos(x)}{6}. Substitute x=0x = 0: cos(0)6=16\frac{-\cos(0)}{6} = -\frac{1}{6}. The limit is 1/6-1/6.

FAQ

Run your own problem

References: Stewart Calculus, 8th Edition · OpenStax Calculus Volume 1 · Khan Academy: Applications of derivatives

See also