Chalk−1

Math · Calculus I · Worked example

Apply L’Hôpital’s rule twice

Evaluate the limit of (1−cosx)⁢/x2 as x→0.

limx→01−cosxx2

Try one — Chalk checks each line

Check the form

Substituting x=0 gives (1−cos0)⁢/02 =(1−1)⁢/0 =0⁢/0. Both parts approach 0, so the form is indeterminate and L’Hôpital’s rule applies.

Differentiate the top and the bottom

Take each derivative on its own. The derivative of 1−cosx is sinx, and the derivative of x2 is 2⁢x. The limit is unchanged, because the form was 0⁢/0.

limx→01−cosxx2=limx→0sinx2⁢x

Check the form again

At x=0, sinx⁢/⁢(2⁢x) gives 0⁢/0 again, so the rule may be used a second time. sinx becomes cosx, and 2⁢x becomes 2. A student who knows that sinx⁢/⁢x approaches 1 could stop here instead, since sinx⁢/⁢(2⁢x) is half of it.

limx→0sinx2⁢x=limx→0cosx2

Substitute

cosx⁢/2 is continuous at 0, so substitution now works. cos0=1, and the limit is 1⁢/2. A value near 0 agrees. At x=0.1 the original quotient is 0.49958.

limx→0cosx2=12

Result

The limit is 1⁢/2.

limx→01−cosxx2=12

Your turn

1. One like the example

Evaluate the limit of (ex−1−x)⁢/x2 as x→0.

Show the answer and explanation

1⁢/2.

Substitution gives (1−1−0)⁢/0=0⁢/0. One use of the rule gives (ex−1)⁢/⁢(2⁢x), which is still 0⁢/0 at x=0. A second use gives ex/2, and e0/2=1⁢/2. At x=0.01 the original quotient is about 0.5017.

limx→0ex−1−xx2limx→0ex−12⁢xlimx→0ex212

2. A variation

Evaluate the limit of (lnx)⁢/⁢(x2−1) as x→1. The rule works at any point, not only at 0.

Show the answer and explanation

1⁢/2.

Substituting x=1 gives ln1⁢/⁢(1−1)=0⁢/0. The derivatives of the top and the bottom are 1⁢/⁢x and 2⁢x, so the new quotient is (1⁢/⁢x)⁢/⁢(2⁢x)=1⁢/⁢(2x2). At x=1 this is 1⁢/2, and the form is no longer indeterminate.

limx→1lnxx2−1limx→11⁢/⁢x2⁢xlimx→112x212

3. Somewhere new

Evaluate the limit of xlnx as x→0+. It is a product, so rewrite it before using the rule.

Show the answer and explanation

0.

As x→0+, x approaches 0 and lnx approaches −∞, the form 0⋅(−∞). Written as (lnx)⁢/⁢(1⁢/⁢x), it has the form −∞⁢/⁢∞. The derivatives are 1⁢/⁢x and −1⁢/x2, and their quotient simplifies to −x, which approaches 0. Chalk checks the two rewritten rows as well.

limx→0+xlnxlimx→0+lnx1⁢/⁢xlimx→0+1⁢/⁢x−1⁢/x2limx→0+(−x)0

Keep exploring

Open the limit in Math and change x2 to x3: the row turns ✗. Delete the =1⁢/2 and write DNE on the row under the limit, and it reads ✓, because the values run to −∞ from the left and to ∞ from the right.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check each step in Math Check the limit in Math Study the 4 key terms Open worked example on a board Limit of a quotient in Math Reference

Your existing work stays on this device. Examples open as editable copies.