Representation of Multivariate Functions via the Potential Theory and Applications to Inequalities