D O said:
It seems that if you want to calculate z_x you can't just ignore what y is a function of, as I would have done if I had been calculating it (and would have instead calculated z_1.
Yes, you are correct that if you wish to compute the interpretation of \frac{\partial z}{\partial x} in the sense of z_x, you must consider all the arguments of the function z that depend on x.
In the example, you can get the correct answer from the chain rule by using
## z_x = z_1 \frac{\partial x}{\partial x} + z_2 \frac{\partial y}{\partial x} + z_3 \frac{\partial t}{\partial x} ##
using
##z_1 = 2x ,\ z_2 = t,\ z_3= y ##
## \frac{\partial x}{\partial x} =1,\ \frac{\partial y}{\partial x} = 3x^2 ,\ \frac{\partial t}{\partial x} = 0 ##
How and whether such a formal manipulation makes sense is something I'd have to think about!
From the point of pure mathematics, the notation used in applied mathematics is truly horrifying in its ambiguity. In pure mathematics, a "function" involves two sets, a domain D and a co-domain C. The function is a set of ordered pairs of elements ##F## consisting of ordered pairs ##(d,c)## such that ##d \in D ## and ##\ c \in C ## and no two distinct ordered pairs in ##F## have the same first member.
Two functions are different functions if they have different domains or different co-domains or one contains an ordered pair that the other doesn't.
Take that pure mathematical view and try to reconcile it with a typical applied math scenario like:
Let ##z(x,y,t) = x^2 + yt ## and let ##y = x^3##
How many functions are involved in this scenario ? - and which function does "##z##" denote ?
First we have the function ##z## whose ordered pairs are of the form ##( (x,y,t), x^2 + yt )##. The first member of the ordered pair is a triple of real numbers and the second member of the ordered pair is a real number. For example, this function ##z## contains ( (1,2,3),7 ).
If we incorporate the "side condition" ##y = x^3## into our concept of ##z## we have ##z = x^2 + x^3 t ##, which consists of ordered pairs of the form ## (x,t), x^2 + x^3t) ## where the first member of the ordered pair is an ordered pair of real numbers ##(x,t)## instead of an ordered triple of real numbers. This second concept of ##z## as function does not contain ((1,2,3),7).
Since ##z## is ambiguous as notation for a function, the notation ##\frac{\partial z}{\partial x}## is also ambiguous. The distinction between ##z_1## and ##z_x## isn't because "there are two different partial derivatives for the same function". The distinction arises because there are two different functions that are denoted by the same symbol "z".
In the example. ##z_1## denotes a partial derivative of a function ##z## whose ordered pairs are of the form ##((x,y,t) x^2 + yt)## and ##z_x## denotes a partial derivative of a function ##z## whose ordered pairs are of the form ## ((x,t), x^2 + x^3t) ##.
In addition to the ambiguous notation for functions, we have the complication of the term "variable". It is so difficult to define the notion of "variable" precisely that pure mathematics only does it in contexts like the study of formal languages. In typical math courses (applied or pure) we don't find a clear definition of concept of a "variable" that is on par with other precise definitions - such as the definition of a function or the definition of a derivative etc. If an instructor says "I'll list the variables on the upper left corner of the marker board" we assume "variables" is a term from common speech on par with the terms "upper left corner of the marker board". Both "variable" and "upper left corner of the marker board" can be explained in colloquial language, but the course proceeds without giving either concept a precise mathematical definition.
In the above example, we can ask tricky questions like "Is ##y## a variable? Is ##y## a function? Is ##y## both a function and a variable?.
Those questions don't have specific answers unless we establish a specific context. To use the term "variable" unambiguously, we should being by speaking of a specific function. For example, if the ordered pairs of a function F are of the form ((x,y,t),z then "the variable y" is just away of referring to "the second element of the first member of an ordered pair of F. But if we are considering the function " ##y = x^3 t ##" then ##y## is a way of referring to the function itself and also to the second member of an ordered pair of the form ##((x,t), x^3t)##.
When you have several statements involving the symbol "##y##" you have the problem of deciding whether the "##y##" in one statement has the same meaning as the "##y##" in another statement. In applied math, we learn to cope with such ambiguities.
In applications a "variable" usually represents something like "temperature" that is not a mathematical abstraction. In a context such as "temperature z is a function of x,y,t" then "z"can be used to refer to a function or a "dependent variable" In a context such as "pressure p is function of temperature z", the symbol "z" can refer to a "independent variable".
D O said:
Would u be a function of (x,t) if instead x=x(u,t)=u+t?
Then you could argue that u=x-t so u depends on x and t.
Yes, if the relation x = u + t holds among 3 variables then we use ambiguous notation and use "u" to denote both the variable u and also the function defined by ordered pairs ( (x,t) x-t). However this does not mean that the concept of u as a function is identical to the concept of u as a variable.
Do you have to specify which variables are independent and which are dependent?
When you state precisely what function you are considering then this shows which symbols represent dependent and independent variables. The same symbol may be used to denote the dependent variable in one function and an independent variable in a different function.