Let $(E,\mathcal E,\mu)$ be a measure space and $A$ be a self-adjoint bounded linear operator on $L^2(\mu)$. Assume $Af\ge0$ for all $f\in\mathcal L^2(\mu)$ with $f\ge0$. Let $$c_1:=\sup_{\substack{f\in\mathcal L^2(\mu)\setminus\{0\}\\f\ge0}}\frac{\left\|Af\right\|_{L^2(\mu)}}{\left\|f\right\|_{L^2(\mu)}}.$$
I would like to show that $$c_1=\sup_{\substack{f\in\mathcal L^2(\mu)\setminus\{0\}\\f\ge0}}\frac{\langle Af,f\rangle_{L^2(\mu)}}{\left\|f\right\|_{L^2(\mu)}^2}=:c_2.\tag1$$
Note that this is a classical result which is true when the suprema in the definitions of $c_1$ and $c_2$ are taken over $\mathcal L^2(\mu)\setminus\{0\}$ and we take the absolute value of the inner product in the definition of $c_2$.
Mimicing the usual proof, we easily obtain $$c_2\le c_1=\sup_{\substack{f,\:g\:\in\:\mathcal L^2(\mu)\\\left\|f\right\|_{L^2(\mu)}\:=\:\left\|g\right\|_{L^2(\mu)}\:=\:1\\f,\:g\:\ge\:0}}\langle Af,g\rangle_{L^2(\mu)}=:c_3\tag2.$$ Now we the classical claim (without the nonnegativity condition in the domain over which the supremum is taken in the definition of $c_3$) is concluded by showing $$c_3\le c_2\tag3$$ using the parallelogram law. Obviously, the problem with this is that the difference of nonnegative functions doesn't need to be nonnegative. Can we fix this or conclude by a different argument?