Homogenous Differential Equation Solution

In summary: Another option is to find a particular solution (there is a fairly obvious one) and then add the solution to the homogeneous equation to that (which works since the ODE is linear).
  • #1
_N3WTON_
351
3

Homework Statement


Solve the differential equation:
[itex] \frac{dy}{dx} = x + y [/itex]

Homework Equations


Integrating factor equation

The Attempt at a Solution


Ok, I am aware that in order to solve this equation, I need to make a substitution:
[itex] v = x + y [/itex]
However, at this point I am unsure about what to do. Unfortunately, my DiffEq textbook does not cover this technique thoroughly. I am hoping that perhaps somebody can explain how this technique works, thanks.
 
Physics news on Phys.org
  • #2
_N3WTON_ said:

Homework Statement


Solve the differential equation:
[itex] \frac{dy}{dx} = x + y [/itex]

Homework Equations


Integrating factor equation

The Attempt at a Solution


Ok, I am aware that in order to solve this equation, I need to make a substitution:
[itex] v = x + y [/itex]
However, at this point I am unsure about what to do. Unfortunately, my DiffEq textbook does not cover this technique thoroughly. I am hoping that perhaps somebody can explain how this technique works, thanks.

The substitution ##v = x+y## leads to another inhomogeneous DE, but simpler than the original. Have you tried it?

I cannot believe that your textbook does not cover the methods for solving
[tex] \frac{dy}{dx} + f(x) y = g(x) [/tex]
You say it does not cover this technique thoroughly, but surely it covers it at least a little bit. You need to show your work, and explain where/why you are stuck.
 
  • #3
@N3WTON: Alternatively, doesn't your text discuss constant coefficient homogeneous and non-homogeneous equations and the method of undetermined coefficients for NH equations?
 
  • #4
_N3WTON_ said:

Homework Statement


Solve the differential equation:
[itex] \frac{dy}{dx} = x + y [/itex]

The Attempt at a Solution


Ok, I am aware that in order to solve this equation, I need to make a substitution:
[itex] v = x + y [/itex]
However, at this point I am unsure about what to do. Unfortunately, my DiffEq textbook does not cover this technique thoroughly. I am hoping that perhaps somebody can explain how this technique works, thanks.
With the substitution, y=v-x, y'=v'-1 and the differential equation becomes v'-1=v, that is, v'=v+1. Is it not a separable equation?

ehild
 
  • #5
LCKurtz said:
@N3WTON: Alternatively, doesn't your text discuss constant coefficient homogeneous and non-homogeneous equations and the method of undetermined coefficients for NH equations?
It does discuss constant coefficient homogenous and non-homogenous equations, however; no mention of the method of undetermined coefficients for NH equations. Perhaps we have just not reached that point in the text yet
 
  • #6
Ray Vickson said:
The substitution ##v = x+y## leads to another inhomogeneous DE, but simpler than the original. Have you tried it?

I cannot believe that your textbook does not cover the methods for solving
[tex] \frac{dy}{dx} + f(x) y = g(x) [/tex]
You say it does not cover this technique thoroughly, but surely it covers it at least a little bit. You need to show your work, and explain where/why you are stuck.
I have tried it but I don't understand what I need to do. The equation you listed could be solved using the integrating factor method, no? I'm confused about how that relates to the equation I listed...
 
  • #7
ehild said:
With the substitution, y=v-x, y'=v'-1 and the differential equation becomes v'-1=v, that is, v'=v+1. Is it not a separable equation?

