Instant PDF download, name-and-email checkout. Complete Book Bundle: every Economics, Statistics, Mathematics and Econometrics book
Mathematics

L’Hôpital’s Rule Explained: 0/0 and ∞/∞ Limits, Repeated Use and When It Fails

Learn L'Hôpital's rule for 0/0 and ∞/∞ limits: when it applies, repeated use, when it fails, plus a present-value case and exam-style practice questions.

In 30 seconds
  • L’Hôpital’s rule says that if a limit gives \( \frac{0}{0} \) or \( \frac{\infty}{\infty} \), you can differentiate the top and bottom separately and try the limit again.
  • It is a calculus shortcut for limits that algebra (factorising, rationalising) cannot easily reach, such as \( \frac{\sin x}{x} \) or \( \frac{e^x – 1 – x}{x^2} \).
  • If the new limit is still \( \frac{0}{0} \) or \( \frac{\infty}{\infty} \), you may apply the rule again, checking the form each time.
  • In our case, a 24-month plan of $500 payments has a present value that tends to exactly $12,000 as the interest rate tends to zero.
  • Exam point: always show that the limit is an indeterminate form before using the rule. Using it on a limit that is not \( \frac{0}{0} \) or \( \frac{\infty}{\infty} \) gives a wrong answer.

The case: what is a payment plan worth when interest is almost zero?

A furniture shop offers a sofa on a payment plan: 24 monthly payments of $500. A buyer wants to compare this with paying cash. To do that, she works out the present value of the plan, the amount of money today that is worth the same as the 24 future payments. With a monthly interest rate \( r \) (as a decimal), the present value of an ordinary annuity is

\[ PV(r) = 500 \cdot \frac{1 – (1 + r)^{-24}}{r} \]

She tries a few rates in a spreadsheet. At 2% a month the plan is worth about $9,457 today. At 1% it is worth about $10,622. At 0.5% it is about $11,281. As the rate falls, the present value climbs. Common sense says that at zero interest the plan is worth exactly what you pay, \( 24 \times 500 = 12000 \) dollars.

But when she types \( r = 0 \) into the formula, the spreadsheet shows an error. The top is \( 1 – 1^{-24} = 0 \) and the bottom is 0. The formula gives \( \frac{0}{0} \), which is not a number. So is the answer really $12,000, and can we prove it? This is exactly the kind of question L’Hôpital’s rule answers. (The figures are illustrative.)

The concept: limits of the form 0/0 and ∞/∞

A limit asks what value a function gets close to as the input gets close to some number. Usually you just substitute. But sometimes substitution gives \( \frac{0}{0} \) or \( \frac{\infty}{\infty} \). These are called indeterminate forms. “Indeterminate” means the form alone does not tell you the answer. The limit could be 0, 5, 12,000, infinity, or it might not exist at all. It depends on how fast the top and the bottom approach their values.

That last idea is the heart of the rule. Near the point, if both top and bottom are heading to zero, their ratio is decided by their rates of change. If the top is shrinking twice as fast as the bottom, the ratio settles near 2. Rates of change are derivatives. So we compare the derivatives instead of the functions.

A quick picture helps. Near \( x = a \), a smooth function \( f \) with \( f(a) = 0 \) looks like its tangent line, \( f(x) \approx f'(a)(x – a) \). Do the same for \( g \). Then

\[ \frac{f(x)}{g(x)} \approx \frac{f'(a)(x – a)}{g'(a)(x – a)} = \frac{f'(a)}{g'(a)} \]

The \( (x – a) \) factors cancel, which is exactly what factorising does in the algebra method. L’Hôpital’s rule turns that idea into a theorem [1].

Key termL’Hôpital’s rule: suppose \( f \) and \( g \) are differentiable near \( a \) (except possibly at \( a \)), \( g'(x) \neq 0 \) near \( a \), and \( \lim_{x \to a} \frac{f(x)}{g(x)} \) is of the form \( \frac{0}{0} \) or \( \frac{\infty}{\infty} \). If \( \lim_{x \to a} \frac{f'(x)}{g'(x)} \) exists (or is \( \pm\infty \)), then the original limit equals it. The same holds for one-sided limits and for \( x \to \pm\infty \).
\[ \lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)} \quad \text{when the left side is } \tfrac{0}{0} \text{ or } \tfrac{\infty}{\infty} \]

Here \( f(x) \) is the numerator and \( g(x) \) is the denominator. \( f'(x) \) and \( g'(x) \) are their derivatives, taken separately. This is not the quotient rule: you do not differentiate the fraction as a whole. The number \( a \) can be a finite value, or \( +\infty \) or \( -\infty \). The condition “if the new limit exists” matters: the rule only lets you move from the derivative limit back to the original limit, not the other way round.

