Solve Diff. Eq.: Dy/Dx + 1 + y + x=(x+y)^2 e^(3x)

  • Thread starter Thread starter Jtechguy21
  • Start date Start date
Jtechguy21
Messages
51
Reaction score
0

Homework Statement



Solve
Dy/Dx + 1 + y + x=(x+y)^2 e^(3x)
Hint: Use the substitution u=x+y

Homework Equations


Since u=x+y
Du/dx=1dy/dx


The Attempt at a Solution



So basically the first thing I did was utilize my substitution.
Dy/Dx + 1 +y + x=u^(2)e^(3x)

next i solved for y. y=u-x

Dy/Dx +1+(u-x)+x=U^2*e^(3x)
My x's cancel out

Dy/Dx +1+u=u^2*e^(3x)

I divided both sides by u^2

Dy/dx+(1/u^2)+(1/u)=e^(3x)

I have no idea what to do next.
since this isn't in the form

Dy/dx+p(x)y=f(x) <-Linear form

maybe I am approaching this problem incorrectly?
any guidance would be appreciated
 
Physics news on Phys.org
Jtechguy21 said:

Homework Statement



Solve
Dy/Dx + 1 + y + x=(x+y)^2 e^(3x)
Hint: Use the substitution u=x+y

Homework Equations


Since u=x+y
Du/dx=1dy/dx


The Attempt at a Solution



So basically the first thing I did was utilize my substitution.
Dy/Dx + 1 +y + x=u^(2)e^(3x)

next i solved for y. y=u-x

Dy/Dx +1+(u-x)+x=U^2*e^(3x)
My x's cancel out

Dy/Dx +1+u=u^2*e^(3x)

I divided both sides by u^2

Dy/dx+(1/u^2)+(1/u)=e^(3x)

I have no idea what to do next.
since this isn't in the form

Dy/dx+p(x)y=f(x) <-Linear form

maybe I am approaching this problem incorrectly?
any guidance would be appreciated

Start with a correction. If u=x+y then du/dx=1+dy/dx. The next step is to get rid of all of the y's in the ODE. Including dy/dx. Do that and then maybe think about another substitution.
 
Dick said:
Start with a correction. If u=x+y then du/dx=1+dy/dx. The next step is to get rid of all of the y's in the ODE. Including dy/dx. Do that and then maybe think about another substitution.

using
u=x+y
du/dx=1+dy/dx
and
y=u-x

My equation now becomes
Du/dx + u-x+x=u^(2)e^(3x)
Simplify (eliminated x's and divided by u^2)

Du/dx 1/u=e^(3x)
p(x)=1 e^∫1dx= e^x as my integrating factor

e^x du/dx +e^x(1/u)=e^4x

d/dx[e^x (1/u)]=e^4x now i take the integral of e^4x= (1/4)e^4x

e^x(1/u)=(1/4)e^4x+c

divide by e^x

1/u=(1/4)e^3x+ce^-x

plug back in u

1/(x+y)=(1/4)e^3x+ce^-x

Does this look better?
 
Jtechguy21 said:
using
u=x+y
du/dx=1+dy/dx
and
y=u-x

My equation now becomes
Du/dx + u-x+x=u^(2)e^(3x)
Simplify (eliminated x's and divided by u^2)

Du/dx 1/u=e^(3x)
p(x)=1 e^∫1dx= e^x as my integrating factor

e^x du/dx +e^x(1/u)=e^4x

d/dx[e^x (1/u)]=e^4x now i take the integral of e^4x= (1/4)e^4x

e^x(1/u)=(1/4)e^4x+c

divide by e^x

1/u=(1/4)e^3x+ce^-x

plug back in u

1/(x+y)=(1/4)e^3x+ce^-x

Does this look better?

I get to du/dx+u=u^2*e^(3x). Then your solution gets murky. Dividing by u^2 gives me (du/dx)/u^2+1/u=e^(3x). That seemed like a good time for another substitution.
 
du/dx+u=u^2*e^(3x).
oh i see what your saying. i assumed when i divide by u^2 the du/dx didnt get it affected.
alright I am going to think about this more.
 
Jtechguy21 said:
du/dx+u=u^2*e^(3x).
oh i see what your saying. i assumed when i divide by u^2 the du/dx didnt get it affected.
alright I am going to think about this more.

It sure does get affected. See if you can think of a clever substitution to continue after the division by u^2.
 
Last edited:
Dick said:
It sure does get affected. See if you can think of a clever substitution to continue after the division by u^2.

I have no idea where to use a substitution
but after dividing by u^2 I get

(1/u^2)du/dx +1/u=e^3x

p=1/u
Dp/Dx=-1/u^2 du/dx
=========^^^^^^^^^^This looks like the left side of my equation.

(i pulled out the negative as a scalar so it matches my equation)

-dp/dx + p =e^3x how does that look so far?
 
Jtechguy21 said:
I have no idea where to use a substitution
but after dividing by u^2 I get

(1/u^2)du/dx +1/u=e^3x

p=1/u
Dp/Dx=-1/u^2 du/dx
=========^^^^^^^^^^This looks like the left side of my equation.

(i pulled out the negative as a scalar so it matches my equation)

-dp/dx + p =e^3x how does that look so far?

Looks great! Keep going! That's a pretty simple form.
 
20140303_211758_zps4a450992.jpg


thanks for walking me through this problem
 
  • #10
Jtechguy21 said:
20140303_211758_zps4a450992.jpg


thanks for walking me through this problem

Very welcome, but you've got a sign wrong. Write that as dp/dx-p=(-e^(3x)). P(x)=(-1)!
 
  • Like
Likes 1 person
  • #11
oh i see what you did there. you multiplied by -1.
ill make the correction right now.

Dp/dx - p=-e^(3x) p(x)=(-1)

That means my integrating factor is
e^-(x)

e^-(x)dp/dx -e^-(x)p=-e^(2x)

d/dx[e^-(x)P] = -e^2x
take the integral of ^
-(1/2)e^2x

e^-(x)P= -(1/2)e^2x + c
p=1/u
divide the e^-(x)

1/u= -(1/2)e^3x+ce^x

u=x+y

1/x+y= -(1/2)e^3x+ce^x

how does that look?

how would i solve for Y? :)

that took a long time to figure this whole thing out, but its satisfying feeling.
thanks once again dick for helping me, and baby stepping me along the way lol :)
 
Last edited:
  • #12
Jtechguy21 said:
oh i see what you did there. you multiplied by -1.
ill make the correction right now.

Dp/dx - p=-e^(3x) p(x)=(-1)

That means my integrating factor is
e^-(x)

e^-(x)dp/dx -e^-(x)p=-e^(2x)

d/dx[e^-(x)P] = -e^2x
take the integral of ^
-(1/2)e^2x

e^-(x)P= -(1/2)e^2x + c
p=1/u
divide the e^-(x)

1/u= -(1/2)e^3x+ce^x

u=x+y

1/x+y= -(1/2)e^3x+ce^x

how does that look?

how would i solve for Y? :)




that took a long time to figure this whole thing out, but its satisfying feeling.
thanks once again dick for helping me, and baby stepping me along the way lol :)

That looks much better. You don't necessarily have to solve for y. But I think if you put your mind to it, you can. Just try. You aren't that bad at this.
 
Back
Top