\(x^4+4y^4\)
\(=\left(x^2\right)^2+\left(2y\right)^2+4x^2y^2-4x^2y^2\)
\(=\left(x^2\right)^2+4x^2y^2+\left(2y\right)^2-4x^2y^2\)
\(=\left[\left(x^2\right)^2+4x^2y^2+\left(2y\right)^2\right]-\left(2xy\right)^2\)
\(=\left(x^2+2y^2\right)^2-\left(2xy\right)^2\)
\(=\left(x^2+2y^2-2xy\right)\left(x^2+2y^2+2xy\right)\)