Lipschitz property of $f(x,y)= \frac{xy}{\sqrt{x^2+y^2}}$ for $(x,y)\neq (0,0)$ and $f(0,0)=0.$

971 Views Asked by At

Prove that $$f(x,y)=\left \{\begin {array}{lll} \displaystyle \frac{xy}{\sqrt{x^2+y^2}}, & ~(x,y)\neq (0,0)\\ 0, & ~\textrm{διαφορετικά}\\ \end{array} \right.$$ is Lipschitz, with constant $M=1$, that is: $$|f(x_1,y_1)-f(x_2,y_2)|\leq \sqrt{(x_1-x_2)^2+(y_1-y_2)^2}$$ for all $(x_1,y_1),~(x_2,y_2).$

Attempt. By using MVT for one variable, we get for some $y'$ and some $x'$ $$f(x_1,y_1)-f(x_2,y_2)=\big(f(x_1,y_1)-f(x_1,y_2)\big)+\big(f(x_1,y_2)-f(x_2,y_2)\big)=f_y(x_1,y')(y_1-y_2)+f_x(x',y_2)(x_1-x_2).$$ By triangle inequality and since $|f_x|,~|f_y|$ are bounded above by $1$: $$|f(x_1,y_1)-f(x_2,y_2)|\leq |f_y(x_1,y')|\,|y_1-y_2|+|f_x(x',y_2)| \,|x_1-x_2|\leq |y_1-y_2|+|x_1-x_2|\leq \sqrt{2}\,\sqrt{(x_1-x_2)^2+(y_1-y_2)^2},$$ so we get the desired property for $M=\sqrt{2}$. Is $M=1$, as stated above, incorrect or am I missing something?

Thank you in advance!

1

There are 1 best solutions below

3
On BEST ANSWER

It looks like treating each variable separately makes you overestimate the bound. If you use MVT for $f$ as a function of two variables, you have $$f(x_1,y_1)-f(x_2,y_2)=\nabla f(\vec{p}) \cdot \big( (x_1,y_1)-(x_2,y_2)\big)$$ for some $\vec p \in \mathbb R^2$ lying in the segment that joins both points. So by Cauchy-Schwartz inequality you can say $$|f(x_1,y_1)-f(x_2,y_2)|\le||\nabla f(\vec{p})|| \cdot ||(x_1,y_1)-(x_2,y_2)||$$ and so it's enough to show that the gradient has norm not greater than one, which is true.