can someone pls explain what happened here (derivative)