on the recommendation of euler and d'alembert, in 1766 lagrange succeeded euler as the director of mathematics at the prussian academy of sciences in berlin. he stayed there for over twenty years, producing a large body of work and winning several prizes of the french academy of sciences.