putting polynomials in standard form.

(x-3)^2(x-1)