Why the gradient is the direction of steepest ascent