Step 1: Understanding the Concept
The equation is linear: \(\dfrac{dy}{dx}+Py=Q\) with \(P=\dfrac1x\), \(Q=\sin x\).
Integrating factor \(=e^{\int dx/x}=x\).
Step 2: Solve
\(xy=\int x\sin x\,dx\)
By parts: \(\int x\sin x\,dx=-x\cos x+\sin x\).
Step 3: Rearrange
\(xy=-x\cos x+\sin x+c\Rightarrow xy+x\cos x=\sin x+c\)
\(x(y+\cos x)=\sin x+c\), option (B).
Final Answer:
The solution is x(y + cos x) = sin x + c.
\[ \boxed{\text{(B) }x(y+\cos x)=\sin x+\mathrm{c}} \]