derivative of beta function with respect to a