∫x²sinxdx
=-∫x²dcosx
=-x²cosx+∫cosxdx²
=-x²cosx+2∫xcosxdx
=-x²cosx+2∫xdsinx
=-x²cosx+2xsinx-2∫sinxdx
=-x²cosx+2xsinx+2cosx+C