Step 1: Understanding the Concept
\(\int u\,dv=uv-\int v\,du\) with \(u=x\), \(dv=\sec^2x\,dx\).
Step 2: Integrate by parts
\(\int x\sec^2x\,dx=x\tan x-\int\tan x\,dx=x\tan x-\log|\sec x|\).
Step 3: Apply limits
At \(\pi/4\): \(\dfrac{\pi}{4}\cdot1-\log\sqrt2\). At 0: \(0-\log1=0\).
Step 4: Result
The value is \(\dfrac\pi4-\log\sqrt2\).
Final Answer:
The value is \(\pi/4-\log\sqrt2\).
\[ \boxed{\text{(B) }\dfrac{\pi}{4}-\log\sqrt{2}} \]