differentitiate cos(3t