I need to show that $\frac{1-\tan\frac{\theta}{2}}{1+\tan\frac{\theta}{2}} = \sec\theta - \tan\theta$
So far, I have changed the fraction to (where $t=\tan\frac{\theta}{2}$), $\frac{1-2t+t^2}{1-t^2}$(*)
I know that $\tan\theta = \frac{2\tan\frac{\theta}{2}}{1-\tan^2\frac{\theta}{2}}$ and that I should be able to use this to complete the proof, but I am unsure how to split the fraction (*) I have arrived at in order to utilise this?