Step 1: Understanding the Concept
Differentiate \(2\sin^{-1}f(x)\) and match it with \(\sqrt{1+\sec x}\).
Step 2: Rewrite the Integrand
\(1+\sec x=\dfrac{1+\cos x}{\cos x}=\dfrac{2\cos^{2}(x/2)}{\cos x}\).
So \(\sqrt{1+\sec x}=\dfrac{\sqrt{2}\cos(x/2)}{\sqrt{\cos x}}\).
Step 3: Substitute
Put \(t=\sqrt{2}\sin(x/2)\), so \(dt=\dfrac{1}{\sqrt{2}}\cos(x/2)\,dx\).
Also \(\cos x=1-2\sin^{2}(x/2)=1-t^{2}\).
Step 4: Integrate
\(\int\dfrac{\sqrt{2}\cos(x/2)}{\sqrt{1-t^{2}}}dx=\int\dfrac{2\,dt}{\sqrt{1-t^{2}}}=2\sin^{-1}t+c\).
Hence \(f(x)=\sqrt{2}\sin\dfrac{x}{2}\).
Final Answer:
The function is \(f(x)=\sqrt{2}\sin\dfrac{x}{2}\).
\[ \boxed{\text{(A) }f(x)=\sqrt{2}\sin \left(\dfrac{x}{2}\right)} \]