Derivative of a linear combination