Module 1 of 5 · Lesson 3 of 3

L'Hôpital's Rule

L'Hôpital's rule: the indeterminate forms it applies to, and the forms it must not be used on.

What you will be able to do

Given a limit, the learner can decide whether it is of an indeterminate form the rule covers, apply the rule by differentiating numerator and denominator separately, repeat it while the hypotheses continue to hold, rewrite a product, difference or power into a quotient first, and identify cases where the rule is inapplicable, circular or unhelpful.

Orientation

Indeterminate forms algebra cannot clear

The limits unit established that 0 / 0 carries no information, and that clearing it is a matter of algebra, factor, cancel, rationalise. That works when the functions are polynomials or roots, because there is a common factor to remove.

It does not work for lim x → 0 e x − 1 x . Both parts vanish at 0, the form is 0 / 0 , and no factoring is available: e x − 1 has no algebraic factor of x to cancel. The numerical values head somewhere definite, 1.0517 , 1.00502 , 1.00050 as x closes on 0, but no manipulation reaches it.

L'Hôpital's rule handles exactly these cases, and its statement is almost too simple: differentiate the numerator and the denominator separately, then take the limit again. Here that gives e x 1 → 1 , matching the numbers.

The motivation is useful, though it is not the proof. When both quantities vanish, the size of the ratio near the point reflects the relative rates at which each approaches zero, and a derivative measures such a rate. That is why differentiating each part is the right move to try. The theorem itself is proved from the Cauchy mean value theorem, and it requires more than this motivation supplies: the derivatives must exist near the point, g ′ must be nonzero there, and f ′ / g ′ must have a limit.

That also marks its boundary. If the denominator does not vanish, there is no competition to read, and applying the rule answers a different question: lim x → 0 x + 1 x + 2 is 1 2 , while differentiating top and bottom returns 1. The rule is narrow in scope, and this unit is as much about its limits as its use.

Why this matters

Why a ratio of rates

Take the simplest case: f and g both differentiable at a , with f ( a ) = g ( a ) = 0 and g ′ ( a ) ≠ 0 . Then the quotient can be rewritten so that two difference quotients appear:

f ( x ) g ( x ) = f ( x ) − f ( a ) g ( x ) − g ( a ) = f ( x ) − f ( a ) x − a g ( x ) − g ( a ) x − a .

The first step subtracts f ( a ) and g ( a ) , which is free precisely because both are zero, that is the indeterminate hypothesis doing its work. The second divides numerator and denominator by x − a , which is legitimate because x ≠ a throughout a limit.

Now each part is a difference quotient, and as x → a they tend to f ′ ( a ) and g ′ ( a ) . By the quotient law, valid since g ′ ( a ) ≠ 0 ,

lim x → a f ( x ) g ( x ) = f ′ ( a ) g ′ ( a ) .

The limit is decided by the rates at which the two functions leave zero. A numerator vanishing twice as fast as its denominator gives a ratio of 2, whatever the functions are.

Where the hypothesis is load-bearing. If f ( a ) ≠ 0 , the first step is invalid, subtracting f ( a ) changes the function. And the conclusion would be wrong: for x + 1 x + 2 at a = 0 the numerator is 1 and the denominator 2, so the quotient is 1 2 , while f ′ / g ′ = 1 / 1 = 1 . Nothing about differentiability failed; the subtraction was simply not free.

Why the general theorem needs more. This argument assumes differentiability at a and a nonzero g ′ ( a ) . The full rule allows a = ± ∞ , allows f ′ / g ′ itself to be indeterminate, and covers ∞ / ∞ , where nothing is being subtracted at all. Those cases are proved from the Cauchy mean value theorem rather than this manipulation, but the rate reading survives intact, and it is what makes the statement memorable rather than arbitrary.

A caution the argument makes visible. It uses the derivative's definition, so using the rule to evaluate lim x → 0 sin ⁡ x x is circular: that limit is what establishes d d x sin ⁡ x = cos ⁡ x in the first place. The rule returns the right answer and proves nothing.

Theorem

The statement, and what each hypothesis excludes

L'Hôpital's rule. Let f and g be differentiable on an open interval containing a (except possibly at a ), with g ′ ( x ) ≠ 0 there. Suppose either

lim x → a f ( x ) = lim x → a g ( x ) = 0 or lim x → a | f ( x ) | = lim x → a | g ( x ) | = ∞ .

If lim x → a f ′ ( x ) g ′ ( x ) exists or is ± ∞ , then

lim x → a f ( x ) g ( x ) = lim x → a f ′ ( x ) g ′ ( x ) .

The statement holds for a real, for one-sided limits, and for a = ± ∞ .

