Step 1: Understanding the Concept
Convert \(\sin x-\sqrt3\cos x\) to a single sine term.
Step 2: Single sine form
\(\sin x-\sqrt3\cos x=2\left(\dfrac12\sin x-\dfrac{\sqrt3}2\cos x\right)=2\sin\left(x-\dfrac\pi3\right)\).
Step 3: Integrate
\(\int\dfrac{dx}{2\sin(x-\frac\pi3)}=\dfrac12\int\csc\left(x-\dfrac\pi3\right)dx\).
Using \(\int\csc\theta\,d\theta=\log|\csc\theta-\cot\theta|+c\):
Step 4: Result
\(\dfrac12\log\left|\csc\left(x-\dfrac\pi3\right)-\cot\left(x-\dfrac\pi3\right)\right|+c\).
Final Answer:
The integral is \(\frac12\log|\csc(x-\frac\pi3)-\cot(x-\frac\pi3)|+c\).
\[ \boxed{\text{(B) }\dfrac{1}{2}\log |\csc \left(x-\dfrac{\pi }{3}\right)-\cot \left(x-\dfrac{\pi }{3}\right)|+c} \]