APPENDIX A Backpropagation in neural networks