Hypothesis 1 — the form is indeterminate. Without it the conclusion is false, not merely unproved. lim x → 0 x + 1 x + 2 = 1 2 , while lim f ′ g ′ = 1 1 = 1 . The two sides disagree, so the hypothesis cannot be dropped.

Hypothesis 2 — g ′ does not vanish near a . The proof forms the quotient f ′ / g ′ and applies the Cauchy mean value theorem, both of which need g ′ ≠ 0 on the approach. A g ′ vanishing infinitely often near a breaks the argument even when every other condition holds.

Hypothesis 3 — the limit of f ′ / g ′ exists. This is a condition on the conclusion, which is unusual and worth care. If f ′ / g ′ has no limit, the theorem says nothing, and in particular does not say the original limit fails to exist.

The classic witness is lim x → ∞ x + sin ⁡ x x . The original limit is 1, since sin ⁡ x x → 0 . But differentiating gives 1 + cos ⁡ x 1 , which oscillates between 0 and 2 forever and has no limit. The rule is silent; the limit exists regardless.

The implication runs one way. lim f ′ / g ′ existing implies lim f / g equals it. The converse fails, as that example shows.

Repeated application. If f ′ / g ′ is again indeterminate and the hypotheses hold for f ′ and g ′ , the rule applies again. Each repetition requires a fresh check: lim x → ∞ x 2 e x gives 2 x e x , still ∞ / ∞ , then 2 e x → 0 . Verifying numerically, x 2 / e x reads 0.1684 at x = 5 , 0.00454 at x = 10 and 8.24 × 10 − 7 at x = 20 .

The same discipline forbids a third application here: once the form is 2 / e x , the denominator tends to infinity while the numerator is constant, so the quotient is no longer indeterminate and the limit is read directly.

When repetition cannot terminate. For lim x → ∞ e x + e − x e x − e − x each application swaps numerator and denominator, returning to the same pair after two steps. The form stays ∞ / ∞ forever. Dividing numerator and denominator by e x instead gives 1 + e − 2 x 1 − e − 2 x → 1 , confirmed by the values 1.3130 , 1.00009 , 1.000000004 at x = 1 , 5 , 10 . The rule applies legitimately and simply never finishes, which is a third way it can fail to help.

Definition

The seven indeterminate forms, and which the rule reaches

The canonical definition states the rule and the rewrites. What follows is the full inventory of indeterminate forms and why only two are directly usable.

The two quotient forms — the rule applies directly.

FormExample
0 0 e x − 1 x as x → 0
∞ ∞ ln ⁡ x x as x → ∞

The product form 0 ⋅ ∞ — rewrite as a quotient. There are two ways, and they are not equally useful. For lim x → 0 + x ln ⁡ x :

  • ln ⁡ x 1 / x gives ∞ ∞ , and the rule yields 1 / x − 1 / x 2 = − x → 0 .
  • x 1 / ln ⁡ x gives 0 0 , and differentiating produces 1 − 1 / ( x ln 2 ⁡ x ) = − x ln 2 ⁡ x , worse than the original.

The working choice is the one whose reciprocal is easy to differentiate. Checking the answer numerically: x ln ⁡ x reads − 0.2303 , − 0.04605 , − 0.0069 , − 0.0000138 at x = 0.1 , 0.01 , 0.001 , 10 − 6 .

The difference form ∞ − ∞ — combine first. Two unbounded quantities may differ by anything at all, so the expression must be turned into a single fraction before the form is even readable. A common denominator, or factoring out the dominant term, usually produces 0 / 0 .

The three power forms 1 ∞ , 0 0 , ∞ 0 — take logarithms. For y = f ( x ) g ( x ) , write ln ⁡ y = g ( x ) ln ⁡ f ( x ) , which is a 0 ⋅ ∞ product. Resolve that, then exponentiate, and the exponentiation step is not optional: the limit of ln ⁡ y is not the limit of y .

Why 0 ∞ and ∞ 0 are absent. Neither is indeterminate. A numerator tending to 0 with a denominator growing without bound gives 0; the reverse gives ± ∞ . Both are settled without any rule, and applying L'Hôpital to them is the same error as applying it to x + 1 x + 2 .

Why the list is exactly these seven. Each arises where a limit law's hypothesis fails in a way that two competing behaviours leave the outcome open. 0 0 and ∞ ∞ are quotients of matched magnitudes; 0 ⋅ ∞ and ∞ − ∞ are their additive and multiplicative cousins; and the three power forms reduce to 0 ⋅ ∞ through the logarithm. Everything else is decided by the laws.

