Bài 1:
a) Ta có: \(M=\left(\dfrac{x+2}{x^2+2x+1}+\dfrac{x-2}{1-x^2}\right)\cdot\dfrac{x+1}{x}\)
\(=\left(\dfrac{\left(x+2\right)\left(x-1\right)}{\left(x+1\right)^2\cdot\left(x-1\right)}-\dfrac{\left(x-2\right)\left(x+1\right)}{\left(x+1\right)^2\cdot\left(x-1\right)}\right)\cdot\dfrac{x+1}{x}\)
\(=\dfrac{x^2-x+2x-2-\left(x^2+x-2x-2\right)}{\left(x+1\right)^2\cdot\left(x-1\right)}\cdot\dfrac{x+1}{x}\)
\(=\dfrac{x^2+x-2-x^2+x+2}{\left(x+1\right)\left(x-1\right)}\cdot\dfrac{1}{x}\)
\(=\dfrac{2x}{\left(x+1\right)\left(x-1\right)}\cdot\dfrac{1}{x}\)
\(=\dfrac{2}{x^2-1}\)
Bài 2:
1: Ta có: \(\left(x-5\right)^2+\left(x+3\right)^2=2\left(x-4\right)\left(x+4\right)-5x+7\)
\(\Leftrightarrow x^2-10x+25+x^2+6x+9=2\left(x^2-16\right)-5x+7\)
\(\Leftrightarrow2x^2-4x+34=2x^2-32-5x+7\)
\(\Leftrightarrow2x^2-4x+34-2x^2+5x+25=0\)
\(\Leftrightarrow x+59=0\)
hay x=-59
Vậy: S={-59}