Derivation of DL/dz

You are taking derivatives w.r.t. a, so the -1 comes from applying the Chain Rule to the expression (1 - a).

2 Likes