Step 1: Understanding the Concept
In a triangle \(A+B+C=\pi\), so \(A+C=\pi-B\).
Step 2: Simplify the angle
\(A-B+C=\pi-2B\), so \(\dfrac{A-B+C}{2}=\dfrac{\pi}{2}-B\).
Therefore \(\sin\left(\dfrac{\pi}{2}-B\right)=\cos B\).
Step 3: Apply the cosine rule
\(2ac\cos B=a^2+c^2-b^2\).
Final Answer:
The expression equals \(c^2+a^2-b^2\).
\[ \boxed{\text{(B) }\mathrm{c}^{2}+\mathrm{a}^{2}-\mathrm{b}^{2}} \]