Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Analysis and Approaches
  3. ›5 Calculus
  4. ›5.13 Limits and L'Hôpital's rule

IB Mathematics: Analysis and Approaches · Topic 5 · Calculus

5.13 Limits and L'Hôpital's rule

Evaluate limits that give indeterminate forms by using L’Hôpital’s rule, and decide when the rule may be applied.

  • 4 min read
  • 6 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/6A limit describes the value a function approaches
  1. 1A limit describes the value a function approaches
  2. 2Direct substitution sometimes gives an indeterminate form
  3. 3L’Hôpital’s rule replaces a quotient with a quotient of derivatives
  4. 4A short routine makes the rule reliable to apply
  5. 5A second application is allowed if the form persists
  6. 6Using the rule on a determinate form gives wrong answers
  7. Check your recall
  8. Practice: 10 questions
1

Part 1 of 6: A limit describes the value a function approaches

Consider f(x)=x2−1x−1f(x)=\frac{x^2-1}{x-1}f(x)=x−1x2−1​. It is undefined at x=1x=1x=1, because the denominator is zero. For values of xxx close to 1, however, the outputs sit close to 2.

This idea is called a limit. We write lim⁡x→af(x)=L\lim_{x\to a}f(x)=Llimx→a​f(x)=L when f(x)f(x)f(x) gets as close as we like to LLL as xxx approaches aaa. The function need not be defined at aaa itself.

Often you can find a limit by direct substitution of x=ax=ax=a. In the example above, factorising gives x2−1x−1=x+1\frac{x^2-1}{x-1}=x+1x−1x2−1​=x+1 for x≠1x\neq1x=1. The limit as x→1x\to1x→1 is therefore 2.

Key term

limit

A limit is the value a function approaches as its input approaches a specified value.

Part 1 done

2

Part 2 of 6: Direct substitution sometimes gives an indeterminate form

Factorising worked there, but many limits resist it. Consider lim⁡x→0sin⁡xx\lim_{x\to0}\frac{\sin x}{x}limx→0​xsinx​. Direct substitution of x=0x=0x=0 gives 00\frac{0}{0}00​, which has no meaning on its own.

A result like this is an indeterminate form. It does not settle the limit, because the answer depends on how fast the top and bottom approach zero. The limit may be a number, infinite, or absent.

Figure 1. The curve approaches a single height as x gets close to 0, even though there is no output at x = 0.

A second indeterminate form is ∞∞\frac{\infty}{\infty}∞∞​. It appears when the numerator and denominator both grow without bound, for example as x→∞x\to\inftyx→∞.

Common mistake

A form of 00\frac{0}{0}00​ does not mean the limit equals 0, or that it does not exist. It means more work is needed.

Key term

indeterminate form

An indeterminate form such as 00\frac{0}{0}00​ does not determine the limit without further analysis.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify which of these results is an indeterminate form.
Show answer and explanation

Answer: B · Worked explanation

A result of 00\frac{0}{0}00​ does not determine the limit, so further analysis is needed. The value 04\frac{0}{4}40​ equals 0 and 72\frac{7}{2}27​ is a definite number. A non-zero number over zero, such as 30\frac{3}{0}03​, is not an indeterminate form, because the quotient grows without bound or has no limit.
3

Part 3 of 6: L’Hôpital’s rule replaces a quotient with a quotient of derivatives

Now we need a method that handles these forms. It relies on the derivative of each function, which tells us how quickly that function changes.

Suppose f(x)→0f(x)\to0f(x)→0 and g(x)→0g(x)\to0g(x)→0 as x→ax\to ax→a. L’Hôpital’s rule then states that lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x\to a}\frac{f(x)}{g(x)}=\lim_{x\to a}\frac{f'(x)}{g'(x)}limx→a​g(x)f(x)​=limx→a​g′(x)f′(x)​, provided the right-hand limit exists or is infinite.

The same result holds when both functions grow without bound. It also holds as x→∞x\to\inftyx→∞. Both functions must have derivatives near aaa.

Common mistake

Differentiate the numerator and denominator separately. Do not apply the quotient rule to fg\frac{f}{g}gf​.

Key terms · tap one for its definition

derivative

The derivative gives a function’s instantaneous rate of change with respect to its input.

L’Hôpital’s rule

L’Hôpital’s rule states that for a quotient giving 00\frac{0}{0}00​ or ∞∞\frac{\infty}{\infty}∞∞​, lim⁡fg=lim⁡f′g′\lim\frac{f}{g}=\lim\frac{f'}{g'}limgf​=limg′f′​ when the right-hand limit exists.

