You can't go straight to the integrating factor, because you haven't done the substitution required to turn the DE into something first order linear.

Let . Then we have . Substituting into the DE gives

This is now first order linear, so now you can apply an integrating factor.