write out which sum rules correspond to which function