As \(x\to 0\) we have \(\sin x\to 0\) and \(x\to 0\text{.}\) Thus the limit expression is indetermine, of form \(0/0\text{.}\)
As \(x\to 0^+\) we have \(\sin x\to 0\) and \(\ln x\to -\infty\) (using known properties of \(\ln\)). The form of this limit expression is thus \(0/\infty\text{,}\) which is not indeterminate: since the numerator gets arbitrarily small and the denominator gets arbitrarily large, we see the limit is equal to 0. (Note that the denominator being negative is of no consequence here; what is important is that it is large in absolute value.)
As \(x\to \infty\text{,}\) we have \(x\to \infty\) and \(e^{-x}\to 0\text{.}\) The limit expression is thus of form \(\infty/0\text{.}\) Again this is a determinate form. We conclude that the limit is equal to \(\infty\text{,}\) since the numerator gets arbitrarily large (positive), and the denominator gets arbitrarily small (and positive). (Notice that here sign (positive/negative) does play a role.)
As \(x\to \frac{\pi}{2}^-\) we have \(\tan x\to \infty\) and \(\cos x\to 0\) (from the positive side). As in the previous case, we conclude that the form is determinate and the limit is equal to \(\infty\text{.}\)
As \(x\to \infty\) we have \(e^x\to \infty\) and \(2^x+3^x\to \infty\text{.}\) The limit expression is thus indeterminate, of form \(\infty/\infty\text{.}\)
Remark1.14.3.
A limit expression having an indeterminate form does not mean that the limit does not exist. You should interpret this conclusion as simply saying that our current analysis is not detailed enough to determine whether the limit exists. In this spirit we will be careful not to write expressions like
as these suggest we are asserting something more definitive about the limit expression.
Theorem1.14.4.L’Hôpital’s rule.
Let \(f\) and \(g\) be differentiable on an open interval \(I\) containing \(a\text{,}\) where \(a\) is either a finite number or \(\pm\infty\text{,}\) and suppose \(g'(x)\ne 0\) for all \(x\ne a\) in the interval.
If \(\displaystyle\lim_{x\to a}\frac{f(x)}{g(x)}\) is an indeterminate form of type \(0/0\) or \(\infty/\infty\text{,}\) then
provided the limit on the right exists or is equal to \(\pm\infty\text{.}\)
The same result holds if we replace the limit with a one-sided limit.
Warning1.14.5.Common mistake.
In a situation where l’Hôpital’s rule applies, do not make the mistake of computing the derivative of the quotient \(\left(f/g\right)'\text{.}\) That is, in general
Students tend to fall madly in love with l’Hôpital’s rule upon first encountering it. Here are some comments to temper your passion.
Make sure the relevant conditions apply: i.e., (a) \(f\) and \(g\) must be differentiable on an open interval containing \(a\text{,}\) and (b) we must have an indeterminate form of type \(0/0\) or \(\infty/\infty\text{.}\)
Even if l’Hôpital’s rule applies, it may not be useful! In the following examples, applying l’Hôpital’s rule either gets us nowhere, or is too cumbersome.
Although this is a situation where l’Hôpital’s rule applies, upon applying it once we see that we get essentially the same limit expression back. Instead, we make use of our intuition. Since \(2< e < 3\text{,}\) it would stand to reason that the \(3^x\) term “dominates” the other exponential terms as \(x\to\infty\text{.}\) We make this intuition rigorous by “forcibly” factoring out the dominating term \(3^x\text{:}\)