The solution of the differential equation dy/ dx+y/x= x is
A. \(xy+\cos x=\sin x+c\), where c is a constant of integration.
B. \(x(y+\cos x)=\sin x+c\), where c is a constant of integration.
C. \(y(x+\cos x)=\sin x+c\), where c is a constant of integration.
D. \(xy+\sin x=\cos x+c\), where c is a constant of integration.