Source: http://collegedesflandres.etab.ac-lille.fr/maths/4/cours/pythagore.pdf