Applying Chain Rule to sec(x), cosec(x) and cot(x)