Simplify derivative.
Logistic regression.