Example of a Function with Non-Equal Mixed Partial Differentials

Click For Summary

Discussion Overview

The discussion revolves around finding an example of a function \( f(x,y) \) for which the mixed partial derivatives are not equal, specifically where \( \frac{\partial^2 f}{\partial x \partial y} \neq \frac{\partial^2 f}{\partial y \partial x} \). Participants explore the conditions under which mixed partials can be unequal, referencing continuity of derivatives and the existence of discontinuous derivatives.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants seek a function where both mixed partial derivatives exist but are unequal, noting that such a function must have a discontinuous derivative.
  • One participant suggests using a piecewise function as a potential candidate for the example.
  • Another participant proposes the function \( f(x) = x^2 \sin(\frac{1}{x}) \) but expresses uncertainty about its derivative's continuity.
  • There is a discussion about the conditions under which the mixed partial derivatives can be equal or unequal, with references to specific limits and definitions of derivatives.
  • One participant highlights a confusion regarding the inconsistency in results when using different methods to compute mixed partial derivatives.
  • Another participant emphasizes the importance of using the function value at a point when the formula does not hold, particularly at points of discontinuity.

Areas of Agreement / Disagreement

Participants generally agree on the need for a function with a discontinuous derivative to find unequal mixed partials, but no consensus is reached on a specific example that satisfies all conditions discussed.

Contextual Notes

Participants note that the existence of mixed partials and their equality can depend heavily on the continuity of the derivatives involved, and there are unresolved questions about specific functions and their properties.

Who May Find This Useful

This discussion may be useful for students and professionals interested in advanced calculus, particularly in understanding the conditions for mixed partial derivatives and the implications of continuity in multivariable functions.

beamie564
Messages
144
Reaction score
64
Hi! Can someone give me an example of a function ##f(x,y)## for which the mixed partial differentials are not equal, i.e. $$\frac{\partial^2 f}{\partial x \partial y} \neq \frac{\partial^2f}{\partial y \partial x}$$
It says in Boas that these mixed differentials are equal only if the first and second order partial differentials of ##x## and ##y## are continuous. I couldn't come up with any. Thanks :smile:
 
Physics news on Phys.org
Aniruddha@94 said:
Hi! Can someone give me an example of a function ##f(x,y)## for which the mixed partial differentials are not equal, i.e. $$\frac{\partial^2 f}{\partial x \partial y} \neq \frac{\partial^2f}{\partial y \partial x}$$
It says in Boas that these mixed differentials are equal only if the first and second order partial differentials of ##x## and ##y## are continuous. I couldn't come up with any. Thanks :smile:

Note that it should be easy to find a function for which only one of the mixed partials exists. Can you do that?

But, finding a function where both partials exist but are not equal is harder. To do this you need a function with a discontinuous derivative. Do you know any?
 
PeroK said:
Note that it should be easy to find a function for which only one of the mixed partials exists
Yes, I'm aware of this. But in such a case, one of the mixed deferential wouldn't exist ,right? I wanted to find a function where both the differentials would exist and be unequal to each other.
PeroK said:
To do this you need a function with a discontinuous derivative.
That's exactly what I thought, but couldn't come up with such a function .
.
Edit: Maybe we could use a piecewise function? ( not too sure about it though)
 
Aniruddha@94 said:
Yes, I'm aware of this. But in such a case, one of the mixed deferential wouldn't exist ,right? I wanted to find a function where both the differentials would exist and be unequal to each other.

That's exactly what I thought, but couldn't come up with such a function .
.
Edit: Maybe we could use a piecewise function? ( not too sure about it though)

Try ##f(x) = x^2 \sin(\frac{1}{x})##
 
  • Like
