L'Hôpital's Rule

L’Hôpital’s rule is an important tool for computing limits. It uses derivatives to evaluate certain special forms of limit, and above all the 00\frac{0}{0} type and the ∞∞\frac{\infty}{\infty} type.

The Basic Theorem

Theorem1

Suppose the functions f(x)f(x) and g(x)g(x) are defined in some punctured neighbourhood of the point aa, and satisfy:

  1. lim⁡x→af(x)=lim⁡x→ag(x)=0\lim_{x \to a} f(x) = \lim_{x \to a} g(x) = 0, or lim⁡x→af(x)=lim⁡x→ag(x)=±∞\lim_{x \to a} f(x) = \lim_{x \to a} g(x) = \pm\infty
  2. f(x)f(x) and g(x)g(x) are differentiable in some punctured neighbourhood of the point aa, and g′(x)≠0g'(x) \neq 0
  3. lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f'(x)}{g'(x)} exists or equals ±∞\pm\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)}

The Cases Where It Applies

1. The 00\frac{0}{0} Type

Characteristic: the numerator and the denominator both tend to zero.

Example: lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x}

Solution:

  • The numerator and the denominator both tend to zero, so this is a 00\frac{0}{0} type.
  • (sin⁡x)′=cos⁡x(\sin x)' = \cos x and (x)′=1(x)' = 1.
  • lim⁡x→0sin⁡xx=lim⁡x→0cos⁡x1=1\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = 1

2. The ∞∞\frac{\infty}{\infty} Type

Characteristic: the numerator and the denominator both tend to infinity.

Example: lim⁡x→+∞x2ex\lim_{x \to +\infty} \frac{x^2}{e^x}

Solution:

  • The numerator and the denominator both tend to infinity, so this is a ∞∞\frac{\infty}{\infty} type.
  • (x2)′=2x(x^2)' = 2x and (ex)′=ex(e^x)' = e^x.
  • lim⁡x→+∞x2ex=lim⁡x→+∞2xex\lim_{x \to +\infty} \frac{x^2}{e^x} = \lim_{x \to +\infty} \frac{2x}{e^x}
  • Applying L’Hôpital’s rule again: lim⁡x→+∞2ex=0\lim_{x \to +\infty} \frac{2}{e^x} = 0

3. The 0⋅∞0 \cdot \infty Type

Characteristic: one factor tends to zero and the other tends to infinity.

Method: turn it into a 00\frac{0}{0} or a ∞∞\frac{\infty}{\infty} type.

Example: lim⁡x→0+xln⁡x\lim_{x \to 0^+} x \ln x

Solution:

  • Turn it into a ∞∞\frac{\infty}{\infty} type: lim⁡x→0+ln⁡x1x\lim_{x \to 0^+} \frac{\ln x}{\frac{1}{x}}
  • (ln⁡x)′=1x(\ln x)' = \frac{1}{x} and (1x)′=−1x2(\frac{1}{x})' = -\frac{1}{x^2}
  • lim⁡x→0+ln⁡x1x=lim⁡x→0+1x−1x2=lim⁡x→0+(−x)=0\lim_{x \to 0^+} \frac{\ln x}{\frac{1}{x}} = \lim_{x \to 0^+} \frac{\frac{1}{x}}{-\frac{1}{x^2}} = \lim_{x \to 0^+} (-x) = 0

4. The ∞−∞\infty - \infty Type

Characteristic: the difference of two infinities.

Method: combine the terms, and then apply the rule.

Example: lim⁡x→1(1ln⁡x−1x−1)\lim_{x \to 1} (\frac{1}{\ln x} - \frac{1}{x-1})

Solution:

  • Combine the fractions: lim⁡x→1x−1−ln⁡x(x−1)ln⁡x\lim_{x \to 1} \frac{x-1-\ln x}{(x-1)\ln x}
  • The numerator and the denominator both tend to zero, so L’Hôpital’s rule applies.
  • lim⁡x→11−1xln⁡x+(x−1)1x=lim⁡x→1x−1xln⁡x+x−1=00\lim_{x \to 1} \frac{1-\frac{1}{x}}{\ln x + (x-1)\frac{1}{x}} = \lim_{x \to 1} \frac{x-1}{x\ln x + x-1} = \frac{0}{0}
  • Applying L’Hôpital’s rule again: lim⁡x→11ln⁡x+1+1=12\lim_{x \to 1} \frac{1}{\ln x + 1 + 1} = \frac{1}{2}

5. The 000^0, ∞0\infty^0 and 1∞1^\infty Types

Characteristic: the indeterminate forms of a power with a variable exponent.

Method: take logarithms to turn the expression into one of the other types.

Example: lim⁡x→0+xx\lim_{x \to 0^+} x^x

Solution:

  • Put y=xxy = x^x, so ln⁡y=xln⁡x\ln y = x \ln x.
  • lim⁡x→0+ln⁡y=lim⁡x→0+xln⁡x=0\lim_{x \to 0^+} \ln y = \lim_{x \to 0^+} x \ln x = 0 (computed above).
  • Hence lim⁡x→0+xx=e0=1\lim_{x \to 0^+} x^x = e^0 = 1

Techniques for Applying the Rule

1. Applying L’Hôpital’s Rule Several Times

Note: the conditions have to be checked before each application.

Example: lim⁡x→0x−sin⁡xx3\lim_{x \to 0} \frac{x - \sin x}{x^3}

