Let g:(0,∞)→R be a differentiable function such that
\[\int\left[\frac{x(\cos x-\sin x)}{e^x+1}+\frac{g(x)\big(e^x+1-xe^x\big)}{(e^x+1)^2}\right]dx = \frac{xg(x)}{e^x+1}+c\]
for all x>0, where c is an arbitrary constant. Then:
Solutions · 1
Official solution
\[
\int\left(\frac{x(\cos x-\sin x)}{e^x+1}+\frac{g(x)\left(e^x+1-x e^x\right)}{\left(e^x+1\right)^2}\right) d x=\frac{x g(x)}{e^x+1}+c
\]
On differentiating both sides w.r.t. x, we get
\[
(ex+1x(cosx−sinx)+(ex+1)2g(x)(ex+1−xex)=(ex+1)2(ex+1)(g(x)+xg′(x))−ex⋅x⋅g(x)(ex+1)x(cosx−sinx)+g(x)(ex+1−xex)=(ex+1)(g(x)+xg′(x))−ex⋅x⋅g(x)⇒gg′(x)=cosx−sinx⇒g(x)=sinx+cosx+C
\]
g(x) is increasing in (0,π/4)g"(x)=−sinx−cosx0