a: \(A=\dfrac{x+1-x+1}{\left(x-1\right)\left(x+1\right)}:\dfrac{1-x+x}{1-x}\)
\(=\dfrac{-2}{\left(1-x\right)\left(x+1\right)}\cdot\dfrac{1-x}{1}=\dfrac{-2}{x+1}\)
b: Để A là số nguyên thì \(x+1\inƯ\left(-2\right)\)
\(\Leftrightarrow x+1\in\left\{1;-1;2;-2\right\}\)
hay \(x\in\left\{0;-2;-3\right\}\)