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

Click For Summary

Discussion Overview

The discussion revolves around the integration of the differential equation (x - 2xy + e^y) dx + (y - x^2 + xe^y) dy = 0, focusing on the integration process with a constant initial value for y while treating x as a variable. Participants explore the implications of integrating the components P(x,y) and Q(x,y) under specific conditions.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants clarify that P(x,y) and Q(x,y) represent the components of the differential equation, emphasizing that "dx" and "dy" are not part of these functions.
  • There is confusion regarding the integration process, particularly why Q(x,y) is integrated with respect to y while P(x,y) is not treated similarly, despite y being constant.
  • One participant suggests that the integration of Q(x,y) simplifies to y when x is set to zero, allowing for cancellation of terms involving x.
  • Another participant elaborates on the conditions for the differential equation to be exact, discussing the relationship between the partial derivatives of P and Q.
  • A later reply presents a proof of the sufficient condition for exactness, detailing the integration steps and the role of arbitrary constants.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the integration technique and the reasoning behind it. Some agree on the method's validity, while others remain uncertain about specific steps and interpretations, indicating that the discussion is not fully resolved.

Contextual Notes

Participants note the importance of understanding the role of constants during integration and the implications of treating variables as constants in partial derivatives. There is also mention of the need for clarity in the integration process, particularly in distinguishing between the roles of P and Q.

Who May Find This Useful

This discussion may be useful for students and practitioners of differential equations, particularly those interested in exact equations and integration techniques involving multiple variables.

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
2K
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K