\(\eqalign{
& a)\,\, - {x^3} + 3{x^2} - 3x + 1 \cr
& = 1 - 3x + 3{x^2} - {x^3} \cr
& = {1^3} - {3.1^2}.x + 3.1.{x^2} - {x^3} \cr
& = {\left( {1 - x} \right)^3} \cr} \)
\(\eqalign{
& b)\,\,8 - 12x + 6{x^2} - {x^3} \cr
& = {2^3} - {3.2^2}.x + 3.2.{x^2} - {x^3} \cr
& = {\left( {2 - x} \right)^3} \cr} \)