Last modified on 24 March 2012, at 01:16

Calculus/L'Hôpital's Rule

← Differentiation/Basics of Differentiation/Exercises Calculus Extrema and Points of Inflection →
L'Hôpital's Rule


L'Hopital's RuleEdit

Occasionally, one comes across a limit which results in \frac{0}{0} or \frac{\infty}{\infty}, which are called indeterminate limits. However, it is still possible to solve these in many cases due to L'Hôpital's rule. This rule also is vital in explaining how a number of other limits can be derived.

Definition: Indeterminate Limit
If \frac{f(c)}{g(c)} exists, where \lim_{x \to c}f(c)=\lim_{x \to c}g(c)=0 or \lim_{x \to c}f(c)=\lim_{x \to c}g(c)=\infty, the limit \lim_{x \to c}\frac{f(x)}{g(x)} is said to be indeterminate.

All of the following expressions are indeterminate forms.

 \frac{0}{0}, \frac{\pm \infin}{\pm \infin}, \infty - \infty, 0 \cdot \infin, 0^0, \infty^0, 1^\infin \

These expressions are called indeterminate because you cannot determine their exact value in the indeterminate form. Depending on the situation, each indeterminate form could evaluate to a variety of values.

TheoremEdit

If  \lim_{x \to c} \frac{f(x)}{g(x)} \ is indeterminate of type \frac{0}{0} or \frac{\pm \infty}{\pm \infty},

then  \lim_{x \to c} \frac{f(x)}{g(x)} = \lim_{x \to c} \frac{f'(x)}{g'(x)}

In other words, if the limit of the function is indeterminate, the limit equals the derivative of the top over the derivative of the bottom. If that is indeterminate, L'Hôpital's rule can be used again until the limit isn't \frac{0}{0} or \frac{\infty}{\infty}.

Note:

 x \ can approach a finite value c,  \infin or  -\infin .


Proof of the 0/0 caseEdit

