You are on the right track.
writing $\tan\theta$ as$ \dfrac {\sin\theta}{\cos\theta}$ and $\cot\theta$ as $ \dfrac {\cos\theta}{\sin\theta} $, we get
$ \dfrac {\frac {\sin\theta}{\cos\theta} }{1-\frac {\cos\theta}{\sin\theta} }+\dfrac {\frac {\cos\theta}{\sin\theta} }{1-\frac {\sin\theta}{\cos\theta} }$
$= \dfrac {\sin^2\theta}{cos\theta\cdot(\sin\theta-\cos\theta)} + \dfrac {\cos^2\theta}{\sin\theta\cdot(\cos\theta-\sin\theta)}$ (how?)
$= \dfrac {\sin^2\theta}{\cos\theta\cdot(\sin\theta-\cos\theta)} - \dfrac {\cos^2\theta}{\sin\theta\cdot(\sin\theta-\cos\theta)}$
$=\dfrac{1}{(\sin\theta-\cos\theta)}\big(\dfrac {\sin^2\theta}{\cos\theta}-\dfrac {\cos^2\theta}{\sin\theta})$
$=\dfrac{1}{(\sin\theta-\cos\theta)}\big(\dfrac {\sin^3\theta-\cos^3\theta}{\sin\theta\cdot\cos\theta})$
$=\dfrac{\sin\theta-\cos\theta}{\sin\theta-\cos\theta}\dfrac{\big(\sin^2\theta+\sin\theta\cdot\cos\theta+\cos^2\theta)}{\sin\theta\cdot\cos\theta}$(how?)
$=1\cdot \dfrac{1+\sin\theta\cdot\cos\theta}{\sin\theta\cdot\cos\theta}$ (why?)
which is
$1+\sec\theta\cdot\csc\theta$
QED.
$\mathbf{HINT:}$$$
\begin{align}
(\tan A+\sec A)(\sec A-\tan A)&=\require{cancel}\cancel{\tan A\sec A}-\tan^2 A+\sec^2 A\,\, \require{cancel}\cancel{\ -\tan A \sec A} \\
&=\sec^2 A -\tan^2 A\equiv1
\end{align}$$
Best Answer
Using $\cos2x=1-2\sin^2x,\sin2x=2\sin x\cos x$
$$\dfrac{\sec2x-1}{\tan2x}=\dfrac{1-\cos2x}{\sin2x}=\dfrac{2\sin^2x}{2\sin x\cos x}=\tan x$$
$$\implies\sec2x-1=\tan2x\tan x$$
Set $2x=8A,4A$ and divide.