Step 1: Understanding the Concept
Put \(t=\sqrt{e^x-1}\), so \(t^2=e^x-1\).
Step 2: Change the variable
\(2t\,dt=e^x\,dx=(t^2+1)dx\), so \(dx=\frac{2t\,dt}{t^2+1}\).
Step 3: Integrate
\(\int\frac{1}{t}\cdot\frac{2t}{t^2+1}dt=2\int\frac{dt}{1+t^2}=2\tan^{-1}t+c\).
Step 4: Compare the options
So \(f(x)=\sqrt{e^x-1}\), option (B).
Final Answer:
The function f of x is the square root of e to the x minus 1.
\[ \boxed{\text{(B) }\sqrt{e^{x}-1}} \]