OP, are you sure that you didn't misread the index of the x² in the numerator (could it be x⁵ for example?)
There's a possibility that you were given a trick long division question. Maybe they are expecting you to write "this can't be done", or perhaps you could present it like this...
Code:
0
---------------
x⁴ - 3x² + x + 1 ) x² - 3x -3
0 + 0 + 0
------------
x² - 3x -3 (remainder)
Therefore the answer is:-
0 + (x² - 3x -3) / (x⁴ - 3x² + x + 1)
= (x² - 3x -3) / (x⁴ - 3x² + x + 1)
= original question
Was this a question that you were given, or have you come across this expression as part of some bigger question (and you thought that long division might be the way forward) ?