Given the ODE $y'= \left( \frac{x+2y+1}{2x-6} \right)$
I have tried two methods to solve this equation. One method is seperate variables: $(2x-6 )dy = (x+2y+1)dx $ integrating gives $2(xy-3y)=x^2+2xy+x+c$, simplifying we get $y= -(x^2+x+c)/6 $\
But on the other hand, if I try to solve by using an integrating factor u(x), I get a different solution. The method I used was rewrite in standard linear form, find integrating factor by calculating $u(x) = e^(\int p(x)dx)=1/(3-x)$. In the end I found that the solution was $y=(3-x)(2/(x-3)+1/ log(x-3) + C$
Whats going on?