Exact and efficient calculation of the derivatives of Lagrange multipliers for molecular dynamics simulations of biological molecules and polymers Article in Physica Scripta (August 2019)