How to differentiate $\frac{2x^5}{\tan x}$ $$\frac{2x^5}{\tan x}$$
I can differentiate $2x^5$ ($10x^4$) and $\tan x$ ($\sec^2 x$) but can't do that one
Is there a rule I can apply?

How to differentiate $2x^5/\tan x$
$$\begin{align}
\dfrac{\mathrm d}{\mathrm dx}\left(\dfrac uv\right) & = \dfrac{v\dfrac{\mathrm du}{\mathrm dx} - u\dfrac{\mathrm dv}{\mathrm dx}}{v^2} \\
\dfrac{\mathrm d}{\mathrm dx}\left(\dfrac{2x^5}{\tan x}\right)& = \tan x\cdot10x^4 - 2x^5\cdot(\sec x)^2)/(\tan x)^2 \\
             & =  \tan x\cdot10x^4-2x^5.(1+(\tan x)^2))/(\tan x)^2\\
             & = 10x^4/\tan x - 2x^5.\sec2x \\
             & = 10x^4*\cot x - 2x^5\sec2x \\
\end{align}$$
