MapleMultFactor.mws

>    expand((D-2)*(D+3)*(D-1)*(2*D+5));

2*D^4+5*D^3-14*D^2-23*D+30

>    factor(2*D^4+5*D^3-14*D^2-23*D+30);

(D-2)*(D+3)*(D-1)*(2*D+5)

>