I'm given the following:
We have the functions \begin{align} a&: \mathbb R^2 \rightarrow \mathbb R \tag 1\\ b&: \mathbb R^3 \rightarrow \mathbb R \tag 2 \end{align} and the function composition is $$ c = a \circ b: \mathbb R^4 \rightarrow \mathbb R \tag 3 $$
But this composition doesn't coincide with the definition from Wikipedia:
The functions $f:X \rightarrow Y$ and $g:Y\rightarrow Z$ are composed to yield a function... The resulting compositie function is denoted $g\circ f : X \rightarrow Z$, defined by $(g\circ f)(x) = g(f(x))$.
From the definition the range of $f$ is the same as the domain of $g$. But this doesn't apply to $(1)$ and $(2)$. Can somebody spread some light of what is going on in $(1)-(3)$?
Thanks!
Update:
I saw this example in a physics book.
We have the differential equation $\frac{d r(t)}{dt}= u(r(t))$ where \begin{align} u&: \mathbb R^3 \rightarrow \mathbb R^3 \tag 4\\ r&: \mathbb R \rightarrow \mathbb R^3 \tag 5 \\ \frac{d r(t)}{dt}&:\mathbb R \rightarrow \mathbb R^3 \tag 6 \end{align}
I guess $\frac{d r(t)}{dt}$ is the composition but it is not correct according to the definition.