How to derive gradients in backprop without knowing matrix calculus