f'(x)=-3x^2+3=-3(x+1)(x-1)当x<-1时,f'(x)<0,函数单调递减;当-1<=x<=1时,f'(x)>=0,函数单调递增;当x>1时,f'(x)<0,函数单调递减;极小值为:f(-1)=-2;极大值:f(1)=2