Given three positive real numbers $a,b,c>0$, consider the following function, defined on $\mathbf R^3$ $$ f(x,y,z) := y^2(a^2x^2+b^2y^2+c^2z^2). $$
Question. What is the maximum of $f$ on $\mathbf S^2 :=\{(x,y,z): x^2+y^2+z^2=1\}$ (in terms of $a,b,c$)?
The existence of the maximum on $\mathbf S^2$ is a trivial consequence of Weierstrass' theorem. Lagrange multipliers haven't been very illuminating, and after some tedious computations I gave up. Spherical coordinates? Seems a mess, and nothing simplifies. What bothers me the most is that I suspect there is a nice geometric interpretation of all of this, but somehow I fail to see it. Any suggestions?
Assuming wlog $a\ge c$, the maximum on $f$ on $\mathbf S^2$ equals the maximum on $\mathbf S^1$ of $y^2(a^2x^2+b^2y^2)$, i.e. (letting $t:=y^2$) the maximum of $$g(t):=a^2t+(b^2-a^2)t^2\text{ on }[0,1].$$