Apply an analytical simplification for the summation which should improve speed of computation.