G(x)=∫0x2e−tsintdt=[−e−tsint]0x2+∫0x2e−tcostdt
=[−e−tsint]0x2+[−e−tcost]0x2−∫0x2e−tsintdt
=−e−x2sinx2−e−x2cosx2+1−G(x)
2G(x)=−e−x2sinx2−e−x2cosx2+1
G(x)=21(−e−x2sinx2−e−x2cosx2+1)
G(x)′=21{2xe−x2(sinx2+cosx2)−e−x2(2xcosx2−2xsinx2)}
=xe−x2(sinx2+cosx2−cosx2+sinx2)=2xe−x2sinx2
G(x)′=0 のとき
x=0, ±π
x=0 のとき G(x)=0 最小値
x=±π のとき G(x)=21(1+eπ1) 最大値