The interaction between bulk energy and surface energy in multiple integrals