a: \(A=\dfrac{x^2+4x+4+4x^2-x^2+4x-4}{\left(x-2\right)\left(x+2\right)}\cdot\dfrac{x-2}{x\left(x^2+x+2\right)}\)
\(=\dfrac{4x^2+8x}{\left(x+2\right)}\cdot\dfrac{1}{x\left(x^2+x+2\right)}=\dfrac{4}{x^2+x+2}\)
|x+3|=5
=>x=2(loại) hoặc x=-8(nhận)
Khi x=-8 thì \(A=\dfrac{4}{64-8+2}=\dfrac{4}{58}=\dfrac{2}{29}\)
b: A nguyên
=>x^2+x+2 thuộc {1;-1;2;-2;4;-4}
=>x^2+x+2=2 hoặc x^2+x+2=4
=>x^2+x-2=0 hoặc x(x+1)=0
=>\(x\in\left\{1;0;-1\right\}\)