The partial derivative of a linear combination with respect to any of its variables is simply the coeffecient of that variable.

Consider that you have the linear combination $$ y = 3x_1 + 4x_2 + 5x_3 $$

The derivative wrt is $$ \frac{dy}{dx_1} = 3 $$

Notice:

  1. The derivative wrt to does not depend on any of the other variables.
  2. The derivative is simply the coeffecient of the variable that you are taking the derivative with respect to.

Let’s walk through the derivative wrt a little more slowly. To take the derivative wrt to , we must make all other variables constants. If we make and constant, both of those terms go to 0 (since the derivative of a constant is 0). Thus we are only left with the term , the derivative of which is .

Thus we can conclude:

  1. The derivative wrt to any single variable of a linear combination is just the coeffecient of that variable.
  2. That means that the derivative wrt to any single variable of a linear combination does not depend on any of the other variables!

Another reason to love linear functions (aka linear combinations)! Because taking their partial derivatives are so simple and computationally cheap!