x1+x2=-b
x1*x2=3
|x1-x2|=2
(x1+x2)^2
=(x1)^2+(x2)^2+2x1x2
=(x1-x2)^2+4x1x2
=4+12
=16
解得x1+x2=4或者-4
因此b=-4或者b=4