impera Open Impera

IB Diploma Mathematics AA · Calculus

Limits and L'Hopital's rule (HL)

1Indeterminate forms

Some limits cannot be found by substituting, because they give an indeterminate form:

$$\frac{0}{0} \qquad \text{or} \qquad \frac{\infty}{\infty}$$

These do not mean the limit fails. They mean you need another method.

The graph of sin x / x: it approaches 1 near x = 0

For example, $\frac{\sin x}{x}$ gives $\frac{0}{0}$ at $x = 0$, but its graph clearly approaches 1.

Check yourself

Which of these is an indeterminate form?

  • 0/5

  • 5/0

  • 1/∞

  • 0/0

Show the answer

0/0

0/5 = 0, and 1/∞ tends to 0; only 0/0 is undecided.

2L'Hôpital's rule

If $\frac{f(a)}{g(a)}$ is $\frac{0}{0}$ or $\frac{\infty}{\infty}$, then:

$$\lim_{x \to a}\frac{f(x)}{g(x)} = \lim_{x \to a}\frac{f'(x)}{g'(x)}$$

Differentiate the top and the bottom separately. This is not the quotient rule.

Worked example

The famous limit

  1. $\lim_{x \to 0}\frac{\sin x}{x}$ gives $\frac{0}{0}$.
  2. Differentiate: $\lim_{x \to 0}\frac{\cos x}{1} = 1$.
Worked example

Infinity over infinity

  1. $\lim_{x \to \infty}\frac{x}{e^x}$ gives $\frac{\infty}{\infty}$.
  2. Differentiate: $\lim_{x \to \infty}\frac{1}{e^x} = 0$.
  3. The exponential grows faster than any power of $x$.
Check yourself

In L'Hôpital's rule, what do you do to the top and bottom?

  • Differentiate each one separately

  • Apply the quotient rule to the fraction

  • Integrate each one separately

  • Multiply them together, then differentiate

Show the answer

Differentiate each one separately

The rule uses f′/g′, not (f/g)′.

3Using the rule more than once

If the new limit is still indeterminate, apply the rule again. Check the form each time.

Worked example

Twice

  1. $\lim_{x \to 0}\frac{e^x - 1 - x}{x^2}$ gives $\frac{0}{0}$.
  2. Differentiate: $\lim_{x \to 0}\frac{e^x - 1}{2x}$, still $\frac{0}{0}$.
  3. Again: $\lim_{x \to 0}\frac{e^x}{2} = \frac{1}{2}$.

Always check before applying. $\lim_{x \to 1}\frac{x^2 + 1}{x + 1}$ is simply $\frac{2}{2} = 1$. Using the rule here would give the wrong answer, $\frac{2x}{1} \to 2$.

Check yourself

Why must you check the form before using L'Hôpital's rule?

  • Because a GDC cannot evaluate the limit afterwards

  • Because it takes far too long to apply to most limits

  • It only works for 0/0 or ∞/∞, and can mislead otherwise

  • Because the derivatives might be zero at the point

Show the answer

It only works for 0/0 or ∞/∞, and can mislead otherwise

For a determinate limit, just substitute.

4Other forms

A product like $0 \times \infty$ can be rewritten as a fraction first.

Worked example

x ln x as x → 0⁺

  1. $x\ln x$ gives $0 \times (-\infty)$.
  2. Rewrite as $\frac{\ln x}{1/x}$, which gives $\frac{-\infty}{\infty}$.
  3. Differentiate: $\frac{1/x}{-1/x^2} = -x \to 0$.
  4. So $\lim_{x \to 0^+} x\ln x = 0$.

Maclaurin series give a second method: replace each function with its series and simplify. For example, $\frac{\sin x - x}{x^3} = \frac{-\frac{x^3}{6} + \ldots}{x^3} \to -\frac{1}{6}$.

Check yourself

How should you handle a limit of the form 0 × ∞?

  • Rewrite it as a fraction, then use L'Hôpital's rule

  • Write down 0, because zero times anything is zero

  • Apply the rule to the product directly, as it is

  • Write down ∞, because infinity always dominates

Show the answer

Rewrite it as a fraction, then use L'Hôpital's rule

Turn it into 0/0 or ∞/∞ first.

5Standard limits worth knowing

Some limits appear repeatedly:

  • $\lim_{x \to 0} \frac{\sin x}{x} = 1$ (with $x$ in radians).
  • $\lim_{x \to 0} \frac{e^x - 1}{x} = 1$.
  • $\lim_{x \to \infty} \frac{\ln x}{x} = 0$: logarithms grow more slowly than any positive power.
  • $\lim_{x \to \infty} \frac{x^n}{e^x} = 0$: exponentials grow faster than any power.

