I'm confused by this problem:
Let $A \in \mathbb{C}^{n \times n}$ be diagonalizable with eigenvalues $0 \leq \lambda_1 \leq \cdots \leq \lambda_n$. Express in terms of the spectral decomposition of $A$ the set of vectors $x$ and $y$ such that $$\lambda_1 \leq \frac{x^t \cdot A \cdot y}{x^t \cdot y} \leq \lambda_n$$
I don't really get what the problem is asking. I am guessing that $A$ is hermitian (although this wasn't mentioned!). The spectral theorem says that there is a basis $v_1, ... , v_n$ of eigenvectors of $A$ which is also an orthonormal basis.
I'm guessing what we have to do is write $x$ and $y$ in terms of this basis, say $x = c_1v_1 + \cdots + c_nv_n$ and $y = a_1v_1 + \cdots + a_nv_n$ (and I'm guessing $x$ and $y$ have to have real entries? I don't know!). Let $d_i = a_ic_i$, so $$\delta := x^t \cdot y = d_1 + \cdots + d_n$$
I first considered the case where $\delta > 0$. Then the problem is asking when $$0 \leq (\lambda_2 - \lambda_1)d_2 + \cdots + (\lambda_n - \lambda_1)d_n \leq (\lambda_n - \lambda_1)d_1 + \cdots + (\lambda_n - \lambda_1)d_n$$
I am kind of stuck here. Any suggestions on what I should do next/what the problem is actually asking for?