Factorize $x^3-3x+2$ How can I factorize $x^3-3x+2$ ?
The answer that I got on the internet is $x^3-2x^2+x+2x^2-4x+2$=$(x-1)^2(x+2)$ 
It would be nice if anyone could also tell what these type of equations are called and where can I learn more?

They are called cubic functions / cubic equations. A closed formula for the solutions exists but it is quite ugly so the common method to factorize the term is to guess one root $x_0$ and then do long division by $(x-x_0)$.
So the method one would be to use the formula on
$x^3-3x+2=0$ and find that the roots are $1,1,-2$ and you are done. The trivial method is to guess $x_0=1$ and use the long division
