I'm looking for a clarification of an answer to
Showing that $x^{\top}Ax$ is maximized at $\max \lambda(A)$ for symmetric $A$
(This is a clarified formulation of my original question which I deleted)
The question at the given link asks for a proof that
Given a $n \times n$ symmetric matrix $A$,
$$ \max_{x : ||x||_2 = 1} x^{\top}Ax = \max \lambda(A), $$
where $\max \lambda(A)$ is the maximum eigenvalue of $A$.
I've approached solving the problem in exactly the same way as @Ryan at the above page. The main point is in the upper bound introduced as: $$ x^{\top}Ax = \sum_{i=1}^n \lambda_i \tilde{x}_i^2 \le \max \lambda(A)\sum_{i=1}^n \tilde{x}_i^2 $$
and this is correct.
However, this proves only that $ x^{\top}Ax \le \max \lambda(A),$ but not the original statement $$ \max_{x : ||x||_2 = 1} x^{\top}Ax = \max \lambda(A)$$