We need to evaluate ∫x11+x1−xdx.
Let x=cosθ, so dx=−sinθdθ.
Then 1+x1−x=1+cosθ1−cosθ=2cos2(θ/2)2sin2(θ/2)=tan2θ.
Substituting these expressions into the integral gives ∫cosθ1⋅tan2θ⋅(−sinθ)dθ.
Since sinθ=2sin2θcos2θ, this becomes −∫cosθtan(θ/2)⋅2sin(θ/2)cos(θ/2)dθ=−∫cosθ2sin2(θ/2)dθ.
Using 2sin2(θ/2)=1−cosθ transforms the integral to −∫cosθ1−cosθdθ=−∫(secθ−1)dθ.
Integrating yields −ln∣secθ+tanθ∣+θ+C.
Since x=cosθ, it follows that θ=cos−1x, secθ=x1, and tanθ=x1−x2.
Hence g(x)=−lnx1+x1−x2+cos−1x=−ln(x1+1−x2)+cos−1x.
Applying the condition g(1)=0 gives g(1)=−ln(11+0)+cos−1(1)=−ln1+0=0, so C=0.
To compute g(21), substitute into the expression: g(21)=−ln(1/21+1−1/4)+cos−1(21).
It follows that g(21)=−ln(1/21+23)+3π.
Now, 2+3=(3+1)(2+3)(3+1)⋅11. More directly, note that 3−13+1=2(3+1)2=24+23=2+3.
Therefore:
g(21)=−ln(3−13+1)+3π=ln(3+13−1)+3π.
Hence the correct answer is Option A: loge(3+13−1)+3π.