(a)
Given, $\frac{dy}{dx} + \frac{y}{x} = \sin x$
$\therefore$ $IF = e^{\int_{}^{}{\frac{1}{x}\ dx}} = x$
$\therefore$ Solution is $y.x = \int_{}^{}{x\sin x}\ dx + c$
$\Rightarrow$ $xy = - x\cos x + \sin x + c$
$\Rightarrow$ $x\left( y + \cos x \right) = \sin x + c$