Step 1: Write second polynomial below the first one. Making sure like terms are lined up.
$$ \begin{array}{lrrrr} & & x^2 & -3x & 2 \\ \color{red}{ - } & x^3 & -3x^2 & 4x & -2 \\ \hline \end{array} $$Step 2: Change ALL the signs in the second row.
$$ \begin{array}{lrrrr} & & x^2 & -3x & 2 \\ \color{red}{ - } & -x^3 & 3x^2 & -4x & 2 \\ \hline \end{array} $$Step 3: Combine like terms (add each column):
$$ \begin{array}{lrrrr} & & x^2 & -3x & 2 \\ \color{red}{ - } & -x^3 & 3x^2 & -4x & 2 \\ \hline & x^3 & -2x^2 & x & \end{array} $$