Update partial derivatives