Part 3 done

4

Part 4 of 6: A short routine makes the rule reliable to apply

Now that the rule is stated, use it in a fixed order. Following the same steps each time prevents most errors. Writing each stage clearly also helps you spot slips. Skipping the first check is the most common error.

  • Substitute the limiting value and confirm the form is 00\frac{0}{0}00​ or ∞∞\frac{\infty}{\infty}∞∞​.
  • Differentiate the numerator and the denominator separately.
  • Form the new quotient and evaluate its limit.

Exam tip

Write the form you found before each application. This shows that the rule is allowed and earns method marks.

Worked example

Evaluating a limit with the rule

Determine lim⁡x→0e3x−1sin⁡2x\lim_{x\to0}\frac{e^{3x}-1}{\sin2x}limx→0​sin2xe3x−1​.
  1. 1
    Substitute x=0x=0x=0: the numerator is e0−1=0e^0-1=0e0−1=0 and the denominator is sin⁡0=0\sin0=0sin0=0, so the form is 00\frac{0}{0}00​.
  2. 2
    Differentiate the numerator: ddx(e3x−1)=3e3x\frac{d}{dx}\left(e^{3x}-1\right)=3e^{3x}dxd​(e3x−1)=3e3x.
  3. 3
    Differentiate the denominator: ddx(sin⁡2x)=2cos⁡2x\frac{d}{dx}\left(\sin2x\right)=2\cos2xdxd​(sin2x)=2cos2x.
  4. 4
    Form the new limit: lim⁡x→03e3x2cos⁡2x\lim_{x\to0}\frac{3e^{3x}}{2\cos2x}limx→0​2cos2x3e3x​.
  5. 5
    Substitute x=0x=0x=0: 3e02cos⁡0=32\frac{3e^0}{2\cos0}=\frac{3}{2}2cos03e0​=23​.

Answer: The limit is 32\frac{3}{2}23​.

Part 4 done

Quick check

One question on the part you just read

Easy

State what L’Hôpital’s rule says about lim⁡x→af(x)g(x)\lim_{x\to a}\frac{f(x)}{g(x)}limx→a​g(x)f(x)​ when substitution gives 00\frac{0}{0}00​.
Show answer and explanation

Answer: C · Worked explanation

The rule replaces the quotient of the functions with the quotient of their derivatives, provided the new limit exists. The expression with (g(x))2(g(x))^2(g(x))2 in the denominator is the derivative of the quotient, which comes from the quotient rule and is not what the rule uses. The numerator tending to 0 does not make the limit 0.
5

Part 5 of 6: A second application is allowed if the form persists

The new quotient sometimes gives 00\frac{0}{0}00​ again. When that happens, apply the rule a second time. Check the form at each stage, since only an indeterminate form permits another application. Stop as soon as substitution gives a definite value, because a further application would give a wrong answer.

Some limits as x→∞x\to\inftyx→∞ also need repeated steps. A power of xxx divided by e2xe^{2x}e2x is a typical case. Each application lowers the power by one, while the exponential remains. Writing each new quotient on its own line keeps the working tidy.

Worked example

Applying the rule twice

Determine lim⁡x→01−cos⁡xx2\lim_{x\to0}\frac{1-\cos x}{x^2}limx→0​x21−cosx​.
  1. 1
    Substitute x=0x=0x=0: 1−cos⁡0=01-\cos0=01−cos0=0 and 02=00^2=002=0, so the form is 00\frac{0}{0}00​.
  2. 2
    Apply the rule: the new limit is lim⁡x→0sin⁡x2x\lim_{x\to0}\frac{\sin x}{2x}limx→0​2xsinx​.
  3. 3
    Substitute x=0x=0x=0: this gives 00\frac{0}{0}00​ again, so apply the rule a second time.
  4. 4
    The new limit is lim⁡x→0cos⁡x2\lim_{x\to0}\frac{\cos x}{2}limx→0​2cosx​.
  5. 5
    Substitute x=0x=0x=0: cos⁡02=12\frac{\cos0}{2}=\frac{1}{2}2cos0​=21​.

Answer: The limit is 12\frac{1}{2}21​.

Part 5 done

6

Part 6 of 6: Using the rule on a determinate form gives wrong answers

