How do you find f'(x) using the definition of a derivative for #f(x)=cos x#?

2 Answers
Oct 23, 2015

See the explanation.

Explanation:

#f'(x)=lim_(h->0) (f(x+h)-f(x))/h#

#f'(x)=lim_(h->0) (cos(x+h)-cosx)/h#

#f'(x)=lim_(h->0) (cosxcosh-sinxsinh-cosx)/h#

When #h->0# then #cosh->1#:

#f'(x)=lim_(h->0) (cosx*1-sinx*sinh-cosx)/h#

#f'(x)=lim_(h->0) (cosx-sinxsinh-cosx)/h#

#f'(x)=lim_(h->0) (-sinxsinh)/h = -sinx lim_(h->0) sinh/h = -sinx#

since #lim_(h->0) sinh/h = 1#.

Oct 23, 2015

The answer is #-sin(x)#

Explanation:

This is the definition of the derivative:

#lim_(x->h)(f(x+h) - f(x))/h#

So we know that #f(x) = cos(x)#, so let's go ahead and plug it in:

#lim_(x->h)(cos(x+h) - cos(x))/h#

Now, before we progress any further, we need to lay down two facts:

  1. #lim_(x->h) (cos(h)-1)/h = 0#

  2. #lim_(x->h) sin(h)/h = 1#

If you'd like to verify these yourself, you can just plug these functions into your calculator, and see what they approach as #x# nears 0.

Now, if you noticed, #cos(x+h)# is not very nice to work with as it is. So, we'll need to use an identity to split it up. If you look it up, you'll know that:

#cos(x+h) = cos(x)cos(h) - sin(x)sin(h)#

So, let's use this to split up #cos(x+h)#:

#lim_(x->h)(cos(x)cos(h) - sin(x)sin(h) - cos(x))/h#

Now we can factor out a #cos(x)# out of 2 of the terms, and we'll get:

#lim_(x->h)(cos(x)(cos(h)-1) - sin(x)sin(h))/h#

And if we did some algebra:

#lim_(x->h)(cos(x)(cos(h)-1))/h - (sin(x)sin(h))/h#

And applied our first identity:

#lim_(x->h)cos(x)(0) - (sin(x)sin(h))/h#

And now if we factored out a #-sin(x)#, we'd get:

#lim_(x->h) - sin(x)(sin(h)/h)#

Now we can apply our second identity:

#lim_(x->h) - sin(x)(1)#

And since there are no #h# terms in this, the limit just cancels out, and we're left with # -sin(x)#.

Of course, this is the ultra-long way to derive the answer to this, and most calculus teachers just prefer you simply memorise this. And practically speaking, it's easier than deriving it all over each time.

The first 11 minutes of this video do this too. The only difference is that this video derives #lim_(x->h)(sin(x+h) - sin(x))/h#, but to be honest the process is nearly completely the same.

Hope that helps :)