\(A=x-4-\sqrt{x^4-8x^2+16}=x-4-\sqrt{[\left(x-2\right)\left(x+2\right)]^2}\)
\(A=x-4-\left(x-2\right)\left(x+2\right)=x-4-\left(x^2-4\right)=-x^2+x\)
\(B=\dfrac{\left(\sqrt{a}-\sqrt{b}\right)^2}{\sqrt{a}-\sqrt{b}}.\left(\sqrt{a}+\sqrt{b}\right)=a-b\)