added sum rules for x and x^2