Likes   Reactions: beamie564
PeroK said:
Try ##f(x) = x^2 \sin(\frac{1}{x})##
This function did come to mind! But I didn't "know" that its derivative was discontinuous (only that it has infinite extrema as ##x## goes to zero). So,
$$\frac{d}{dx}\left[x^2 sin\frac{1}{x}\right] = 2xsin\frac{1}{x}-cos\frac{1}{x}$$
It's discontinuous at ##x=0## right?
But even then, I'm getting the mixed partial fractions to be equal, with ##f(x,y)= yx^2sin\frac{1}{x}## or ##f(x,y)= y+ x^2sin\frac{1}{x}## ..
.
(Sorry if the questions are too simple. I didn't learn these concepts back in school properly. It still haunts me)
 
Aniruddha@94 said:
This function did come to mind! But I didn't "know" that its derivative was discontinuous (only that it has infinite extrema as ##x## goes to zero). So,
$$\frac{d}{dx}\left[x^2 sin\frac{1}{x}\right] = 2xsin\frac{1}{x}-cos\frac{1}{x}$$
It's discontinuous at ##x=0## right?
But even then, I'm getting the mixed partial fractions to be equal, with ##f(x,y)= yx^2sin\frac{1}{x}## or ##f(x,y)= y+ x^2sin\frac{1}{x}## ..
.
(Sorry if the questions are too simple. I didn't learn these concepts back in school properly. It still haunts me)

This is not simple at all.

To show that the derivative is discontinuous at ##0## you need to define ##f(0) = 0## and check:

##f'(0) = lim_{h \rightarrow 0} \frac{f(h) - f(0)}{h} = lim_{h \rightarrow 0} hsin(\frac{1}{h}) = 0##

But:

##lim_{x \rightarrow 0} f'(x) = lim_{x \rightarrow 0} (2xsin\frac{1}{x}-cos\frac{1}{x})##

is undefined. So, ##f'## is discontinuous at 0.

How to use this for the multiple variable case? Let me have a think!
 
  • Like
Likes   Reactions: beamie564
PeroK said:
is undefined. So, ##f′## is discontinuous at 0.
Phew! I got that right. :redface:
 
  • Like
Likes   Reactions: beamie564
Thanks for the link. Still have a small confusion though. When you use the definition $$f_{xy}(0,0)= \lim_{h\rightarrow 0} \frac{f_x (0,h)-f_x (0,0)}{h}$$
,we find them to be unequal.
But if you find it simply as $$f_{xy}= \frac{\partial}{\partial y} \left(\frac{\partial f}{\partial x}\right)$$ they come out to be the same. Obviously we shouldn't have this inconsistency, so where am I wrong?
PeroK said:
That function I gave you above is useful, though, as a single variable function with discontinuous derivative.
I'll remember that :smile:
 
  • #10
Aniruddha@94 said:
Thanks for the link. Still have a small confusion though. When you use the definition $$f_{xy}(0,0)= \lim_{h\rightarrow 0} \frac{f_x (0,h)-f_x (0,0)}{h}$$
,we find them to be unequal.
But if you find it simply as $$f_{xy}= \frac{\partial}{\partial y} \left(\frac{\partial f}{\partial x}\right)$$ they come out to be the same. Obviously we shouldn't have this inconsistency, so where am I wrong?
I'll remember that :smile:

When you have a function defined by a formula that is not defined at a certain point then you need to be careful when differentiating. You can only use the formulaic differentiation for points where the formula holds. For points where the formula does not hold, you must use the function value at that point. This is what I did in post #6. We have:

##f(x) = \begin{cases} x^2 \sin(\frac{1}{x}) \ \ (x \ne 0) \\ 0 \ \ (x = 0) \end{cases}##

That function is differentiable and its derivative is continuous for ##x \ne 0##, as you can simply differentiate it using the formula for all ##x \ne 0##.

But, to get the derivative at ##x = 0## you must use the definition of the derivative and the function value at ##0##, as I did in post #6. In this case you find that ##f'(0) = 0##

This leads to the conclusion that although ##f## is differentiable at all points the derivative is not continuous at ##x = 0## as:

##\lim_{x \rightarrow 0} f'(x) \ne f'(0)##
 
  • #11
Right. Got it. Thanks for your time!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 36 ·
2
Replies
36
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K