(1)求导函数可得f′(x)=x2+ax+a
∵函数f(x)在区间(-∞,+∞)上为单调函数,
∴△=a2-4a≤0
∴0≤a≤4;
(2)直线AB的斜率=
=f(x2)?f(x1)
x2?x1
x23+1 3
ax22+ax2?2?(1 2
x13+1 3
ax12+ax1?2)1 2
x2?x1
=
[(x1+x2)2-x1x2]+1 3
a(x1+x2)+a≥?1 2
5 6
∵x1+x2=-a,x1x2=a
∴
(a2-a)-1 3
a2+a≥?1 2
5 6
∴-1≤a≤5