Step 1: Understanding the Concept
\(g(f(x))=\log(1+x)\), so we need \(\int\log(1+x)\,dx\).
Step 2: Integrate by parts
Take \(\log(1+x)\) as the first function and 1 as the second: \(\int\log(1+x)\cdot 1\,dx=x\log(1+x)-\int\frac{x}{1+x}dx\).
Step 3: Calculation
\(\int\frac{x}{1+x}dx=\int\left(1-\frac{1}{1+x}\right)dx=x-\log(1+x)\).
So the integral is \(x\log(1+x)-x+\log(1+x)+c=(1+x)\log(1+x)-x+c\).
Step 4: Compare the options
This is option (A).
Final Answer:
The integral equals (1 + x) log(1 + x) minus x plus c.
\[ \boxed{\text{(A) }(1+x)\log(1+x)-x+c} \]