Question: How do I Multiply(expand) a Polynomial and get it's shortened form?

How do I multiply(expand) a Polynomial and get it's shortened form? I have a polynomial X^2+a*X+b and I rise it to the power of 2 and multiply by X eg X*(X^2+a*X+b)^2 and I wish to get the answer for this in the form of X^5+2*X^4*a+(a^2+2b)X^3+2*a*X^2*b+X*b^2 as opposed to getting X^5+2*X^4*a+2X^3b+a^2X^3+2*a*X^2*b+X*b^2 Is this possible? At the moment I use the Expand command in maple to generate the answer. I know this is slightly pedantic as maple is returning the correct answer but I need to build a Matrix out of this using quite a few of these polynomials. Any help will be greatly appreciated.
Please Wait...