How to evaluate $\int_0^z(x(z-x))^ndx$
I was trying to find conditional distribution involving two Gamma Distributions when this integral came up. Accoring to https://www.integral-calculator.com/ the answer is $B(n+1,n+1)z^{2n+1}$ I'm not sure how though. $n$ need not be interger so I cant use binomial expansion as well. I'm aware of the identity $$B(x,y)\Gamma(x+y)=\Gamma(x)\Gamma(y)$$