f'(x)=e^x(ax+b+a)-2x-4f(0)=b=4,f'(0)=a+b-4=4a=b=4f'(x)=2(x+2)(2e^x-1)x<-2或x>ln1/2时,f'(x)>0-2f(x)在(-∞,-2),(ln1/2,+∞)上递增,(-2,ln1/2)上递减极大值f(-2)=4-4/e^2