(x^2 - 2x + 1)(x^3 + 3x^2 + 3x + 1) + 3x - 1
Expanding the first term, we get:
x^5 + 3x^4 + 3x^3 + x^3 - 2x^2 - 6x + x^2 - 3x + 1
Combine like terms:
x^5 + 3x^4 + 4x^3 - x^2 - 9x + 1 + 3x - 1
Simplify further:
x^5 + 3x^4 + 4x^3 - x^2 - 6x + 1
(x^2 - 2x + 1)(x^3 + 3x^2 + 3x + 1) + 3x - 1
Expanding the first term, we get:
x^5 + 3x^4 + 3x^3 + x^3 - 2x^2 - 6x + x^2 - 3x + 1
Combine like terms:
x^5 + 3x^4 + 4x^3 - x^2 - 9x + 1 + 3x - 1
Simplify further:
x^5 + 3x^4 + 4x^3 - x^2 - 6x + 1