https://medium.com/@monocosmo77/working-with-gateaux-derivative-in-machine-learning-part3-5516fd3f7103