Question Practice

Question 1
If $ \int \frac{xe^{x}}{\sqrt{1+e^{x}}}=f(x)\sqrt{1+e^{x}}-2log \frac{\sqrt{1+e^{x}}-1}{\sqrt{1+e^{x}}+1}+C$ then $f(x)$ is