simplify derivative p exp(-a p)/(p exp(-a p)+(1-p)exp(-b(1-p))) in p