Suppose that for real functions f and g , \lim_{x\to c}f(x)=0 and \lim_{x\to c}g(x)=0 and that \lim_{x\to c}\frac{f'(x)}{g'(x)} exists. Thus f'(x) and g'(x) exist in an interval (c-\delta,c+\delta) around c , but maybe not at c itself. This implies that both f and g are differentiable (and thus continuous) everywhere in (c-\delta,c+\delta) except perhaps at c. Thus, for any x in (c-\delta,c+\delta) , in any interval [c,x] or [x,c] , f and g are continuous and differentiable, with the possible exception of c . Define
F(x)=\left\{\begin{matrix}f(x),&\mbox{if }x\ne c\\ \lim_{x\to c}f(x),&\mbox{if }x=c\end{matrix}\right.       and       G(x)=\left\{\begin{matrix}g(x),&\mbox{if }x\ne c\\ \lim_{x\to c}g(x),&\mbox{if }x=c\end{matrix}\right..
Note that \lim_{x\to c}\frac{f(x)}{g(x)}=\lim_{x\to c}\frac{F(x)}{G(x)} , \lim_{x\to c}\frac{f'(x)}{g'(x)}=\lim_{x\to c}\frac{F'(x)}{G'(x)} and that F(x) and G(x) are continuous in any interval [c,x] or [x,c] and differentiable in any interval (c,x) or (x,c) when x is in (c-\delta,c+\delta). Cauchy's Mean Value Theorem tells us that \frac{F(x)-F(c)}{G(x)-G(c)}=\frac{F'(\xi)}{G'(\xi)} for some \xi in (c,x) (if x>c ) or (x,c) (if x<c ). Since F(c)=G(c)=0 , we have \frac{F(x)}{G(x)}=\frac{F'(\xi)}{G'(\xi)} for x and \xi in (c-\delta,c+\delta). Note that \lim_{x\to c}\frac{F'(\xi)}{G'(\xi)} is the same limit as \lim_{x\to c}\frac{F'(x)}{G'(x)} since both x and \xi are being squeezed to c . So taking the limit as x\to c of the last equation gives \lim_{x\to c}\frac{F(x)}{G(x)}=\lim_{x\to c}\frac{F'(x)}{G'(x)} which is equivalent to \lim_{x\to c}\frac{f(x)}{g(x)}=\lim_{x\to c}\frac{f'(x)}{g'(x)}.

ExamplesEdit

Example 1Edit

Find \lim_{x \to 0}\frac{\sin x}{x}

Since plugging in 0 for x results in \frac{0}{0}, use L'Hôpital's rule to take the derivative of the top and bottom, giving:

\lim_{x \to 0}\frac{\cos x}{1}

Plugging in 0 for x gives 1 here.

Example 2Edit

Find \lim_{x \to 0}x \cot x

First, you need to rewrite the function into an indeterminate limit fraction:

\lim_{x \to 0}\frac{x}{\tan x}

Now it's indeterminate. Take the derivative of the top and bottom:

\lim_{x \to 0}\frac{1}{\sec^{2} x}

Plugging in 0 for x once again gives one.

Example 3Edit

Find \lim_{x \to \infty}\frac{4x+22}{5x+9}

This time, plugging in \infty for x gives you \frac{\infty}{\infty}. You know the drill:

\lim_{x \to \infty}\frac{4}{5}

This time, though, there is no x term left! \frac{4}{5} is the answer.

Example 4Edit

Sometimes, forms exist where it is not intuitively obvious how to solve them. One might think the value  1^\infin = 1 . However, as was noted in the definition of an indeterminate form, this isn't possible to evaluate using the rules learned before now, and we need to use L'Hôpital's rule to solve.

Find  \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^ x

Plugging the value of x into the limit yields

 \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^ x = 1^\infin (indeterminate form).

Let  k = \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^ x = 1^\infin

 \ln k \, =  \lim_{x \to \infin} \ln \left( 1 + \frac{1}{x} \right) ^ x
=  \lim_{x \to \infin} x \ln \left( 1 + \frac{1}{x} \right)
=  \lim_{x \to \infin} \frac{\ln \left( 1 + \frac{1}{x} \right)}{\frac{1}{x}} = \frac{\ln 1}{\frac{1}{x}} = \frac{0}{0} (indeterminate form)

We now apply L'Hôpital's rule by taking the derivative of the top and bottom with respect to x.

 \frac{d}{dx} \left[ \ln \left( 1 + \frac{1}{x} \right) \right] = \frac{x}{x+1} \cdot \frac{-1}{x^2} = \frac{-1}{x(x+1)}
 \frac{d}{dx} \left( \frac{1}{x} \right) = \frac{-1}{x^2}

Returning to the expression above

 \ln k \ =  \lim_{x \to \infin} \frac{-(-x^2)}{x(x+1)}
=  \lim_{x \to \infin} \frac{x}{x+1} = \frac{\infin}{\infin} (indeterminate form)

We apply L'Hôpital's rule once again

 \ln k = \lim_{x \to \infin} \frac{1}{1} = 1

Therefore

 k = e \

And

 \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^x = e \ne 1

Careful: this does not prove that  1^\infin = e \ because

 \lim_{x \to \infin} \left( 1 + \frac{2}{x} \right) ^x = 1^\infin \ne e

ExercisesEdit

Evaluate the following limits using L'Hôpital's rule:

1. \lim_{x \to 0}\frac{x+\tan x}{\sin x}

2

2. \lim_{x \to \pi}\frac{x-\pi}{\sin x}

-1

3. \lim_{x \to 0}\frac{\sin 3x}{\sin 4x}

\frac{3}{4}

4. \lim_{x \to \infty}\frac{x^5}{e^{5x}}

0

5. \lim_{x \to 0}\frac{\tan x - x}{\sin x - x}

-2

Solutions

← Differentiation/Basics of Differentiation/Exercises Calculus Extrema and Points of Inflection →
L'Hôpital's Rule