Source: http://jl.maths-lfb.fr/1S/derivation/oprimisation_recherche.pdf