Mathematics Made Simple textbook coverMathematics Made Simple explains limits and L’Hôpital’s rule with worked examples and graphs.Get the textbook · $12

The rule is named after the French mathematician Guillaume de l’Hôpital, who published it in 1696 in the first textbook on differential calculus. The result itself is usually credited to his teacher, Johann Bernoulli [1]. You will also see it spelled L’Hospital, the older French spelling.

Why this method fits the case

Our present-value limit is a textbook \( \frac{0}{0} \). Can algebra do it? You could expand \( (1 + r)^{-24} \) with the binomial series, but that needs an infinite series and is easy to get wrong. You cannot simply factorise \( r \) out of the top. L’Hôpital’s rule needs just one derivative of the top and one of the bottom. It is the most direct route.

More generally, L’Hôpital’s rule fits when the top and bottom mix different kinds of function: exponentials with polynomials, logs with powers, trig functions with polynomials. These are hard to cancel by algebra. It also handles growth-rate comparisons at infinity, such as “does \( x^{2} \) or \( e^{0.5x} \) grow faster?”, which matter in economics when comparing polynomial costs with exponential growth.

When is it not the right tool?

  • When the limit is not indeterminate. \( \lim_{x \to 0} \frac{x + 1}{x + 2} = \frac{1}{2} \) by substitution. Using L’Hôpital would wrongly give \( \frac{1}{1} = 1 \).
  • When simple algebra is quicker. \( \frac{x^2 – 9}{x – 3} \) factorises to \( x + 3 \), giving 6. Our existing post on evaluating 0/0 limits with algebra covers factorising and rationalising, which are often faster and are what some syllabuses expect.
  • When the derivatives get worse, not better. For \( \frac{\sqrt{x^2 + 1}}{x} \) as \( x \to \infty \), each application flips the fraction and you go round in circles. Dividing top and bottom by \( x \) gives the answer, 1, immediately.
  • When the derivative limit does not exist. More on this below: the rule is then silent, not wrong, and you need another method.

Setting it up

Name the top and bottom, check the form, then differentiate each one separately.

PieceExpressionValue at \( r = 0 \)Derivative with respect to \( r \)Derivative at \( r = 0 \)
Numerator \( f(r) \)\( 500\left[1 – (1 + r)^{-24}\right] \)0\( 500 \times 24(1 + r)^{-25} = 12000(1 + r)^{-25} \)12,000
Denominator \( g(r) \)\( r \)011
Form\( \frac{0}{0} \): indeterminate, rule appliesNew limit \( \frac{12000}{1} = 12000 \)

The derivative of \( -(1 + r)^{-24} \) uses the chain rule: bring down the \(-24\), reduce the power by one, and multiply by the derivative of \( 1 + r \), which is 1. The two minus signs make a plus.

Solving it

Worked example

Show that \( \lim_{r \to 0} 500 \cdot \frac{1 – (1 + r)^{-24}}{r} = 12000 \).

Step 1Check the form: top \( \to 500(1 – 1) = 0 \), bottom \( \to 0 \). It is \( \frac{0}{0} \).
Step 2Differentiate the top: \( \frac{d}{dr}\left(500 – 500(1 + r)^{-24}\right) = 12000(1 + r)^{-25} \).
Step 3Differentiate the bottom: \( \frac{d}{dr}(r) = 1 \).
Step 4New limit: \( \lim_{r \to 0} \frac{12000(1 + r)^{-25}}{1} = 12000 \times 1 = 12000 \).
Step 5Check numerically: at \( r = 0.0001 \), \( PV \approx 11985.01 \). Close to 12,000, and closing in. ✓

As the monthly rate tends to zero, the plan’s present value tends to exactly $12,000, the plain sum of the payments.

Worked example

Repeated use. Find \( \lim_{x \to 0} \frac{e^x – 1 – x}{x^2} \).

Step 1Form: top \( \to 1 – 1 – 0 = 0 \), bottom \( \to 0 \). It is \( \frac{0}{0} \).
Step 2Apply once: \( \lim_{x \to 0} \frac{e^x – 1}{2x} \).
Step 3Check again: top \( \to 0 \), bottom \( \to 0 \). Still \( \frac{0}{0} \), so the rule may be used again.
Step 4Apply twice: \( \lim_{x \to 0} \frac{e^x}{2} = \frac{1}{2} \). This is no longer indeterminate, so stop.
Step 5Check: at \( x = 0.0001 \) the ratio is about 0.50002. ✓

The limit is \( \frac12 \), which matches the \( x^2 \) coefficient in the Maclaurin series \( e^x = 1 + x + \frac{x^2}{2} + \dots \).

Worked example

An \( \frac{\infty}{\infty} \) limit. A cost grows like \( x^2 \) while a fund grows like \( e^{0.5x} \). Find \( \lim_{x \to \infty} \frac{x^2}{e^{0.5x}} \).

