lagrange and newton