Simplify
\[\frac{1 + \sin x - \cos x}{1 + \sin x + \cos x}.\]The answer will be a trigonometric function of some simple function of $x,$ like "$\cos 2x$" or "$\sin (x^3)$".
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Simplify
\[\frac{1 + \sin x - \cos x}{1 + \sin x + \cos x}.\]The answer will be a trigonometric function of some simple function of $x,$ like "$\cos 2x$" or "$\sin (x^3)$".
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
\tan \frac{x}{2}
Simplify
\[\frac{1 + \sin x - \cos x}{1 + \sin x + \cos x}.\]The answer will be a trigonometric function of some simple function of $x,$ like "$\cos 2x$" or "$\sin (x^3)$".
train