Mathematical derivation of backpropagation via chain rule | HACKOBAR_