Derivatives of trigonometric functions product quotient and chain rule