L’Hôpital’s Rule

Suppose we want to analyze the behavior of the following function:

f(x)=lnx2x21

While f is not defined at x=1 and 1, f behaves certain ways near x=1 and 1. In order to understand the behavior of the function f, we can take the limit as x approaches 1 and -1.

limx1lnx2x21

limx1lnx2x21

The issue here is that we cannot actually calculate the limit since both the numerator and denominator of the function go to 0 as they approach x=1 or 1.

limx1lnx2x21=00

limx1lnx2x21=00

How about evaluating the following limits?

limxlnx2x21

limxlnx2x21

Again, we cannot find the limits, this time because both the numerator and the denominator of the function go to infinity.

limxlnx2x21=

limxlnx2x21=

In order to find the limit in such cases, we can use L’Hôpital’s rule. Suppose f and g are differentiable on an open interval I except possibly at a point c contained in I. Moreover, suppose that

limxcf(x)=0andlimx cg(x)=0

or that

limx cf(x)=±andlimx cg(x)=±

Then,

limx af(x)g(x)=limx af(x)g(x)

if the following limit exists:

limx af(x)g(x)

Basically, L’Hôpital’s rule says that if a limit of both the numerator and denominator go to 0 or if a limit of both the numerator and denominator go to positive or negative infinity, then we can take the derivative of the numerator and denominator separately and then take the limit, unless we can somehow eliminate some term that makes both the numerator and the denominator go to 0 together or to positive or negative infinity together.

What if the limit of the derivative of both the numerator and the denominator go to 0 together or infinity together? We can keep taking derivatives until such behavior stops. Here are some examples.

Example

Let’s start with the limit from above that we did not solve. Solve the following limit:

limx lnx2x21

As we know, both the numerator and the denominator go to infinity as x approaches infinity. We apply L’Hôpital’s rule:

limx lnx2x21=limx 2xx22x=limx 2x2x=limx 1x2=1=0

How about this one?

limx 1lnx2x21

Since both the numerator and the denominator will be 0 with the limits, we apply L’Hôpital’s rule again.

limx 1lnx2x21=limx 12xx22x=limx 12x2x=limx 11x2=11=1

Let's look at another example. Find the limit of

limx 4x3ex

As we know, the limit of 4x3 with x approaching infinity is infinity. Likewise, the limit of ex with x approaching infinity is infinity. If we apply L’Hôpital’s rule, then we get

limx 4x3ex=limx 12x2ex

Since we cannot solve the problem yet, we will apply L’Hôpital’s rule until either or both the numerator and the denominator stop going to infinity.

limx 4x3ex=limx 12x2ex=limx 24xex=limx 24ex

The limit of 24 with x approaching infinity is 24, while the denominator still approaches infinity, so we get the following:

limx 4x3ex=limx 12x2ex=limx 24xex=limx 24ex=24=0

Understanding and being able to apply L’Hôspital’s rule will help you understand how each function behaves at important points of interest.