how to solve this differential equation

gotit

New member
Joined
Dec 18, 2012
Messages
1
the differential equation is

dy/dx + 1 = ex-y

I have tried this
dy/dx + 1 = ex-y ......equation 1
or, dy/dx=ex-y-1

taking x-y=v ....equation 2
differentiating eqn 2 with respect to x, we get:
1-dy/dx=dv/dx

or,dy/dx=1-dv/dx

or,ev-1=1-dv/dx

or,2-ev=dv/dx

or,dv/2-ev=dx

i am stuck here. i think this may be simple if i have not mistaken above. can you please help me...
 
Last edited:
the differential equation is

dy/dx + 1 = ex-y


Hint: substitute:

u = ey


You need to read the rules of this forum. Please read the post titled "Read before Posting" at the following URL:

http://www.freemathhelp.com/forum/th...217#post322217

We can help - we only help after you have shown your work - or ask a specific question (not a statement like "Don't know any of these")

Please share your work with us indicating exactly where you are stuck - so that we may know where to begin to help you.
 
the differential equation is

dy/dx + 1 = ex-y

I have tried this
dy/dx + 1 = ex-y ......equation 1
or, dy/dx=ex-y-1

taking x-y=v ....equation 2
differentiating eqn 2 with respect to x, we get:
1-dy/dx=dv/dx

or,dy/dx=1-dv/dx

or,ev-1=1-dv/dx

or,2-ev=dv/dx

or,dv/2-ev=dx

i am stuck here. i think this may be simple if i have not mistaken above. can you please help me...

Try (as suggested in previous post):

u = ey

It will be much easier to solve!!
 
the differential equation is

dy/dx + 1 = ex-y

I have tried this
dy/dx + 1 = ex-y ......equation 1
or, dy/dx=ex-y-1

taking x-y=v ....equation 2
differentiating eqn 2 with respect to x, we get:
1-dy/dx=dv/dx

or,dy/dx=1-dv/dx

or,ev-1=1-dv/dx

or,2-ev=dv/dx

or,dv/2-ev=dx

i am stuck here. i think this may be simple if i have not mistaken above. can you please help me...
Since you have gotten to this point, let \(\displaystyle u= 2- e^v\). Then \(\displaystyle du= -e^vdv\) and, because \(\displaystyle e^v= 2- u\) this becomes \(\displaystyle du= (u- 2)dv\) and \(\displaystyle \frac{du}{u- 2}= dv\) and you have \(\displaystyle du/(u(u-2))= dx\). And that can be integrated by "partial fractions".

I believe that Subhotosh Khan is suggesting that, going back to the original, you use the fact that \(\displaystyle e^{x-y}= e^xe^{-y}= \frac{e^x}{e^y}\).
 
the differential equation is

dy/dx + 1 = ex-y

Let

u = ey

du/dx = ey *dy/dx

1/u * du/dx = dy/dx

dy/dx + 1 = ex-y → du/dx + u = ex ← This is a standard 1 st. order linear ODE

du/dx + u = ex

d/dx (u * ex) = e2x

u *ex = 1/2 * e2x + C

ex+y = 1/2 * e2x + C

y = Ln(1/2 * e2x + C) - x .... continue as needed
 
Top