You could also follow the 'rational roots theorem' by considering the positive and negative of the trailing and leading coefficient. (in this case the leading coefficient being 1 and the trailing coefficient is 4)
Consider all the factors of the trailing term ('p'), 4 (including the negatives) are (+/- 1, +/-2, +/-4) and factors of the leading term (q), 1 (including the negatives) are (+/-1 only)
Diving the trailing term by the leading term p/q your only possibilities are: +1, -1,+2,-2,+4 and -4. In this case, x=2 , (x-2) is your only solution.
(x-2)(x^2+x+2) is your factorised form. But keep in mind that (x^2+x+2) there are no solutions when y=0.