One of the easiest way to factorize a simple polynomial (here I mean those with single variable (here #x#) and integers as coefficients) is identify zeros of the polynomials.
Zeros of the polynomials are those numbers, which when put in place of variable, result in polynomial's value becoming zero. These are generally factors of the independent term (without #x#), which is #2# here. Factors of #2# are #{1,-1,2,-2}#.
Clearly #1# is one such zero of #y=x^3−3x^2+2#, then #(x-1)# is one such factor. Dividing #x^3−3x^2+2# by #(x-1)# we get #x^2-2x+2# and hence #y=(x-1)(x^2-2x+2)#.
As the polynomial #(x^2-2x+2)# is quadratic, one can check discriminant to find if rational factors are possible or not. Discriminant of quadratic polynomial #(ax^2+bx+c)# is #(b^2-4ac)#. If it is negative no real factors exist and if it is square of a number, rational roots are possible.
Here, #(b^2-4ac)=((-2)^2-4xx1xx2)=(4-8)=-4# and as such no further real roots exist.
So factors of #y=x^3−3x^2+2# are #y=(x-1)(x^2-2x+2)#