Solving a DE Reducible to a Homogeneous Form

In summary, the conversation discusses solving a differential equation that can be reduced to a homogeneous form. Different methods are suggested, such as using an integrating factor or substitution. One method involves checking if the equation is exact, while another involves setting a function F(x,y) equal to a constant and solving for y using the quadratic formula. The conversation ends with a disagreement on the final solution.
  • #1
fluidistic
Gold Member
3,954
266

Homework Statement


Calculate the general solution of the following DE reducible to a homogeneous one: x+y-2+(x-y+4)y'=0.


Homework Equations


Not sure.


The Attempt at a Solution


My idea is first to write the DE into the homogeneous form and then solve it via any method that work.
I've read on the Internet that a homogeneous DE is of the form y'(x)=ay(x) where a is a constant.
What I've done is [itex]\frac{dy}{dx}=\frac{2-x-y}{x-y+4}[/itex] for x-y different from 4. So it seems I could write [itex]\frac{2-x-y}{x-y+4} =\alpha y(x)[/itex] but I do not see how it's possible.
I don't really know how to go further.
 
Physics news on Phys.org
  • #2
There are different meaning for "homogeous" for d.e.s of first order and higher order. A first order equation, of the form dy/dx= f(x,y)/g(x,y) is "homogeneous" if replacing both x and in f(x,y)/g(x,y) by ax and ay respectively, gives the same as f(x,y)/g(x,y)- that is, the "a" cancels out. Here, f(x,y)= 2- x- y and g(x,y)= x-y+ 4 and f(ax,ay)= 2- ax- ay and g(ax, ay)= ax- ay+ 4 so that f(x,y)/g(x,y)= (2- ax- ay)/(ax- ay+ 4) which does not equal f(x,y)/g(x,y). This equation is not "homogeneous" in that sense.

For higher order, linear equations, a differential equation is "homogeneous" if there are NO terms that does not involve y or a derivative of y. This d.e. is not a linear equation to begin with so it is NOT homogeneous in that sense.
 
  • #3
Thank you for the information.
Hmm so the problem is wrongly stated?
I am not sure how to solve the DE. I had read the integrating factor method can solve any first order DE but I think it requires the DE to be linear which isn't the case here.
What other method(s) could I use here?
 
  • #4
What about substitution:z=x-y+4?

ehild
 
  • #5
