We need to evaluate ∫0π/23+2sinx+cosxdx.
We use the Weierstrass substitution t=tan(2x), which gives sinx=1+t22t, cosx=1+t21−t2, and dx=1+t22dt. When x=0, t=0; when x=π/2, t=1.
The denominator becomes 3+1+t24t+1+t21−t2=1+t23(1+t2)+4t+1−t2=1+t22t2+4t+4=1+t22(t2+2t+2).
Hence the integral transforms to ∫011+t22(t2+2t+2)1⋅1+t22dt=∫012(t2+2t+2)(1+t2)⋅1+t22dt=∫01t2+2t+2dt.
Now we complete the square: t2+2t+2=(t+1)2+1. Substituting u=t+1, du=dt, with limits u=1 to u=2:
∫12u2+1du=[tan−1(u)]12=tan−1(2)−tan−1(1)=tan−1(2)−4π.
Hence, the correct answer is Option B.