Integrating (x - 2xy + e^y) dx for a Constant y_i

Click For Summary
SUMMARY

The discussion centers on the integration of the exact differential equation (x - 2xy + e^y) dx + (y - x^2 + xe^y) dy = 0. Participants clarify the roles of P(x,y) and Q(x,y) in the integration process, emphasizing that P(x,y) = x - 2xy + e^y and Q(x,y) = y - x^2 + xe^y. The confusion arises from the differing treatment of the integration with respect to x and y, particularly when the initial conditions x_i = 0 and y_i = 0 are applied. Ultimately, the integration leads to the solution f(x,y) = (1/2)x^2 - x^2y + xe^y + (1/2)y^2 = C, confirming the exactness condition.

PREREQUISITES
  • Understanding of exact differential equations
  • Familiarity with partial derivatives
  • Knowledge of integration techniques in multivariable calculus
  • Basic concepts of differential equations
NEXT STEPS
  • Study the conditions for exactness in differential equations
  • Learn about integrating factors for non-exact equations
  • Explore the method of characteristics for solving partial differential equations
  • Review the application of initial conditions in differential equations
USEFUL FOR

Students and professionals in mathematics, particularly those studying differential equations, as well as educators seeking to clarify the integration of exact equations.

Nano-Passion
Messages
1,291
Reaction score
0
Function is

(x - 2xy + e^y) dx + (y - x^2 + xe^y) dy = 0

Okay so it is the standard convenient exact equation for newbies. Now here is the part that confuses me.

(a) Let P(x,y) = (x - 2xy + e^y) dx & Q(x,y) = (y - x^2 + xe^y) dy

The function is defined for all real Numbers on an x,y plane. So we start with the initial integration of x_i = 0 & y_i = 0

Now the author reasons that the integration of Q(x,y) is simply equal to the integration of y

(from 0 to y) ∫ (y - x^2 + xe^y) dy = (from o to y) ∫ y dy

Okay so it makes sense, since the initial value of x is zero, and since we are keeping x constant, it therefore follows that x will be 0 for all values and we can simply leave it at that.

Now the part that confuses me is that he does not do the same for the other function P(x,y) dx regardless of the fact that y_i = 0.

(a) gives x^2/2 - x^2y + xe^y + y^2/2 = c
 
Physics news on Phys.org
It can help to understand the motivation by going through the process in reverse vis:
http://tutorial.math.lamar.edu/Classes/DE/Exact.aspx

aside:
the part that confuses me is that he does not do the same for the other function
... who? What does he do instead?

Remember I cannot see what you are looking at, you have to tell me - or provide a link.
I'm guessing that you mean that Q was integrated wrt y and P wrt x... which leads to the suggestion above ;)
 
Nano-Passion said:
Function is

(x - 2xy + e^y) dx + (y - x^2 + xe^y) dy = 0

Okay so it is the standard convenient exact equation for newbies. Now here is the part that confuses me.

(a) Let P(x,y) = (x - 2xy + e^y) dx & Q(x,y) = (y - x^2 + xe^y) dy
Strictly speaking, "dx" and "dy" are not part of the P and Q. What you want to say is that
df= P(x,y)dx+ Q(x,y)dy so that P(x,y)= x- 2xy+ e^y and Q(x,y)= y- x^2+ xe^y.

The function is defined for all real Numbers on an x,y plane. So we start with the initial integration of x_i = 0 & y_i = 0

Now the author reasons that the integration of Q(x,y) is simply equal to the integration of y

(from 0 to y) ∫ (y - x^2 + xe^y) dy = (from o to y) ∫ y dy

Okay so it makes sense, since the initial value of x is zero, and since we are keeping x constant, it therefore follows that x will be 0 for all values and we can simply leave it at that.

Now the part that confuses me is that he does not do the same for the other function P(x,y) dx regardless of the fact that y_i = 0.

(a) gives x^2/2 - x^2y + xe^y + y^2/2 = c

Well, I can't speak for "the author" since I don't quite follow that (I don't see where the "ydy" on the right comes from). But I would say that, if f(x,y) is a differentiable function of x and y then we have
df= \frac{\partial f}{\partial x}dx+ \frac{\partial f}{\partial y}dy
so we must have
\frac{\partial f}{\partial x}= x - 2xy + e^y
integrating with respect to x, f(x,y)= (1/2)x^2- x^2y+ xe^y+ \phi(y).
(Since the partial derivative with respect to x treats y as a constant, the "constant of integration" may be a function of y hence the "\phi(y)".)

Differentiating that with respect to y we get
f_y(x,y)=-x^2+ xe^y+ \phi'(y)
where, because \phi is a function of y only, that last derivative is an ordinary derivative.
Looking back to the original equation we must have
\frac{\partial f}{\partial y}= -x^2+ xe^y+ \phi'(y)= y - x^2 + xe^y
so that \phi'(y)= y and \phi= (1/2)y^2+ C where, since \phi really is a function of the single variable, y, C, the "constant of integration, reall9y is a constant.

Putting that into f(x,y)= (1/2)x^2- x^2y+ xe^y+ \phi(y), we have f(x,y)= (1/2)x^2- x^2y+ xe^y+(1/2)y^2). Because the original differential equation was "df= 0", f is a constant: (1/2)x^2- x^2y+ xe^y+(1/2)y^2)= C
 
