To obtain derivatives of the optimal intermolecular energy of structure s with respect to pk , we differentiate Equation ( ) with respect to pk taking note of the multiple dependencies of the optimal intermolecular energy function on pk . Through the stationarity conditions imposed by the lattice energy minimisation, it can be shown that the derivatives may be expressed as in Equation .