có: \(\hept{\begin{cases}\left(x-y-z\right)^2\ge0\\\left(y-2\right)^2\ge0\\\left(z+3\right)^2\ge0\end{cases}}\Rightarrow\left(x-y-z\right)^2+\left(y-2\right)^2+\left(z+3\right)^2=0\)
\(\Leftrightarrow\hept{\begin{cases}\left(x-y-z\right)^2=0\\\left(y-2\right)^2=0\\\left(z+3\right)^2=0\end{cases}}\Leftrightarrow\hept{\begin{cases}x-y-z=0\\y-2=0\\z+3=0\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}x=y+z\\y=2\\z=-3\end{cases}}\Leftrightarrow\hept{\begin{cases}x=5\\y=2\\z=-3\end{cases}}\)