Let F(x)=∫0xg(t)dt. The given relation is
F(x)=x−∫0xtg(t)dt,x≥0.
Differentiate both sides with respect to x:
F′(x)=g(x), while by Leibniz rule
dxd[x−∫0xtg(t)dt]=1−xg(x).
Hence
g(x)=1−xg(x)⟹(1+x)g(x)=1⟹g(x)=1+x1.
The differential equation for y=y(x) is
dxdy−ytanx=2(x+1)secx⋅g(x).
Substituting g(x)=1+x1 gives
dxdy−ytanx=2secx.
This is linear of the form dxdy+P(x)y=Q(x) with P(x)=−tanx and Q(x)=2secx.
The integrating factor (I.F.) is
I.F.=e∫P(x)dx=e∫−tanxdx=elncosx=cosx.
Multiply the equation by the integrating factor:
cosxdxdy−ysinx=cosx⋅2secx=2.
The left side is dxd(ycosx). Therefore
dxd(ycosx)=2.
Integrate: ycosx=2x+C.
Using the condition y(0)=0:
0⋅1=2⋅0+C⟹C=0.
Thus y(x)=cosx2x=2xsecx.
Finally, at x=3π:
y(3π)=2(3π)sec(3π)=32π×2=34π.
Hence the required value is 34π, which corresponds to Option B.