Differenciation of trigonometric functions