Consider the given function,
f( x )=cosx
According to the first principle, the derivative of a function is,
f ′ ( x )= lim h→0 f( x+h )−f( x ) h
Applying the above formula to the given function,
f ′ ( x )= lim h→0 cos( x+h )−cosx h f ′ ( x )= lim h→0 cosxcosh−sinxsinh−cosx h f ′ ( x )= lim h→0 [ −cosx( 1−cosh )−sinxsinh h ] f ′ ( x )=−cosx lim h→0 ( 1−cosh ) h −sinx lim h→0 sinh h (1)
From the formula of limits, we know that,
lim x→0 1−cosx x =0
And,
lim x→0 sinx x =1
Therefore, equation (1) becomes,
f ′ ( x )=−cosx( 0 )−sinx( 1 ) =0−sinx =−sinx
Thus, the derivative of cosx is −sinx.