partial derivative of linear regression