5.13 Limits and l'Hôpital's rule

5.13 Limits and l'Hôpital's rule

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • 00\dfrac{0}{0} and ∞∞\dfrac{\infty}{\infty} are indeterminate forms; they tell you nothing about the limit. Also lim⁡θ→0sin⁡θθ=1\lim_{\theta\to0}\dfrac{\sin\theta}{\theta}=1.
  • l'Hôpital's rule: lim⁡fg=lim⁡f′g′\lim\dfrac{f}{g}=\lim\dfrac{f'}{g'}, for these forms only. Differentiate top and bottom separately.
  • Re-check the form before every repeated application, and stop once it is no longer indeterminate.
  • Rewrite products such as xln⁡xx\ln x as quotients first.
  • Maclaurin series give an alternative method and handle unknown constants neatly.
−10−8−6−4−2246810−0.4−0.20.20.40.60.811.2xylimit = 1y = sin x / x
Undefined at x = 0, but the curve approaches 1 from both sides.

Indeterminate forms

Substituting can give 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}. These say nothing about the limit, which could be any number or could diverge.

If substituting x=ax=a into f(x)g(x)\dfrac{f(x)}{g(x)} gives 00\dfrac{0}{0} or ∞∞\dfrac{\infty}{\infty}, it is an indeterminate form. You need a method to find the limit.

The key standard result is lim⁡θ→0sin⁡θθ=1\lim_{\theta\to0}\dfrac{\sin\theta}{\theta}=1 (radians). Forms like 0×∞0\times\infty, such as xln⁡xx\ln x as x→0+x\to0^{+}, must first be rewritten as a quotient: xln⁡x=ln⁡x1/xx\ln x=\dfrac{\ln x}{1/x}.

−10−8−6−4−2246810−0.4−0.20.20.40.60.811.2xylimit = 1y = sin x / x
y = sin x / x is undefined at 0, yet its limit there is 1.

What is lim⁡x→0sin⁡3xx\lim_{x\to0}\dfrac{\sin3x}{x}?

l'Hôpital's rule

For a 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} limit, differentiate the numerator and denominator separately, then take the limit again.

If lim⁡x→af(x)g(x)\lim_{x\to a}\dfrac{f(x)}{g(x)} has the form 00\dfrac{0}{0} or ∞∞\dfrac{\infty}{\infty}, then

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)}

provided the right-hand limit exists. This is l'Hôpital's rule. It also holds for x→∞x\to\infty.

  • lim⁡f(x)g(x)\lim\dfrac{f(x)}{g(x)}lim⁡f′(x)g′(x)\lim\dfrac{f'(x)}{g'(x)}

Worked example

Find lim⁡x→0e3x−1sin⁡2x\lim_{x\to0}\dfrac{e^{3x}-1}{\sin2x}.

Which limit can l'Hôpital's rule be used on directly?

Repeated use of the rule

Apply the rule again. Check the form each time, and stop as soon as it is no longer indeterminate.

If f′(x)g′(x)\dfrac{f'(x)}{g'(x)} is still indeterminate, use repeated application. After each step, check whether the quotient is still 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, and stop as soon as it is not. Then substitute.

In an exam, write '00\frac{0}{0}' next to every quotient before you differentiate. It earns the reasoning mark.

  1. 1

    x−sin⁡xx3\frac{x-\sin x}{x^{3}}

    00\frac{0}{0}: differentiate

  2. 2

    1−cos⁡x3x2\frac{1-\cos x}{3x^{2}}

    00\frac{0}{0}: differentiate

  3. 3

    sin⁡x6x\frac{\sin x}{6x}

    00\frac{0}{0}: differentiate

  4. 4

    cos⁡x6→16\frac{\cos x}{6}\to\frac{1}{6}

    not indeterminate: stop

Limit of (x − sin x) / x³ as x → 0.

How many times is l'Hôpital's rule applied in the flow above?

Limits as x tends to infinity

For ∞∞\frac{\infty}{\infty} forms, exponentials beat powers and powers beat logarithms. Where degrees are equal, the leading terms decide.

The rule compares rates of growth:

  • lim⁡x→∞x2ex=lim⁡2xex=lim⁡2ex=0\lim_{x\to\infty}\dfrac{x^{2}}{e^{x}}=\lim\dfrac{2x}{e^{x}}=\lim\dfrac{2}{e^{x}}=0: exponentials beat powers.
  • lim⁡x→∞ln⁡xx=lim⁡1/x1=0\lim_{x\to\infty}\dfrac{\ln x}{x}=\lim\dfrac{1/x}{1}=0: powers beat logarithms.
  • lim⁡x→∞5x2−3x2x2+ln⁡x=52\lim_{x\to\infty}\dfrac{5x^{2}-3x}{2x^{2}+\ln x}=\dfrac{5}{2}: the leading terms decide.

Also lim⁡n→∞(1+rn)n=er\lim_{n\to\infty}\left(1+\frac{r}{n}\right)^{n}=e^{r} (continuous compounding): take logarithms first.

0.511.522.533.54102030405060xyy = eˣy = x²
eˣ stays above x² and pulls away, so x²/eˣ → 0.

What is lim⁡x→∞ln⁡xx2\lim_{x\to\infty}\dfrac{\ln x}{x^{2}}?

Using Maclaurin series

Replace each function by its series, and the limit becomes algebra. This is useful when an unknown constant is involved.

Replacing functions by their Maclaurin series turns a limit into algebra. Since sin⁡x=x−x36+⋯\sin x=x-\dfrac{x^{3}}{6}+\cdots,

x−sin⁡xx3=16−x2120+⋯→16.\frac{x-\sin x}{x^{3}}=\frac{1}{6}-\frac{x^{2}}{120}+\cdots\to\frac{1}{6}.

Expand to one power beyond the power in the denominator, so you can see the limiting term.

  • sin⁡x\sin xx−x36+⋯x-\dfrac{x^{3}}{6}+\cdots
  • cos⁡x\cos x1−x22+⋯1-\dfrac{x^{2}}{2}+\cdots
  • eaxe^{ax}1+ax+a2x22+⋯1+ax+\dfrac{a^{2}x^{2}}{2}+\cdots

Worked example

Find aa so that lim⁡x→0eax−1−2xx2\lim_{x\to0}\dfrac{e^{ax}-1-2x}{x^{2}} is finite, and find the limit.

Using cos⁡x=1−x22+⋯\cos x=1-\dfrac{x^{2}}{2}+\cdots, what is lim⁡x→01−cos⁡xx2\lim_{x\to0}\dfrac{1-\cos x}{x^{2}}?

Try an exam question

Use l'Hôpital's rule to find lim⁡x→0x−sin⁡xx3\lim_{x\to0}\dfrac{x-\sin x}{x^{3}}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find lim⁡x→0f(x)g(x)\lim_{x \to 0}\dfrac{f(x)}{g(x)}.

1 mark, marked against the mark scheme

Revision notes