Source: https://hautmathelin.fr/math/premiere/1_Cours_Chap_04_Calculs_de_derivees.pdf