I have a self-adjoint linear contraction $A_g$ on an $L^2$-space of the form $$A_gf=\int\gamma(f,g),$$ where $\gamma$ is Lipschitz continuous and $g$ is an a priori fixed function. Assuming $1-A_g$ is injective and $f\in\mathcal R(A_g)$, I need to minimize the quantity $\langle(1-A_g)^{-1}f,f\rangle_{L^2}$ over al choices of $g$ for this fixed $f$.
How can we solve this problem? Maybe we can use the spectral measure $E_g$ associated to $A_g$ such that $$(1-A_g)^{-1}=\int_{\sigma(A_g)}\frac1{1-\lambda}\:E_g({\rm d}\lambda)\tag1.$$ My problem with $(1)$ is that I don't know how the measure $E_g$ depends on $g$.