"the concept of a function shouldn't depend on what your favourite letter is!"
Very helpful answer, thanks for posting. "the concept of a function shouldn't depend on what your favourite letter is!"
Very helpful answer, thanks for posting.On the other hand, you can also argue that the concept of a function shouldn't depend on your favourite ordering of its variables. Thus, if you have a potential that oscillates in time, such as:
V = (1 + sin(t))/sqrt(x^2+y^2)
You may want to take derivatives with respect to each variable, such as dV/dt, dV/dx and so on. Their meaning is clear. What does D_2(V) mean, though? It does depend on your favourite ordering of the letters!Even if you prefer positional notation for derivatives (à la Spivak), it must be recognized that the naming-based notation has its merits, and sometimes is clearer.
V : ℝ³ → ℝ
V(t,x,y) = (1 + sin(t))/sqrt(x^2+y^2)
then it’s clear what D_2(V) means.The term of art is "an expression" [0]. And you can also differentiate expressions with respect to their variables. It's a perfectly supported construction in all symbolic computer algebra packages. No need to assign an (arbitrary) ordering to your variables in order to differentiate with respect to them.
f(x) = x^2 vs. f(t) = t^2
They are, because they produce the same set of ordered pairs (input, output).Some of the confusion is the fault of math profs, because we get lazy. We could say "the function f: R -> R defined by f(x) = x^2", but we wind up saying "the function f(x)" (wrong - f is the function, f(x) is the value when x is plugged in) or worse "the function x^2" (really wrong). But if you always say the absolutely correct thing "the function f: R -> R defined by f(x) = x^2" you sound really pedantic, and the extra words make it hard for students to comprehend. Oh well.
What was more confusing to people was if you had f(t) = t^2 and people thought "t" had some sort of independent existence outside the definition of f. Some guy was asking me about it and I was trying various explanations and he wasn't getting it. Then I remembered he was a CS major and I said "t is an argument to f and it's local to the function block" and he got it and nodded his head.
So I wonder if these kinds of distinctions are easier for programmers than for typical math students - in the sense that programmers would know there's no difference between these:
int f(int x)
{
return x * x;
}
int f(int t)
{
return t * t;
} int f(int x);
int f(int t);
will compile with no errors, while changing t to, f.i., "float" obviously won't.
I wonder whether this could be pushed farther to come up with programmer-friendly descriptions of things like the chain rule starting from something like: int h(int x) {
return f(g(x));
}
etc.