You can put this solution on YOUR website! The expectation may be to use root-checking and synthetic division but the polynomial can also be treated:
Two of the roots are irrational.
Two other roots are complex, not real. General solution to quadratic formula will help.
The "solution" by @josgarithmetic is TOTALLY INCORRECT,
so, for your safety, you simply ignore it . . .
I came to bring the correct solution.
I will use grouping, re-grouping and factoring method. Watch my steps.
x4 + x^3 + 2x - 4 = (grouping) = (x^4 - 4) + (x^3 + 2x) = (factoring) = (x^2-2)*(x^2+2) + x*(x^2+2) =
= (factor out the common factor (x^2+2) = (x^2+2)*(x^2 - 2 + x) = (regrouping) = (x^2+2)*(x^2 + x - 2) =
= (x^2+2)*(x+2)*(x-1).
Factoring completed.
The real roots are 1 and -2.
The complex roots are and -.
Solved.
----------------
Another way is to guess that 1 and -2 are the roots;
then divide the original polynomial by (x-1)*(x+2), and then to finish with the quotient.
Third way would be to plot the graph of the polynomial, which will point the roots 1 and -2.