I am self-studying Boyd's convex optimization textbook, and I am befuddled by Example 9.1 shown here in screenshot. Specifically, I am confused how he gets that the supremum of $q^{\top} z$ over the ellipsoid is equal to that first term on the right-hand side.
I tried to formulate it as a constrained optimization problem on the surface of the ellipsoid, with a Lagrange multiplier, but it doesn't seem to work.
Any insights?