<s>[INST] Proving $\frac{2\sin x- \sin 2x}{2\sin x+ \sin 2x} = \left(\tan\frac{x}{2}\right)^2$ 
How do I prove this equality?
$$\frac{2\sin x- \sin 2x}{2\sin x+ \sin 2x} = \left(\tan\frac{x}{2}\right)^2$$

I have come this far by myself:
$$\begin{array}{llll} 
\dfrac{2\sin x- \sin 2x}{2\sin x+ \sin 2x} &= \dfrac{2\sin x- 2\sin x\cos x}{2\sin x+ 2\sin x\cos x} & \text{since $\sin(2x) = 2\sin x\cos x$}&\\
& = \dfrac{2\sin x(1 - \cos x)}{2\sin x(1 + \cos x)} &&\\
& = \dfrac{(1- \cos x)}{(1+ \cos x)} &&\\
& = \dfrac{(1- \cos x)(1+ \cos x)}{(1+ \cos x)(1+ \cos x)}& \text{since    $\dfrac{(1+ \cos x)}{(1+ \cos x)}=1$}&\\
& = \dfrac{(1)^2-(\cos x)^2}{(1+ \cos x)^2} & \text{since $a^2-b^2 = (a+b)(a-b)$}&\\
& = \dfrac{(\sin x)^2}{(1+ \cos x)^2} & \text{since $(\sin x)^2 + (\cos x)^2 =1$, so $(\sin x)^2 = 1- (\cos x)^2$.}&
\end{array}$$
Now, I understand that I have the $\sin x$ part on the numerator. What I have to do is get the denominator to be $\cos x$ somehow and also make the angles $\frac{x}{2}$ instead of $x$. How do I do that?
Please be through, and you can't use half-angle or triple angle or any of those formulas.
Also, we have to show left hand side is equal to right hand side, we can't do it the other way around. So please do not take $(\tan\frac{x}{2})^2$ and solve the equation.
Thank you for understanding and have a nice day :)
 [/INST] You know that  $1-\cos x=2\sin^2\dfrac{x}2$   and  $1+\cos x=2\cos^2\dfrac{x}{2}$, so $$\frac{1-\cos x}{1+\cos x}=\frac{2}{2}\left(\frac{\sin\dfrac{x}2}{\cos\dfrac{x}2}\right)^2=\tan^2\frac{x}2.$$
If you couldn't understand, please comment.
</s>