前面加一句syms x y;syms x y z;Z=int((((x-z).^2).*y))得到Z=(y*(x - z)^3)/3;把z=-100 100带入相减就可以了或者直接syms x y;Z=int((((x-z).^2).*y),z,-100,100)就有计算结果