Proving an Integral Formula for the Beta Function