We can first split the fraction up to:
(Nevermind, can't get the LaTeX right, just refer above)
Note:
Now, when we divide by x's of different powers, we can subtract the exponents.
So that's where the x^5/2 came from...
You should be able to finish it from here, just keep subtracting the powers.