# Homework Help: First order O.D.E. with no analytic solution?

1. Nov 10, 2008

### Vuldoraq

1. The problem statement, all variables and given/known data

Does the following differential equation have a simple analytic solution?

$$\frac{dy}{dx}=y-\frac{2x}{y}$$

2. Relevant equations

Don't know.

3. The attempt at a solution

I would have said that there is no simple solution to this equation, I tried to find the integrating factor, which would just be $$-x$$ in this case, but i don't know what to do about the $$-\frac{2x}{y}$$ part? The standard formula's I have don't work.

Any hints and pointers would be much appreciated!

Last edited: Nov 10, 2008
2. Nov 10, 2008

### Office_Shredder

Staff Emeritus
y-dy/dx = -2x/y multiply both sides by y

y2 - y*dy/dx = -2x

Try substituting v = y2

3. Nov 10, 2008

### Vuldoraq

Okay,

$$y^{2}=v$$ gives,

$$y*\frac{dy}{dx}=2x+v$$ rearranging,

$$\int y dy=\int 2x dx +\int v dx$$ integrating,

$$\frac{y^{2}}{2}=x^{2}+vx+k$$

Is that the right thing to do?

$$\frac{y^{2}}{2}=x^{2}+y^{2}x+k$$

4. Nov 10, 2008

### HallsofIvy

No, you can't do that! v is a function of y which is itself a function of x: the integral of "v dx" is NOT vx because v is not a constant. If you are going to set v= y2 then completely replace y with v.

If v= y2 then dv/dx= 2y dy/dx so y dy/dx= (1/2)v dv/dx and the equation becomes (1/2)v dv/dx- v= 2x.

But, frankly, I don't see how that helps. Office Shredder, do you have more to say?

5. Nov 10, 2008

### Staff: Mentor

What Office_Shredder meant was to substitue v = y^2 everywhere that y occurs, which means that you will also need to replace dy with some expression involving dv. The resulting DE should have only x, dx, v, and dv in it.

6. Nov 10, 2008

### Vuldoraq

Thanks guys, I didn't think you could do that with a differential equation, but it was the only way that the substitution could have helped. I think me it has no analytic soution.

Thanks again!

7. Nov 10, 2008

### Office_Shredder

Staff Emeritus
$$\frac{dy}{dx} = y - \frac{2x}{y}$$

So multiplying through by y and re-arranging

$$y^2- y\frac{dy}{dx} = 2x$$

If $$v=y^2$$

Then $$dv/dx = 2y\frac{dy}{dx}$$
We get

$$v -\frac{1}{2}\frac{dv}{dx} = 2x$$

And this is good because when you have a polynomial of degree n on the RHS, you just guess v(x) = a generic polynomial of degree n (in this case 1).

$$v(x) = ax+b$$ Then

$$ax+b - \frac{1}{2}a = 2x$$

Then a=2, b=1 by simple algebra

So $$y = \sqrt{2x+1}$$ (plus or minus). I plugged this in and got

$$y\frac{dy}{dx} = \sqrt{2x+1}\frac{2}{2\sqrt{2x+1}} = 1$$

and

$$\sqrt{2x+1}^2 - 2x = 2x+1 -2x = 1$$

So in fact the solution works

8. Nov 10, 2008

### HallsofIvy

Ouch! I can't believe I made that silly mistake!

9. Nov 10, 2008

### Office_Shredder

Staff Emeritus
http://xkcd.com/208/" [Broken]

Incidentally, even if your DE was correct

(1/2)v dv/dx- v= 2x

I'd still just go with v=ax+b and get v = $$(1+\sqrt{5})x$$ which works.

Last edited by a moderator: May 3, 2017
10. Nov 10, 2008

### Vuldoraq

Ahh, I see. Now that makes a lot of sense. Sorry about that, I need to go back to my text book.

In my worksheet it gave me four first order ode's and said one had no simple analytical solution, and that was the only one I couldn't see how to solve, so now I'm concerned. Does the following look okay to you?

$$y*\frac{dy}{dx}-y^{2}+2=0$$

Using the substitution $$v=y^{2}$$ again gives,

$$\int\frac{1}{2v-4} dv=\int dx$$

$$\ln{(2v-4)^{1/2}}=x+k$$

$$\ln{(2y^{2}-4)}^{1/2}=x+k$$

$$y=(\frac{k*e^{2x}+4}{2})^{1/2}$$

The other two are trivial,

$$y\frac{dy}{dx}=y^{2}-2y$$ which gives,

$$y=2+Ce^{x}$$

and,

$$y\frac{dy}{dx}=y^{2}-2x*y$$ which gives,

$$y=2*x+2+ke^{x}$$
What do you think?

11. Nov 10, 2008

### Vuldoraq

Also I should note that the general solution was required if it can be found. Sorry I should have said that sooner,

12. Nov 10, 2008

### Office_Shredder

Staff Emeritus
If you can find a general solution, just find the complementary solution of the homogeneous equation (which is easy) and add it to any particular solution. Contrary to whatever anyone may say about how it's more elegant to find the full set of solutions in one swoop through a clever integration, they're lying. Always