Solve Ordinary Differential Equation: ln(y)=xy

  • Thread starter Thread starter vanceEE
  • Start date Start date
  • Tags Tags
    Diffeq
vanceEE
Messages
109
Reaction score
2
I've come across this problem while self studying Ordinary Differential Equations and I really need help. The problem asks me to simply eliminate derivatives, I do not need to separate. The book shows the answer, but not the steps.

problem:
\frac{dy}{dx}= \frac{y^2}{1-xy}

answer:
ln(y)=xy

So far, I'm here...

\frac{dy}{dx}= \frac{y^2}{1-xy}
y' = \frac{y^2}{1-xy}
y' = \frac{y}{\frac{1}{y}-x}
y = y'(\frac{1}{y}-x)
y = \frac{y'}{y} - y'x
\frac{y'}{y} = y+ y'x
now integrating both sides we get..
ln (y) = ∫(y + y'x dx)

But how do I integrate y+y'x?
 
Physics news on Phys.org
vanceEE said:
I've come across this problem while self studying Ordinary Differential Equations and I really need help. The problem asks me to simply eliminate derivatives, I do not need to separate. The book shows the answer, but not the steps.

problem:
\frac{dy}{dx}= \frac{y^2}{1-xy}

answer:
ln(y)=xy

So far, I'm here...

\frac{dy}{dx}= \frac{y^2}{1-xy}
y' = \frac{y^2}{1-xy}
y' = \frac{y}{\frac{1}{y}-x}
y = y'(\frac{1}{y}-x)
y = \frac{y'}{y} - y'x
\frac{y'}{y} = y+ y'x
now integrating both sides we get..
ln (y) = ∫(y + y'x dx)

But how do I integrate y+y'x?

CAn't you use the product rule x'y + y'x
 
We want to integrate.
xy must be the solution to ∫(y'x+y dx) because the derivative of xy = y'x+y(1). I just need to know how to integrate this -> ∫(y'x+y dx)
 
vanceEE said:
We want to integrate.
xy must be the solution to ∫(y'x+y dx) because the derivative of xy = y'x+y(1). I just need to know how to integrate this -> ∫(y'x+y dx)
∫(y'x+y dx) is a non-sens.
∫(y'x+y) dx is correct.
(y'x+y) = (xy)'
∫(y'x+y) dx = ∫(yx)' dx = ? (obvious)
 
  • Like
Likes 1 person
JJacquelin said:
∫(y'x+y dx) is a non-sens.

∫(y'x+y) dx is correct.

(y'x+y) = (xy)'

∫(y'x+y) dx = ∫(yx)' dx = ? (obvious)
(y'x+y) = (xy)'
Can you please explain
Thank you!
 
vanceEE said:
(y'x+y) = (xy)'
Can you please explain
Thank you!

given two function f(x) and g(x) then the derivative of the product f*g is:

(fg)' = f'g + fg' i.e. the product rule so you look at your integral notice that it fits the right hand side and rewrite it to be

the indefinite integral: integral( (f'g+fg')dx) = integral( (fg)'dx) = fg
 
Last edited:
Is this how you came to this conclusion?

(y'x+y)
= xy'(1+y)
= x(\frac{d(1+y)}{dx})
= x(0 + y')
= x(y')
= xy'
= (xy)'
so, ∫(xy)' dx = xy
Therefore,
∫\frac{y'}{y} dx = ∫(xy)' dx \rightarrow ln(y) + C = xy
Correct?
 
Last edited:
vanceEE said:
Is this how you came to this conclusion?

(y'x+y)
= xy'(1+y)
= x(\frac{d(1+y)}{dx})
= x(0 + y')
= x(y')
= xy'
= (xy)'
so, ∫(xy)' dx = xy
Therefore,
∫\frac{y'}{y} dx = ∫(xy)' dx \rightarrow ln(y) + C = xy
Correct?

I think you're over complicating this. Have you learned the product rule when you took calculus 1? Just by inspection y + y'x you can see that there are two functions x and y with x' =1 and y' = y'

Hence integrating it just means you replace the y+y'x term with (xy)' then you can conclude that the integrated answer is simply y'x via the fundamental theorem of calculus right?

So is your problem going from integral(xy)' to get the ln(y) ?
 
jedishrfu said:
I think you're over complicating this. Have you learned the product rule when you took calculus 1? Just by inspection y + y'x you can see that there are two functions x and y with x' =1 and y' = y'

Hence integrating it just means you replace the y+y'x term with (xy)' then you can conclude that the integrated answer is simply y'x via the fundamental theorem of calculus right?

So is your problem going from integral(xy)' to get the ln(y) ?

How so? By using the product rule of differentation, we would be solving the equation backwards. I did not ask for the answer, I asked how to integrate y+y'x. It is clear that the derivative of xy is indeed (dy/dx)x+ y(1), but not every problem involving y in the integral will be as obvious as this problem. From the product rule of diff, sure y'(xy) = y'x+y, but I wanted to know how to integrate y'x+y, which would in fact be the way shown above, not over complicating it but simply using as a learning experience. Thanks for the help :-)
 
  • #10
Equation made exact.

{\frac{dy}{dx} = \frac{y^2}{1-xy}}
(y^2)dx+(xy-1)dy= 0
\frac{∂M}{∂y} = 2y
\frac{∂N}{∂x} = y
2y ≠ y
h(y) = \frac{∂N/∂x-∂M/∂y}{M} = \frac{-1}{y}
\mu(y) = e^∫h(y) dy
\mu(y) = 1/y
\frac{1}{y}[(y^2)dx+(xy-1)= 0]
(y)dx+(x-\frac{1}{y})dy= 0
\frac{∂M}{∂y}= 1 = \frac{∂N}{∂x}
\frac{∂f}{∂x} = y
f(x,y) = xy + \phi(y)
\frac{∂f}{∂y} = x + \phi'(y)
x- \frac{1}{y} = x + \phi'(y)
\phi'(y) = -1/y
\phi(y) = -ln(y)
f(x,y) = xy - ln y + d
xy - ln y + d = c
xy - ln y = \tilde{c}
xy - ln y \equiv 0
ln y = xy
 
Last edited:
  • #11
How about substituting z=x y? Then you get
z'=y+x y'.
Then
y'=\frac{z'-y}{x}=\frac{x z'-z}{x^2} \stackrel{!}{=} \frac{y^2}{1-xy}=\frac{z^2}{x^2} \frac{1}{1-z}.
After some algebra you find
\frac{1-z}{z}z'=\frac{1}{x},
which is solvable by separation of variables:
\int \mathrm{d} z \frac{1-z}{z}=\int \mathrm{d} x \frac{1}{x}
or
\ln |z|-z=\ln|x|+C \; \Rightarrow\; \ln \left |\frac{z}{x} \right| = z+C \; \Rightarrow \; \ln |y| = x y +C,
which shows that your (implicit) solution is indeed solving the equation with the special integration constant C=0 and restricted to y>0.
 
  • #12
vanhees71 said:
How about substituting z=x y? Then you get
z'=y+x y'.
Then
y'=\frac{z'-y}{x}=\frac{x z'-z}{x^2} \stackrel{!}{=} \frac{y^2}{1-xy}=\frac{z^2}{x^2} \frac{1}{1-z}.
After some algebra you find
\frac{1-z}{z}z'=\frac{1}{x},
which is solvable by separation of variables:
\int \mathrm{d} z \frac{1-z}{z}=\int \mathrm{d} x \frac{1}{x}
or
\ln |z|-z=\ln|x|+C \; \Rightarrow\; \ln \left |\frac{z}{x} \right| = z+C \; \Rightarrow \; \ln |y| = x y +C,
which shows that your (implicit) solution is indeed solving the equation with the special integration constant C=0 and restricted to y>0.

Is this how you would go about the alegebra for the z-sub?
y' = \frac{y^2}{1-xy}
z = xy \Rightarrow y' = \frac{z'-y}{x}
y'=\frac{xz'-z}{x^2}
\frac{y^2}{1-xy}=\frac{xz'-z}{x^2}
\frac{z^2}{x^2-zx^2}=\frac{xz'-z}{x^2}
\frac{z^2}{1-z}= xz' - z
\frac{z^2}{1-z} + z =\frac{xz'}{1}
\frac{1-z}{z}=\frac{1}{xz'}
\frac{1-z}{z} * z' =\frac{1}{x}
*Also, must an equation be homogeneous in order for z-substitution to work? Kinda confused because I don't see any homogeneity properties and this one's clearly solvable by making this substitution.
 
Back
Top