ehild
ok...so picking up from there I did:
[itex] \int\frac{v'}{v+1} = \int 0 [/itex]
[itex] ln(v+1) = C [/itex]
[itex] v + 1 = e^c [/itex]
[itex] v = e^{c} - 1 [/itex]
[itex] x + y = e^{c} - 1 [/itex]
Here I am stuck because the solution in the book is:
[itex] y = 2e^x - x - 1 [/itex]
Also the book notes that this problem can be "solved quite easily" using the integrating factor method, but I do not see it...
 
  • #8
_N3WTON_ said:
ok...so picking up from there I did:
[itex] \int\frac{v'}{v+1} = \int 0 [/itex]

This should be [tex]\int \frac{v'}{v +1}\,dx = \int 1\,dx.[/tex]

[itex] ln(v+1) = C [/itex]
[itex] v + 1 = e^c [/itex]
[itex] v = e^{c} - 1 [/itex]
[itex] x + y = e^{c} - 1 [/itex]
Here I am stuck because the solution in the book is:
[itex] y = 2e^x - x - 1 [/itex]

You appear to have omitted an initial condition (perhaps y(0) = 1) from your problem; otherwise '2' should instead be an arbitrary constant.
 
  • #9
_N3WTON_ said:
ok...so picking up from there I did:
[itex] \int\frac{v'}{v+1} = \int 0 [/itex]

What is v+1 divided by (v+1)??
ehild
 
  • #10
pasmith said:
This should be [tex]\int \frac{v'}{v +1}\,dx = \int 1\,dx.[/tex]
nvm
 
  • #11
_N3WTON_ said:
thanks, but can you explain why that is correct?
before I had:
[itex]v' = v+1 [/itex]
[itex]\frac{v'}{v+1} = 0 [itex]
I am not seeing where the dx comes from...
 
  • #12
_N3WTON_ said:
vv+1,dv=∫0

You seem to have assumed that ##v'/(v+1) = 0##. This is not the case so I suggest you recheck that algebra.

Another option is to find a particular solution (there is a fairly obvious one) and then add the solution to the homogeneous equation to that (which works since the ODE is linear).
 
  • #13
pasmith said:
This should be [tex]\int \frac{v'}{v +1}\,dx = \int 1\,dx.[/tex]
You appear to have omitted an initial condition (perhaps y(0) = 1) from your problem; otherwise '2' should instead be an arbitrary constant.
you're right, I do apologize for that...I'll make the edit now
 
  • #14
ehild said:
What is v+1 divided by (v+1)??
ehild
ok, I see the mistake now...thank you
 
  • #15
_N3WTON_ said:
thanks, but can you explain why that is correct?
before I had:
[itex]v' = v+1 [/itex]
[itex]\frac{v'}{v+1} = 0 [/itex]
I am not seeing where the dx comes from...

You are integrating both sides with respect to [itex]x[/itex]. It is crucial to state what variable you are integrating with respect to, because shortly you will use substitution to change [itex]\int \frac{v'}{v +1}\,dx[/itex] into an integral with respect to [itex]v[/itex].
 
  • #16
pasmith said:
You are integrating both sides with respect to [itex]x[/itex]. It is crucial to state what variable you are integrating with respect to, because shortly you will use substitution to change [itex]\int \frac{v'}{v +1}\,dx[/itex] into an integral with respect to [itex]v[/itex].
thank you, so here is my second attempt:
[itex] \int\frac{v'}{v+1} dx = \int dx [/itex]
[itex] ln(v+1) = x + C [/itex]
[itex] v+1 = e^x + C [/itex]
[itex] x + y = e^x + C [/itex]
 
  • #17
_N3WTON_ said:
thank you, so here is my second attempt:
[itex] \int\frac{v'}{v+1} dx = \int dx [/itex]
[itex] ln(v+1) = x + C [/itex]
[itex] v+1 = e^x + C [/itex]
the last line is wrong. It should be [itex] v+1 = e^{x + C} [/itex] instead.
 
  • #18
ehild said:
the last line is wrong. It should be [itex] v+1 = e^{x + C} [/itex] instead.
thank you...
 
  • #19
_N3WTON_ said:
I have tried it but I don't understand what I need to do. The equation you listed could be solved using the integrating factor method, no? I'm confused about how that relates to the equation I listed...

In your example, is it not the case that ##f(x) = -1## and ##g(x) = x##?
 
  • #20
ehild said:
the last line is wrong. It should be [itex] v+1 = e^{x + C} [/itex] instead.

And [itex] v+1 = e^{x + C} = Ae^x [/itex] . The constants C or A depend on the initial condition.

ehild
 
  • #21
ehild said:
And [itex] v+1 = e^{x + C} = Ae^x [/itex] . The constants C or A depend on the initial condition.

ehild
ok, the initial condition was f(0) = 1...you arrived at that answer just by bringing the constant C in front of the exponential?
 
Last edited:
  • #22
Ray Vickson said:
In your example, is it not the case that ##f(x) = -1## and ##g(x) = x##?
ok so if i were to use the integrating factor method I would set:
[itex] p(x) = -1 [/itex] ?
I'm still a bit confused about how I could do this problem using integrating factor method...I understand how to use separation of variables..
 
  • #23
_N3WTON_ said:
ok so if i were to use the integrating factor method I would set:
[itex] p(x) = -1 [/itex] ?
I'm still a bit confused about how I could do this problem using integrating factor method...I understand how to use separation of variables..

There is a standard formula; just apply it to your problem.
 
  • #24
_N3WTON_ said:
ok, the initial condition was f(0) = 1...you arrived at that answer just by bringing the constant C in front of the exponential?
You know that ##e^{{x+C}}=e^C e^x##, but eC is also a constant, I denoted it by A. So v+1=y+x+1=Aex.. Applying the condition y(0)=1, 1+1=A.
 
  • Like
Likes _N3WTON_
  • #25
Just for completeness, since we have a linear ODE with constant coefficients and a polynomial inhomogeneity, we could simply have assumed a particular solution of the form ##y_p = ax + b## and arrived at ##a = b = -1## and thus ##y_p = -x-1##, ##y'_p = -1##. We then write ##y = y_p + y_h## where ##y_h## satisfies the homogeneous ODE ##y'_h = y_h##, which I believe anyone familiar with differential equations can solve ... This approach is what I was trying to hint at in post #12.
 
  • #26
It is better NOT to memorize formulas (like that for the integrating factor of a linear differential equation) but to understand the basic concept and work from there. Here, the differential equation is dy/dx= x+ y which is the same as dy/dx- y= x. An "integrating factor" for this equation is a a function u(x) such that multiplying by it makes the left side a "complete derivative". That is, so that udy/dx- uy= d(uy)/dx. Using the product rule on the right, u dy/dx- uy= u dy/dx+ u'y. We can cancel the "u dy/dx" terms leaving -uy= u'y or u'= -u. Integrating that gives [itex]u(x)= Ce^{-x}[/itex].

Since we only need one, take C= 1 to get [itex]u(x)= e^{-x}[/itex]. Multiplying both sides of the equation by that, we have [itex]e^{-x}dy/dx- e^{-x}y= d(e^{-x}y)/dx= xe^{-x}[/itex]. Integrate both sides of that with respect to x.
 
  • Like
Likes _N3WTON_
  • #27
ehild said:
You know that ##e^{{x+C}}=e^C e^x##, but eC is also a constant, I denoted it by A. So v+1=y+x+1=Aex.. Applying the condition y(0)=1, 1+1=A.
Thank you...your insight has been very helpful to me :)
 
  • #28
Orodruin said:
Just for completeness, since we have a linear ODE with constant coefficients and a polynomial inhomogeneity, we could simply have assumed a particular solution of the form ##y_p = ax + b## and arrived at ##a = b = -1## and thus ##y_p = -x-1##, ##y'_p = -1##. We then write ##y = y_p + y_h## where ##y_h## satisfies the homogeneous ODE ##y'_h = y_h##, which I believe anyone familiar with differential equations can solve ... This approach is what I was trying to hint at in post #12.
I appreciate your help, and I understand your solution. However, that is not a technique that we have covered in my DiffEq class so I don't know if I'd be able to use it on my upcoming exam...
 
  • #29
HallsofIvy said:
It is better NOT to memorize formulas (like that for the integrating factor of a linear differential equation) but to understand the basic concept and work from there. Here, the differential equation is dy/dx= x+ y which is the same as dy/dx- y= x. An "integrating factor" for this equation is a a function u(x) such that multiplying by it makes the left side a "complete derivative". That is, so that udy/dx- uy= d(uy)/dx. Using the product rule on the right, u dy/dx- uy= u dy/dx+ u'y. We can cancel the "u dy/dx" terms leaving -uy= u'y or u'= -u. Integrating that gives [itex]u(x)= Ce^{-x}[/itex].

Since we only need one, take C= 1 to get [itex]u(x)= e^{-x}[/itex]. Multiplying both sides of the equation by that, we have [itex]e^{-x}dy/dx- e^{-x}y= d(e^{-x}y)/dx= xe^{-x}[/itex]. Integrate both sides of that with respect to x.
thank you, that actually helped me to better understand what I'm actually doing when I apply the integrating factor method...
 
  • #30
_N3WTON_ said:
I appreciate your help, and I understand your solution. However, that is not a technique that we have covered in my DiffEq class so I don't know if I'd be able to use it on my upcoming exam...

I think that the approach itself is not very different from the variable substitution that you started with (just writing ##v = y + x + 1## rather than ##v = y+x## - you could also see it as making yet another substitution from ##v' = v + 1## to ##u = v+1##, which also gives ##u' = u##). Regardless, only a very ignorant teacher would deduct points for you using a working method unless explicitly asking for something to be solved with a particular method. But of course this is completely up to you.
 
  • #31
Orodruin said:
I think that the approach itself is not very different from the variable substitution that you started with (just writing ##v = y + x + 1## rather than ##v = y+x## - you could also see it as making yet another substitution from ##v' = v + 1## to ##u = v+1##, which also gives ##u' = u##). Regardless, only a very ignorant teacher would deduct points for you using a working method unless explicitly asking for something to be solved with a particular method. But of course this is completely up to you.
thats true...to my knowledge the test doesn't explicitly ask for a certain method so thanks for help :)
 
  • #32
_N3WTON_ said:
Thank you...your insight has been very helpful to me :)
You are welcome:)

ehild
 

FAQ: Homogenous Differential Equation Solution

What is a homogenous differential equation?

A homogenous differential equation is a type of differential equation where all the terms can be expressed as a function of the dependent variable and its derivatives. This means that the equation does not contain any constant terms.

How is the solution to a homogenous differential equation different from a non-homogenous one?

The solution to a homogenous differential equation will only have one arbitrary constant, while the solution to a non-homogenous equation will have multiple arbitrary constants. This is because the homogenous equation does not have any constant terms that need to be accounted for in the solution.

Can a homogenous differential equation have a unique solution?

Yes, a homogenous differential equation can have a unique solution. This is because the solution will only have one arbitrary constant, which can be determined by applying initial or boundary conditions to the equation.

What is the process for solving a homogenous differential equation?

The process for solving a homogenous differential equation involves finding the general solution by setting up a characteristic equation and finding the roots. These roots will determine the form of the general solution, which can then be used to find the unique solution by applying initial or boundary conditions.

Are there any real-world applications of homogenous differential equations?

Yes, homogenous differential equations have many real-world applications, particularly in physics and engineering. They can be used to model various physical phenomena such as radioactive decay, population growth, and chemical reactions. They are also used in the design and analysis of electrical circuits and mechanical systems.

Back
Top