Find derivatives of sine and cosine functions