If I replaced $y=(\tan{2x})^{\cot{(\frac{x}{2})}}$ by $y=e^{(\ln{(\tan{2x})}) \cdot (\cot(\frac{x}{2}))}$ and calculated $$y'=e^{(\ln{(\tan2x))} \cdot (\cot(\frac{x}{2}))} \cdot \left( \frac{2}{\frac{\cos^{2}(2x)}{\tan(2x)}} \cdot \cot(\frac{x}{2}) + (\ln{(\tan2x)}) \cdot (-\frac{\frac{1}{2}}{\sin^{2}(\frac{x}{2})}) \right).$$
Is it possible to further calculate the derivative of this complex function, or simplify it, or is it the final answer?
And yes, I know about $\csc$ and $\sec$, but I better get along without them.
We have
$$y=(\tan{2x})^{\cot{\frac{x}{2}}}=e^{\cot{\frac{x}{2}}\cdot\log (\tan{2x})}$$
and thus
$$y'=e^{\cot{\frac{x}{2}}\cdot\log (\tan{2x})}\cdot\left(-\frac1{2\sin^2\frac x 2}\cdot\log(\tan 2x)+\cot \frac x 2\frac{\frac 2 {\cos^2 2x}}{\tan 2x}\right)=$$
$$=(\tan{2x})^{\cot{\frac{x}{2}}}\left(\frac{4\cot \frac x 2}{\sin 4x}-\frac{\log(\tan 2x)}{2\sin^2\frac x 2}\right)$$