Gradient descent for Logistic Regression : Same partial derivative. Why?

Hello, did you do the derivative yourself to verify that they indeed are the same?