Background
First I apologize because the following are very elementary and annoying questions about functions. But I could sure use help. It's distressing to me that I'm trying to get better at math but I don't even understand a fundamental concept like functions... please explain very pedantically because I am a little slow.
Statement in question
Let's say: $\forall x,y \quad f(x) = g(x+y)$
My questions
Is it correct to say that $g(x+y)$ is a function of one variable or two variables?
- My attempt: It's clear to me that $g(x)$ is a function of one variable and $g(x,y)$ is a function of two variables. But I'm not sure about $g(x+y)$. I would guess $g$ is a function of a function and the inner function can be thought of as "one variable" that has "two variables." That seems really convoluted...
What are some trivial examples of the statement above? My attempts:
My trivial example A: $f(x)=C$ and $g(x+y) = x+y$
My trivial example B: $f(x)=C$ and $g(x+y) = (x+y)^{30} + y^{x} - x$
My trivial example C: $f(x) = 42$ and $g(x+y) = 42$
My trivial example D: $f(x) = 11$ and $g(x+y) = 5u - u$
Are those acceptable trivial examples? In my last example I switched it up to $u$ on purpose... kind of shooting in the dark. Can you give me some trivial examples if mine are wrong?
Is it true that $\forall x,y \quad$ if $f(x) = g(x,y)$ then the LHS must be a constant?
- I know how to prove it if it's $g(x+y)$ but not for $g(x,y)$. If this is not true can you give me a trivial counter example?
Let's say that $h(x,y)$ is a function of distance. Then you can say $h(x,y) = k(x^{2}+y^{2})$. You don't have to put the square root part of the distance function into $k$ because that can be part of the function $k()$ itself. But I don't think you can "simplify" it further from $x^{2}+y^{2}$. Correct? It's interesting to me that $k((x^{2}+y^{2})^{50})$ can be called a "function based on distance" even though it is powered to the 50 and the distance formula is powered to 0.5...
Thank you for your help and patience!
These are great questions!
Firstly, let me pedantically distinguish between $g$ (the thing you plug input values into) and $g(x+y)$ (the result of plugging $x+y$ into $g$), both of which are often called "functions".
Focus on $g$ first of all. Those values you plug in can be variables, or constants, or whatever(*). It can be $x+y$, or it can be $5$, or it can be $x+y-z+abc-d^5$, but you're only allowed to plug one thing into $g$, because it only has space for one input. The correct term for "a value you plug in" is an argument. So $g$ takes one argument.
On the other hand, there are clearly two variables visible here: $x$ and $y$. Why might that be? Well, as you rightly pointed out, this particular argument we've plugged in is some kind of combination (really: function!) of these two variables. Let's give that function a name, say $\mathrm{sum}(x,y) = x+y$ (a function that takes two arguments).
So you could rewrite $g(x+y)$ as $g(\mathrm{sum}(x,y))$, if you like that kind of thing. Note that you're still plugging one thing into $g$: it's just now called $\mathrm{sum}(x,y)$. And there are still two variables present. Nothing's changed here.
Is there some inherent "two-ness" about $g(x+y)$, though? Well, not necessarily. Here's another function: $\mathrm{bigsum}(w,x,y,z) = w+x+y+z$. This one takes four arguments; but there's nothing stopping me looking at what happens when I plug this into $g$ with $w = -z$, i.e. $$g(\mathrm{bigsum}(-z,x,y,z)).$$ Try it, and you'll see this also evaluates to $g(x+y)$. Or here's another function: $\mathrm{forgetful}(a,b,c,d,\dots,x,y,z) = x+y$ - a function of 26 arguments (but most of them happen to be redundant).
The take-home message is: whenever someone writes down (e.g.) a formula, there should(!) also be an underlying context for that formula. In the world of functions, this normally amounts to specifying a domain, i.e. an allowable range of input values. These don't come for free with formulas: it's your job, as the mathematician, to make sure that they're well specified (so that e.g. everyone reading your work understands what they are, or you don't accidentally change something subtle about the function in the middle of a long piece of work, or whatever).
(*) In practical, mathematical terms: there isn't really much of a distinction. What does "variable" mean anyway, apart from "some constant I don't know" or "a placeholder for some constants"?
I think other people have addressed your other questions, but one final comment from me:
Others have told you why three of these are wrong. Actually, I'd be pedantic here: (a) and (b) are wrong, and (d) is underspecified - in other words, it needs more information before it makes sense. For example:
Again, context matters.