Steply

Find lim x->0 (e^x - cos(x))/x

Step by step, with the reason for every step · L'Hôpital's rule · Calculus 1

Step by step

The question

Question: find the limit as x → 0 of (eˣ − cos x) over x.

lim x → 0 ex − cos xx =

1 Put the number in

Put 0 in place of x.

The top is 0, and the bottom is 0.

top: e0 − cos 0 = 0
bottom: 0

0/0 has no value.

It tells us nothing yet.

This is where L'Hôpital's rule helps.

form 00

2 Use L'Hôpital's rule

The rule: when we get 0/0, or infinity over infinity, we may take the derivative of the top, and the derivative of the bottom.

The new limit is the same.

lim x → a f(x)g(x) = lim x → a f′(x)g′(x)

Careful!

This is not the quotient rule.

The top gets its own derivative, and the bottom gets its own derivative.

Careful: not the quotient rule: top and bottom each alone

The derivative of the top is eˣ + sin x.

The derivative of the bottom is 1.

The new limit is the same.

lim x → 0 ex − cos xx = lim x → 0 ex + sin x1

3 Put the number in again

Put 0 in again.

Now the bottom is not 0.

So the limit is 1.

= e0 + sin 01 = 11 = 1

4 Check

Let's check with a calculator in radians, with x very close to 0.

x = −0.01 gives about 0.99.

x = −0.01: ex − cos xx ≈ 0.99

And x = 0.01 gives about 1.01.

Both are close to 1.

Right!

x = 0.01: ex − cos xx ≈ 1.01

Let's look back.

First: put the number in.

Then: use L'Hôpital's rule.

Then: put the number in again.

Last: check.

Answer
= e0 + sin 01 = 11 = 1

Your turn

Try this one yourself, then check:

lim x → 0 xex − cos(4x)
Show the answer
1

More from L'Hôpital's rule

The whole lesson: L'Hôpital's rule →