The derivative of cot(x)\cot(x)cot(x) is:
−csc2(x)-\csc^2(x)−csc2(x)
sec2(x)\sec^2(x)sec2(x)
csc2(x)\csc^2(x)csc2(x)
−sec2(x)-\sec^2(x)−sec2(x)