Question: Suppose that $\Lambda$ is an $N × N$ real-valued diagonal matrix and $Q$ is real symmetric. Suppose that $tr\ \Lambda \neq 0$ and $tr\ Q \neq 0$. Prove there is a vector $v \in \mathbb{R}^N$ such that $$v^T\Lambda v = tr\ \Lambda, v^TQv = tr\ Q $$
My thought:
Decompose the $\Lambda$ as $\Lambda = U^T\Lambda U, \ \forall\ U^TU = I $ and $Q = U^T\Lambda_1 U$.
So $$v^T\Lambda v = (Uv)^T\Lambda (Uv)= tr\ \Lambda$$ and $$v^TQ v = (Uv)^T\Lambda_1 (Uv) = tr \ Q = tr\ \Lambda_1$$ Intutively,the structure is same so they could preserve the same property. But how could I prove the $v$ in two formulas is the same one?
Could anyone help me out? Thank in advance!