\(a,\sqrt{2}sin\left(\alpha+\dfrac{\pi}{4}\right)-cos\alpha\\ =\sqrt{2}\left(sin\alpha cos\dfrac{\pi}{4}+cos\alpha sin\dfrac{\pi}{4}\right)-cos\alpha\\ =\sqrt{2}\left(sin\alpha\cdot\dfrac{\sqrt{2}}{2}+cos\alpha\cdot\dfrac{\sqrt{2}}{2}\right)-cos\alpha\\ =\sqrt{2}\cdot sin\alpha\cdot\dfrac{\sqrt{2}}{2}+\sqrt{2}\cdot cos\alpha\cdot\dfrac{\sqrt{2}}{2}-cos\alpha\\ =sin\alpha+cos\alpha-cos\alpha\\ =sin\alpha\)
\(b,\left(cos\alpha+sin\alpha\right)^2-sin2\alpha\\ =cos^2\alpha+sin^2\alpha=2cos\alpha sin\alpha-2sin\alpha cos\alpha\\ =sin^2\alpha+cos^2\alpha\\ =1\)