\(x^4-2y^4-x^2y^2+x^2+y^2=\left(x^4-y^4\right)-\left(x^2y^2-x^2\right)+\left(y^2-y^4\right)=\left(x^2-y^2\right)\left(x^2+y^2\right)-x^2\left(y^2-1\right)-y^2\left(y^2-1\right)=\left(x^2+y^2\right)\left(x^2-y^2\right)-\left(y^2-1\right)\left(x^2+y^2\right)=\left(x^2+y^2\right)\left(x^2-y^2-y^2+1\right)=\left(x^2+y^2\right)\left(x^2-2y^2+1\right)\)