<s>[INST] Need help in proving that $\frac{\sin\theta - \cos\theta + 1}{\sin\theta + \cos\theta - 1} = \frac 1{\sec\theta - \tan\theta}$ We need to prove that $$\dfrac{\sin\theta - \cos\theta + 1}{\sin\theta + \cos\theta - 1} = \frac 1{\sec\theta - \tan\theta}$$
I have tried and it gets confusing.
 [/INST] Let $\displaystyle{\sin\theta=\frac{a}{c}}$ and $\displaystyle{\cos\theta=\frac{b}{c}}$ such that $\displaystyle{a^2 + b^2=c^2}$. 
$$\displaystyle{\frac{sin\theta - \cos\theta + 1}{\sin\theta+\cos\theta -1}}$$ $$\displaystyle{=\frac{a-b+c}{a+b-c}}$$
Now $\displaystyle{\tan\theta=\frac{a}{b}}$ and $\displaystyle{\sec\theta=\frac{c}{b}}$. Hence, $$\displaystyle{\frac{1}{\sec\theta-\tan\theta}}$$ $$\displaystyle{=\frac{1}{\frac{c}{b}-\frac{a}{b}}}$$ $$\displaystyle{=\frac{b}{c-a}}$$
Let us assume that $$\displaystyle{=\frac{a-b+c}{a+b-c}\neq\frac{b}{c-a}}$$
This simplifies to $$\displaystyle{a^2 + b^2\neq c^2}$$
This is obviously false. Hence, $$\displaystyle{\frac{a-b+c}{a+b-c}=\frac{b}{c-a}}$$
QED
</s>