Function notation
We have already used the notation that stands for the real numbers. (Especially on the blackboard, we often use the notation .) Similarly, is a two-dimensional vector, and is a three-dimensional vector.
Scalar-valued functions
In one-variable calculus, you worked a lot with one-variable functions, i.e., functions from onto . If is such a one-variable functions, we can write as a shorthand way of expressing that is a function from onto .
A function like is a function of two variables. It takes an element of , like , and gives a value that is a real number (i.e., an element of ), like . Since maps to , we write . We can also use this “mapping” notation to define the actual function. We could define the above by writing .
To contrast a simple real number with a vector, we refer to the real number as a scalar. Hence, we can refer to as a scalar-valued function of two variables or even just say it is a real-valued function of two variables.
Everything works the same for scalar valued functions of three or more variables. For example, , which we can write , is a scalar-valued function of three variables.
Vector-valued functions
In contrast, a vector-valued function takes on values that are vectors. First, let’s talk about vector-valued functions of a single variable.
A vector-valued function in two dimensions can be written . An example is . For a given real number, which we’ll denote by for fun, is the two-dimensional vector . Similarly, a vector-valued function in three dimensions can be written . For example, if , then . We sometimes write vector-valued functions using the standard unit vector , , and , as in .
Lastly, we can have vector-valued functions of multiple variables. For example, a function could take values in , say , and map them to , such as . We can write a function from to as . You get the idea.
The domain of a function
The function is defined over all real numbers , i.e., the domain of the function is . Sometimes a function of one variable may be defined over a subset of real numbers, say some set ; in this case, the domain of the function is . (Note, the symbol “” just means “is subset of”.) In three dimensions, for example, we can specify the domain by writing , or simply .
Example: since isn’t a real number for , the domain of , is the set . We could write this . What would the domain be if we replaced with or ? You have to think where or is a real number, i.e., where or where .
We use the same notation for functions of multiple variables. If we wrote , we would mean a function maps values in a subset of to values in ,