a: ĐKXĐ: x<>-1; x<>1; x<>0
\(P=\left(\dfrac{2x}{\left(x-1\right)\left(x+1\right)}+\dfrac{x-1}{2\left(x+1\right)}\right)\cdot\dfrac{2x}{x+1}\)
\(=\dfrac{4x+x^2-2x+1}{2\left(x+1\right)\left(x-1\right)}\cdot\dfrac{2x}{\left(x+1\right)}\)
\(=\dfrac{\left(x+1\right)^2}{\left(x+1\right)^2}\cdot\dfrac{x}{x-1}=\dfrac{x}{x-1}\)
b: Để P=2 thì 2x-2=x
=>x=2(loại)