how do you factor x^6+512?

it would be (x^2)^3 + (8)^3

so you could factor it:
(x^2 + 8)(x^4 - 8x^2 + 64)