How do I solve this differential equation: dy/dx=1/(y-x)
Favorites|Homepage
Subscriptions | sitemap
HOME > > How do I solve this differential equation: dy/dx=1/(y-x)

How do I solve this differential equation: dy/dx=1/(y-x)

[From: ] [author: ] [Date: 12-07-17] [Hit: ]
you couldve treated dy/dx as a ratio and then transform the first order linear differential equation of the form y + P(x)y = Q(x) to x + P(y)x = Q(y).-Im glad this helped!Report Abuse -dy/dx isnt a ratio.It cant be flipped like that.The way to approach this is to make a substitution.Let u be a function of x.......
It's supposed to be linear in x. I tried to solve it like this:
dy/dx=1/(y-x)
(y-x)dy/dx=1
(y-x)=dx/dy
y=(dy/dx)+x
but that's where I get stuck. Am I not seeing something?

-
dy/dx = 1/(y - x)

dx/dy = y - x

dx/dy + x = y

Integrating factor = e^(∫dy) = e^(y)

Multiplying both sides by integrating factor:

e^(y)(dx/dy) + xe^(y) = ye^(y)

d/dy[e^(y)(x)] = ye^(y)

e^(y)(x) = ∫ye^(y) dy

e^(y)(x) = ye^(y) - e^(y) + C

x = y - 1 + C*e^(-y)

Note that in this case, you could've treated dy/dx as a ratio and then transform the first order linear differential equation of the form y' + P(x)y = Q(x) to x' + P(y)x = Q(y).

-
I'm glad this helped!

Report Abuse


-
dy/dx isn't a ratio. It can't be flipped like that.

The way to approach this is to make a substitution. Let u be a function of x. Then suppose
y - x = u
y = u + x
y' = u' + 1

Then
u' + 1 = 1/u

Now it's separable:
u' = (1/u) - 1 = (1 - u)/u
u du / (1 - u) = dx

Now you can integrate and back-substitute. Don't forget the constant of integration.

-
Let y = u + x so that dy/dx = du/dx + 1 and y - x = u:

dy/dx = 1/(y - x)

du/dx + 1 = 1/u

du/dx = 1/u - 1

du/(1/u - 1) = dx

u/(1 - u) du = dx

∫ u/(1 - u) du = ∫ dx

∫ [1/(1 - u) - 1] du = x + C

-ln(1 - u) - u = x + C

By the substitution u = y - x, the solution can finally be expressed in terms of x and y:

-ln(1 + x - y) + x - y = x + C

y = C - ln(1 + x - y).
1
keywords: this,dx,solve,differential,How,do,equation,dy,How do I solve this differential equation: dy/dx=1/(y-x)
New
Hot
© 2008-2010 http://www.science-mathematics.com . Program by zplan cms. Theme by wukong .