I think that Rayleigh theorem should be formulated in this way
Take two square matrices, build quadratic forms from them in a way I described in comments. Then you have subsets of vector space on which they take value 1 (they are not always spheres, e. g. for matrix (1, 0)(0, -1) it's hyperboloid — but if all eigenvalues are positive, it's two spheres).