# Partial Derivative of a Linear Combination

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:

- The derivative wrt to does not depend on any of the other variables.
- 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:

- The derivative wrt to any single variable of a linear combination is
justthe coeffecient ofthatvariable.- 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!