The key to calculus for trigonometric functions is the calculation of the derivative of the sine:
The derivative of the cosine can then be calculated as