(c)
Given, $\frac{dy}{dx} + \frac{y}{x} = \cos x + \frac{\sin x}{x}$
$\therefore$ $IF = e^{\int_{}^{}{\frac{1}{x}\ dx}} = e^{\log x} = x$
$\therefore$ Complete solution is
$xy = \int_{}^{}{(x\cos x} + \sin x)dx$
$\Rightarrow$ $xy = x\sin x + c$
At $y = 1,\ x = \frac{\pi}{2},c = 0$
$\therefore$ $y = \sin x$