\(\begin{array}{l}(3x + 1)({x^2} - 2x + 1)\\ = 3x({x^2} - 2x + 1) + 1({x^2} - 2x + 1)\\ = 3{x^3} - 6{x^2} + 3x + {x^2} - 2x + 1\\ = 3{x^3} - 5{x^2} + x + 1\end{array}\)
Vì \((3x + 1)({x^2} - 2x + 1) = 3{x^3} - 5{x^2} + x + 1\)
\( \Rightarrow (3{x^3} - 5{x^2} + x + 1):(3x + 1) = {x^2} - 2x + 1\)