A Framework for Proving Hilbert's Double Integral Inequality and Related Results