Why differentiating separately is not the quotient rule. The rule replaces f g by f ′ g ′ . No g 2 in the denominator and no subtraction in the numerator. The quotient rule computes the derivative of the quotient, which is a different object and is not what the theorem concerns. Confusing the two is the most common mechanical error in this material.

Worked example

Five limits, including two the rule does not settle

1. A 0 / 0 form: lim x → 0 e x − 1 x .

Check the hypotheses. At x = 0 the numerator is e 0 − 1 = 0 and the denominator is 0, so the form is 0 / 0 . Both functions are differentiable near 0 , and the denominator's derivative d d x x = 1 is nonzero there. The theorem needs all three: an indeterminate form on its own does not license the rule.

Apply. Differentiate separately: d d x ( e x − 1 ) = e x and d d x x = 1 , so

lim x → 0 e x − 1 x = lim x → 0 e x 1 = 1 .

Check numerically: 1.0517 , 1.00502 , 1.00050 at x = 0.1 , 0.01 , 0.001 , and 0.99950 at x = − 0.001 .

2. Another 0 / 0 : lim x → 0 sin ⁡ 3 x x .

Both parts vanish at 0. Differentiating gives 3 cos ⁡ 3 x 1 → 3 .

Check: 2.9552 , 2.99955 , 2.9999955 at x = 0.1 , 0.01 , 0.001 .

The factor 3 is the point: the numerator leaves zero three times as fast as the denominator, and the limit reads that ratio of rates.

3. An ∞ / ∞ form: lim x → ∞ ln ⁡ x x .

Both parts grow without bound. Differentiating gives

lim x → ∞ 1 / x 1 = lim x → ∞ 1 x = 0 .

Check: 0.2303 , 0.04605 , 0.000921 , 0.0000138 at x = 10 , 10 2 , 10 4 , 10 6 . The logarithm loses to any positive power, and this is the cleanest demonstration.

4. Two applications: lim x → ∞ x 2 e x .

First pass. Form is ∞ / ∞ . Differentiating gives 2 x e x .

Re-check. Still ∞ / ∞ . This check is mandatory, not a formality.

Second pass. Differentiating again gives 2 e x .

Re-check. Now the numerator is constant and the denominator unbounded, so the form is not indeterminate. Stop applying the rule and read the limit: 2 e x → 0 .

Check: x 2 / e x reads 0.1684 , 0.00454 , 8.24 × 10 − 7 at x = 5 , 10 , 20 .

5. A product, 0 ⋅ ∞ : lim x → 0 + x ln ⁡ x .

The rule applies only to quotients, so rewrite. Choosing ln ⁡ x 1 / x gives − ∞ ∞ , which the rule covers:

lim x → 0 + ln ⁡ x 1 / x = lim x → 0 + 1 / x − 1 / x 2 = lim x → 0 + ( − x ) = 0 .

Check: − 0.2303 , − 0.04605 , − 0.0069 , − 0.0000138 at x = 0.1 , 0.01 , 0.001 , 10 − 6 .

The other rewrite, x 1 / ln ⁡ x , is legitimate and produces − x ln 2 ⁡ x , harder than the original. Both are valid; only one is useful.

6. Where the rule never finishes: lim x → ∞ e x + e − x e x − e − x .

The form is ∞ / ∞ , which is necessary but not sufficient. Checking the rest: numerator and denominator are differentiable on the relevant region, and the denominator's derivative e x + e − x is never zero there. All three conditions hold, so the rule applies. Differentiating gives e x − e − x e x + e − x . The original with numerator and denominator swapped. Applying it again returns to the start. The cycle never terminates.

Algebra settles it immediately. Divide numerator and denominator by e x :

1 + e − 2 x 1 − e − 2 x ⟶ 1 + 0 1 − 0 = 1 .

Check: 1.3130 , 1.00009 , 1.000000004 at x = 1 , 5 , 10 .

Nothing went wrong. Every application was valid. The rule simply is not a decision procedure, and recognising when to abandon it for algebra is part of using it.

Procedure

Applying the rule without misapplying it

Step 1 — substitute, and name the form. Evaluate the numerator's and denominator's limits separately.

What comes backWhat to do
a finite number over a nonzero onethe limit is that quotient — stop, the rule does not apply
0 0 or ∞ ∞ Step 3
0 ⋅ ∞ , ∞ − ∞ , 1 ∞ , 0 0 , ∞ 0 Step 2 first
0 ∞ or ∞ 0 not indeterminate: the limits are 0 and ± ∞ — stop

This step is the one that is skipped, and skipping it is what produces wrong answers rather than merely inelegant ones.