Each can be confirmed with L'Hôpital's rule.

Check yourself

What is $\lim_{x \to 0} \frac{\sin x}{x}$?

  • 0

  • Infinity

  • It does not exist

  • 1

Show the answer

1

A standard limit.

6Checking the form first

L'Hôpital's rule only applies to $\frac{0}{0}$ or $\frac{\infty}{\infty}$ forms. Applying it otherwise gives wrong answers.

Worked example

A limit that is not indeterminate

  1. $\lim_{x \to 0} \frac{x + 1}{x + 2}$.
  2. Substituting gives $\frac{1}{2}$, which is not indeterminate.
  3. So the limit is $\frac{1}{2}$.
  4. Wrongly applying L'Hôpital would give $\frac{1}{1} = 1$.
Worked example

$\lim_{x \to 0} \frac{1 - \cos x}{x^2}$

  1. Form: $\frac{0}{0}$.
  2. Differentiate top and bottom: $\frac{\sin x}{2x}$, still $\frac{0}{0}$.
  3. Again: $\frac{\cos x}{2} \to \frac{1}{2}$.
Check yourself

When can L'Hôpital's rule be used?

  • Only when the value of the limit is equal to 1

  • Only for limits of polynomials as $x \to \infty$

  • For $\frac{0}{0}$ or $\frac{\infty}{\infty}$ forms

  • For every limit, whatever form it takes at the point

Show the answer

For $\frac{0}{0}$ or $\frac{\infty}{\infty}$ forms

Check the form first.

7Going deeper: six limits worked, including when the rule must not be used

L'Hôpital's rule applies only to the forms $\frac{0}{0}$ and $\frac{\infty}{\infty}$. State the form before you use it; this earns a mark and prevents the commonest error.

1. A standard $\frac{0}{0}$ form: $\lim_{x \to 0} \frac{e^{2x} - 1}{\sin 3x}$.

  1. Form: $\frac{0}{0}$.
  2. Differentiate top and bottom separately: $\frac{2e^{2x}}{3\cos 3x}$.
  3. At $x = 0$: $\frac{2}{3}$.

2. Using the rule twice: $\lim_{x \to 0} \frac{1 - \cos x}{x^2}$.

  1. Form $\frac{0}{0}$. First use: $\frac{\sin x}{2x}$, still $\frac{0}{0}$.
  2. Second use: $\frac{\cos x}{2}$, which tends to $\frac{1}{2}$.

3. The form $\frac{\infty}{\infty}$: $\lim_{x \to \infty} \frac{x^2}{e^x}$.

  1. First use: $\frac{2x}{e^x}$. Second use: $\frac{2}{e^x}$, which tends to 0.
  2. Exponentials grow faster than any power of $x$.

4. The form $0 \times \infty$: $\lim_{x \to 0^+} x\ln x$.

  1. Rewrite as a quotient: $\frac{\ln x}{1/x}$, form $\frac{-\infty}{\infty}$.
  2. Differentiate: $\frac{1/x}{-1/x^2} = -x$, which tends to 0.

5. When the rule must not be used: $\lim_{x \to 0} \frac{x + 1}{x + 2}$.

  1. Substituting gives $\frac{1}{2}$. This is not an indeterminate form.
  2. Applying the rule anyway gives $\frac{1}{1} = 1$, which is wrong.

6. Using a Maclaurin series instead: $\lim_{x \to 0} \frac{\sin x - x}{x^3}$.

  1. $\sin x = x - \frac{x^3}{6} + \dots$, so the numerator is $-\frac{x^3}{6} + \dots$
  2. The limit is $-\frac{1}{6}$. The rule would need three applications.

Other indeterminate forms

  • $\infty - \infty$: combine into a single fraction first.
  • $1^\infty$, $0^0$, $\infty^0$: take the natural logarithm, find that limit, then exponentiate. For example $\lim_{x \to \infty}\left(1 + \frac{1}{x}\right)^x = e$.

Limits at infinity for rational functions: divide through by the highest power of $x$. $\lim_{x \to \infty}\frac{3x^2 + 1}{5x^2 - x} = \frac{3}{5}$.

Common mistakes

  • Differentiating the fraction with the quotient rule. The rule differentiates the numerator and the denominator separately.
  • Not rechecking the form before a second application.
  • Writing "$= \frac{0}{0}$" as if it were a value. Write "this is of the form $\frac{0}{0}$".
Check yourself

What is the limit of (sin 5x) ÷ (2x) as x tends to 0?

  • 2.5

  • 0.4

  • 0

  • 5

Show the answer

2.5

The form is 0/0; differentiating gives 5cos 5x ÷ 2, which is 5/2 at x = 0.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera