a) \(x^4-30x^2+31x-30=0\)
\(\Leftrightarrow\left(x^4+x\right)+\left(-30x^2+30x-30\right)=0\)
\(\Leftrightarrow x\left(x+1\right)\left(x^2-x+1\right)-30\left(x^2-x+1\right)=0\)
\(\Leftrightarrow\left(x^2+x-30\right)\left(x^2-x+1\right)=0\)
\(\Leftrightarrow\left(x-5\right)\left(x+6\right)\left(x^2-x+1\right)=0\)
\(\Rightarrow\left[{}\begin{matrix}x=5\\x=-6\end{matrix}\right.\)
b) \(\left\{{}\begin{matrix}x+y+z=2\left(1\right)\\2xy-z^2=4 \left(2\right)\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x^2+y^2+z^2+2xy+2yz+2xz=4\\2xy-z^2=4\end{matrix}\right.\)
\(\Rightarrow x^2+y^2+z^2+2xy+2yz+2xz=2xy-z^2\)
\(\Leftrightarrow x^2+y^2+2z^2+2yz+2xz=0\)
\(\Leftrightarrow\left(x+z\right)^2+\left(y+z\right)^2=0\)
\(\Rightarrow x=y=-z\) thay vào (1) ta được : \(-z-z+z=2\Rightarrow z=-2\)
\(\Rightarrow x=y=2\)
Vậy \(x=y=2;z=-2\)