Activity 1: Derivative of cosine (revised final)