Differentiating sec(x), cosec(x) and cot(x)