The other method can be to check if the ODE is exact, that is
(x+y-2)dx+(x-y+4)dy =d(F(x,y).

ehild
 
  • #6
Thanks for your help!
ehild said:
What about substitution:z=x-y+4?

ehild
Hmm, I didn't reach anything useful.
ehild said:
The other method can be to check if the ODE is exact, that is
(x+y-2)dx+(x-y+4)dy =d(F(x,y).

ehild
Just checked out, it is exact. I reach [itex]F(x,y)=\frac{x^2}{2}-\frac{y^2}{2}+xy-2x+4y[/itex] and according to Boa's mathematical methods for physics, "the solution is F(x,y)=C". But obviously it isn't the solution to the DE since I should get y(x)...
 
  • #7
I hope I helped...

Write it as

[tex](x + y)dx - (2x - 2y + 4)dy = 0[/tex]

Don't check because it isn't exact, so you need an integrating factor.
 
  • #8
fluidistic said:
Thanks for your help!
Hmm, I didn't reach anything useful.

Just checked out, it is exact. I reach [itex]F(x,y)=\frac{x^2}{2}-\frac{y^2}{2}+xy-2x+4y[/itex] and according to Boa's mathematical methods for physics, "the solution is F(x,y)=C". But obviously it isn't the solution to the DE since I should get y(x)...

Let F(x,y)=C. Then [itex]x^2 - y^2 + 2xy + 4x + 8y = 2C_1 = C_2[/itex]. That's an implicit function (or rather, collection of functions) of x in terms of y. It can be solved using the quadratic formula, arranging the terms like so:

[tex](-1) y^2 + (8+2x) y + (x^2 + 4x - C_2) = 0[/tex]
 
  • #9
flyingpig said:
I hope I helped...

Write it as

[tex](x + y)dx - (2x - 2y + 4)dy = 0[/tex]

Don't check because it isn't exact, so you need an integrating factor.

Thanks for helping too. I don't really understand why I can write the DE under this form.
The one of ehild was understandable to me and looked exact too. But from my last step in my last post, I reached y(x) but it didn't satisfy the original DE so I think I made at least 1 mistake somewhere.
I will come back tomorrow on this problem, must sleep now.

Edit: Just saw your post char.limit. That is exactly what I've done on my draft but made a mistake I guess. Will come back tomorrow on it.
By the way, could someone explain me the post of flyingpig? Looks an interesting approach I'm missing.
 
  • #10
fluidistic said:
Thanks for helping too. I don't really understand why I can write the DE under this form.
The one of ehild was understandable to me and looked exact too. But from my last step in my last post, I reached y(x) but it didn't satisfy the original DE so I think I made at least 1 mistake somewhere.
I will come back tomorrow on this problem, must sleep now.

As I said above, you didn't make a mistake. You just neglected to go all the way with it.
 
  • #11
:-p
fluidistic said:
Thanks for your help!
Hmm, I didn't reach anything useful.

Just checked out, it is exact. I reach [itex]F(x,y)=\frac{x^2}{2}-\frac{y^2}{2}+xy-2x+4y[/itex] and according to Boa's mathematical methods for physics, "the solution is F(x,y)=C". But obviously it isn't the solution to the DE since I should get y(x)...

That is the solution:
[tex]\frac{x^2}{2}-\frac{y^2}{2}+xy-2x+4y = C[/tex]

It defines y implicitly. If you must have an explicit formula, solve for y using the quadratic formula. But it will be ugly.

[Edit] Never mind, I see someone else types faster :-p
 
  • #12
ehild said:
What about substitution:z=x-y+4?

ehild

Is that useful?
z=x-y+4
y=x-z+4
y'=1-z'

Original equation: x+y-2+(x-y+4)y'

Substituting z:

x+(x-z+4)-2+(x-(x-z+4)+4)(1-z')=0

2x-z+2+z(1-z')=0

2x-z+2+z-zz'=0

2x+2-zz'=0

2x+2=zz'
can you find y(x)? Is the solution the same as yours? :smile:
 
Last edited:
  • #13
Unfortunately I reach different answers. I had solved the quadratic yesterday and I just redid the arithmetics, fixing some error. I reach [itex]y(x)=x+4 \pm \sqrt {2x^2+4x+C}[/itex].
Using ehild's z-substitution, I reach [itex]y(x)=x+4 \pm \sqrt {2x^2+16+C}[/itex].
I can't seem to find any error in either methods; must be another arithmetics errors...
 
  • #14
I need to make a correction. I read the question wrong. Don't even take my post seriously ...
 
  • #15
flyingpig said:
I need to make a correction. I read the question wrong. Don't even take my post seriously ...

I see. No problem :)
Thanks for your will of helping me though.
 
  • #16
fluidistic said:
Using ehild's z-substitution, I reach [itex]y(x)=x+4 \pm \sqrt {2x^2+16+C}[/itex].

I just wonder how could you get 16 instead of 4x. Next time show your derivations in detail, to spare extra work for everybody.


[itex]2x+2=zz'[/itex]


[itex]\int{(2x+2)dx}=\int{zdz}[/itex]

[itex]x^2+2x+C'=\frac{1}{2}z^2[/itex]

[itex]\mp \sqrt{2x^2+4x+C}=z[/itex]

[itex]y=x-z+4[/itex]

[itex]y=x+4\pm \sqrt{2x^2+4x+C}[/itex]

ehild
 
  • #17
Oh wait, this is exact...Sorry lol
 
  • #18
ehild said:
I just wonder how could you get 16 instead of 4x. Next time show your derivations in detail, to spare extra work for everybody.


[itex]2x+2=zz'[/itex]


[itex]\int{(2x+2)dx}=\int{zdz}[/itex]

[itex]x^2+2x+C'=\frac{1}{2}z^2[/itex]

[itex]\mp \sqrt{2x^2+4x+C}=z[/itex]

[itex]y=x-z+4[/itex]

[itex]y=x+4\pm \sqrt{2x^2+4x+C}[/itex]

ehild

My bad, this is exactly what I've found using your method. I meant that using your method I reach [itex]y=x+4\pm \sqrt{2x^2+4x+C}[/itex] while using the other method, I find a different answer.
I start from the general solution [itex]\frac{x^2}{2}-\frac{y^2}{2}+xy-2x+4y=C[/itex]. Multiplying everything by -2, I get [itex]y^2+y(-2x-8)-x^2+4x+C=0[/itex]. Solving the quadratic for y(x) gives me a "+16" rather than a "+4x" compared to your result.
[itex]y(x)= \frac{2x+8 \pm \sqrt {4x^2+16x +64 -4(-x^2+4x+C)} }{2}=x+4 \pm \frac{ \sqrt {8x^2+64+C}}{2}=x+4 \pm \sqrt {2x^2+16+C}[/itex].
I don't see a single mistake in any step of either derivations, yet I reach a different result.
 

FAQ: Solving a DE Reducible to a Homogeneous Form

What is a differential equation (DE)?

A differential equation is an equation that involves an unknown function and its derivatives. It describes how a function changes over time or in relation to other variables.

What does it mean for a DE to be reducible to a homogeneous form?

A DE is reducible to a homogeneous form when it can be rewritten in a way that all terms contain only the dependent variable and its derivatives, without any other variables or constants.

Why is it useful to reduce a DE to a homogeneous form?

Reducing a DE to a homogeneous form makes it easier to solve because it can be solved using standard techniques for homogeneous equations, such as separation of variables or substitution.

What are the steps for solving a DE reducible to a homogeneous form?

The steps for solving a DE reducible to a homogeneous form are: 1) Rewrite the equation in a way that all terms contain only the dependent variable and its derivatives, 2) Make a substitution to convert the equation into a separable form, 3) Integrate the equation to find the general solution, and 4) Apply any initial conditions to find the particular solution.

What are some real-world applications of solving DEs reducible to a homogeneous form?

DEs reducible to a homogeneous form are commonly used in physics, engineering, and economics to model various phenomena such as population growth, radioactive decay, and chemical reactions. They are also used in the study of heat transfer, fluid mechanics, and electricity and magnetism.

Back
Top