\(x^2+2y^2+2xy-6x+18=0\)
\(\Rightarrow\left(x+y\right)^2-6\left(x+y\right)+9+y^2+6y+9=0\)
\(\Rightarrow\left(x+y\right)^2-2.\left(x+y\right).3+3^2+y^2+2.y.3+3^2=0\)
\(\Rightarrow\left(x+y-3\right)^2+\left(y+3\right)^2=0\)
\(\Rightarrow\hept{\begin{cases}x+y-3=0\\y+3=0\end{cases}\Rightarrow}\hept{\begin{cases}x=6\\y=-3\end{cases}}\)
Cách khác :
\(x^2+2y^2+2xy-6x+18=0\)
\(2\left(x^2+2y^2+2xy-6x+18\right)=0\)
\(2x^2+4y^2+4xy-12x+36=0\)
\(\left[\left(2y\right)^2+2\cdot2y\cdot x+x^2\right]+\left(x^2-2\cdot x\cdot6+6^2\right)=0\)
\(\left(2y+x\right)^2+\left(x-6\right)^2=0\)
\(\Rightarrow\hept{\begin{cases}2y+x=0\\x-6=0\end{cases}\Rightarrow\hept{\begin{cases}2y=-6\\x=6\end{cases}\Rightarrow}\hept{\begin{cases}y=-3\\x=6\end{cases}}}\)
P.s: Pham Van Hung đây là cách khác :)