ok so here is the problem...

(x^2+ xy)dx - (2xy + y^2)dy = 0 let y = ux

ok the problem seems easy enough... if y = ux then dy = udx + xdu

so now im ready to substitute...

when i solved it i got something like

ln|x| = (2u^2 + u)/(-u^3-2u^2+u+1)

so where did i go wrong...

(x^2 +ux^2)dx - [(2ux^2 + (ux)^2)](udx + xdu) from here i used algebra to simplify?

thanks in advance...