The integrand can be simplified:
tanx+cotxtanx
Since cotx=tanx1:
tanx+cotxtanx=tanx+tanx1tanx
Multiply both numerator and denominator by tanx:
(tanx+tanx1)⋅tanxtanx⋅tanx
=tan2x+1tan2x
Using the identity tan2x+1=sec2x:
tan2x+1tan2x=sec2xtan2x
Since tanx=cosxsinx and secx=cosx1:
sec2xtan2x=cos2x1cos2xsin2x
=sin2x
The integral becomes:
∫π/6π/3sin2xdx
Using the identity sin2x=21−cos2x:
∫π/6π/3sin2xdx=∫π/6π/321−cos2xdx
=21∫π/6π/3(1−cos2x)dx
Integrating:
=21[x−2sin2x]π/6π/3
Evaluating at the limits:
At x=π/3: sin(2π/3)=23
At x=π/6: sin(π/3)=23
=21[(3π−23/2)−(6π−23/2)]
The 23/2 terms cancel:
=21[3π−6π]
=21[62π−π]
=21⋅6π
=12π
Therefore, the answer is 12π.