\(A=\dfrac{x^2-x^2-2x+2x-4}{\left(x-2\right)\left(x+2\right)}\left(x\ne\pm2\right)=\dfrac{-4}{x^2-4}\\ B=\dfrac{\left|x-1\right|+x^2+4x+4}{\left(x-2\right)\left(x+2\right)}\left(x\ne\pm2\right)\)
Với \(x>1;x\ne2\Leftrightarrow B=\dfrac{x^2+5x+3}{\left(x-2\right)\left(x+2\right)}\)
Với \(x< 1;x\ne-2\Leftrightarrow B=\dfrac{x^2+3x+5}{\left(x-2\right)\left(x+2\right)}\)