Deep Learning Optimisation Maths