\(\Leftrightarrow y^2=x^2+4x+5\left(y\ge0\right)\\ \Leftrightarrow y^2-\left(x+2\right)^2=1\\ \Leftrightarrow\left(y-x-2\right)\left(y+x+2\right)=1\)
Vì \(x,y\in Z\Leftrightarrow\left(y-x-2\right)\left(y+x+2\right)=1\cdot1=\left(-1\right)\left(-1\right)\)
\(\left\{{}\begin{matrix}y-x-2=1\\y+x+2=1\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}y-x=3\\y+x=-1\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x=-2\\y=1\end{matrix}\right.\left(tm\right)\)
\(\left\{{}\begin{matrix}y-x-2=-1\\y+x+2=-1\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}y-x=1\\y+x=-3\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x=-2\\y=-1\end{matrix}\right.\left(ktm\right)\)
Vậy \(\left(x;y\right)=\left(-2;1\right)\)