How many dimensions u need to visualize a vector valued function For example function
f(x)=x^2 can be visualized in 2D f(x,y)=xy can be visualized in 3D but what about function like f(x,y)=(x^2-y^2,2xy) having two inputs and two outputs is this thing visualized in 4D?
- 41
3 Answers
The number of dimensions you need to truly visualize functions is exactly equal to the sum of the input dimensions and output dimensions. For instance, your function $f(x,y) = xy$ has two input dimensions (e.g. $x$ and $y$), and one output dimension (say, the $z$ dimension in $z = f(x,y) = xy$). So, you'll need three dimensions to properly visualize this function.
Likewise, in your next example, $f(x,y)=(x^2-y^2,2xy)$, you have the same two input dimensions, but now you also have two output dimensions. If they need labeled, you could say the $w,z$ dimensions in $(w,z) = f(x,y)$. So, you'll need to be in a four-dimensional space to properly visualize this function.
However, there are some other tricks in order to plot things so that we can understand them. For instance, utilizing vector fields like in the other two answers is a common solution. Rather than tacking two entire dimensions onto each point in your input plane, and drawing a single vector within each, we instead can place a scaled copy of each vector with its tail on the point in question. This saves a number of output dimensions by aligning them with the input dimensions.
Another trick is to make use of non-spatial dimensions. If you only consider a fixed range for some of your output dimensions, you can plot the output in colour as well. In fact, you can save up to three output dimensions by mapping each of $(x,y,z)$ to a channel in an RGB value representing a colour (i.e. $R=x$, $G=y$, $B=z$). Alternatively you could think about what happens to your function as a parameter varies in time. For instance $f(x,y) = (xy, x+y)$ can not normally be visualized in $\mathbb{R}^3$, but if instead you consider $f(x,t) = (tx, x+t)$, you can fit this easily into three spatial dimensions by letting $t$ vary through time.
- 33
In the case of a function $f:\mathbb{R}^2\to\mathbb{R}^2$, you can think of $f(x)$ as a vector in $\mathbb{R}^2$, starting at the point $x\in\mathbb{R}^2$ with direction given by $f(x)$, hence drawing the vector field.
Notice that, in general, when $f:\mathbb{R}^n\to\mathbb{R}^m$ is such that $n+m>3$ we can't represent the graph of $f$. For example, a torus is actually the image (not the graph!) of a specific function.
- 176

x^2-y^2and y getting mapped to2xyis same thing!?? – Feather Jul 10 '23 at 12:32