 She died in 1783 after years of illness and Lagrange was very depressed.In 1786, Frederick II died, and the climate of Berlin became difficult for Lagrange.In 1786, following Frederick's death, Lagrange received similar invitations from states including Spain and Naples, and he accepted the offer of Louis XVI to move to Paris.