L'Hopital's Rule

Suppose that we want to find the value of when f (a) = g (a) = 0.
One method is to use L'Hopital's Rule, which says:
1. If f (x) and g (x) are differentiable functions and
2. f (a) = g (a) = 0, then
3. if the limit on the right exists.
In other words, we can find the original limit by finding the limit of the ratio of the derivatives of the numerator and denominator functions. The following applet helps to explain why this works. This device cannot display Java animations. The above is a substitute static image
 See About the calculus applets for operating instructions.

## Example 1

In the graph on the left, the applet shows a graph of This is not defined for x = 0, but it clearly seems to have a limit there. If we let f (x) = e2x - 1 and g (x) = x, then we can use L'Hopital's Rule to find the limit by finding the derivatives of the numerator and denominator functions: Note that we do not take the derivative of the ratio using the quotient rule, but rather separately find the derivatives of the numerator and denominator functions, then find the limit of their ratio. Notice that, while the original ratio is undefined for x = 0, the ratio of the derivatives is defined, hence we can evaluate the limit just by substituting x = 0.

Why does this work? The graph on the right shows f (x) and g (x). If you click the zoom in button several times, local linearity makes the curves look like straight lines. Hence the functions can be approximated by their tangent lines at x = 0 (i.e., f (x) ≈ 2x and g(x) ≈ x) , and the ratio can be approximated by the ratio of these tangent lines. In the limit, this equals the ratio of the slopes of the tangent lines, which is just the ratio of the derivatives of the numerator and denominator functions

## Example 2

Select the second example from the drop down menu. This shows another example, Again, if you click on Zoom In a few times, the graphs look like straight lines and the ratio can be evaluated just by using the ratio of the values of the derivatives.

## Example 3

Select the third example, showing In this case, the limit on the right does not exist, so L'Hopital's Rule cannot be used in this case.

• NOTE: L'Hopital's Rule also works if f (a) = g (a) = ∞, and when .
• While you are here..

... I have a small favor to ask. Over the years we have used advertising to support the site so it can remain free for everyone. However, advertising revenue is falling and I have always hated the ads. So, would you go to Patreon and become a patron of the site? When we reach the goal I will remove all advertising from the site.

It only takes a minute and any amount would be greatly appreciated. Thank you for considering it!   – John Page

Become a patron of the site at   patreon.com/mathopenref

## Acknowledgements

Derived from the work of Thomas S. Downey under a Creative Commons Attribution 3.0 License.