\[x^{2}y + 1 - x^{2} - y =\]
\[= x^{2}(y - 1) - (y - 1) =\]
\[= (y - 1)\left( x^{2} - 1 \right) =\]
\[= (y - 1)(x - 1)(x + 1).\]