Is $S = \{x\in\mathbb{R^2} | \langle Ax,x \rangle =1\}$ compact in $\mathbb{R^2}$ when:
a.
$A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$
b.
$A = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}$
(inner products and distance are the standard ones in $\mathbb{R^2}$).
I feel that this should be relatively simple, but I can't seem to solve this. The most promising approach seems to be showing that it is closed and bounded (other approaches, such as showing that each sequence has a converging subsequence seem less promising since they do not use the fact that this is $\mathbb{R^2}$ and it seems clumsy too, but I may be wrong).
For the bounded part, I thought of taking $x,y\in S$, and then showing that: $||x-y||_2 < \infty$ by somehow transitioning to the inner product to use the facts about $A$, i.e.
$||x-y||_2 = \langle x-y, x-y \rangle = $ [some function of $\langle Ax,x \rangle$ and $\langle Ay,y \rangle$ which would hopefully lead to some insight, but after messing about with these I can't seem to get anywhere interesting].
Since this did not work, and the values in $A$ clearly have to be used somehow, I resolved to spelling out the dot product to obtain that (for a.):
$\langle Ax,x \rangle = 2x_1^2 +2x_1x_2 + 2x_2^2 = 1$
but this didn't provide any striking insight in relation to $||x-y||_2$ and it is obviously not the cleanest approach...
I'm pretty rusty on inner products etc. so I reckon I'm missing something a lot simpler here. Also, I'm completely at a loss as to how the show this is closed (assuming the closed + bounded approach is relevant).
Any advice would be much appreciated!
Since $\langle Ax,x\rangle = 2x_1^2 + 2x_1x_2 + 2x_2^2=1$, you can define the function $$f:\mathbb{R}^2\to\mathbb{R},\ \ \ f(x_1,x_2)= 2x_1^2 + 2x_1x_2 + 2x_2^2$$ This function is obviously continuous (it just involves sums, products and powers). If we call $H=\{(x_1,x_2)\in\mathbb{R}:\langle Ax,x\rangle=1\}$, then you can also write $$H=\{(x_1,x_2)\in\mathbb{R}:f(x_1,x_2)=1\} = f^{-1}(\{1\})$$ Since $\{1\}$ is a closed set in $\mathbb R$, $f$ being continuous implies that its preimage, $H$, is also closed.
We are left now checking if our set $H$ is bounded. This proof works for diagonalisable matrices, which is the case for both of your matrices.
Let $\lambda_1, \dots,\lambda_n$ be the eigenvalues of a matrix A $n \times n$ (might not be unique) and $v_1,\dots,v_n$ an associated orthonormal basis made of eigenvectors. We can write $x\in\mathbb R^n$ as $$x=\sum_{i=1}^na_iv_i, \ \ \ a_i\in\mathbb R$$ We also have that $$Ax = \sum_{i=1}^n\lambda_ia_iv_i, \ \ \ \langle Ax,x\rangle = \sum_{i=1}^n\lambda_ia_i^2, \ \ \ ||x||^2=\sum_{i=1}^na_i^2$$
The third equality tells us that $H$ will be bounded if the coordinates $a_i$ will be bounded for all $x\in H$. Let's look at our particular matrices.
This is an "easier" proof than Ivo's and Lee's, but as you can see is way longer than theirs, which are more general than mine and are well worth understanding.