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.
2
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 2x. The limit is unchanged, because the form was 0/0.
x→0limx21−cosx=x→0lim2xsinx
3
Check the form again
At x=0,sinx/(2x) gives 0/0 again, so the rule may be used a second time. sinx becomes cosx, and 2xbecomes 2. A student who knows that sinx/x approaches 1 could stop here instead, since sinx/(2x) is half of it.
x→0lim2xsinx=x→0lim2cosx
4
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.
x→0lim2cosx=21
Result
The limit is 1/2.
x→0limx21−cosx=21
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)/(2x), 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.
x→0limx2ex−1−xx→0lim2xex−1x→0lim2ex21
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 2x, so the new quotient is (1/x)/(2x)=1/(2x2). At x=1 this is 1/2, and the form is no longer indeterminate.
x→1limx2−1lnxx→1lim2x1/xx→1lim2x2121
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 lnxapproaches −∞, the form 0⋅(−∞). Written as (lnx)/(1/x), it has the form −∞/∞. The derivatives are 1/xand −1/x2, and their quotient simplifies to −x, which approaches 0. Chalk checks the two rewritten rows as well.
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.