What is the "trick" to get from $1+x^4$ to $$(x^2-\sqrt{2}x+1)(x^2+\sqrt{2}x+1)?$$ Of course I can calculate it's true, but I don't understand what steps to take to get from one to the other.
Next to this specific question, I am also looking for the general rules for such decompositions?
Cheers!
There is a general procedure to solve quartic equations. The first step is to depress the polynomial, i.e. translate the variable to cancel the cubic term. Your polynomial is already in depressed form.
Then you try a factorization of the form
$$(x^2-ax+b)(x^2+ax+c)=x^4+(-a^2+b+c)x^2+(ab-ac)x+bc$$
which is built to yield a depressed polynomial.
By identification with $x^4+1$,
$$a^2=b+c,\\b=c,\\bc=1,$$
which easily gives
$$a=\sqrt2,\\b=c=1.$$
In more general cases (more nonzero coefficients), the procedure leads to a cubic equation, for which there is also a systematic procedure. More at https://en.wikipedia.org/wiki/Quartic_function#Solution_methods.