<s>[INST] How to factorize $x^4+2x^2-x+2$? look at this:
$$x^4+2x^2-x+2$$
How to factorize it?
It should be changed to be in the form of standard factorization formulas.
 [/INST] $$f(x)=x^4+2x^2-x+1=(x^4-x^3+x^2)+(x^3 -x^2+x)+(2x^2-2x+2)$$
$$f(x)=x^2(x^2-x+1)+x(x^2-x+1)+2(x^2-x+2)=(x^2-x+1)(x^2+x+2)$$
</s>