L’Hospital’s Rule is a useful way to evaluate tricky limits. It is most often used for limits of indeterminate form. The rule is as follows:
If $f(x)$ and $g(x)$ are differentiable on some interval around the number $a$ (or if $a=∞$, $f(x)$ and $g(x)$ are differentiable for all $x>ε$ for some $ε$), and ${\lim\limits_{x \to a} g(x)} ≠ 0$, then
$$\lim\limits_{x \to a} \frac{f(x)}{g(x)} = \lim\limits_{x \to a} \frac{f'(x)}{g'(x)}$$
We can take the derivatives of the numerator and the denominator and then take the limit and it will be the same as the limit of the original ratio. Indeterminate form includes limits of the forms $\frac{0}{0}$, $\frac{∞}{∞}$, $0\cdot∞$, $∞-∞$, $0^0$, $1^∞$ and $∞^0$.
Example 1. $\lim\limits_{x \to 0} \frac{\sin x}{x}$
In this example, we see that taking the limit of the numerator and denominator results in $\frac{0}{0}$, which is an indeterminate form. And since there is not an obvious way to simplify the fraction in order to make the limit easier to compute, it is a good candidate for L’Hospital’s Rule. We take the limit of the numerator and denominator as follows:
$$\lim\limits_{x \to 0} \frac{\sin x}{x} = \lim\limits_{x \to 0} \frac{\frac d{dx} (\sin x)}{\frac d{dx} (x)} = \lim\limits_{x \to 0} \frac{\cos x}{1} = cos(0) = 1 $$
Example 2. $\lim\limits_{x \to ∞} \frac{e^x}{x^2+x+4}$
Here we see that attempting to take the limit as is results in $\frac{∞}{∞}$. So again we use L’Hospital’s Rule:
$$\lim\limits_{x \to ∞} \frac{e^x}{x^2+x+4} = \lim\limits_{x \to ∞} \frac{\frac d{dx} (e^x)}{\frac d{dx} (x^2+x+4)} = \lim\limits_{x \to ∞} \frac{e^x}{2x+1}$$
Taking the limit at this point still results in $\frac{∞}{∞}$, so we apply L’Hospital’s Rule again.
$$\lim\limits_{x \to ∞} \frac{e^x}{2x+1} = \lim\limits_{x \to ∞} \frac{\frac d{dx} (e^x)}{\frac d{dx} (2x+1)} = \lim\limits_{x \to ∞} \frac{e^x}{2} = ∞$$
$∞$ is not an indeterminate form and so that is our final answer.
Example 3. $\lim\limits_{x \to 0} (x \cdot \ln x)$
If we plug zero into the limit, we get the indeterminant form $0 \cdot (-∞)$. We can’t apply L’Hospital’s Rule right away because we do not have a ratio. Instead, we must manipulate the function so that it becomes a ratio. We can move $x$ to the denominator by rewriting as $ \frac {1}{x}$.
$$ \lim\limits_{x \to 0} (x \cdot \ln x) = \lim\limits_{x \to 0} \frac{\ln x}{\frac {1}{x}}$$
Now we have a ratio and the indeterminate form $\frac {-∞}{∞}$. Applying L’Hospital’s Rule,
$$ \lim\limits_{x \to 0} \frac{\ln x}{\frac {1}{x}} = \lim\limits_{x \to 0} \frac{\frac d{dx} (\ln x)}{\frac d{dx} (\frac {1}{x})} = \lim\limits_{x \to 0} \frac{ \frac {1}{x}}{- \frac {1}{x^2}}$$
We still have an indeterminate form $\frac {∞}{-∞}$, but before applying L’Hospital’s Rule again, we should notice that we can cancel the $\frac {1}{x}$ in the top and the bottom. It is always best to simplify after applying L’Hospital’s Rule if possible.
$$ \require{cancel} \lim\limits_{x \to 0} \frac{ \frac {1}{\cancel {x}}}{- \frac {1}{x^\cancel{2}}} = \lim\limits_{x \to 0} \frac {1}{- \frac{1}{x}} = \lim\limits_{x \to 0} (-x) = 0 $$
If we had tried to use L’Hospital’s Rule before canceling, our ratio would become more complicated with each application of the rule.
Example 4. $\lim\limits_{x \to ∞} \frac {e^x - e^{-x}}{e^x + e^{-x}}$
Although L’Hospital’s Rule can always be applied to functions that meet the criteria of being differentiable around an interval, it does not always yield a useful answer, even if we see indeterminate forms. Here we will try to use L’Hospital’s Rule.
$$\lim\limits_{x \to ∞} \frac {e^x - e^{-x}}{e^x + e^{-x}} = \lim\limits_{x \to ∞} \frac {\frac d{dx} (e^x - e^{-x})}{\frac d{dx}(e^x + e^{-x})} = \lim\limits_{x \to ∞} \frac {e^x + e^{-x}}{e^x - e^{-x}} $$
Noticing that this ratio isn’t any simpler, we can try to apply L’Hospital’s Rule again.
$$ \lim\limits_{x \to ∞} \frac {e^x + e^{-x}}{e^x - e^{-x}} = \lim\limits_{x \to ∞} \frac {\frac d{dx} (e^x + e^{-x})}{\frac d{dx}(e^x - e^{-x})} = \lim\limits_{x \to ∞} \frac {e^x - e^{-x}}{e^x + e^{-x}}$$
This is the original limit we started with, so we are not getting anywhere using L’Hospital’s Rule. Instead, we should try to simplify our problem by dividing everything by the element with the highest power, in this case $e^x$.
$$\lim\limits_{x \to ∞} \frac {e^x - e^{-x}}{e^x + e^{-x}} = \lim\limits_{x \to ∞} \frac {\frac {e^x}{e^x} - \frac {e^{-x}}{e^x}}{\frac {e^x}{e^x} + \frac{e^{-x}}{e^x}} = \lim\limits_{x \to ∞} \frac {1 - e^{-2x}}{1 + e^{-2x}} $$
Noticing that $e^{-2x}$ approaches $0$ as $x$ approaches infinity, we can now take the limit
$$\lim\limits_{x \to ∞} \frac {1 - e^{-2x}}{1 + e^{-2x}} = \frac {1-0}{1+0} = 1 $$
L’Hospital’s Rule is often useful to evaluate limits of indeterminate form. It is most useful when it makes the numerator and denominator simpler than they were before. Remember to always simplify after applying the rule. L’Hospital’s Rule is applicable to all limits of ratios of differentiable functions, but is not guaranteed to make the limit easier to find.

Hey there! Glad you found us.sign up today and get your first 30 minute session free## Great! You will be redirected to our booking page where we are waiting for a simple steps to booking your session. You are almost done!