Solution:
Let
I=∫04π(2sec2x+x3+2)dx
Integrating term by term,
∫(2sec2x+x3+2)dx=2tanx+4x4+2x=F(x)
By the second fundamental theorem of integral calculus,
I=F(4π)−F(0)=[2tan4π+41(4π)4+2⋅4π]−[2tan0+0+0]
Since tan4π=1 and tan0=0,
I=2+1024π4+2π
Therefore,
∫04π(2sec2x+x3+2)dx=1024π4+2π+2