A Derivation of D1 Denote the logit vector as x, we have p j = e