a:\(A=\left(\dfrac{1}{x-1}+\dfrac{x}{\left(x-1\right)\left(x^2+x+1\right)}\cdot\dfrac{x^2+x+1}{x+1}\right)\cdot\dfrac{\left(x+1\right)^2}{2x+1}\)
\(=\left(\dfrac{x+1+x}{\left(x-1\right)\left(x+1\right)}\right)\cdot\dfrac{\left(x+1\right)^2}{2x+1}=\dfrac{x+1}{x-1}\)
b: Khi x=1/2 thì \(A=\left(\dfrac{1}{2}+1\right):\left(\dfrac{1}{2}-1\right)=\dfrac{3}{2}:\dfrac{-1}{2}=-3\)