I've recently been presented with the following problem:
(b) (3 marks) Now consider the function $g: \mathbb{R}^2 \rightarrow \mathbb{R}$ where
$$ g(x, y) = \begin{cases} \frac{\sin(2x^2+2y^2)}{x^2+y^2},& (x, y) \neq (0,0) \\ a,& (x, y) = (0,0) \end{cases} $$
For what value(s) of $a$, if any, is $g(x, y)$ continuous at $(0, 0)$?
And I believe there is no values of a which satisfy continuity. I've taken two limits which are analogous for the Y variable, which describe 4 approaches to the point in question:
$$ \lim_{x,0\to0,0} \frac{\sin(2x^2+2(0)^2)}{x^2+(0)^2} = \lim_{x\to0} \frac{\sin(2x^2)}{x^2} $$
I'll skip the evidence we can use L'Hospitals here, but they both converge to 0 (numerator and denominator), therefore applying the rule for this single variable limit:
$$ \lim_{x\to0} \frac{4x\cdot\cos(2x^2)}{2x} = \lim_{x\to0} 2\cdot\cos(2x^2) = 2$$
So on this particular approach, $a = 2$ would make the function continuous. However, note that when you take the approach $x = y$, you yield the following (Utilizing product of limit laws):
$$ \lim_{x,x\to0,0} \frac{\sin(2x^2+2(x)^2)}{x^2+(x)^2} = \lim_{x\to0} \frac{\sin(4x^2)}{2x^2} = \frac{1}{2}\cdot \lim_{x\to0}\frac{\sin(4x^2)}{x^2}$$
Again we apply L'Hospitals Rule:
$$\frac{1}{2}\cdot\lim_{x\to0} \frac{8x\cdot\cos(4x^2)}{4x} = \frac{1}{2}\cdot\lim_{x\to0}2\cdot\cos(4x^2) = \lim_{x\to0} \cos(4x^2) = 1 $$
From this we find a separate value that would also make the function continuous at the point 0,0, so there is no limit that exists. Is this right? According to online calculators there is only one limit, 2, but this path wherein x = y seems to hold up being different...
Can someone poke a hole in my work for me please so I can realise my error?