a, \(A=\left(\frac{1}{x-1}+\frac{x}{x^2-1}\right):\frac{2x+1}{x^2+2x+1}\)
\(=\left(\frac{1}{x-1}+\frac{x}{\left(x-1\right)\left(x+1\right)}\right):\frac{2x+1}{\left(x+1\right)^2}\)
\(=\left(\frac{x+1}{\left(x-1\right)\left(x+1\right)}+\frac{x}{\left(x-1\right)\left(x+1\right)}\right):\frac{2x+1}{\left(x+1\right)^2}\)
\(=\frac{2x+1}{\left(x-1\right)\left(x+1\right)}.\frac{\left(x+1\right)^2}{2x+1}=\frac{x+1}{x-1}\)
b, Thay x = -2 ta được :
\(\frac{x+1}{x-1}=\frac{-2+1}{-2-1}=\frac{1}{3}\)
Vậy A nhận giá trị 1/3
\(A=\left(\frac{1}{x-1}+\frac{x}{x^2-1}\right)\div\frac{2x+1}{x^2+2x+1}\)
\(=\left(\frac{1}{x-1}+\frac{x}{\left(x-1\right)\left(x+1\right)}\right)\div\frac{2x+1}{\left(x+1\right)^2}\)
\(=\left(\frac{x+1}{\left(x-1\right)\left(x+1\right)}+\frac{x}{\left(x-1\right)\left(x+1\right)}\right)\times\frac{\left(x+1\right)^2}{2x+1}\)
\(=\frac{2x+1}{\left(x-1\right)\left(x+1\right)}\times\frac{\left(x+1\right)^2}{2x+1}\)
\(=\frac{x+1}{x-1}\)
Với x = -2 (tmđk) => \(A=\frac{-2+1}{-2-1}=\frac{-1}{-3}=\frac{1}{3}\)