ĐK: x \(\ne\)-1; x \(\ne\)2
\(\frac{x+2}{x+1}+\frac{3}{x-2}=\frac{3}{x^2-x-2}+1\)
<=> \(\frac{\left(x+2\right)\left(x-2\right)}{\left(x+1\right)\left(x-2\right)}+\frac{3\left(x+1\right)}{\left(x+1\right)\left(x-2\right)}=\frac{3}{\left(x+1\right)\left(x-2\right)}+\frac{\left(x+1\right)\left(x-2\right)}{\left(x+1\right)\left(x-2\right)}\)
<=> x2 - 4 + 3x + 3 = 3 + x2 - x - 2
<=> x2 + 3x - x2 + x = 1 + 1
<=> 4x = 2
<=> x = 1/2
Vậy S = {1/2}