Source: http://emmanuel.rachelson.free.fr/extras/cours_enac/TD_ENAC_OPTIM.pdf