Integral Formula For The Inhomogeneous Sobolev Norm