a: \(A=\dfrac{x^2+1+1}{x^2+1}:\dfrac{x^2+1-2x}{\left(x-1\right)\left(x^2+1\right)}\)
\(=\dfrac{x^2+2}{x^2+1}\cdot\dfrac{\left(x-1\right)\left(x^2+1\right)}{\left(x-1\right)^2}=\dfrac{x^2+2}{x-1}\)
b: A nguyên
=>x^2-1+3 chia hết cho x-1
=>\(x-1\in\left\{1;-1;3;-3\right\}\)
=>\(x\in\left\{2;0;4;-2\right\}\)