Skip to content

L’Hôpital’s rule

L’Hôpital’s rule turns a limit of the form 0/0 or ∞/∞ into a limit of derivatives. The rule is one line; the marks are in checking that the form really is indeterminate before using it, in rewriting a product, difference or power so that it is, and in stopping as soon as the form is no longer indeterminate.

In this topic

Taught
Before Quiz 2
Questions
26
Total marks
66
Suggested time
107 min
Difficulty

Introductory to Capstone

Show the 5 hardest

Key results

L’Hôpital’s rule
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)}

When f(x)f(x) and g(x)g(x) both tend to 0, or both to ±∞\pm\infty, f′(x)f'(x) and g′(x)g'(x) exist with g′(x)≠0g'(x) \neq 0 for xx near aa, except possibly at aa itself, and the limit on the right exists or is ±∞\pm\infty; it holds too for one-sided limits and as x→±∞x \to \pm\infty.

Products
f(x) g(x)=f(x)1/g(x)=g(x)1/f(x)f(x)\,g(x) = \frac{f(x)}{1/g(x)} = \frac{g(x)}{1/f(x)}

Wherever f(x)≠0f(x) \neq 0 and g(x)≠0g(x) \neq 0; when f→0f \to 0 and g→±∞g \to \pm\infty, the first quotient is a 00\tfrac{0}{0} form and the second an ∞∞\tfrac{\infty}{\infty} form.

Variable powers
lim⁡x→af(x)g(x)=eL,L=lim⁡x→ag(x)log⁡f(x)\lim_{x \to a} f(x)^{g(x)} = e^{L}, \qquad L = \lim_{x \to a} g(x)\log f(x)

When f(x)>0f(x) > 0 for xx near aa and LL exists as a real number; this settles the forms 1∞1^{\infty}, 000^{0} and ∞0\infty^{0}.

Growth rates
lim⁡x→∞xpex=0,lim⁡x→∞log⁡xxp=0\lim_{x \to \infty}\frac{x^{p}}{e^{x}} = 0, \qquad \lim_{x \to \infty}\frac{\log x}{x^{p}} = 0

For any constant p>0p > 0.

Continuous compounding
lim⁡x→∞(1+ax)x=ea\lim_{x \to \infty}\Bigl(1 + \frac{a}{x}\Bigr)^{x} = e^{a}

For any constant aa.

Read the theoryUBC Math 100 §6 L’Hôpital’s rule and indeterminate formsCLP-1 §3.7 L’Hôpital’s rule and indeterminate forms

Worked example

Standard3 marks · 5 min

Evaluate the limit.

lim⁡x→∞(1+3x)x\lim_{x \to \infty} \left(1 + \frac{3}{x}\right)^{x}

Strategy

Powers with the variable in both base and exponent are handled by taking the logarithm, evaluating that limit as a quotient, and exponentiating at the end.

Working

  1. (1+3x)x=exlog⁡(1+3/x),xlog⁡ ⁣(1+3x)=log⁡(1+3/x)1/x\left(1 + \frac{3}{x}\right)^{x} = e^{x\log(1 + 3/x)}, \qquad x\log\!\left(1 + \frac{3}{x}\right) = \frac{\log(1 + 3/x)}{1/x}

    Write the power with base e, so only the exponent needs a limit; that exponent is ∞·0, rewritten as 0/0.

  2. lim⁡x→∞log⁡(1+3/x)1/x=l’Hlim⁡x→∞−3/x21+3/x−1/x2=lim⁡x→∞31+3/x=3\lim_{x \to \infty} \frac{\log(1 + 3/x)}{1/x} \overset{\text{l'H}}{=} \lim_{x \to \infty} \frac{\dfrac{-3/x^{2}}{1 + 3/x}}{-1/x^{2}} = \lim_{x \to \infty} \frac{3}{1 + 3/x} = 3

    The −1/x² factors cancel.

  3. (1+3x)x=exlog⁡(1+3/x)→e3≈20.09\left(1 + \frac{3}{x}\right)^{x} = e^{x\log(1 + 3/x)} \to e^{3} \approx 20.09

    exp is continuous, so the power tends to e raised to the exponent’s limit.

Answer

e3e^{3}

The answer is e cubed, about 20.09.

Check

At x = 100 the power is about 19.22 and at x = 1000 about 19.996, climbing toward e³ ≈ 20.086.

Where this goes wrong

Answering 1 because the base tends to 1. The exponent grows at the same time, and 1∞ is indeterminate; the competition is settled by the logarithm calculation.

On the paper

Write the form before each use of the rule, 0/00/0 or ∞/∞\infty/\infty, with lim⁡\lim on both sides. Turn 0⋅∞0 \cdot \infty, ∞−∞\infty - \infty and powers into a quotient first.

Leans on

Laws of logarithms, from Functions, graphs and inverses

Your turn

Standard3 marks · 5 min

A deposit of $2000 earns interest at 5 % per year, compounded nn times a year, so after 10 years the balance in dollars is B(n)B(n) below. Find the balance under continuous compounding, the limit of B(n)B(n) as n→∞n \to \infty.

B(n)=2000(1+0.05n)10nB(n) = 2000\left(1 + \frac{0.05}{n}\right)^{10n}

Give the answer in dollars.

Answer this question

Practice questions

5 of the 26, across every level. Open a solution to read the working, or answer the question yourself and it counts towards your progress.

  • Introductory1 mark · 2 min

    L’Hôpital’s rule may only be applied to a limit that is genuinely indeterminate. Which of the following limits is of the form 00\tfrac{0}{0} or ∞∞\tfrac{\infty}{\infty}?

    Answer this question
  • Introductory1 mark · 2 min

    Evaluate the limit.

    lim⁡x→1log⁡ ⁣(x2)x−1\lim_{x \to 1} \frac{\log\!\left(x^{2}\right)}{x - 1}
    Answer this question
  • Standard2 marks · 4 min

    Evaluate the limit.

    lim⁡x→01−cos⁡(3x)x2\lim_{x \to 0} \frac{1 - \cos(3x)}{x^{2}}
    Answer this question
  • Challenging4 marks · 6 min

    There is exactly one value of the constant cc for which the limit below exists. Find that cc, and enter the value of the limit.

    lim⁡x→0e2x−1+cxx2\lim_{x \to 0} \frac{e^{2x} - 1 + cx}{x^{2}}
    Answer this question
  • Capstone5 marks · 8 min

    Evaluate the limit.

    lim⁡x→0cos⁡(2x)−1+2x2x4\lim_{x \to 0} \frac{\cos(2x) - 1 + 2x^{2}}{x^{4}}
    Answer this question

Browse all 26 questions

  • Needs

    Limits

    Limit laws, the indeterminate form 0/0, one-sided and infinite limits, limits at infinity and asymptotes.

    30 questions

  • Needs

    The chain rule and logarithms

    Compositions, nested rules, the natural logarithm and logarithmic differentiation.

    30 questions