If I have a multivariable function, can I split/decompose it into several single-variable functions?
For instance:
Given $f:\mathbb R^2 \rightarrow \mathbb R$, I introduce the functions $g:\mathbb R\rightarrow \mathbb R$ and $h:\mathbb R\rightarrow \mathbb R$ so $$ f(x,y)=g(x)h(y) $$ Or $$ f(x,y)=g(x)+h(y) $$
Is this mathematically correct?
Is function composition the right name?
Ex. 1:
The function $f:\mathbb R^2\rightarrow \mathbb R$ is given by $f(x,y)=2xy$. Introduce the functions $g,h:\mathbb R\rightarrow \mathbb R$ and write $$ f(x,y)=2xy=g(x)h(y) $$ where $g(x)=2x$ and $h(y)=y$.
Ex. 2:
Or if $f(x,y)=2x+y$, we write $$ f(x,y)=2x+y=g(x)+h(y) $$ where $g(x)=2x$ and $h(y)=y$.
In general, this is not possible. Of course there exist functions where it is possible (all those that are defined as such a product are of course among them).
Here's one property that such functions have that most functions don't have:
Consider the values $x_1$, $y_1$, $x_2$ and $y_2$ and assume that $f(x_i, y_j)$ is defined for all four possible combinations. Then for functions that can be written as products, you have: $$f(x_1,y_1)f(x_2,y_2)=g(x_1)h(y_1)g(x_2)h(y_2)=f(x_1,y_2)f(x_2,y_1)$$ However in general this is not true. For example, consider $$f(x,y)=x^y$$ Then you have $$f(1,2)f(3,4) = 1^2\cdot 3^4 = 81 \ne 8 = 1^4\cdot 2^3 = f(1,4)f(2,3)$$ Which proves that $x^y$ cannot be written as $g(x)h(y)$ for any real functions $g$ and $h$.
An analogous argument works for any operation that is commutative and associative.