ĐKXĐ: \(x\notin\left\{-1;2;-2\right\}\)
a) Ta có: \(A=\left(\dfrac{\left(x+1\right)^2}{\left(x+1\right)^2-3x}-\dfrac{2x^2+4x-1}{x^3+1}-\dfrac{1}{x+1}\right):\dfrac{x^2-4}{3x^2+6x}\)
\(=\left(\dfrac{\left(x+1\right)^2}{x^2-x+1}-\dfrac{2x^2+4x-1}{\left(x+1\right)\left(x^2-x+1\right)}-\dfrac{1}{x+1}\right):\dfrac{x^2-4}{3x^2+6x}\)
\(=\left(\dfrac{x^3+3x^2+3x+1}{\left(x+1\right)\left(x^2-x+1\right)}-\dfrac{2x^2+4x-1}{\left(x+1\right)\left(x^2-x+1\right)}-\dfrac{x^2-x+1}{\left(x+1\right)\left(x^2-x+1\right)}\right):\dfrac{\left(x-2\right)\left(x+2\right)}{3x\left(x+2\right)}\)
\(=\dfrac{x^3+3x^2+3x+1-2x^2-4x+1-x^2+x-1}{\left(x+1\right)\left(x^2-x+1\right)}:\dfrac{x-2}{3x}\)
\(=\dfrac{x^3+1}{\left(x+1\right)\left(x^2-x+1\right)}\cdot\dfrac{3x}{x-2}\)
\(=\dfrac{3x}{x-2}\)
b) Để A nguyên thì \(3x⋮x-2\)
\(\Leftrightarrow3x-6+6⋮x-2\)
mà \(3x-6⋮x-2\)
nên \(6⋮x-2\)
\(\Leftrightarrow x-2\inƯ\left(6\right)\)
\(\Leftrightarrow x-2\in\left\{1;-1;2;-2;3;-3;6;-6\right\}\)
hay \(x\in\left\{3;1;4;0;5;-1;8;-4\right\}\)
Kết hợp ĐKXĐ, ta được:
\(x\in\left\{3;1;4;0;5;8;-4\right\}\)
Vậy: Để A nguyên thì \(x\in\left\{3;1;4;0;5;8;-4\right\}\)