The rule is not a tool for every quotient. It applies only after substitution gives 00\frac{0}{0}00​ or ∞∞\frac{\infty}{\infty}∞∞​. The table shows how to decide. This check takes seconds and prevents the most common error in this topic.

Deciding whether to use the rule

Form after substitutionUse the rule?Reason
00\frac{0}{0}00​YesIndeterminate form
∞∞\frac{\infty}{\infty}∞∞​YesIndeterminate form
30\frac{3}{0}03​NoNon-zero number over zero
12\frac{1}{2}21​NoThe limit is the value itself
Form after substitution
00\frac{0}{0}00​
Use the rule?
Yes
Reason
Indeterminate form
Form after substitution
∞∞\frac{\infty}{\infty}∞∞​
Use the rule?
Yes
Reason
Indeterminate form
Form after substitution
30\frac{3}{0}03​
Use the rule?
No
Reason
Non-zero number over zero
Form after substitution
12\frac{1}{2}21​
Use the rule?
No
Reason
The limit is the value itself

Consider lim⁡x→0x+1x+2\lim_{x\to0}\frac{x+1}{x+2}limx→0​x+2x+1​. Substitution gives 12\frac{1}{2}21​, so the limit is 12\frac{1}{2}21​. Applying the rule anyway would give 11=1\frac{1}{1}=111​=1, which is wrong.

When the form is a non-zero number over zero, the quotient grows without bound or has no limit. The rule does not settle either case.

Go deeperWhy the rule works, and when it gives no answer

