First write the equation in the form of dy/dx+Py = Q, where P and Q are constants of x only
Find integrating factor, IF = e∫Pdx
Now write the solution in the form of y (I.F) = ∫Q × I.F C