x1x2是方程x²+3x+1=0的两个根
所以x1+x2=-3 (韦达定理)
x1³+8x2+20=x1(x1)^2+8x2+20
=x1(-3x1-1)+8x2+20
=-3x1^2-x1+8x2+20
=-3(-3x1-1)-x1+8x2+20
=9x1-x1+8x2+20+3
=8(x1+x2)+20+3
=-24+20+3
=-1
x1x2是方程x²+3x+1=0的两个根
所以x1+x2=-3 (韦达定理)
x1³+8x2+20=x1(x1)^2+8x2+20
=x1(-3x1-1)+8x2+20
=-3x1^2-x1+8x2+20
=-3(-3x1-1)-x1+8x2+20
=9x1-x1+8x2+20+3
=8(x1+x2)+20+3
=-24+20+3
=-1