Ta có \(x^2+y^2+z^2+2\left(xy+yz+zx\right)=\left(x+y+z\right)^2=4\Rightarrow+xy+yz+zx=-7\)
vì \(x+y+z=2\Rightarrow z-1=1-x-y\Rightarrow\frac{1}{xy+z-1}=\frac{1}{xy+1-x-y}=\frac{1}{\left(x-1\right)\left(y-1\right)}. \)
Suy ra \(S=\frac{1}{\left(x-1\right)\left(y-1\right)}+\frac{1}{\left(y-1\right)\left(z-1\right)}+\frac{1}{\left(z-1\right)\left(x-1\right)}. \)
\(\frac{z-1+x-1+y-1}{\left(x-1\right)\left(y-1\right)\left(z-1\right)}=\frac{x+y+z-3}{xyz-xy-yz-zx+x+y+z-1}=-\frac{1}{7}\)