Let me highlight the main points.
(x - 2xy + e^y) dx + (y - x^2 + xe^y) dy = 0

He sets the initial integration of x_i = 0 & y_i = 0

Q(x,y) = (y - x^2 + xe^y)

Quote from author in this example, "with x_i = 0, Q(x_i,y) = y"

HallsofIvy said:
Strictly speaking, "dx" and "dy" are not part of the P and Q. What you want to say is that
df= P(x,y)dx+ Q(x,y)dy so that P(x,y)= x- 2xy+ e^y and Q(x,y)= y- x^2+ xe^y.
Well, I can't speak for "the author" since I don't quite follow that (I don't see where the "ydy" on the right comes from). But I would say that, if f(x,y) is a differentiable function of x and y then we have
df= \frac{\partial f}{\partial x}dx+ \frac{\partial f}{\partial y}dy
so we must have
\frac{\partial f}{\partial x}= x - 2xy + e^y
integrating with respect to x, f(x,y)= (1/2)x^2- x^2y+ xe^y+ \phi(y).
(Since the partial derivative with respect to x treats y as a constant, the "constant of integration" may be a function of y hence the "\phi(y)".)

Differentiating that with respect to y we get
f_y(x,y)=-x^2+ xe^y+ \phi'(y)
where, because \phi is a function of y only, that last derivative is an ordinary derivative.
Looking back to the original equation we must have
\frac{\partial f}{\partial y}= -x^2+ xe^y+ \phi'(y)= y - x^2 + xe^y
so that \phi'(y)= y and \phi= (1/2)y^2+ C where, since \phi really is a function of the single variable, y, C, the "constant of integration, reall9y is a constant.

Putting that into f(x,y)= (1/2)x^2- x^2y+ xe^y+ \phi(y), we have f(x,y)= (1/2)x^2- x^2y+ xe^y+(1/2)y^2). Because the original differential equation was "df= 0", f is a constant: (1/2)x^2- x^2y+ xe^y+(1/2)y^2)= C

I know, exact equations are very straight forward to me now I've got them down. I picked up this book and used its exact equation chapter to review https://www.amazon.com/dp/0486649407/?tag=pfamazon01-20

It is very good book and it is definitely my favorite in differential equations, but I just don't know the motivation behind what he did (stated in the original post).

Simon Bridge said:
It can help to understand the motivation by going through the process in reverse vis:
http://tutorial.math.lamar.edu/Classes/DE/Exact.aspx

aside:... who? What does he do instead?

Remember I cannot see what you are looking at, you have to tell me - or provide a link.
I'm guessing that you mean that Q was integrated wrt y and P wrt x... which leads to the suggestion above ;)

I'm sorry that didn't help, I understand exact equations for the most part. Just not what the author did in this case.
 
Last edited:
Hey guys, I figured it out. I was mis-interpreting the proof and technique that he proposed. What happens is that in his technique, initial x in Q(x_0,y) is 0, so when you integrate with respect to y, you can cancel out all the terms that have x! It is a very nice technique so I included the proof (it also serves as the technique itself).

Most of the words I copied out of the book, credit goes to the book by Pollard and Tenenbaum, called ordinary differential equations.

A necessary & sufficient condition that the differential equation

P(x,y) dx + Q(x,y)dy = 0 be exact is that \frac{∂}{∂y} P(x,y) = \frac{∂}{∂x} Q(x,y)
Where the functions exist and are continuous in a region R.

Proof of sufficient condition

The function f(x,y) if it exists, must have a property that /frac{∂ f(x,y)}{∂x} = P(x,y)

With y constant we obtain eq (1) f(x,y) = \int_{x_o}^{x} P(x,y) dx + R(y)

Where x_o is a constant & R(y) stands for the arbitrary constant of integration.

By definition, function f(x,y) must have the property that \frac{∂}{∂y}f(x,y) = Q(x,y)

\frac{∂}{∂y} \int {x_o}^{x} P(x,y) dx + R'(y) = Q(x,y)

By hypotheses P(x,y) is continuous, and by a theorem in analysis we may do the following:

\int {x_o}^{x} \frac{∂}{∂y} P(x,y) dx + R'(y) = Q(x,y)

Which is the same as

\int_{x_o}^{x} \frac{∂}{∂x} Q(x,y) dx + R'(y) = Q(x,y)

\left[Q(x,y) \right]_{x_o}^{x} + R'(y) = Q(x,y)

Which simplfies to R'(y) = Q(x_o,y)
R(y) = \int_{y_o}^{y} Q(x_0,y) dy, where y_0 is a constant
Substituting in eq 1 we get

f(x,y) = \int_{x_o}^{x} P(x,y)dx + \int_{y_o}^{y} Q(x_o,y) dy is the solution

If anyone needs any clarification, please let me know.
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
4
Views
2K