Given that
f(x)=sinx and
g(x)sinx+cosx+1
Let
I=∫02πg(x)f(x)dx=∫02πsinx+cosx+1sinxdx.....(i)
I=∫02πsin(2π−x)+cos(2π−x)+1sin(2π−x)dxI=∫02πcosx+sinx+1cosxdx....(ii)
Adding equation (i) and (ii), we get
2I=∫02πsinx+cosx+1sinx+cosxdx=∫02π(1−sinx+cosx+11)dx=∫02π1dn−∫02πsinx+cosx+11dxfromsolutionofpreviousquestion\begin{aligned}
& 2 \mathrm{I}=\int_0^{\frac{\pi}{2}} 1 \mathrm{dx}-\ln 2=\frac{\pi}{2}-\ln 2 \\
& \therefore \mathrm{I}=\frac{\pi}{4}-\frac{\ln 2}{2}
\end{aligned}$$