jenzao said:
Homework Statement
Am I doing this correctly?
Is 2y^4dx +4xy^3dy exact or inexact?
Homework Equations
The Attempt at a Solution
So if its exact, then M(x,y)dx = N(x,y)dy right? (Euler)
No, you have it reversed. It is M(x,y)
y= N(x,y)
x- assuming you mean M(x,y)dx+ N(x,y)dy.
But how can I take partial derivative of 2y^4 with respect to x, if there is no x to derive??
Then it is a constant with respect to x and the derivative would be 0.
However what you want is (2y
4)
y and (4xy
3)
x.
Remember WHY you are doing that. IF M(x,y)dx+ N(x,y)dy is an
exact differential, then there exist some function f(x,y) such that df= M(x,y)dx+ N(x,y)dy. By the chain rule,
df= \frac{\partial f}{\partial x}dx+ \frac{\partial f}{\partial y} dy[/itex] <br />
so if M(x,y)dx + N(x,y)dy is exact, M(x,y)= f<sub>x</sub> and N(x,y)= f<sub>y</sub>. Taking the derivatives of M and N give the <b>mixed</b> derivatives: M(x,y)<sub>y</sub>= f<sub>xy</sub> and N(x,y)<sub>x</sub>= f<sub>yx</sub>. As long as the derivatives are all continuous, those mixed derivatives must be equal.<br />
<br />
That does NOT answer your title questin "What is the purpose of an integrating factor and how do we find one". <br />
<br />
Given a function f(x,y), it "differential" is <br />
df= \frac{\partial f}{\partial x}dx+ \frac{\partial f}{\partial y}dy<br />
Writing arbitrary functions for M(x,y) and N(x,y) in M(x,y)dx+ N(x,y)dy may LOOK like a differential but as I pointed out above, such an f exists if and only if the above criterion is satisfied- if and only if the differential is <b>exact</b>. It can be shown that, given anything of the form M(x,y)dx+ N(x,y)dy you can always multiply it by some function of x and y to <b>make</b> it exact- an "integrating factor". There is, however, NO general method of finding an integrating factor.<br />
<br />
In this particular case, since both M(x,y) and N(x,y) involve only powers of x and y, I might <b>try</b> x<sup>n</sup>y<sup>m</sup> as an integrating factor. Multiplying by that, I have 2x<sup>n</sup>y<sup>m+4</sup>dx+ 4x<sup>n+1</sup>y<sup>m+3</sup>dy. Now, (2x<sup>n</sup>y<sup>m+4</sup>)<sub>y</sub>= 2(m+4)x<sup>n</sup>y<sup>m+3</sup> and (4x<sup>n+1</sup>y<sup>m+3</sup>)<sub>x</sub>= 4(n+1)x<sup>n</sup>y<sup>m+3</sup>. The powers of x and y are correct! In order that those be equal we must have 2(m+4)= 4(n+1) or 2m+ 8= 4n+ 4 so m= 2n- 2. It is easest to take n= 1 so m= 0. That means that x itself is an integrating factor: (2xy<sup>4</sup>)<sub>y[/sup]= 8xy<sup>3</sup> and (4x<sup>2</sup>y<sup>3</sup>)<sub>x<sub>= 8xy<sup>3</sup> also.<br />
<br />
That means there must exist some function f(x,y) so that df= f<sub>x</sub>dx+ f<sub>y</sub>ydy= (2xy<sup>4</sup>)dx+ (4x<sup>2</sup>y<sup>3</sup>)dy. In particular, f<sub>x</sub>= 2xy<sup>4</sup> so, integrating with respect to x (while treating y as a constant since this is a partial derivative) we have f(x,y)= x<sup>2</sup>y<sup>4</sup>+ C(y). Notice that, because y is treated as a constant in <a href="https://www.physicsforums.com/insights/partial-differentiation-without-tears/" class="link link--internal">partial differentiation</a>, the "constant of integration" <b>might</b> be a function of y. However, differentiating that with respect to y we have (x<sup>2</sup>y<sup>4</sup>+ C(y))<sub>y</sub>= 4x<sup>2</sup>y<sup>3</sup>+ C'(y)= 4x<sup>2</sup>y<sup>3</sup> so C'(y)= 0- C really is a constant. f(x,y)= x<sup>2</sup> y<sup>4</sup>+ C.<br />
<br />
Now, whether multiplying by that "integrating factor" disrupts the <b>rest</b> of the problem depends upon what the problem is! dynamicsolo is incorrect to suggest that there <b>must</b> be an "= 0" on that. A "differential" is <b>not</b> a "differential equation" and an "exact differential is not an "exact differential equation". However, if the problem really were, as he suggested, to solve the (non-exact) differential equation 2y<sup>4</sup>dx+ 4xy<sup>3</sup>= 0, then multiply both sides by x gives 2xy<sup>4</sup>dx+ 4x<sup>2</sup>y<sup>3</sup>= d(x<sup>2</sup>y<sup>4</sup>)= 0 which has the general solution x<sup>2</sup>y<sup>4</sup>= C.</sub></sub></sub>