L’HOSPITAL’S RULE – HOW TO – With Examples

L’Hospital’s Rule really just tells us one thing that makes evaluating certain limits a lot easier. Limits that meet 3 specific requirements can be made much simpler using L’Hospital’s Rule. First let me introduce L’Hospital’s Rule, then we can go over the 3 conditions that you need to check before you can apply it to any given limit.

What does L’Hospital’s Rule tell us?

To find a limit of a function that is a fraction, we can take the derivative of the top of the fraction and the derivative of the bottom of the fraction and make a new fraction out of the derivatives.

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

Notice that we don’t use the quotient rule here. The reason for this is that we are taking the limit of this fraction and not taking the derivative of this fraction. The limit is the key piece that allows us to avoid the quotient rule and take the derivative of each piece of the fraction separately to create another limit that is equal to the original.

The hope is that the fraction resulting from the derivatives will be easier to evaluate than the original limit was.

How do we know when to use L’Hospital’s Rule?

Before we can apply L’Hospital’s rule to any given limit, we need to confirm that these three conditions are met:

  1. f(x) and g(x) are differentiable on some open interval that includes \mathbf{x=a}. This will basically just mean that both the numerator and denominator are differentiable at x=a.
  2. \mathbf{g'(x) \neq 0} near \mathbf{x=a}. Note that it doesn’t matter if g'(x)=0 AT x=a as long as you can pick some interval (as small as is necessary) around x=a where g'(x) \neq 0 for all x‘s in that interval besides x=a. You likely won’t need to worry about running into a function that you can’t pick a small enough interval around x=a to make this work.
  3. As x \rightarrow a, f(x) AND g(x) \mathbf{\rightarrow 0} — OR — f(x) AND g(x) \mathbf{\rightarrow \pm \infty}

That’s really all there is to it. Let’s jump into some practice problems and I will show you how to apply L’Hospitals Rule.

Example 1

Evaluate the following limit using L’Hospital’s Rule or explain why L’Hospital’s Rule cannot be used to evaluate this limit.

$$\lim_{x \to \infty} \frac{e^x}{-x^2+1000x}$$

If we tried to use limit properties to evaluate this limit, we would see that both the top and the bottom of this fraction go to either positive or negative infinity as x goes to infinity.

$$\lim_{x \to \infty} \frac{e^x}{-x^2+1000x} \rightarrow \frac{\infty}{- \infty}$$

So L’Hospital’s Rule might help…

Now we just need to confirm that the other two conditions are met.

f(x)=e^x is an exponential function and is differentiable everywhere, for any value of x. And g(x)=-x^2 + 1000x is also differentiable everywhere since it’s a polynomial. Since it’s differentiable everywhere, it is also differentiable for any infinitely large x value.

g'(x) = -2x+1000 will go to -\infty as x approaches \infty. g'(x) \neq 0 for any infinitely large x value since it just continues to go to - \infty.

So we know that this limit meets all 3 requirements needed to apply L’Hospital’s Rule.

Now we know we can apply L’Hospital’s Rule

Taking the derivative of the top and bottom of the fraction individually tells us that:

$$\lim_{x \to \infty} \frac{e^x}{-x^2+1000x} = \lim_{x \to \infty} \frac{e^x}{-2x+1000}$$

Now we can evaluate this new limit instead. But if we do this, we will notice that we will still end up in the same situation that we had before.

$$\lim_{x \to \infty} \frac{e^x}{-2x+1000} \rightarrow \frac{\infty}{- \infty}$$

But what if it didn’t really help make the limit easier?

Which puts us in a perfect situation to consider using L’Hospital’s Rule to evaluate this new limit as well. By the same logic as before, we can confirm that the first two conditions are met as well as x gets infinitely large. Since all 3 required conditions are met we can go ahead and apply L’Hospital’s Rule a second time.

$$\lim_{x \to \infty} \frac{e^x}{-2x+1000} = \lim_{x \to \infty} \frac{e^x}{-2}$$

Now we can simply use the basic limit properties to evaluate this last limit.

Now we have a much easier limit

$$\lim_{x \to \infty} \frac{e^x}{-2} = \ – \frac{1}{2} \lim_{x \to \infty} e^x = \ – \infty$$

So therefore,

$$\lim_{x \to \infty} \frac{e^x}{-x^2+1000x} = \ – \infty$$

A quick note on applying L’Hospital’s Rule twice

This is an interesting problem because it shows that you can apply L’Hospital’s Rule multiple times on the same problem. You just need to make sure that each time you apply it, the resulting limit still meets all 3 required conditions before applying it to the new limit. There is no limit to the number of times you can continue applying L’Hospital’s Rule over and over in the same problem as long as you are making sure that the limit you are applying it to meets all 3 conditions every time you apply it.

Example 2

Evaluate the following limit using L’Hospital’s Rule or explain why L’Hospital’s Rule cannot be used to evaluate this limit.

$$\lim_{x \to 3} \frac{x-3}{27-x^3}$$

Again, if we think about what value the top and bottom of this fraction will go towards as x approaches 3, we would see that

$$\lim_{x \to 3} \frac{x-3}{27-x^3} \rightarrow \frac{0}{0}$$

Since we get another indeterminate form, which is $\frac{0}{0}$, we should consider using L’Hospital’s Rule to make this limit easier to evaluate.

So L’Hospital’s Rule might help…

First, we need to make sure that the other two conditions are met as well.

We can check that g'(x) = -3x^2 doesn’t equal zero anywhere near x=3. This is because g'(x) = -3x^2 is continuous everywhere and the only place where g'(x)=-3x^2=0 is when x=0. As a result of these two things, we can pick some interval around x=3 that doesn’t include x=0 to satisfy condition #2.

Also, both f(x) and g(x) are polynomials and are therefore differentiable everywhere. So we know they will both be differentiable on any interval around x=3.

Now we know we can apply L’Hospital’s Rule

Doing so by taking the derivative of the top and bottom of our fraction separately tells us that

$$\lim_{x \to 3} \frac{x-3}{27-x^3} = \lim_{x \to 3} \frac{1}{-3x^2}$$

And doing this gives us an easier limit to deal with. Now we can simply apply the limit properties to evaluate. Applying the limit properties tells us that:

$$\lim_{x \to 3} \frac{1}{-3x^2} = \frac{1}{-3 \Big( \lim_{x \to 3}x \Big) ^2}= \frac{1}{-3(3)^2} = \ – \frac{1}{27}$$

So therefore we know that:

$$\lim_{x \to 3} \frac{x-3}{27-x^3} = \ – \frac{1}{27}$$

Example 3

Evaluate the following limit using L’Hospital’s Rule or explain why L’Hospital’s Rule cannot be used to evaluate this limit.

$$\lim_{x \to 0} \frac{|x|}{x^5+2x}$$

If we think about what value the numerator and denominator of this fraction will approach as x approaches 0 from both sides, we would see:

$$\lim_{x \to 0} \frac{|x|}{x^5+2x} \rightarrow \frac{0}{0}$$

Since we get an indeterminate form, which is $\frac{0}{0}$, we should consider using L’Hospital’s Rule to make this limit easier to evaluate.

So L’Hospital’s Rule might help…

First, we need to make sure that the other two conditions are met as well.

Upon checking condition #1 however, we run into a problem. Condition #1 requires that f(x) and g(x) are both differentiable on some interval containing x=0, including x=0.

But f(x) = |x| is not differentiable at x=0. Therefore, we actually can’t apply L’Hospital’s Rule to evaluate this limit. I won’t go into the details here since we won’t be using L’Hospital’s Rule. But if you want to try evaluating this limit, I’d recommend considering both one-sided limits on their own and compare them to start. You can see a similar application here.

Example 4

\mathbf{\lim\limits_{x \to \infty} \frac{ln(x)}{\sqrt{x}}} | Solution

Leave a Reply

Your email address will not be published. Required fields are marked *