I'm reading Courant's: Calculus, Vol 2.
When he speaks about continuity, he gives the following example:
$$ f(x,y) = \left\{ \begin{array}{ll} \cfrac{2xy}{x^2+y^2} & \quad (x,y)\neq (0,0)\\ \quad\,\,\, 0 & \quad (x,y)= (0,0) \end{array} \right. $$
And argues why this function is not continuous, however, I'd like to test it's continuous using the definition. I can understand Courant's argument: He takes $f(x,0)=0, f(0,y)=0$ and show that along the line $y=x$, we have: $f(x,x)=1$ and with this, we could choose any value $c$ for $f(0,0)=c$ and we would always have one path for which the function is discontinuous.
My question is different of this question because I don't want to find some paths and show it is discontinuous (I already know how to do this in the last paragraph), I'm actually using Courant's example to ask about something more subtle: Suppose I have a function $f(x,y)$ and want to test It's continuity at some point, I know I can test all paths along a line, I know I could use polar coordinates but given what I've seen in my lectures, the positivity of such tests is not a proof of continuity - It seems that even when these two tests are positive, there are still infinite paths in which the function could be discontinuous.
I've set up the expressions according to the text:
What do I do now? I tried to write:
$$|f(h,k)-f(0,0)|\leq \epsilon$$
$$\left|\cfrac{2hk}{h^2+k^2}\right|\leq \epsilon$$
And it should hold for all the pairs given in the text but I'm not sure about what I should do now. I guess that it would be counter productive to search for a pair that acts as a counterexample because in more complicated functions, it may not be so easy to find one. I'm completely lost at what I should do now.
EDIT: I have tried to put some thought on it and also tried to read the definition of continuity in Zorich's book:
So this seems almost like a sort of script which seems a little easier to grasp. I take one neighborhood $N(f(a))$, then I need to find a neighborhood $N(a)$ such that $f(N(a))\subset N(f(a))$, then if it's impossible to find a neighborhood $N(a)$ for some neighborhood $N(f(a))$, the function is discontinuous.
Now I guess I can suppose $N(f(a))$ has length $\epsilon$ (in $\Bbb{R}^1$) , I guess I need to pick a reasonable radius for $N(a)$, that is: $x^2+y^2\leq \delta$. For operational simplicity, I have decided to use: $x^2+y^2 = \delta$ but I'm totally unaware of how catastrophic that could be (supposing it could be catastrophic). Now:
$$x=\pm\sqrt{\delta - y^2}\quad \quad \quad\quad \quad y=\pm\sqrt{\delta - x^2} $$
$$f(\sqrt{\delta - y^2}, \sqrt{\delta - x^2} )=f(-\sqrt{\delta - y^2},- \sqrt{\delta - x^2} )= \frac{2\sqrt{\delta - y^2}\sqrt{\delta - x^2}}{\delta}$$
$$f(-\sqrt{\delta - y^2}, \sqrt{\delta - x^2} )=f(\sqrt{\delta - y^2},- \sqrt{\delta - x^2} )=\frac{-2\sqrt{\delta - y^2}\sqrt{\delta - x^2}}{\delta}$$
This is the operational simplicity I mentioned: If I used $x^2+y^2\leq \delta$, I guess I couldn't make that substitution which - at least for first sight, seems to be a little helpful and harmless. Now I guess I need to check if:
$$-\epsilon \leq \frac{2\sqrt{\delta - y^2}\sqrt{\delta - x^2}}{\delta}\leq \epsilon \quad \quad \quad -\epsilon \leq \frac{-2\sqrt{\delta - y^2}\sqrt{\delta - x^2}}{\delta}\leq \epsilon $$
In which I guess that solving just one of the cases, would prove the other one. So I'll pick the first one:
$$-\epsilon \leq \frac{2\sqrt{\delta - y^2}\sqrt{\delta - x^2}}{\delta}\leq \epsilon $$
And here, I suppose I picked one small $\epsilon>0$, I guess I need to find a $\delta$ in terms of $\epsilon$ which I'm not completely sure but seems to ammount to the same as solving for $\delta$? So:
$$-\epsilon\delta \leq 2\sqrt{\delta - y^2}\sqrt{\delta - x^2}\leq \epsilon\delta $$
Now I need to square all the sides:
$$\epsilon^2\delta^2 \leq 2(\delta - y^2)(\delta - x^2)\leq \epsilon^2\delta^2 $$
If this is a valid move, then:
$$2 \delta ^2-2 \delta x^2+2 x^2 y^2-2 \delta y^2=\epsilon^2\delta^2 $$
Solving for $\delta$ gives me:
$$\delta=\frac{-x^2-y^2\pm\sqrt{x^4+2 x^2 y^2 \epsilon ^2-2 x^2 y^2+y^4}}{\epsilon ^2-2}$$
Now if $\epsilon \to 0$, then:
$$\delta=\frac{1}{2} \left(x^2+y^2\pm\sqrt{\left(x^2-y^2\right)^2}\right)$$
But I'm not sure if this would imply something useful or if everything I did was a complete nonsense.