I am sure there is a better strategy that someone smarter than me would use, but I am not that person.
I am trying to factor$$x^3 - 3x^2 - 4x + 12 .$$
I do not know how, so I attempt to guess with long division. I cheat and look at the answer so find out one of the factors to save myself time, so I try $x - 2$.
I am not sure how to type out long division, but I get$$ (x - 2) \mid (x^3 - 3x^2 - 4x + 12) .$$
So I know I can have an $x^2$ for how many times $x$ goes into the leading term.
Subtracting it all, I am left with$$ (x - 2 ) \mid (-x^2 - 4x + 12) .$$
I know that the leading term goes into the inner leading term $-x$ times or however you say that.$$ (x - 2 ) \mid (- 2x + 12) .$$
Now $-2$:$$ (x - 2 ) \mid 8 .$$
Now I do not know what to do, how did this go so wrong? I have $x^2 - x -2$ on top, and I have a remainder of $8$. This cannot be right; I cheated, so I know that this should be a factor.