Source: https://documents.epfl.ch/groups/l/la/lastro-unit/www/PhysGenII/cours/physmaths10bsmall.pdf