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