Mathwords logoMathwords

L'Hôpital's Rule — Definition, Formula & Examples

L'Hôpital's Rule
L'Hospital's Rule

A technique used to evaluate limits of fractions that evaluate to the indeterminate expressions The fraction 0/0, with 0 in the numerator and 0 in the denominator. and ±∞ divided by ±∞, an indeterminate expression showing infinity over infinity with sign variations.. This is done by finding the limit of the derivatives of the numerator and denominator.

Note: Most limits involving other indeterminate expressions can be manipulated into fraction form so that l'Hôpital's rule can be used.

 

L'Hôpital's Rule:

If f and g are differentiable on an open interval containing a such that g(x) ≠ 0 for all x ≠ a in the interval, and if either

The limit of f(x) as x approaches a equals 0 and The limit of g(x) as x approaches a equals 0

or

The limit of f(x) as x approaches a equals plus or minus infinity and The limit of g(x) as x approaches a equals plus or minus infinity

then

L'Hôpital's Rule formula: limit as x→a of f(x)/g(x) equals limit as x→a of f'(x)/g'(x)

Example:

Example: lim(x→0) (1−cos x)/x² = lim(x→0) sin x/2x = lim(x→0) cos x/2 = 1/2

Key Formula

If limxaf(x)g(x) yields 00 or ±±, then limxaf(x)g(x)=limxaf(x)g(x)\text{If } \lim_{x \to a} \frac{f(x)}{g(x)} \text{ yields } \frac{0}{0} \text{ or } \frac{\pm\infty}{\pm\infty}, \text{ then } \lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}
Where:
  • f(x)f(x) = The numerator function, which must be differentiable near a
  • g(x)g(x) = The denominator function, which must be differentiable near a and have a nonzero derivative near a
  • aa = The value x approaches (can be a finite number, +∞, or −∞)
  • f(x)f'(x) = The derivative of the numerator function
  • g(x)g'(x) = The derivative of the denominator function

Worked Example

Problem: Evaluate the limit: lim (x → 0) of sin(x) / x.
Step 1: Check for an indeterminate form by substituting x = 0 into the numerator and denominator.
sin(0)0=00(indeterminate)\frac{\sin(0)}{0} = \frac{0}{0} \quad \text{(indeterminate)}
Step 2: Since the form is 0/0, L'Hôpital's Rule applies. Differentiate the numerator and the denominator separately.
f(x)=sin(x)f(x)=cos(x),g(x)=xg(x)=1f(x) = \sin(x) \Rightarrow f'(x) = \cos(x), \quad g(x) = x \Rightarrow g'(x) = 1
Step 3: Form the new limit using the derivatives and evaluate.
limx0cos(x)1=cos(0)1=11=1\lim_{x \to 0} \frac{\cos(x)}{1} = \frac{\cos(0)}{1} = \frac{1}{1} = 1
Answer: The limit is 1.

Another Example

This example differs in two ways: the limit is taken as x → ∞ (not at a finite point), and the rule must be applied twice because the first application still yields an indeterminate form.

Problem: Evaluate the limit: lim (x → ∞) of x² / eˣ.
Step 1: Check the form by considering the behavior as x → ∞. Both x² and eˣ approach ∞.
(indeterminate)\frac{\infty}{\infty} \quad \text{(indeterminate)}
Step 2: Apply L'Hôpital's Rule: differentiate numerator and denominator.
limxx2ex=limx2xex\lim_{x \to \infty} \frac{x^2}{e^x} = \lim_{x \to \infty} \frac{2x}{e^x}
Step 3: The new limit is still ∞/∞, so apply L'Hôpital's Rule a second time.
limx2xex=limx2ex\lim_{x \to \infty} \frac{2x}{e^x} = \lim_{x \to \infty} \frac{2}{e^x}
Step 4: Now evaluate directly. As x → ∞, eˣ → ∞, so the fraction approaches 0.
limx2ex=0\lim_{x \to \infty} \frac{2}{e^x} = 0
Answer: The limit is 0.

Frequently Asked Questions

When can you use L'Hôpital's Rule?
You can use L'Hôpital's Rule only when direct substitution produces an indeterminate form of 0/0 or ∞/∞. Both the numerator and denominator must be differentiable near the point of interest, and the derivative of the denominator must be nonzero near that point. If the limit does not yield one of these two indeterminate forms, the rule does not apply.
Can you apply L'Hôpital's Rule more than once?
Yes. If after one application the resulting limit is still an indeterminate form (0/0 or ∞/∞), you may apply the rule again. You can repeat this process as many times as needed, as long as each new limit still meets the conditions for the rule.
What is the difference between L'Hôpital's Rule and the quotient rule?
L'Hôpital's Rule and the quotient rule serve entirely different purposes. The quotient rule is a differentiation formula: it tells you the derivative of f(x)/g(x). L'Hôpital's Rule is a limit evaluation technique: it replaces a limit of f(x)/g(x) with the limit of f'(x)/g'(x). In L'Hôpital's Rule, you differentiate the numerator and denominator independently — you do not apply the quotient rule to the fraction.

L'Hôpital's Rule vs. Quotient Rule

L'Hôpital's RuleQuotient Rule
PurposeEvaluates limits of indeterminate fractionsFinds the derivative of a quotient of two functions
Formulalim f/g = lim f'/g' (when 0/0 or ∞/∞)(f'g − fg') / g²
When to useWhen a limit gives 0/0 or ∞/∞When differentiating a fraction f(x)/g(x)
How derivatives are takenNumerator and denominator differentiated separatelyNumerator and denominator combined via the quotient rule formula

Why It Matters

L'Hôpital's Rule is one of the most frequently tested topics in AP Calculus and college calculus courses, appearing in both AB and BC exams. It provides a systematic way to handle limits that cannot be evaluated by direct substitution, which arise constantly in applications like growth rates, series convergence tests, and physics problems involving rates of change. Mastering this rule also builds fluency with derivatives, since every application requires you to differentiate quickly and accurately.

Common Mistakes

Mistake: Applying L'Hôpital's Rule when the limit is not an indeterminate form.
Correction: Always substitute first to verify that you get 0/0 or ∞/∞. If the limit gives something like 1/0 or 5/3, the rule does not apply, and using it will produce a wrong answer.
Mistake: Using the quotient rule instead of differentiating numerator and denominator separately.
Correction: L'Hôpital's Rule says to take f'(x) and g'(x) independently, then form f'(x)/g'(x). Do not apply the quotient rule (f'g − fg')/g² — that computes a derivative, not a limit.

Related Terms

  • LimitThe concept L'Hôpital's Rule is used to evaluate
  • Indeterminate ExpressionThe forms (0/0, ∞/∞) that trigger the rule
  • DerivativeRequired to apply the rule to numerator and denominator
  • NumeratorTop function in the fraction being evaluated
  • DenominatorBottom function in the fraction being evaluated
  • FractionThe quotient form needed to apply the rule
  • EvaluateThe process of finding the value of a limit