\(A=\dfrac{\sqrt{2}.cosx-2cos\left(\dfrac{\pi}{4}+x\right)}{-\sqrt{2}.sinx+2sin\left(\dfrac{\pi}{4}+x\right)}\)
\(=\dfrac{\sqrt{2}.cosx-2\left(cos\dfrac{\pi}{4}.cosx-sin\dfrac{\pi}{4}.sinx\right)}{-\sqrt{2}.sinx+2\left(sin\dfrac{\pi}{4}.cosx+cos\dfrac{\pi}{4}.sinx\right)}\)
\(=\dfrac{\sqrt{2}.cosx-\sqrt{2}.cosx+\sqrt{2}.sinx}{-\sqrt{2}.sinx+\sqrt{2}.cosx+\sqrt{2}.sinx}\)
\(=\dfrac{\sqrt{2}.sinx}{\sqrt{2}.cosx}=tanx\)