\(\frac{2sin^2\frac{x}{2}+sin2x-1}{2sinx-1}+sinx=\frac{1-cosx+2sin2x.cosx-1}{2sinx-1}+sinx\)
\(=\frac{cosx\left(2sinx-1\right)}{2sinx-1}+sinx=cosx+sinx\)
\(=\sqrt{2}\left(\frac{\sqrt{2}}{2}sinx+\frac{\sqrt{2}}{2}cosx\right)=\sqrt{2}\left(sinx.cos\frac{\pi}{4}+cosx.sin\frac{\pi}{4}\right)\)
\(=\sqrt{2}sin\left(x+\frac{\pi}{4}\right)\)