Source: https://www2.ift.ulaval.ca/~ericae/ift-66529/cours/ch3ScH2003.pdf