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