Solution
= Solution
For any <Hermitian matrix> $K$, the scalar $x^\dagger Kx$ is real because its <complex conjugate> equals $x^\dagger K^\dagger x=x^\dagger Kx$. Applying this to $H,S$ in part (a) gives
$$
\boxed{\operatorname{Re}\lambda=x^\dagger Hx,\qquad\operatorname{Im}\lambda=x^\dagger Sx.}
$$
These are the real and imaginary <quadratic forms> associated with the <numerical range> of $A$.