When a definite integral is evaluated by substitution, the limits are changed to the new variable, and the answer is read off in that variable.
Given / To find: the value of the integral above.
Step 1 — substitute. Put t=tanx, so dt=sec2xdx. When x=0, t=0; when x=4π, t=1:
I=∫01t2+4t+5dt
Step 2 — complete the square. t2+4t+5=(t+2)2+12, so
I=[tan−1(t+2)]01=tan−13−tan−12
Step 3 — simplify. Since 3⋅2>−1,
tan−13−tan−12=tan−11+3⋅23−2=tan−171
Answer: tan−13−tan−12=tan−171 (about 0.142).
Note: Keeping the old upper limit 4π for t would give tan−1(2+4π)−tan−12, which is wrong.