Answer:\(\text{(a)}\hspace{0.5em}\frac{1-\cos x+\sin x}{1+\cos x+\sin x}=\tan\frac{x}{2}\text{, where the original expression is defined.}\) \(\text{(b)(i) Least value}=-1\text{ and greatest value}=3.\) \(\text{(b)(ii) Period}=\frac{2\pi}{3}.\) \(\text{(b)(iii)}\hspace{0.5em}x=\frac{\pi}{18},\frac{5\pi}{18},\frac{13\pi}{18},\frac{17\pi}{18}.\) \(\text{(b)(iv) Draw a smooth sinusoidal curve through}\hspace{0.5em}(0,1),(\frac{\pi}{6},-1),(\frac{\pi}{3},1),(\frac{\pi}{2},3),(\frac{2\pi}{3},1),(\frac{5\pi}{6},-1),(\pi,1)\text{, with midline}\hspace{0.5em}y=1.\)