Using $\sin^2x+\cos^2x=1$ and $\sin2x=2\sin x\cos x$: $$1+\sin2x=(\sin x+\cos x)^2,\qquad 1-\sin2x=(\cos x-\sin x)^2.$$
For $00$, $\cos x>\sin x$, so both $\sin x+\cos x$ and $\cos x-\sin x$ are positive. Hence $\sqrt{1+\sin2x}=\sin x+\cos x$ and $\sqrt{1-\sin2x}=\cos x-\sin x$.