Source: http://physchileborgne.free.fr/cours2019/CH08_LDP.pdf