We have already talked about the indeterminate forms of the type 00. We have studied the rational functions and performed algebraic manipulations to get rid of indetermination.
However, there are functions that are not rational but still have an indeterminate form of the type 00.
For example, consider the function f(x)=xex−1. We want to analyze the behavior of this function near x=0. In other words, we want to calculate limx→0xex−1. Since limx→0ex−1=0 and limx→0x=0, we have an indeterminate form of the type 00. But here we can't perform algebraic manipulations to simplify the expression and get rid of indetermination. We just can't simplify it.
Luckily, there is a powerful method that allows us to find such a type of limit.
First L'Hopital’s Rule. Suppose that f(x) and g(x) are differentiable on (a,b] and g′(x)=0 on (a,b]. If limx→af(x)=0 and limx→ag(x)=0, then limx→ag(x)f(x)=limx→ag′(x)f′(x) if the limit on the right side exists (or is ∞ or −∞ ).
It is especially important to verify the conditions before using L'Hopital's rule.
The first L'Hopital’s rule is also valid for the one-sided limits and for the limits at infinity or negative infinity; that is, "x→a" can be replaced by any of the following symbols: x→a+, x→a−, x→∞, or x→−∞.
Example 1. Find limx→0xex−1.
Since limx→0(ex−1)=e0−1=0 and limx→0x=0, we can apply L'Hopital's rule:
limx→0xex−1=limx→0x′(ex−1)′=limx→01ex=e0=1.
Let's proceed to another example.
Example 2. Find limx→0ln(e−x)+x−1ex−e−x.
Since both the numerator and the denominator approach 0 as x→0, we can apply L'Hopital's rule:
limx→0ln(e−x)+x−1ex−e−x=limx→0(ln(e−x)+x−1)′(ex+e−x)′=limx→0−e−x1+1ex+e−x=−e1+12=e−12e.
Sometimes we need to apply L'Hopital's rule more than once.
Example 3. Find limx→0x−sin(x)ex−e−x−2x.
Since both the numerator and the denominator approach 0 as x→0, we can apply L'Hopital's rule:
limx→0x−sin(x)ex−e−x−2x=limx→0(x−sin(x))′(ex−e−x−2x)′=limx→01−cos(x)ex+e−x−2.
We again obtained an indeterminate form of the type 00 and apply L'Hopital's rule once more:
limx→01−cos(x)ex+e−x−2=limx→0(1−cos(x))′(ex+e−x−2)′=limx→0sin(x)ex−e−x.
We again obtained an indeterminate form of the type 00, so we apply L'Hopital's rule once more:
limx→0sin(x)ex−e−x=limx→0(sin(x))′(ex−e−x)′=limx→0cos(x)ex+e−x=cos(0)e0+e−0=2.
So, limx→0x−sin(x)ex−e−x−2x=2.
Now, let's do some more work.
Example 4. Find limx→0x3sin(x)−x.
Since sin(x)−x→0 and x3→0 as x→0, we have that
limx→0x3sin(x)−x=limx→0(x3)′(sin(x)−x)′=limx→03x2cos(x)−1.
Since cos(x)−1→0 and 3x2→0 as x→0, we again have an indeterminate form of the type 00 and apply L'Hopital's rule once more:
limx→0(3x2)′(cos(x)−1)′=limx→06x−sin(x).
Again, we have an indeterminate form of the type 00, so we apply L'Hopital's rule for the third time:
limx→06x−sin(x)=limx→0(6x)′(−sin(x))′=limx→06−cos(x)=−6cos(0)=−61.
And one more example.
Example 5. Find limx→0+cos(x)(sin(x))−1.
If we blindly attempt to apply L'Hopital's rule, we will get that limx→0+(cos(x))′(sin(x)−1)′=limx→0+−sin(x)cos(x)=−∞.
THIS IS WRONG! We can't apply L'Hopital's rule because limx→0+cos(x)=1 and we don't have an indeterminate form.
In fact, limx→0cos(x)sin(x)−1=cos(0)sin(0)−1=−1.
Example 5 shows what can go wrong if you use L'Hopital's rule without checking the conditions of the theorem.
Other limits can be found using L'Hopital's rule but are found more easily by means of other methods. So, when evaluating any limit, you should consider other methods before using L'Hopital's rule.
Memorize this face, and let's proceed.
Example 6. Find limx→2x−2x2−4.
Applying L'Hopital's rule gives limx→2x−2x2−4=limx→2(x−2)′(x2−4)′=limx→212x=4.
But it is more natural to use algebraic manipulations: limx→2x−2(x−2)(x+2)=limx→2(x+2)=4.
Sometimes we need to combine L'Hopital's rule with algebraic manipulations.
Example 7. Find limx→0x−sin(x)tan(x)−x.
We have an indeterminate form of the type 00 and so can apply L'Hopital's rule:
limx→0x−sin(x)tan(x)−x=limx→0(x−sin(x))′(tan(x)−x)′=limx→01−cos(x)cos2(x)1−1.
We again have an indeterminate form of the type 00; so, we can apply L'Hopital's rule once more. However, if we blindly use L'Hopital's rule, we of course will obtain the correct answer, but we need to apply L'Hopital's rule three times (you can check it), and taking the derivatives won't be pleasant.
Instead, we perform some algebraic manipulations: cos(x)−1cos2(x)1−1=cos2(x)(1−cos(x))1−cos2(x)=cos2(x)(1−cos(x))(1−cos(x))(1+cos(x))=cos2(x)1+cos(x).
So, limx→01−cos(x)cos2(x)1−1=limx→0cos2(x)1+cos(x)=cos(0)1+cos(0)=2.
So, the algebraic manipulations saved us time and effort.
Let's do our final example.
Example 8. Calculate limx→0(ex−1)3xe2x+xex−2e2x+2ex.
Applying L'Hopital's rule a couple of times and simplifying the result between the applications gives:
limx→0(ex−1)3xe2x+xex−2e2x+2ex=limx→03ex(ex−1)2e2x+2xe2x+ex+xex−4e2x+2ex=
=limx→03(ex−1)22xex−3ex+3+x=
=limx→06ex(ex−1)2ex+2xex−3ex+1=limx→06(ex−1)2x−1+e−x=limx→06ex2−e−x=61.