# 1st Order Homogeneous DE

I was wondering if some-one could give me some advice on how to complete the following equation:

$$\frac{du}{dx} = \frac{4u-2x}{u+x}$$

Whenever I try to complete it I get a function which I don't think should be integratible. Could some light be shed onto this matter?

dividing the fraction on the right by x leads you to the following form:

$$\frac{du}{dx}=\frac{4\frac{u}{x}-2}{\frac{u}{x}+1}$$

This is a homogeneous differential equation, which means the right side can be expressed as a function of u/x. The way to deal with equations like that are to perform the next change of variables:

$$z=\frac{u}{x} => u=xz$$
$$\frac{du}{dx}=x\frac{dz}{dx}+z$$

Then, if you have a general homogeneous equation:

$$\frac{du}{dx}=F(\frac{u}{x})$$

It turns into:

$$x\frac{dz}{dx}+z=F(z)$$

And by seperation of variables method:

$$\frac{dz}{F(z)-z}=\frac{dx}{x}$$

You integrate to retrieve z(x) (commonly you will have an implicit function form), and change back to u(x).

Notice that you'll probably have singular solutions for z, and that constant singular solution for z are linear singular solutions for u.

HallsofIvy
Homework Helper
Since the problem was that drcameron got "a function which I don't think should be integratible", It is precisely that "F" he is asking about.

If we let v= u/x, then u= xv and du/dx= x dv/dx+ v so the equation becomes
$$x\frac{dv}{dx}+ v= \frac{4v-2}{v+1}$$
then
$$x\frac{dv}{dx}= \frac{4v-2}{v+1}- v= -\frac{v^2- 4v-2}{v+1}$$
so, separating,
$$\frac{v+1}{v^2- 4v- 2} dv= \frac{1}{x}dx$$

Now that certainly is integrable: use "partial fractions" on the left. The denominator factors as $(v- 2+\sqrt{6})(v-2-\sqrt{6})$. I got that by completing the square: $v^2- 4v- 2= v^2- 4v+ 4- 4- 2= (v-2)^2- 6$ which can be factored s a "difference of squares".

Many thanks to both of you for your help,
For some reason I had convinced myself to use y=u+x as a substition - its easy to see where i went wrong then!