[tex]sin^2(\theta)+cos^2(\theta)=1\qquad \qquad sin(2\theta)=2sin(\theta)cos(\theta) \\\\[-0.35em] \rule{34em}{0.25pt}[/tex]
[tex]tan(x)+cot(x)=\cfrac{2}{sin(2x)} \\\\[-0.35em] ~\dotfill\\\\ \stackrel{\textit{doing the left-hand-side}}{\cfrac{sin(x)}{cos(x)}+\cfrac{cos(x)}{sin(x)}\implies \cfrac{sin^2(x)+cos^2(x)}{\underset{\textit{using this LCD}}{sin(x)cos(x)}}} \implies \cfrac{1}{sin(x)cos(x)}[/tex]
now, let's recall that anything times 1 is just itself, namely 5*1 =5, 1,000,000 * 1 = 1,000,000, "meow" * 1 = "meow" and so on, so we can write anything as time 1.
let's recall something else, that same/same = 1, so
[tex]\cfrac{cheese}{cheese}\implies \cfrac{spaghetti}{spaghetti}\implies \cfrac{horse}{horse}\implies \cfrac{butter}{butter}\implies \cfrac{25^7}{25^7}=1[/tex]
therefore
[tex]\cfrac{1}{sin(x)cos(x)}\cdot \cfrac{2}{2}\implies \cfrac{2}{2sin(x)cos(x)}\implies \cfrac{2}{sin(2x)}[/tex]