Step 1Form: both top and bottom \( \to \infty \). It is \( \frac{\infty}{\infty} \).
Step 2Apply once: \( \lim_{x \to \infty} \frac{2x}{0.5e^{0.5x}} \). Still \( \frac{\infty}{\infty} \).
Step 3Apply twice: \( \lim_{x \to \infty} \frac{2}{0.25e^{0.5x}} = \lim_{x \to \infty} \frac{8}{e^{0.5x}} \).
Step 4The top is fixed at 8 and the bottom \( \to \infty \), so the limit is 0.
Step 5Check: at \( x = 10, 20, 30 \) the ratio is about 0.674, 0.0182, 0.000275. ✓

The limit is 0: any exponential with a positive rate eventually outgrows any power of \( x \).

Mathematics Made Simple Practice Questions coverMake L’Hôpital’s rule automatic with the Practice Questions book: 1,565 questions, all fully worked.Get 1,565 questions · $9

What the answer tells us

The result confirms common sense: with no interest, money today and money later are worth the same, so 24 payments of $500 are worth $12,000. But the limit tells us more than the value at one point. It tells us the present-value formula has a removable gap at \( r = 0 \). If we define \( PV(0) = 12000 \), the curve becomes continuous. Figure 1 shows the curve heading smoothly into that point. Spreadsheet models of loans often add an “if rate = 0” line for exactly this reason.

Is the answer reasonable? Yes. Present value must be less than $12,000 for any positive rate, because each payment is discounted. The table of values, $9,457 at 2%, $10,622 at 1%, $11,281 at 0.5% and $11,985 at 0.01%, rises steadily towards 12,000 and never passes it.

Present value of the payment plan approaches $12,000 as r tends to 0 dollars
PV(r)Sum of payments, $12,000
85009000950010000105001100011500120001250000.5%1%1.5%2%2.5%3%Monthly interest rate, rPresent value ($)Limit: 12,000 at r = 0r = 1%: 10,622r = 2%: 9,457
Figure 1. Present value of 24 monthly payments of $500, \( PV(r) = 500\,[1 – (1 + r)^{-24}]/r \). The formula is undefined at \( r = 0 \), but L’Hôpital’s rule shows the curve tends to $12,000 there. (Illustrative figures.)

How sensitive is the value to the rate near zero? We can apply the same ideas to find the slope at \( r = 0 \). A careful expansion gives \( PV(r) \approx 12000 – 150000r \) for small \( r \). At \( r = 0.001 \) (0.1% a month) that predicts $11,850, and the exact value is $11,851.29. So each 0.1 percentage point of monthly interest knocks about $150 off the value of the plan. For the buyer, that is the real lesson. A “0% finance” deal is worth noticeably more than one at even a small rate, and the gap grows with the number of payments.

Finally, the rule can fail to give an answer. Take \( \lim_{x \to \infty} \frac{x + \sin x}{x} \). It is \( \frac{\infty}{\infty} \). L’Hôpital gives \( \lim_{x \to \infty} (1 + \cos x) \), which swings between 0 and 2 and has no limit. But the original limit does exist: divide by \( x \) to get \( 1 + \frac{\sin x}{x} \to 1 \). The rule says “if the derivative limit exists, the original equals it”. When the derivative limit does not exist, the rule tells you nothing, and you must use another method [1].

Common mistakeUsing the quotient rule instead of differentiating top and bottom separately. L’Hôpital’s rule uses \( \frac{f’}{g’} \), not \( \left(\frac{f}{g}\right)’ \). In the annuity case the quotient rule would produce a messy expression that is still \( \frac{0}{0} \).
Common mistakeApplying the rule when the limit is not indeterminate, or keeping going after it stops being indeterminate. In the second worked example, a third application to \( \frac{e^x}{2} \) would give \( \frac{e^x}{0} \), which is nonsense. Check the form at every step.
Exam tipL’Hôpital’s rule is part of the AP Calculus AB and BC course, and examiners expect you to state that the limit is of the form \( \frac{0}{0} \) or \( \frac{\infty}{\infty} \) before you use it [2]. Write, for example, “since \( \lim f = 0 \) and \( \lim g = 0 \), by L’Hôpital’s rule…”. It also appears at higher level in IB Mathematics: analysis and approaches [3]. Cambridge 9709 does not list it, so in those papers use algebraic methods.

For more on limits, continuity and differentiation in one place, the Mathematics Made Simple textbook builds the ideas step by step with graphs. The Mathematics Made Simple Practice Questions book gives you plenty of limit questions with full worked answers.

Mathematics Made Simple bundle coverMaster limits and differentiation with both Mathematics Made Simple books for $16.Both books · $16

Practice questions

