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