Solution:

  • The first application: lim⁡x→01−cos⁡x3x2=00\lim_{x \to 0} \frac{1 - \cos x}{3x^2} = \frac{0}{0}
  • The second application: lim⁡x→0sin⁡x6x=00\lim_{x \to 0} \frac{\sin x}{6x} = \frac{0}{0}
  • The third application: lim⁡x→0cos⁡x6=16\lim_{x \to 0} \frac{\cos x}{6} = \frac{1}{6}

2. Combining It with Other Methods

Example: lim⁡x→0sin⁡x−xx3\lim_{x \to 0} \frac{\sin x - x}{x^3}

Solution:

  • Use the Taylor expansion: sin⁡x=x−x36+o(x3)\sin x = x - \frac{x^3}{6} + o(x^3)
  • lim⁡x→0sin⁡x−xx3=lim⁡x→0−x36+o(x3)x3=−16\lim_{x \to 0} \frac{\sin x - x}{x^3} = \lim_{x \to 0} \frac{-\frac{x^3}{6} + o(x^3)}{x^3} = -\frac{1}{6}

3. Substitutions

Example: lim⁡x→+∞ln⁡xx\lim_{x \to +\infty} \frac{\ln x}{x}

Solution:

  • Put t=ln⁡xt = \ln x, so x=etx = e^t.
  • lim⁡x→+∞ln⁡xx=lim⁡t→+∞tet=0\lim_{x \to +\infty} \frac{\ln x}{x} = \lim_{t \to +\infty} \frac{t}{e^t} = 0

Common Mistakes and Points to Watch

1. Failing to Check the Conditions

Mistake: applying L’Hôpital’s rule without checking the conditions. Correct: every hypothesis has to be verified.

Example: lim⁡x→0x2x2+1=01=0\lim_{x \to 0} \frac{x^2}{x^2 + 1} = \frac{0}{1} = 0 (L’Hôpital’s rule is not needed here).

2. Applying It in a Loop

Mistake: applying L’Hôpital’s rule an unlimited number of times. Correct: if the limit still does not exist after several applications, you should switch to another method.

3. Errors in the Differentiation

Mistake: an error in computing the derivatives. Correct: compute the derivatives carefully, watching the signs and the order of the operations.

4. Misjudging the Type

Mistake: judging the type of the limit incorrectly. Correct: classify the type of the limit accurately, and then choose a suitable method of treatment.

The Limitations of L’Hôpital’s Rule

1. The Cases Where It Does Not Apply

  • The limit is not an indeterminate form.
  • The derivatives do not exist.
  • The limit of the ratio of the derivatives does not exist.

2. The Cases Where It Fails

  • The limit still does not exist after several applications.
  • A loop appears.

3. Choosing Another Method

  • Taylor expansion
  • Substitution by equivalent infinitesimals
  • A change of variables
  • The squeeze theorem

Exercises

Exercise 1

Use L’Hôpital’s rule to compute the limit lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x}.

L’Hôpital’s rule

Approach:

Check the conditions and then apply L’Hôpital’s rule.

Steps:

  1. Check the conditions: lim⁡x→0sin⁡x=0\lim_{x \to 0} \sin x = 0 and lim⁡x→0x=0\lim_{x \to 0} x = 0
  2. This is a 00\frac{0}{0} type
  3. (sin⁡x)′=cos⁡x(\sin x)' = \cos x and (x)′=1(x)' = 1
  4. lim⁡x→0sin⁡xx=lim⁡x→0cos⁡x1=1\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = 1

Answer: the limit is 11.

Exercise 2

Compute the limit lim⁡x→+∞x2ex\lim_{x \to +\infty} \frac{x^2}{e^x}.

L’Hôpital’s rule

Approach:

Apply L’Hôpital’s rule several times.

Steps:

  1. This is a ∞∞\frac{\infty}{\infty} type
  2. The first application: lim⁡x→+∞2xex\lim_{x \to +\infty} \frac{2x}{e^x}
  3. The second application: lim⁡x→+∞2ex=0\lim_{x \to +\infty} \frac{2}{e^x} = 0

Answer: the limit is 00.

Exercise 3

Compute the limit lim⁡x→0+xln⁡x\lim_{x \to 0^+} x \ln x.

L’Hôpital’s rule

Approach:

Turn it into a ∞∞\frac{\infty}{\infty} type.

Steps:

  1. Turn it into a ∞∞\frac{\infty}{\infty} type: lim⁡x→0+ln⁡x1/x\lim_{x \to 0^+} \frac{\ln x}{1/x}
  2. Differentiate: (lnx)′=1x(ln x)' = \frac{1}{x} and (1/x)′=−1x2(1/x)' = -\frac{1}{x^2}
  3. lim⁡x→0+1x−1x2=lim⁡x→0+(−x)=0\lim_{x \to 0^+} \frac{\frac{1}{x}}{-\frac{1}{x^2}} = \lim_{x \to 0^+} (-x) = 0

Answer: the limit is 00.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∞\inftyMathematical symbolInfinityIndicates that a quantity can grow without bound
aaPointpointThe point at which the limit is taken
f,gf, gFunctionsfunctionsThe numerator and the denominator of the quotient
00NumberzeroThe value both functions tend to in the 00\frac{0}{0} type

Found an issue with this content?

Tell us what could be improved.