$\frac{{{{\left( {1 - \cos x} \right)}^2}}}{{\sin x}} = 2{\cos ^2}x - \cos x + 1$