We already know how a function takes the value of an independent variable and outputs another value dependent on it. However, real-life phenomena can rarely be described using a function that depends on only one variable. For example, position in space is expressed using three variables (length, width, height), or the demand for a product depends on the price of goods and the income of the consumer (two variables). It can get even more complex: image recognition software might use each pixel from a 30x30 image of a handwritten character as input to produce the actual character as output ( = 900 variables!).
In this topic, we will take a look at the definition of a multivariable function, some related terminology, and a few examples.
Multivariable functions
Let and be two vector spaces, each containing a finite number of elements. A relation between them can be expressed by the mapping such that: associates every element of to an element of . Also, let's say that is a set of real vectors with components and a set of real vectors with components. Then, we have:
Now, if associates every element of to a unique element of , we can call it a function. The relation becomes a function with domain in n-space and with range in m-space :
We are already familiar with functions in which both and are equal to 1:
This type of function is called a real-valued function of a real variable. Functions like , , are all real-valued functions of the real variable .
When and , we can say that we have a multivariable function:
Scalar field
When , the function is a real-valued function of a vector variable or, as it is usually called, a scalar field:
For example, in cartography, topographic elevation maps show information about the height of the terrain above sea level; given two coordinates and , we get another real number representing the terrain elevation:
Vector field
When , the function is a vector-valued function of a vector variable or, as it is usually called, a vector field.
For example, wind maps can be constructed by assigning a vector representing the wind speed and direction to each point on the map; given two coordinates and , we get a vector representing the wind velocity vector at that point:
There are many other examples of vector and scalar fields that can be visualized:
And countless others that are more difficult to do so — it's hard for the human brain to comprehend more than three or four dimensions visually. Nonetheless, we can see how multivariable functions can be used to give a more accurate description of the world around us.
What about distances in multidimensional space?
Since multivariable functions are generalizations for n-dimensional (and m-dimensional) Euclidean spaces, we can also apply the generalized notion of "length" given by the Euclidean norm to the input and output variables, as they represent the n-tuples (and m-tuples) in these spaces:
Conclusion
To sum up, in this topic we have learned that:
- Multivariable functions are similar to regular functions, except that instead of only one input and output, they can take any number of inputs and produce any number of outputs.
- When the output of a multivariable function is only one real number, we call it a scalar field. When the output is a vector of numbers, we call it a vector field.
- Since we are dealing with n-dimensional vectors, we can use generalizations like the Euclidean norm to find their length in n-dimensional space.