The notation is kind of convoluted so it's hard to see what you're trying to ask ...
I'll assume its:
f(x) = (3-x^2)(x^3-x-1)
I would first multiply it out:
f(x) = 3x^3-3x-3-x^5+x^3+x^2
Then deriving that..
f'(x) = 9x^2 - 3 - 5x^4 + 3x^2 + 2x
& ordering it ..
f'(x) = -5x^4 + 12x^2 + 2x - 3