L'Hopital's Rule and Limits¶
We've used limits to find derivatives. Now we'll turn things upside-down and use derivatives to find limits, by way of a nive technique called L'Hopital's Rule
.
Most of the limits we've looked at are naturally in one of the following forms:
- \(\lim_{x \to a}\frac{f(x)}{g(x)}\)
- \(\lim_{x \to a}(f(x) - g(x))\)
- \(\lim_{x \to a}f(x)g(x)\)
- \(\lim_{x \to a}f(x)^{g(x)}\)
Sometimes you can just substitute \(x = a\) and evaluate the limit directly, effectively using the continuity of \(f\) and \(g\). This method doesn't always work, for example:
replacing \(x\) by 3 gives the indeterminate form \(\frac{0}{0}\).
It turns out that the first type, involving the ratio \(\frac{f(x)}{g(x)}\), is the most suitable for applying the rule, so we'll call it Type A
. The next two types, involving \(f(x) - g(x)\) and \(f(x)g(x)\), both reduce directly to Type A
, so we'll call them Type B1
and Type B2
respectively. Finally, we'll say that limits involving exponentials like \(f(x)^{g(x)}\) are Type C
, since you can solve them by reducing them to Type B2
and then back to Type A
.
Type A(\(0/0\) or \(\pm \infty/ \pm \infty\))¶
Consider limits of the form:
where \(f\) and \(g\) are nice differentiable functions. If \(g(a) \ne 0\), everything's great, you just substitude \(x = a\) to see the limit is \(\frac{f(a)}{g(a)}\).
The only other possibility is that \(f(a) = 0\) and \(g(a) = 0\). That is, the fraction \(\frac{f(a)}{g(a)}\) is the indeterminate form \(\frac{0}{0}\). Let's return to the definition of limits:
Since \(f\) and \(g\) are differentiable, we can find the linearization of both of them at \(x = a\). In fact, as we saw in the previous chapter, if \(x\) is close to \(a\), then:
and
Now we assume that \(f(a)\) and \(g(a)\) are both \(0\). This means:
and
If you divide the first equation by the second one, then assuming that \(x \ne a\), we get:
The closer \(x\) is to \(a\), the better the approximation. This leads to one version of l'Hopital's Rule:
If \(f(a) = g(a) = 0\), then
Type B1(\(\infty - \infty\))¶
Here is a limit form:
As \(x \to 0^+\), both \(1/sin(x)\) and \(1/x\) go to \(\infty\). As \(x \to 0^-\), both quantities go to \(-\infty\). We can reduce this to Type A
, just take a common denominator:
Now you can put \(x = 0\) and see \(0/0\) case. So we can apply l'Hopital's Rule:
Type B2 (\(0 \times \pm \infty\))¶
Here's the example:
The idea is to move \(x\) into a new denominator by putting it there as \(\frac{1}{x}\):
Now the form is \(-\infty / \infty\), so we can use the l'Hopital's Rule:
Type C(\(1^{\pm \infty}, 0^0, \infty^0\))¶
Finally, the trickiest type involves limits like:
where both the base and exponent involve the dummy variable. The idea is to take the logarithm of the quatity \(x^{sin(x)}\) first, and work out its limit as \(x \to 0^+\):