Step 1: Understanding the Concept
Let \(u=\dfrac{x}{x^2+1}\). Then \(\tan^{-1}u+\tan^{-1}\dfrac1u=\dfrac\pi2\) if \(u>0\) and \(-\dfrac\pi2\) if \(u<0\). The sign of \(u\) is the sign of \(x\).
Step 2: Calculation
For x between -1 and 0: integrand \(=-\dfrac\pi2\), contributing \(-\dfrac\pi2\times1\).\nFor x between 0 and 3: integrand \(=\dfrac\pi2\), contributing \(\dfrac\pi2\times3\).
Step 3: Compare the options
Total \(=-\dfrac\pi2+\dfrac{3\pi}2=\pi\), option (A).
Final Answer:
The value of the integral is pi.
\[ \boxed{\text{(A) }\pi} \]