Step 2 — convert to a quotient.

  • 0 ⋅ ∞ : move one factor into the denominator as its reciprocal. Choose the direction whose reciprocal is easier to differentiate, for x ln ⁡ x that means ln ⁡ x 1 / x , not x 1 / ln ⁡ x .
  • ∞ − ∞ : combine over a common denominator, or factor out the dominant term.
  • A power form: set y equal to the expression, take ln ⁡ y , resolve the resulting product, then exponentiate to recover y .

Step 3 — try algebra before the rule. Dividing by the highest power, cancelling a common factor or rationalising often settles the limit faster and avoids the cycling case. The rule is for what algebra cannot reach.

Step 4 — differentiate numerator and denominator separately. Not the quotient rule. No g 2 , no subtraction.

Step 5 — re-check the form, then decide.

  • Indeterminate again: repeat from Step 4, provided the hypotheses still hold.
  • Determinate: evaluate and stop. Continuing past this point reintroduces the Step 1 error.
  • The new quotient has no limit, oscillating, say: the rule is silent. It does not follow that the original limit fails to exist; find it another way.
  • The same expression returns after one or two passes: the rule is cycling. Abandon it and use algebra.

Step 6 — check the answer. Evaluate the original expression at points closing in on a . The values should approach the claimed limit; if they approach something else, Step 1 was probably skipped.

A standing caution. Do not use the rule for lim x → 0 sin ⁡ x x . It returns 1, but the derivative of sin is established from that very limit, so the argument is circular. The squeeze theorem is the correct route.

Example

One limit of each form

0 0 — lim x → 0 e x − 1 x = 1 . The template case. Differentiating gives e x / 1 → 1 , and the values 1.0517 , 1.00502 , 1.00050 confirm it. No algebra clears this one: e x − 1 has no factor of x to cancel.

0 0 with a rate ratio — lim x → 0 sin ⁡ 3 x x = 3 . Differentiating gives 3 cos ⁡ 3 x → 3 . The answer is the ratio of the speeds at which the two functions leave zero, and the 3 comes from the chain rule on the numerator.

∞ ∞ — lim x → ∞ ln ⁡ x x = 0 . Differentiating gives 1 / x 1 → 0 . The values fall 0.2303 , 0.04605 , 0.000921 , 0.0000138 at x = 10 , 10 2 , 10 4 , 10 6 . This is the standard statement that logarithmic growth loses to linear growth, and the same argument beats any positive power.

∞ ∞ needing two passes — lim x → ∞ x 2 e x = 0 . One application gives 2 x e x , still indeterminate; a second gives 2 e x , which is not, so the limit is read directly. The values 0.1684 , 0.00454 , 8.24 × 10 − 7 at x = 5 , 10 , 20 show the exponential winning comfortably. For x n / e x the same argument takes n passes.

0 ⋅ ∞ — lim x → 0 + x ln ⁡ x = 0 . Not a quotient, so it is rewritten as ln ⁡ x 1 / x before the rule applies. The values − 0.2303 , − 0.04605 , − 0.0069 , − 0.0000138 climb to 0 from below: x reaches zero faster than ln ⁡ x reaches − ∞ .

**A quotient that is not indeterminate, lim x → 0 x + 1 x + 2 = 1 2 .** Substitution settles it, and the rule must not be used. Applying it anyway returns 1 / 1 = 1 , wrong by a factor of two. It sits beside the others as the case that looks identical in shape and differs entirely in what it permits.

Where the rule is silent — lim x → ∞ x + sin ⁡ x x = 1 . The form is ∞ / ∞ , and the remaining conditions hold: both parts are differentiable and the denominator's derivative is the constant 1 . So the rule applies legitimately, and differentiating gives 1 + cos ⁡ x , which oscillates between 0 and 2 and has no limit. The theorem therefore says nothing. The original limit exists regardless, since sin ⁡ x x → 0 leaves 1 + 0 .

Two forms are handled directly, one after a rewrite, one only by stopping at the right moment, and two not at all, once because the hypothesis fails and once because the conclusion's condition fails. Reading which case is in front of you is the skill; the differentiation is the easy part.

Non-example

Four ways to misuse the rule

Applying it to a determinate quotient. lim x → 0 x + 1 x + 2 . Substitution gives 1 2 . The numerator tends to 1, not 0, so the form is not indeterminate and the rule's hypothesis fails.

Applying it anyway gives 1 1 = 1 . The values 0.5238 , 0.5025 , 0.5000 at x = 0.1 , 0.01 , 0 show which answer is right. Nothing about the functions is pathological: both are differentiable everywhere and the denominator's derivative never vanishes. The single missing hypothesis is enough to make the conclusion false.