Near x=ax=ax=a, a function with f(a)=0f(a)=0f(a)=0 behaves like f′(a)(x−a)f'(a)(x-a)f′(a)(x−a). The same holds for ggg. Dividing, the factor (x−a)(x-a)(x−a) cancels and leaves f′(a)g′(a)\frac{f'(a)}{g'(a)}g′(a)f′(a)​. This is the idea behind the rule.

The rule can fail to give an answer even when a limit exists. For lim⁡x→∞x+sin⁡xx\lim_{x\to\infty}\frac{x+\sin x}{x}limx→∞​xx+sinx​ the form is ∞∞\frac{\infty}{\infty}∞∞​, but the derivatives give 1+cos⁡x1+\cos x1+cosx, which has no limit. The original limit is still 1, because x+sin⁡xx=1+sin⁡xx\frac{x+\sin x}{x}=1+\frac{\sin x}{x}xx+sinx​=1+xsinx​ and sin⁡x\sin xsinx stays between -1 and 1 while xxx grows.

Note read

Check your recall[14 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.State[2 marks]

    State the two indeterminate forms to which L’Hôpital’s rule is applied in this topic.

    Show mark schemeHide mark scheme

    Model answer

    The forms are 00\frac{0}{0}00​ and ∞∞\frac{\infty}{\infty}∞∞​.

    • 1 mark for stating 00\frac{0}{0}00​
    • 1 mark for stating ∞∞\frac{\infty}{\infty}∞∞​
  2. 2.Explain[2 marks]

    Explain why lim⁡x→0sin⁡4xx\lim_{x\to0}\frac{\sin4x}{x}limx→0​xsin4x​ cannot be found by direct substitution.

    Show mark schemeHide mark scheme

    Model answer

    Substituting x=0x=0x=0 gives 00\frac{0}{0}00​. This is an indeterminate form, so it does not determine the limit without further analysis.

    • 1 mark for stating that substitution gives 00\frac{0}{0}00​
    • 1 mark for stating that an indeterminate form does not determine the limit
  3. 3.Calculate[3 marks]

    Calculate lim⁡x→∞x2ex\lim_{x\to\infty}\frac{x^2}{e^x}limx→∞​exx2​.

    Show mark schemeHide mark scheme

    Model answer

    Substitution gives ∞∞\frac{\infty}{\infty}∞∞​, so apply the rule: lim⁡2xex\lim\frac{2x}{e^x}limex2x​. This is ∞∞\frac{\infty}{\infty}∞∞​ again, so apply it again: lim⁡2ex=0\lim\frac{2}{e^x}=0limex2​=0.

    • 1 mark for identifying the form ∞∞\frac{\infty}{\infty}∞∞​ and differentiating to obtain 2xex\frac{2x}{e^x}ex2x​
    • 1 mark for applying the rule a second time to obtain 2ex\frac{2}{e^x}ex2​
    • 1 mark for concluding that the limit is 0
  4. 4.Determine[2 marks]

    Determine whether L’Hôpital’s rule can be applied directly to lim⁡x→2x2+1x+3\lim_{x\to2}\frac{x^2+1}{x+3}limx→2​x+3x2+1​. Justify your answer.

    Show mark schemeHide mark scheme

    Model answer

    Substitution gives 55=1\frac{5}{5}=155​=1, which is a definite value. The form is not indeterminate, so the rule is not needed and the limit is 1.

    • 1 mark for stating that substitution gives 55=1\frac{5}{5}=155​=1
    • 1 mark for concluding that the rule does not apply because the form is not indeterminate
  5. 5.Identify[2 marks]

    Identify the correct way to differentiate when applying L’Hôpital’s rule to f(x)g(x)\frac{f(x)}{g(x)}g(x)f(x)​, and state what is then evaluated.

    Show mark schemeHide mark scheme

    Model answer

    Differentiate f(x)f(x)f(x) and g(x)g(x)g(x) separately, not with the quotient rule. Then evaluate the limit of f′(x)g′(x)\frac{f'(x)}{g'(x)}g′(x)f′(x)​.

    • 1 mark for stating that the numerator and denominator are differentiated separately
    • 1 mark for stating that the limit of f′(x)g′(x)\frac{f'(x)}{g'(x)}g′(x)f′(x)​ is evaluated
  6. 6.Deduce[3 marks]

    Deduce lim⁡x→0ex−1−xx2\lim_{x\to0}\frac{e^x-1-x}{x^2}limx→0​x2ex−1−x​.

    Show mark schemeHide mark scheme

    Model answer

    Substitution gives 00\frac{0}{0}00​. The rule gives ex−12x\frac{e^x-1}{2x}2xex−1​, which is 00\frac{0}{0}00​ again. A second application gives ex2\frac{e^x}{2}2ex​, so the limit is 12\frac{1}{2}21​.

    • 1 mark for identifying 00\frac{0}{0}00​ and applying the rule to obtain ex−12x\frac{e^x-1}{2x}2xex−1​
    • 1 mark for recognising 00\frac{0}{0}00​ again and applying the rule a second time
    • 1 mark for obtaining 12\frac{1}{2}21​

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·Calculate[1 mark]

Calculate lim⁡x→3x2−9x−3\lim_{x\to3}\frac{x^2-9}{x-3}limx→3​x−3x2−9​.
Show answer and explanation

Answer: C · Worked explanation

Substitution gives 00\frac{0}{0}00​. Factorising gives (x−3)(x+3)x−3=x+3\frac{(x-3)(x+3)}{x-3}=x+3x−3(x−3)(x+3)​=x+3, which tends to 6. The rule gives the same value: 2x1=6\frac{2x}{1}=612x​=6 at x=3x=3x=3. The answer 0 comes from treating 00\frac{0}{0}00​ as zero, which is wrong.
4.

Medium·Calculate[1 mark]

Calculate lim⁡x→0e5x−1x\lim_{x\to0}\frac{e^{5x}-1}{x}limx→0​xe5x−1​.
Show answer and explanation

Answer: B · Worked explanation

Substitution gives 00\frac{0}{0}00​. The numerator differentiates to 5e5x5e^{5x}5e5x and the denominator to 1, so the limit is 5e0=55e^0=55e0=5. The value 1 comes from forgetting the factor of 5 that the chain rule produces when differentiating e5xe^{5x}e5x.
5.

Medium·Calculate[1 mark]

Calculate lim⁡x→∞ln⁡xx\lim_{x\to\infty}\frac{\ln x}{x}limx→∞​xlnx​.
Show answer and explanation

Answer: C · Worked explanation

Both parts grow without bound, so the form is ∞∞\frac{\infty}{\infty}∞∞​. The derivatives give 1/x1=1x\frac{1/x}{1}=\frac{1}{x}11/x​=x1​, which tends to 0 as x→∞x\to\inftyx→∞. The value 1 comes from treating the quotient as xx\frac{x}{x}xx​, but ln⁡x\ln xlnx grows far more slowly than xxx.
6.

Medium·Identify[1 mark]

Identify the limit to which L’Hôpital’s rule can be applied directly.
Show answer and explanation

Answer: D · Worked explanation

Only 1−cos⁡xx\frac{1-\cos x}{x}x1−cosx​ gives 00\frac{0}{0}00​ at x=0x=0x=0. The quotient cos⁡xx\frac{\cos x}{x}xcosx​ gives 10\frac{1}{0}01​, which is a non-zero number over zero. The other two give the definite values 22=1\frac{2}{2}=122​=1 and 21=2\frac{2}{1}=212​=2, so the rule is not needed.
7.

Medium·Calculate[2 marks]

Calculate lim⁡x→01−cos⁡2xx2\lim_{x\to0}\frac{1-\cos2x}{x^2}limx→0​x21−cos2x​.
Show answer and explanation

Answer: D · Worked explanation

The form is 00\frac{0}{0}00​. One application gives 2sin⁡2x2x=sin⁡2xx\frac{2\sin2x}{2x}=\frac{\sin2x}{x}2x2sin2x​=xsin2x​, which is 00\frac{0}{0}00​ again. A second gives 2cos⁡2x1\frac{2\cos2x}{1}12cos2x​, which tends to 2. The value 12\frac{1}{2}21​ is the limit of 1−cos⁡xx2\frac{1-\cos x}{x^2}x21−cosx​, which has no factor of 2 inside the cosine.
8.

Hard·Determine[2 marks]

A student writes lim⁡x→0x+1x+2=lim⁡x→011=1\lim_{x\to0}\frac{x+1}{x+2}=\lim_{x\to0}\frac{1}{1}=1limx→0​x+2x+1​=limx→0​11​=1. Determine the correct limit and the error.
Show answer and explanation

Answer: B · Worked explanation

Substitution gives 12\frac{1}{2}21​, a definite value, so the form is not indeterminate and the rule must not be used. Applying it anyway gave 1, which is wrong. The numerator does not vanish at x=0x=0x=0, because 0+1=10+1=10+1=1, so the limit is not 0.
9.

Hard·Calculate[2 marks]

Calculate lim⁡x→0x−sin⁡xx3\lim_{x\to0}\frac{x-\sin x}{x^3}limx→0​x3x−sinx​.
Show answer and explanation

Answer: C · Worked explanation

The form is 00\frac{0}{0}00​. One application gives 1−cos⁡x3x2\frac{1-\cos x}{3x^2}3x21−cosx​, a second gives sin⁡x6x\frac{\sin x}{6x}6xsinx​, and a third gives cos⁡x6\frac{\cos x}{6}6cosx​, which tends to 16\frac{1}{6}61​. The value 12\frac{1}{2}21​ is the limit of 1−cos⁡xx2\frac{1-\cos x}{x^2}x21−cosx​, reached by stopping early and ignoring the factor of 3.
10.

Hard[2 marks]

Consider lim⁡x→∞x+sin⁡xx\lim_{x\to\infty}\frac{x+\sin x}{x}limx→∞​xx+sinx​. Which statement is correct?
Show answer and explanation

Answer: A · Worked explanation

Write the quotient as 1+sin⁡xx1+\frac{\sin x}{x}1+xsinx​. Since sin⁡x\sin xsinx stays between -1 and 1 while xxx grows, the second term tends to 0, so the limit is 1. The quotient of derivatives, 1+cos⁡x1+\cos x1+cosx, has no limit, which means the rule gives no information. It does not mean the original limit fails to exist.

Keep going

Next topic5.14 Implicit differentiation and related ratesPrevious topic5.12 First principles and continuity

More in Topic 5 · Calculus

  1. 5.9KinematicsNotes · 10 questions
  2. 5.10Indefinite integrals and substitutionNotes · 10 questions
  3. 5.11Definite integrals and areasNotes · 10 questions
  4. 5.12First principles and continuityNotes · 9 questions· HL only
  5. 5.13Limits and L'Hôpital's ruleNotes · 10 questions· HL only
  6. 5.14Implicit differentiation and related ratesNotes · 10 questions· HL only
  7. 5.15Derivatives of further functionsNotes · 10 questions· HL only
  8. 5.16Integration by substitution and partsNotes · 10 questions· HL only
  9. 5.17Volumes of revolutionNotes · 10 questions· HL only

All IB Mathematics: Analysis and Approaches topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/6 read

  1. 1A limit describes the value a function approaches
  2. 2Direct substitution sometimes gives an indeterminate form
  3. 3L’Hôpital’s rule replaces a quotient with a quotient of derivatives
  4. 4A short routine makes the rule reliable to apply
  5. 5A second application is allowed if the form persists
  6. 6Using the rule on a determinate form gives wrong answers
  7. Check your recall
  8. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

A limit where the function is undefined

y-10-8-6-4-20246810-0.4-0.200.20.40.60.811.2x
  • sin x / x
  • Limit is 1