Ta có:
\(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)\)
=> \(x^4+4\) chia hết cho \(x^2+2x+a\) khi \(\left(x^2+2x+2\right)\left(x^2-2x+2\right)⋮\left(x^2+2x+a\right)\)
=> a = 2.