Understanding the derivative of a vertically-shifted function