x^2+x-1=0,得到 x²+x=1,代入下面x^3+2x^2-7=(x-1)(x²+x+1)+2x²-6 = 2(x-1)+2(x²-3)=2(x²+x-4)=-6
∵x²+x-1=0∴x²+x=1, x²+2x=x+1∴原式=x(x²+2x)-7=x(x+1)-7=x²+x-7=1-7=-6