An old method of Jacobi to find Lagrangians