Mather's theory, beta function, integrability