The correct option is D y(xsinx)=−cosx+c.
xsinxdydx+y(xcosx+sinx)=sinx
⇒dydx+y(cotx+1x)=1x
which is a linear differential equation with y as dependent variable
Here, P=cotx+1x;Q=1x
Integrating factor I.F.=ePdx
=e∫(cotx+1x)dx
=elogsinx+logx
=elog(xsinx)
⇒I.F.=xsinx
Solution is given by
y(xsinx)=∫xsinx1xdx
⇒y(xsinx)=−cosx+C