Need help taking the derivative of the following function w.r.t x. (this is the General Beta of the Second Kind density function):

$\displaystyle \frac{a}{bB(p,q)}\frac{(x/b)^{ap-1}}{(1+(x/b)^a)^{p+q}}$

B(.) is the beta function.

I don't expect anyone to give me the answer, but would appreciate some advice on what strategy I should use, especially as regards the derivative of the beta function.

Thanks