\sin 2\alpha={\mathrm{tg}\, 2\alpha\cdot \cos 2\alpha}={a\over b}\cdot {\pm |b|\over \sqrt{a^2+b^2}}=\pm{\mathrm{sgn}\,b\cdot a\over\sqrt{a^2+b^2}}