The beta function is defined by