Undergrad Example of a Function with Non-Equal Mixed Partial Differentials

Click For Summary
The discussion centers around finding a function f(x,y) where the mixed partial derivatives are unequal, specifically where ∂²f/∂x∂y ≠ ∂²f/∂y∂x. It is noted that mixed partials are equal if the first and second-order partial derivatives are continuous. A piecewise function is suggested as a potential candidate, and the function f(x) = x²sin(1/x) is mentioned for its discontinuous derivative at x=0. The conversation highlights the importance of correctly applying the definition of derivatives at points where the function is not defined. Ultimately, the challenge remains to identify a suitable multivariable function that meets the criteria.
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:
 
Mathematics 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 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 beamie564
PeroK said:
is undefined. So, ##f′## is discontinuous at 0.
Phew! I got that right. :redface:
 
  • Like
Likes 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 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K