Source: https://math.unice.fr/~walter/L1MASS/Cours_det.pdf