Factorize : $$2a^4 + a^2b^2 + ab^3 + b^4$$ Here is what I did:
$$a^4+b^4+2a^2b^2+a^4-a^2b^2+ab^3+b^4$$ $$(a^2+b^2)^2+a^2(a^2-b^2)+b^3(a+b)$$ $$(a^2+b^2)^2+a^2(a+b)(a-b)+b^3(a+b)$$ $$(a^2+b^2)^2+(a+b)((a^2(a-b)) +b^3)$$ $$(a^2+b^2)^2+(a+b)(a^3-a^2b+b^3)$$
At this point I don't know what to do and am feeling that my direction is wrong. Please help me.
( Wolfram alpha says that the answer is $(a^2-a b+b^2) (2 a^2+2 a b+b^2)$ but how? )
Different Hint
Since your polynomial is homogeneous, this is equivalent to factoring the degree 4 univariate polynomial $2x^4+x^2+x+1.$