Using the ansantz gives

Now we just need to factor the above polynomial

By the rational roots theorem if there are other rational roots they must be either

now by either long or synthetic division you will find that 1 and 2 are both roots giving the factorization

Putting all of this back in gives the solution