L'Hopital's Rule

Suppose that we want to find the value of

lim(x->a) f(x)/g(x) 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. L'Hopital's rule 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.

Substitute image

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 y=(e^(2x)-1)/x 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: l'hopital 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, 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 not applicable 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 x -> inf..
  • Other 'Applications of Differentiation' topics


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