Ta có: \(x^4+y^4+\left(x+y\right)^4\)\(=x^4+y^4+x^4+4x^3y+6x^2y^2+4xy^3+y^4\)
\(=2x^4+2y^4+4x^2y^2+4x^3y+4xy^3+2x^2y^2\)
\(=2\left(x^4+y^4+2x^2y^2\right)+4xy\left(x^2+y^2\right)+2x^2y^2\)
\(=2\left(x^2+y^2\right)^2+4xy\left(x^2+y^2\right)+2x^2y^2\)
\(=2\left[\left(x^2+y^2\right)+2xy\left(x^2+y^2\right)+x^2y^2\right]\)
\(=2\left(x^2+xy+y^2\right)^2\left(dpcm\right)\)