# How to plot a vector function in 3d

Trantor shared this question 4 weeks ago

I would like to plot the following vector function: ||Xa-b||^2_2 for a 2D vector a. This should result in a 3d surface plot, where the "x" axis is a1, and "y"-axis is a2.

Note this is a real valued function, whose input is a vector. I can also write it out as a function of a1 and a2 but if it all possible I would rather not! I want to use this in a linear algebra class and I want the formula we plot to maintain the semi-confusing (to the students) linear algebraic notation as much as possible. 1

Please post a concrete example, and also a picture of what you want it to look like if possible 1

Im not sure how to edit the original post. I am just getting started experimenting with Geogebra. Is the function I gave to plot not a concrete example of the kind of real valued vector function I want to plot?

The plot of this particular function would be a 3D "bowl", where the x and y axis are the components of the vector W. 