Let $B$ be a symmetric, positive definite matrix and consider the problem
$$\begin{array}{ll} \text{maximize} & x^\top B x\\ \text{subject to} & \|x\| = 1\\ & b^\top x = 0\end{array}$$
for some unit vector $b$, not necessarily an eigenvector of $B$. If $b$ is an eigenvector, this is easy: just pick the largest eigenvalue among all eigenvectors orthogonal to $b$. But what if $b$ is not an eigenvector?
My intuition is as follows. Let $z_i$ be the eigenvectors of $B$ (with corresponding eigenvalues $\lambda_i$. Each eigenvector can be projected onto the orthogonal complement of $b$ by taking the vector rejection
$$\hat{b}_i = z_i - \left(b^\top z_i\right)b$$
I believe that the maximizer should be one of the $\hat{b}_i$ vectors, but I don't know how to prove it or how to further characterize the right $i$. I guess that it should depend on both $\lambda_i$ and $(b^\top z_i)^2$, but don't know how to proceed further. Would appreciate any suggestions.