James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 5: Calculus › L’Hôpital’s rule

L’Hôpital’s rule

Evaluating limits of the indeterminate forms 00 and ∞∞ by differentiating the numerator and denominator, including repeated use, rewriting other forms, and finding unknown constants.

AHL 5.13HL onlyPaper 1Paper 2≈ 50 min to work through
Before you start: limits and all the differentiation rules. See Limits and first principles and Further derivatives.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Recognise the indeterminate forms 00 and ∞∞AHL 5.13
  • Apply l’Hôpital’s rule, repeatedly if necessaryAHL 5.13
  • Check the form before every applicationAHL 5.13
  • Rewrite 0×∞ as a quotientAHL 5.13
  • Use a limit condition to find an unknown constantAHL 5.13

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Near x=a, if f(a)=g(a)=0, both functions look like their tangent lines: f(x)≈f′(a)(x−a) and g(x)≈g′(a)(x−a). Dividing, the (x−a) cancels, so f(x)g(x)≈f′(a)g′(a). That is l’Hôpital’s rule: when a quotient gives 00, compare how fast the top and bottom are approaching 0.

2.1 Indeterminate forms

Substituting into sinxx at x=0 gives 00. This does not mean the limit is 0, 1 or undefined; it means it could be anything, and you need more information. Forms like 00 and ∞∞ are called indeterminate. Forms like 30 or 05 are not: 05=0, and 30 gives no finite limit.

2.2 The rule

L’Hôpital’s rule In formula booklet

If limx→af(x)=limx→ag(x)=0 (or both are ±∞), then

limx→af(x)g(x)=limx→af′(x)g′(x)

provided the second limit exists. Differentiate the top and the bottom separately: this is not the quotient rule. a may also be ±∞.

Worked example 1Paper 1
Find limx→0sin3xx.
Form 00. Apply the rule: limx→03cos3x1
=3
Worked example 2Paper 1
Find limx→1lnxx−1.
Form 00. limx→11/x1=1

2.3 Using the rule more than once

If the new quotient is still 00, apply the rule again. Check the form every time.

Worked example 3Paper 1
Find limx→0ex−1−xx2.
Form 00: limx→0ex−12x
Still 00: limx→0ex2=12
Now the form is 12: stop.
Worked example 4Paper 1
Find limx→01−cosxx2.
00: limx→0sinx2x
00: limx→0cosx2=12
Worked example 5Paper 1
Find limx→∞x2ex.
Form ∞∞: limx→∞2xex, still ∞∞
limx→∞2ex=0
Exponentials beat powers: xnex→0 for any n.

2.4 The trap: check the form first

When the rule gives the wrong answer

limx→0x+1x+2 is simply 12 by substitution. Applying l’Hôpital wrongly gives 11=1. The rule only applies to 00 and ∞∞. Write "form 00" each time you use it; markschemes often require this.

2.5 Other forms

A product of the form 0×∞ can be rewritten as a quotient by moving one factor into the denominator as its reciprocal.

Worked example 6Paper 1
Find limx→0+xlnx.
Form 0×(−∞). Rewrite: lnx1/x, form −∞∞.
Put the log on top: its derivative is simpler.
limx→0+1/x−1/x2=limx→0+(−x)=0

2.6 Finding unknown constants

If a limit of the form f(x)x2 as x→0 is finite, then the numerator must tend to 0 (otherwise the quotient would blow up). This gives an equation for the unknown.

Worked example 7Paper 1
Find a such that limx→0a+cos2xx2 exists, and find the limit.
The denominator →0, so the numerator must too: a+1=0⇒a=−1.
Otherwise the form is non-zero0 and there is no finite limit.
00: limx→0−2sin2x2x, 00 again: limx→0−4cos2x2=−2
Worked example 8 (faded)Paper 1
limx→0ekx−1sinx=3. Find k.
00: limx→0kekxcosx=k, so k= 3  ← you work this out

Limits can also be found with Maclaurin series: for example 1−cosxx2=x2/2−x4/24+…x2→12. See Maclaurin series.

On your TI-Nspire Calculator tricks →

Check a limit numerically with a table of values close to a on both sides, or with the limit( template. On Paper 1 you must show the rule, the form and each derivative.

3Explore it

The navy curve is f(x)g(x), which is undefined at x=a (open circle). The dashed red curve is f′(x)g′(x): it passes through the hole, so it gives the limit. Move x closer to a.

4Common mistakes & exam tips

Common mistakes

  • Using the quotient rule instead of differentiating top and bottom separately.
  • Applying the rule when the form is not 00 or ∞∞.
  • Not checking the form again before a second application.
  • Forgetting the chain rule, e.g. ddxsin3x=cos3x.
  • In "find a" questions, applying the rule before making the numerator tend to 0.

Exam tips

  • Write "form 00" (or "∞∞") every time you apply the rule.
  • Simplify between applications if you can; it often removes a step.
  • Exact answers are expected on Paper 1: values like 12, −2, ln2.
  • If the rule loops (the quotient keeps getting more complicated), try algebra or a Maclaurin series instead.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find limx→0tanxx.
sec2x1→1
FluencyP2
Find limx→2x3−8x−2.
3x2→12
FluencyP3
Find limx→0e2x−13x.
2e2x3→23
FluencyP4
Find limx→∞lnxx.
1/x1→0
Problem solvingP5
Find limx→0x−sinxx3.
Three applications: 1−cosx3x2→sinx6x→cosx6=16
Problem solvingP6
Find limx→0arctanxx.
1/(1+x2)1→1

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[4 marks]

Use l’Hôpital’s rule to find limx→0e2x−1−2xx2.

form 00; limx→02e2x−22xM1A1
form 00; limx→04e2x2A1
=2A1
Question 2Paper 1[5 marks]

Find limx→π21−sinxcos2x.

form 00; lim−cosx−2cosxsinxM1A1
simplifying to 12sinx or applying the rule againM1
12sinπ2A1
=12A1
Question 3Paper 1[6 marks]

Consider L=limx→0a+cos2xx2, where a∈ℝ.

  • (a)Given that L exists, find the value of a.[2]
  • (b)Hence find the value of L.[4]
(a)
numerator must tend to 0: a+1=0R1
a=−1A1
(b)
form 00; −2sin2x2xM1A1
form 00; −4cos2x2A1
L=−2A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2021 · TZ1 · Paper 1Q8Applying l’Hôpital’s rule★★
May 2024 · TZ2 · Paper 1Q8Applying l’Hôpital’s rule★★
May 2025 · TZ3 · Paper 1Q9Determining the value of a limit★★★
Nov 2023 · TZ1 · Paper 1Q9Using a given limit to find an unknown constant★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake