deeplearningfoundationsandconcepts:a2calculusofvariations