L'Hôpital's Rule (AA HL)

When a limit gives the indeterminate form \(\tfrac00\) or \(\tfrac{\infty}{\infty}\), l'Hôpital's rule lets you differentiate the numerator and denominator separately and try the limit again. It's fast once you spot the form, but it's also easy to misapply. This page covers the rule, when it does and doesn't apply, and the mistakes that lose marks. It's part of the broader Series & Limits topic.

23 questions on this sub-topic.

Practise l'Hôpital's rule → Try exam-style questions

The rule

Covered under IB syllabus reference AHL5.13: evaluating limits of the form \(\lim_{x\to a}\tfrac{f(x)}{g(x)}\) using l'Hôpital's rule or a Maclaurin series, for the indeterminate forms \(\tfrac00\) and \(\tfrac{\infty}{\infty}\), including repeated use where the first application still gives an indeterminate form.

L'Hôpital's rule

\(\displaystyle\lim_{x\to a}\dfrac{f(x)}{g(x)}=\lim_{x\to a}\dfrac{f'(x)}{g'(x)}\)

Valid only when direct substitution gives \(\tfrac00\) or \(\tfrac{\infty}{\infty}\). Not in the formula booklet.

Want the full topic overview and GDC guidance for this area? See Series & Limits.

Worked examples

1
Easy
No calc
[3 marks]

Evaluate \(\displaystyle\lim_{x \to 0} \frac{\sin 3x}{x}\).

Worked solution

Form \(\dfrac{0}{0}\): apply L'Hôpital. M1
\(\displaystyle\lim_{x \to 0} \frac{3\cos 3x}{1}\) M1
\(= 3\cos 0 = 3\) A1

M1 Identify 0/0 M1 Differentiate A1 Value 3
2
Hard
No calc
[4 marks]

Evaluate \(\displaystyle\lim_{x \to 0^+} x\ln x\).

Worked solution

Rewrite as \(\dfrac{\ln x}{1/x}\), which is \(\dfrac{-\infty}{\infty}\) as \(x \to 0^+\). M1
Apply L'Hôpital: \(\displaystyle\lim_{x \to 0^+} \frac{1/x}{-1/x^2}\) M1
\(= \displaystyle\lim_{x \to 0^+} \frac{x^2/x}{-1} = \lim_{x \to 0^+}(-x)\) M1
\(\displaystyle\lim_{x \to 0^+} x \ln x = 0\) A1

M1 Rewrite M1 Differentiate M1 Simplify A1 Limit
3
Medium
No calc
[4 marks]

Evaluate the following limits using l'H\(\hat{\text{o}}\)pital's rule.

(a)  \(\displaystyle\lim_{x \to 0} \frac{\sin x}{x}\)

(b)  \(\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x}\)

Worked solution

(a)   Form \(\tfrac{0}{0}\), apply l'H\(\hat{\text{o}}\)pital: \(\dfrac{d}{dx}\sin x = \cos x\), \(\dfrac{d}{dx}x = 1\) M1
\(\displaystyle\lim_{x\to 0}\frac{\cos x}{1} = 1\) A1

(b)   Form \(\tfrac{0}{0}\): \(\displaystyle\lim_{x\to 0}\frac{e^x}{1} = \frac{e^0}{1}\) M1
\( = 1\) A1

M1 Apply rule A1 Limit M1 Apply rule A1 Limit
4
Hard
No calc
[5 marks]

Evaluate \(\displaystyle\lim_{x \to 0^+} x^x\).

Worked solution

Let \(L = \displaystyle\lim_{x \to 0^+} x^x\). Take natural logs: \(\ln L = \displaystyle\lim_{x \to 0^+} x \ln x\). M1
Rewrite: \(\displaystyle\lim_{x \to 0^+} \frac{\ln x}{1/x}\) - form \(\dfrac{-\infty}{\infty}\). Apply L'Hôpital. M1
\(\displaystyle\lim_{x \to 0^+} \frac{1/x}{-1/x^2} = \lim_{x \to 0^+}(-x)\) M1
\(= 0\) A1
So \(\ln L = 0\)
\(L = e^0 = 1\), so \(\displaystyle\lim_{x \to 0^+} x^x = 1\). A1

M1 Take log M1 Rewrite as quotient M1 Apply L'Hopital's rule A1 Ln L = 0 A1 \(L=1\)

Common mistakes

Ready to practise properly?

23 l'Hôpital's rule questions, marked instantly like the real exam.

Quick answers

When can you use l'Hôpital's rule?

Only when direct substitution gives an indeterminate form of \(\tfrac00\) or \(\tfrac{\infty}{\infty}\). You must check and state the form before differentiating - the rule does not apply otherwise.

What do you do if l'Hôpital's rule still gives an indeterminate form?

Differentiate the numerator and denominator again and re-check the form. The rule can be applied repeatedly as long as each new limit is still \(\tfrac00\) or \(\tfrac{\infty}{\infty}\).

← Back to Analysis & Approaches HL topics