\(x^4+1997x^2+1996x+1997\\ =x^4+x^3+x^2-x^3-x^2-x+1997x^2+1997x+1997\)
\(=\left(x^4+x^3+x^2\right)-\left(x^3+x^2+x\right)+\left(1997x^2+1997x+1997\right)\)
\(=x^2\left(x^2+x+1\right)-x\left(x^2+x+1\right)+1997\left(x^2+x+1\right)\)
\(=\left(x^2+x+1\right)\left(x^2-x+1997\right)\)