由于x^2*sinx是奇函数,所以
∫[-π/2,π/2](x^2+x)sinxdx
=∫[-π/2,π/2]xsinxdx
=2∫[0,π/2]xsinxdx
=2(-xcosx+sinx)[0,π/2]
=2