For each limit, first check the form, then decide whether L’Hôpital’s rule is needed.

EasyQ1. Find \( \lim_{x \to 2} \frac{x^2 – 4}{x – 2} \) using L’Hôpital’s rule, then check by factorising. Show worked answer
Form: \( \frac{4 – 4}{2 – 2} = \frac{0}{0} \).
L’Hôpital: \( \lim_{x \to 2} \frac{2x}{1} = 4 \).
Check: \( \frac{(x – 2)(x + 2)}{x – 2} = x + 2 \to 4 \). ✓
EasyQ2. Find \( \lim_{x \to 0} \frac{\sin 3x}{x} \). Show worked answer
Form: \( \frac{0}{0} \).
L’Hôpital: \( \lim_{x \to 0} \frac{3\cos 3x}{1} = 3 \).
MediumQ3. Find \( \lim_{x \to 0} \frac{1 – \cos x}{x^2} \). Show worked answer
Form: \( \frac{0}{0} \).
Once: \( \lim_{x \to 0} \frac{\sin x}{2x} \), still \( \frac{0}{0} \).
Twice: \( \lim_{x \to 0} \frac{\cos x}{2} = \frac{1}{2} \).
MediumQ4. Find \( \lim_{x \to \infty} \frac{\ln x}{\sqrt{x}} \). Show worked answer
Form: \( \frac{\infty}{\infty} \).
L’Hôpital: \( \lim_{x \to \infty} \frac{1/x}{1/(2\sqrt{x})} = \lim_{x \to \infty} \frac{2\sqrt{x}}{x} = \lim_{x \to \infty} \frac{2}{\sqrt{x}} = 0 \).
So \( \sqrt{x} \) grows faster than \( \ln x \).
ExamQ5. Find \( \lim_{x \to 0} \frac{e^{2x} – 1 – 2x}{x \sin x} \). Justify each use of L’Hôpital’s rule. [5] Show worked answer
Top \( \to 0 \), bottom \( \to 0 \): form \( \frac{0}{0} \). [1]
Once: \( \frac{2e^{2x} – 2}{\sin x + x\cos x} \). [1] Top \( \to 0 \), bottom \( \to 0 \): still \( \frac{0}{0} \). [1]
Twice: \( \frac{4e^{2x}}{2\cos x – x\sin x} \). [1]
At \( x = 0 \): \( \frac{4}{2} = 2 \). [1]

Frequently asked questions

Can I use L’Hôpital’s rule for 0 × ∞ or ∞ − ∞?

Not directly. First rewrite the expression as a fraction. For example, \( x\ln x \) as \( x \to 0^+ \) is \( 0 \times (-\infty) \); write it as \( \frac{\ln x}{1/x} \), which is \( \frac{-\infty}{\infty} \), and then apply the rule to get 0.

What about limits like \( (1 + \tfrac{1}{n})^n \)?

That is the form \( 1^\infty \). Take logs to get \( n\ln(1 + \tfrac{1}{n}) \), rewrite it as \( \frac{\ln(1 + 1/n)}{1/n} \), which is \( \frac{0}{0} \), and use the rule. The log tends to 1, so the original limit is \( e \).

Is L’Hôpital’s rule the same as the algebra method for 0/0?

They answer the same question in different ways. Algebra removes the common factor that makes both parts zero. L’Hôpital compares the rates at which the parts reach zero. For polynomials and roots, algebra is often quicker; for exponentials, logs and trig, L’Hôpital usually is.

Can I use L’Hôpital’s rule to prove \( \lim_{x \to 0} \frac{\sin x}{x} = 1 \)?

In an exam answer it gives the right number. But as a proof it is circular, because the derivative of \( \sin x \) is itself found using that very limit. Textbooks prove it with a geometric squeeze argument instead.

References

  1. Strang, G. and Herman, E. (2016) Calculus Volume 1. Houston, TX: OpenStax. Available at: https://openstax.org/details/books/calculus-volume-1.
  2. College Board (2020) AP Calculus AB and AP Calculus BC Course and Exam Description. New York: College Board.
  3. International Baccalaureate Organization (2019) Mathematics: analysis and approaches guide (first assessment 2021). Cardiff: IBO.
  4. Sydsæter, K., Hammond, P., Strøm, A. and Carvajal, A. (2016) Essential Mathematics for Economic Analysis. 5th edn. Harlow: Pearson.
Mathematics Made Simple complete bundle cover
This topic has a full chapter in Mathematics Made Simple, with 1,565 fully worked practice questions in the bundle.Mathematics Made Simple Complete Bundle — Textbook + 1,565 Practice Questions
Get it for $16
E

The EconTutorials team writes clear, exam-focused lessons in economics and statistics for A-Level, IB, AP and university students, with more than 13 years of classroom teaching behind every guide and book in the Made Simple series.