This is the error to guard against, because it produces a plausible wrong number rather than an obvious failure.

Using the quotient rule by mistake. For lim x → 0 e x − 1 x , the rule calls for ( e x − 1 ) ′ ( x ) ′ = e x 1 . Computing instead the derivative of the quotient,

x e x − ( e x − 1 ) x 2 ,

answers a different question entirely. It is the slope of the function whose limit was wanted, not the limit. The theorem replaces a quotient by a quotient of derivatives; it does not differentiate the quotient.

Continuing after the form becomes determinate. For lim x → ∞ x 2 e x , two applications give 2 e x , whose limit is 0. A third application would give 0 e x = 0 . The same answer here by luck, since the numerator is constant. But the habit is the Step 1 error in disguise, and on a quotient like x + 1 x + 2 reached mid-problem it changes the answer.

The discipline is to re-check the form before every application, not only the first.

Concluding non-existence when the rule is silent. lim x → ∞ x + sin ⁡ x x . The form is ∞ / ∞ and the remaining conditions hold, so the rule applies, and differentiating gives 1 + cos ⁡ x , which oscillates between 0 and 2 forever. No limit.

It does not follow that the original limit fails to exist. Writing the expression as 1 + sin ⁡ x x and using | sin ⁡ x | ≤ 1 gives sin ⁡ x x → 0 by squeezing, so the limit is exactly 1. The theorem's third hypothesis is a condition on its conclusion: when f ′ / g ′ has no limit, the theorem is simply inapplicable, and says nothing in either direction.

Using it circularly. lim x → 0 sin ⁡ x x is 0 / 0 , and the rule gives cos ⁡ x 1 → 1 , which is correct. But d d x sin ⁡ x = cos ⁡ x is proved from this limit, so the argument assumes what it sets out to establish. The correct route is the squeeze theorem with cos ⁡ x ≤ sin ⁡ x x ≤ 1 , whose bounds both tend to 1, checked at x = 0.1 : 0.99500 ≤ 0.99833 ≤ 1 .

The rule is not wrong here; it is unavailable as a proof, and that distinction decides what the calculation establishes.

Optional enrichment (1)

Application

Comparing growth rates

The growth hierarchy. Repeated application of the rule establishes an ordering that decides many asymptotic questions at a glance. For any a > 1 and any p > 0 , as x → ∞ :

ln ⁡ x   ≪   x p   ≪   a x   ≪   x ! (for integer arguments) ,

where f ≪ g means lim f / g = 0 . Each comparison is one or more applications of the rule: ln ⁡ x x → 0 in one pass, x 2 e x → 0 in two, x n e x → 0 in n .

This is what justifies reading an algorithm's cost by its dominant term. A running time of n 2 + 100 n ln ⁡ n is O ( n 2 ) because n ln ⁡ n n 2 = ln ⁡ n n → 0 . The same limit computed above, with the constant 100 irrelevant to the conclusion.

Continuous compounding. The limit lim n → ∞ ( 1 + r n ) n is of the form 1 ∞ , so it is resolved through logarithms:

ln ⁡ y = n ln ⁡ ( 1 + r n ) = ln ⁡ ( 1 + r / n ) 1 / n ,

a 0 / 0 form. The rule gives − r / n 2 ⋅ 1 1 + r / n − 1 / n 2 = r 1 + r / n → r , and exponentiating returns e r . That is where continuous compounding comes from, and the exponentiation step is exactly the one that must not be forgotten.

Small-angle and small- x approximations. lim x → 0 sin ⁡ x x = 1 underwrites sin ⁡ x ≈ x for small x , used throughout physics for pendulum motion and optics. The related lim x → 0 e x − 1 x = 1 gives e x ≈ 1 + x , which is the first-order term of the exponential's expansion and the basis of linearising a growth model near zero.

In statistics. Asymptotic arguments compare an estimator's error with the sample size, and the forms that arise, a bias shrinking like 1 / n against a standard error shrinking like 1 / n , are quotients whose limits decide whether the bias matters in the limit. The ratio is 1 / n 1 / n = 1 n → 0 , which is why an estimator can be biased in finite samples and still consistent.

The rule also appears in deriving limiting distributions, where a moment generating function's logarithm is expanded around zero and the indeterminate form is cleared before exponentiating, structurally the same manoeuvre as continuous compounding.

The recurring shape. Each application asks which of two competing behaviours dominates, and answers by comparing rates. That is the rule's content, and it is why it appears wherever one quantity is being weighed against another in a limit rather than at a point.

Next step

Practice L'Hôpital's Rule

Practice records what support you used, so the evidence reflects how you actually performed.

Practice this lessonSkip to The Definite Integral

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.