Differentiating integer powers (mixed positive and negative)