Value of partial derivative depends on all inputs

From Calculus

Statement

The general expression for the partial derivative of a function with respect to any of the inputs is an expression in terms of all the inputs. For instance, the general expression for fx(x,y) is an expression involving both x and y. This is because, even though the y-coordinate is kept constant when calculating the partial derivative at a particular point, that constant value need not be the same at all the points.

{{#widget:YouTube|id=XYydvau-qIQ}}

Example

Mathematical example involving two variables

For instance, consider:

f(x,y):=x2+y2+xy2

Then, we have:

fx(x,y)=2x+y2

and:

fy(x,y)=2y+2xy

Note that each of the expressions involves both the variables x and y. In particular, this means that the value of fx at a point depends on both the x-coordinate and the y-coordinate of the point. Thus, for instance:

fx(2,3)=2(2)+32=4+9=13

fx(2,4)=2(2)+42=4+16=20

Despite the same x-value of 2 in both cases, the fx-values are different because of differences in the input y-values.

Similarly, consider:

fy(1,4)=2(4)+2(1)(4)=8+8=16

fy(2,4)=2(4)+2(2)(4)=8+16=24

Despite the same y-value of 4 in both cases, the fy-values are different because of differences in the input x-values.

Real-world example

The real-world example mentioned here uses something that's a relative derivative between logarithms of quantities, but the idea is the same. In standard microeconomic theory, the quantity demanded for a particular good is considered a function of the unit price and a number of other determinants of demand. The demand function studies the relation between quantity demanded and unit price holding all the other determinants of demand constant. There is a concept of price-elasticity of demand that measures the relative logarithmic derivative of quantity demanded with respect to price.

The relevance of the discussion here is that the price-elasticity of demand depends on the values of the other determinants of demand that we are holding constant. In other words, a change in the value of one of the other determinants of demand could affect the price-elasticity of demand at a particular unit price. For instance, a change in an individual's income could affect the price-elasticity of demand function. Similarly, a change in the price of a substitute good could affect the price-elasticity of demand function.

Partial truth and falsehood

Second-order mixed partial

The second-order mixed partial derivative captures precisely this fact. Basically, the second-order mixed partial derivative with respect to two of the input variables describes how the partial derivative with respect to one variable changes in terms of the second variable. The statement here can thus be interpreted as saying that the second-order mixed partial derivative of a function is not always zero.

Conditions where the value depends only on the specific input

The only cases where the partial derivative with respect to one variable depends only on that variable is where the function is additively separable in terms of a function purely of that variable and a function of the other variables. Another way of thinking of this is that the second-order mixed partials with respect to that particular variable and all the other variables are zero.

For instance, consider a function of three variables:

f(x1,x2,x3):=x22x12x3

This function is a sum of a function purely of x2 and a function that does not involve x2. The partial derivative with respect to x2 thus involves only x2:

fx2(x1,x2,x3)=2x2

On the other hand, because f does not have this form with respect to x1, the first partial derivative with respect to x1 does depend on other variables. Specifically, it depends on both x1 and x3 in this case:

fx1(x1,x2,x3)=2x1x3

Related ideas