Step 1: Verification Route
Differentiate the candidate $\cos(y/x)=\log|x|+c$ and see if it gives the original equation.
Step 2: Differentiate
$-\sin\left(\dfrac{y}{x}\right)\cdot\dfrac{x\,y'-y}{x^{2}}=\dfrac{1}{x}$, so $\sin\left(\dfrac{y}{x}\right)(x\,y'-y)=-x$.
Step 3: Compare
This rearranges to $x\sin(y/x)\,dy=\left[y\sin(y/x)-x\right]dx$, exactly the given equation.
Final Answer:
The answer is cos(y/x) = log|x| + c.
\[ \boxed{\text{(C) }\cos\left(\dfrac{y}{x}\right)=\log |x|+c} \]