Source: https://www.imo.universite-paris-saclay.fr/~benjamin.auder/teachings/bdd_old/seances/3/TP/lks/dep_fun.pdf