Derivatives of trigonometric functions