Don't know the steps in finding this derivative.
But the derivative is
The answer is:
/ / 2 \\ 2*x | 2*x*\-3 - 3*cot (3*x)/| cot (3*x)*|2*log(cot(3*x)) + ----------------------| \ cot(3*x) /
/ 2 \ | / / 2 \\ / / 2 \\| 2*x | | 3*x*\1 + cot (3*x)/| / 2 \ | 2 3*x*\1 + cot (3*x)/|| 2*cot (3*x)*|2*|-log(cot(3*x)) + -------------------| - 3*\1 + cot (3*x)/*|-6*x + -------- + -------------------|| | \ cot(3*x) / | cot(3*x) 2 || \ \ cot (3*x) //
/ 3 2 3 2\ | / / 2 \\ / 2 \ / 2 \ / / 2 \\ / / 2 \\ / 2 \ | 2*x | | 3*x*\1 + cot (3*x)/| 2 27*\1 + cot (3*x)/ / 2 \ 54*x*\1 + cot (3*x)/ / 2 \ | 3*x*\1 + cot (3*x)/| | 2 3*x*\1 + cot (3*x)/| 108*x*\1 + cot (3*x)/ | 2*cot (3*x)*|54 - 4*|-log(cot(3*x)) + -------------------| + 54*cot (3*x) - ------------------- - 108*x*\1 + cot (3*x)/*cot(3*x) - --------------------- + 18*\1 + cot (3*x)/*|-log(cot(3*x)) + -------------------|*|-6*x + -------- + -------------------| + ----------------------| | \ cot(3*x) / 2 3 \ cot(3*x) / | cot(3*x) 2 | cot(3*x) | \ cot (3*x) cot (3*x) \ cot (3*x) / /