I can't follow your work, you make a substitution, but then it seems that you don't really use it because the next to last equation you have involves both u and y when making it should only involve one or the other not both. What are p(x) and q(x) you don't define them and it isn't obvious at all what they are.
When you have a differential equation like this you want to make the substitution that you did, but then you should divide the entire equation by the highest power of y that is present and then use the substitution so that you will get a linear first order differential equation in u, and then you can solve for the function u and use the substitution to find what y should be.EDIT: Oh I can see what you did now, but none of it is justified at all. When you make that substitution you need to use it. It seems as though you arbitrarily picked out functions to be p(x) and q(x) for no reason at all and just sort of attached u to the equation, you should have realized that this is wrong since you end up with an equation that is entirely different from the one you started with.