f'(x)=6x^2-6x-12=6(x-2)(x+1)=0 x=-1 x=2
(-∞,-1)增,(-1,2)减,(2,+∞)增
极大值f(-1)=-2-3+12+21=28
极小值f(2)=16-12-24+21=1