Source: https://www.math.univ-toulouse.fr/~jbhu/Fermat_Quadrature.pdf