Step 1: Understanding the Concept
A function is continuous on an interval when the pieces join at the break points \(x = \dfrac{\pi}{4}\) and \(x = \dfrac{\pi}{2}\).
Step 2: At the first joint
At \(x = \dfrac{\pi}{4}\): \(\dfrac{\pi}{4} + a\sqrt2\cdot\dfrac{1}{\sqrt2} = 2\cdot\dfrac{\pi}{4}\cdot 1 + b\), so \(a - b = \dfrac{\pi}{4}\).
Step 3: At the second joint
At \(x = \dfrac{\pi}{2}\): left limit \(2x\cot x + b \rightarrow 0 + b = b\).
Right limit: \(a\cos\pi - b\sin\dfrac{\pi}{2} = -a - b\).
So \(b = -a - b\), giving \(a = -2b\).
Step 4: Solve
\(-2b - b = \dfrac{\pi}{4}\), so \(b = -\dfrac{\pi}{12}\) and \(a = \dfrac{\pi}{6}\).
Final Answer:
The values are \(a = \frac{\pi}{6}\) and \(b = -\frac{\pi}{12}\).
\[ \boxed{\text{(D) }\dfrac{\pi}{6},-\dfrac{\pi}{12}} \]