If M =
∂f/
∂x and N =
∂f/
∂y, we are told Mdx + Ndy = 0 if and only if
∂M/
∂y =
∂N/
∂x.
No, you are NOT told that. What you are incorrectly remembering is that if
M=∂x∂f and
N=∂x∂f and the second derivatives are continuous
then ∂x∂M=∂y∂f. That's true because of the "equality of mixed derivatives" in this case:
∂x∂y∂2f=∂y∂x∂2f where the changed orders of "x" and "y" indicate the different orders of differentiation. That has nothing to do with Mdx+ Ndy= 0
For any differentiable function, f, of variables x and y, the chain rule asserts that
dtdf=∂x∂fdtdx+∂y∂fdtdy or, in "differential" term,
df=∂x∂fdx+∂y∂fdy. Saying that differential is 0 means that f is a
constant.
1) Mdx+Ndy =
∂f/
∂x . dx +
∂f/
∂y . dy = 0
∂f/
∂x = -
∂f/
∂y . dy/dx
∂f/
∂x =
∂f/
∂y x dy/dx because y = f(x), but that gives Ndy/dx = -N dy/dx.
Is
∂f/
∂x =
∂f/
∂y x dy/dx not valid or have I gone wrong somewhere else?
Thanks in advance.
Your basic understanding is wrong.
My=Nx says that there exist f(x,y) such that
fx=N and
fy=M. That together with Mdx+ Mdy= 0 says that f(x,y)= constant.
For example, if 2ydx+ (2x+ y)dy= 0 (note that (2y)_y= 2= (2x+ y)_x) then
∂x∂f=2y so that f(x, y)= 2xy+ g(y). Because the "partial derivative with respect to x" treats y as a constant, the "constant of integration" may be a function of y. Now, differentiating
that with respect to y, we have
∂y∂f=2x+g′ and we know that must be equal to 2x+ y. The "2x" terms cancel (that is because of the
My=Nx) so that we must have
g′=y and so
g(y)=y2/2+C where, since g is a function of y only, C really is a constant. Putting that into the equation,
f(x,y)=2xy+y2/2+C.