Divide the numerator and denominator by cos2x:
I=∫0π/4sec2x+tanxtan2xdx=∫0π/41+tan2x+tanxtan2xdx
Let tanx=t, then sec2xdx=dt⟹dx=1+t2dt.
Changing the limits: when x=0⟹t=0, and when x=4π⟹t=1:
I=∫01(t2+t+1)(t2+1)t2dt
Using partial fraction decomposition:
(t2+t+1)(t2+1)t2=t2+t+1−t+t2+1t
Split the integral into two parts (I=I1−I2):
I=∫01t2+1tdt−∫01t2+t+1tdt
I1=∫01t2+1tdt=21[loge(t2+1)]01=21(loge2−loge1)=21loge2
I2=∫01t2+t+1tdt
Express the numerator as t=21(2t+1)−21:
I2=21∫01t2+t+12t+1dt−21∫01t2+t+11dt
21[loge(t2+t+1)]01=21(loge3−loge1)=21loge3
t2+t+1= (t+21)2+43=(t+21)2+(23)2
21∫01(t+21)2+(23)21dt=21⋅32[tan−1(23t+21)]01 =31[tan−1(32t+1)]01=31(tan−1(3)−tan−1(31)) =31(3π−6π)=31⋅6π=63π
I2=21loge3−63π
I=I1−I2
I=21loge2−(21loge3−63π) I=21(loge2−loge3)+63π I=21loge(32)+63π
Comparing with the given form a1loge(3a)+b3π, we find:
a=2andb=6 a+b=2+6=8