Puedes comenzar por desarrollar cada término por separado:
(x2 + 3x - 1)*(x - 2) = x2*(x - 2) + 3x*(x - 2) - 1*(x - 2) = x3 - 2x2 + 3x2 - 6x - 1x + 2 = x3 + x2 - 7x + 2 = A;
3*(2x2 + 1) = 6x2 + 3 = B;
(x + 3)*(x2 + 1) = x*(x2 + 1) + 3*(x2 + 1) = x3 + x + 3x2 + 3 = x3 + 3x2 + x + 3 = C.
Luego, tienes para la expresión de tu enunciado:
(x2 + 3x - 1)*(x - 2) - 3*(2x2 + 1) + (x + 3)*(x2 + 1) =
sustituyes las expresiones señaladas (A) (B) (C), y queda:
= (x3 + x2 - 7x + 2) - (6x2 + 3) + (x3 + 3x2 + x + 3) =
distribuyes los agrupamientos de términos, y queda:
= x3 + x2 - 7x + 2 - 6x2 - 3 + x3 + 3x2 + x + 3 =
reduces términos semejantes, y queda:
= 2x3 - 2x2 - 6x + 2.
Espero haberte ayudado.