This can be done using long division. That's rather hard to depict here though, so to run through it verbally:
Take (x - 2) and multiply it by a factor that gives us the term (x3 - 2). That factor would be x2, making that term (x3 - 2x2). Subtract that result from our initial equation. This gives us:
-2x2 - 7x + 6
Now repeat that process, finding a factor by which to multiply (x - 2) which will give us a term that is equal to the first term of our new expression. That factor would be -2x, giving us (-2x2 + 4x). Again subtract it from our equation, and we get:
-11x + 6
Again we repeat, this time multiplying our divisor by -11, giving us (-11x + 22). Subtract it, and we get:
-16
And that's our remainder, as we're now out of terms. Now we add up the terms and we get:
x2 - 2x - 11, with a remainder of -16. That could be expressed as:
x2 - 2x - 11 - 16 / (x - 2)
(x + 7)(x2 - 7x + 49)
7 x3 + 2 x = x (7 x2 + 2)
x3 - 7x2 + 6x =x (x2 - 7x + 6) =x (x - 6) (x - 1)
x3 + x2 + 4x + 4 = (x2 + 4)(x + 1)
x3 + 13x2 + 42x = x(x2 + 13x + 42) = x(x2 + 6x + 7x + 42) = x[x(x + 6) + 7(x + 6)] = x(x + 7)(x + 6)
x3 + x2 - 6x + 4 = (x - 1)(x2 + 2x - 4)
x3 - 7x2 + 6x = x(x2 - 7x + 6) = x(x2 - x - 6x + 6) = x[x(x - 1) - 6(x - 1)] = x2(x - 1) - 6x(x - 1) = (x2 - 6x)(x - 1)
(x - 7)(x2 + 7x + 49)
x3 - x2 + x - 2 has no rational factors.
3 - 3x + x2 - x3 = (1 - x)(x2 + 3)
x3 + x2 - 3x - 3 x(x2 + x - 3) - 3
x3 - x2 + 2x = x*(x2 - x + 2) which cannot be factored further.