\(Q=x^2+2y^2+2z^2+2xy-2yz-2xz-2y+4z+5=\left[\left(x^2+2xy+y^2\right)-2z\left(x+y\right)+z^2\right]+\left(y^2-2y+1\right)+\left(z^2+4z+4\right)=\left(x+y-z\right)^2+\left(y-1\right)^2+\left(z+2\right)^2\ge0\)
\(minQ=0\Leftrightarrow\)\(\left\{{}\begin{matrix}x=-3\\y=1\\z=-2\end{matrix}\right.\)
`Q=x^2+2y^2+2z^2+2xy-2yz-2xz-2y+4z+5`
`Q=(x^2+y^2-z^2+2xy-2yz-2xz)+(y^2-2y+1)+(z^2+4z+4)`
`Q=(x+y-z)^2+(y-1)^2+(z+2)^2`
Ta thấy :
`(x+y-z)^2>=0`
`(y-1)^2>=0`
`(z+2)^2>=0`
`=>(x+y-z)^2+(y-1)^2+(z+2)^2>=0`
Dấu = xảy ra
`<=>` $\begin{cases}x+y-z=0\\y-1=0\\z+2=0\end{cases}$
`<=>` $\begin{cases}x=-3\\y=1\\z=-2\end{cases}$