Recall that a function from a set to a set is a rule that assigns, to each , one and only one element . We call the independent variable and the dependent variable. We express it by writing . The sets and are called the domain and co-domain of , respectively. To mention that is a function with the domain and the co-domain , we write . In the calculus of a single variable, and are subsets of . In this chapter, we deal with functions where is a subset of .
Definition: A function where is a rule that assigns one and only one real number to each point of .
In a concise fashion, we may also write . When , the function is called a real-valued function of a vector variable or simply a scalar field. In most of the examples in this chapter, is 2 or 3. When , the independent variables are often denoted by and (or sometimes by and ), the dependent variable by , and we write . When , the independent variables are denoted by , and (or by , and ) and the dependent variable by another letter from the end of the alphabets like or . In the most general case, we write or ; here is the dependent variable.
Elementary examples of multivariable functions
Elementary examples of multivariable functions
Polynomials are the simplest type of functions. A polynomial function of two variables and is the sum of a finite number of terms (called monomials), where and are nonnegative integers and is a real number. The degree of the monomial is providing . The degree of the monomial of three variables is provided . The degree of a polynomial is the highest degree of its constituting monomials. Hence, the function defined by
is a polynomial of degree 5.
Rational functions are the second simplest type of functions. A rational function is the quotient of one polynomial by another. Therefore, the general form of a rational function of two variables is
where and are polynomials.
The functions that are generated by a finite number of operations addition, subtraction, multiplication, division, and raising to a fractional power are called algebraic functions, for example,
When the domain of a function is not specified explicitly, we assume its domain is the set of all possible points in at which produces real values. This set is called the natural domain or simply the domain of the function. The set of all possible outputs of the function is called the range of the function.
Example 1
Let . Find the natural domain of .
Solution
The expression under the square root cannot be negative, and because it appears in the denominator it cannot be zero. Thus the domain consists of all points such that ; that is,
The domain of is shaded in the following figure. The dashed lines in this figure are not included in the domain.
Example 2
Let . Find the natural domain of .
Solution
The function produces real values if the argument of the logarithmic function, which is here , is positive. Hence, the domain of consists of all points such that , which is equivalent to
The domain of is shaded in the following figure.
Example 3
Let . Find the natural domain of .
Solution
Because , is defined when . Therefore, we must have
that is, must be between the two lines and . The domain of is the shaded area between the two lines in the following figure.
Example 4
Let . Find the natural domain of .
Solution
The expression under the square root must be non-negative; that is, or . Notice that is the equation of a sphere of radius 3 centered at the origin. Therefore, the domain of consists of all points on or within this sphere (See the following figure).
Composition of functions
If is a function of one variable and is a function of three variables, then the composition of and , , is the function of three variables defined by
The domain of consists of all points in the domain of such that is in the domain of . The extension of this to functions of several variables is easy. Let be a function of variables and be a function of a single variable, then
and the domain of is the set of all points in the domain of such that is in the domain of .
Example 5
Given and , evaluate and find the domain of .
Solution
The domain of is the set of all points in such that , and the domain of is the set of all in such that ; that is the domain of is the interval . Therefore, the domain of is the set of all points in such that
We can simplify (ii)
or
As (i) and (ii) must both hold, the domain of is the set of all such that
which is the set of all points between a sphere of radius 5 and a sphere of radius 4 both centered at the origin plus the points on the latter sphere.
In a similar way, if is a vector-valued function and , the composite function is a function from to , and is defined by .
Composite function
Example 6
Noting that for gives a circle of radius 1 and centered at the origin,
(a) find the distance from the points on that circle to the point
(b) find the closest point on that circle to the point .
Solution
(a) Distance from the point to the point is given by
therefore, the distance of the points on the circle of radius 1 centered at the origin is
(b) We want to minimize the function , which is a function of a single variable . Thus, we can use the method of optimization for functions of one variable. In other words, has minimum either at its critical points, where or at the end points where and .
[Note that it follows from that , so the denominator of is never zero and hence always exists. Similarly we can argue that is always differentiable because .]
Obviously when or at which , we have . So we can assume , and divide both sides of the above equation by :
Therefore, we should check the points . You can verify that when , the distance is minimum and the closest point on the circle is .