So that the large powers don't get to you (and to make long division easier), let , then we need to solve:

we see that is a root, by the remainder theorem, thus is a factor by the factor theorem

doing by long or synthetic division, we find that

now replace with and you're done