I'm trying to factor $$a^4+b^4+(a-b)^4$$ so the result would be $2(a^2-ab+b^2)^2$ but I can't get that.
I rewrite it as:
$$a^4+b^4+(a-b)^4=(a^2+b^2)^2-2a^2b^2+(a-b)^4=(a^2-\sqrt2 ab+b^2)(a^2+\sqrt2 ab+b^2)+(a-b)^4$$ But I can't use difference of squares anymore because $(a-b)^4$ is not negative.

$$(a-b)^4=(a^2+b^2-2ab)^2=(a^2+b^2)^2+4a^2b^2-4ab(a^2+b^2)$$
$$a^4+b^4=(a^2+b^2)^2-2a^2b^2$$
On addition, $$2((a^2+b^2)^2+a^2b^2-2ab(a^2+b^2))=2(a^2+b^2-ab)^2$$