derivative of beta function with respect to b