\(VT=\frac{1-cosx}{sinx}\left[\frac{\left(1+cosx\right)^2}{sin^2x}-1\right]\)
\(=\frac{1-cosx}{sinx}.\left[\frac{2\left(1+cosx\right)-sin^2x}{sin^2x}-1\right]\)
\(=\frac{2\left(1-cos^2x\right)}{sin^3x}-\frac{2\left(1-cosx\right)}{sinx}\)
\(=\frac{2}{sinx}-\frac{2-2cosx}{sinx}\)
\(=\frac{2cosx}{sinx}=2cotx\)