differentiate (A*cos(wt+f)) in relation to t