In mathematics, a function of several real variables or real multivariate function is a function with more than one argument, with all arguments being real variables. This concept extends the idea of a function of a real variable to several variables. The "input" variables take real values, while the "output", also called the "value of the function", may be real or complex. However, the study of the complex-valued functions may be easily reduced to the study of the real-valued functions, by considering the real and imaginary parts of the complex function; therefore, unless explicitly specified, only real-valued functions will be considered in this article. The domain of a function of n variables is the subset of ℝn for which the function is defined. As usual, the domain of a function of several real variables is supposed to contain a nonempty open subset of ℝn.
General definition
A real-valued function of n real variables is a function that takes as input n real numbers, commonly represented by the variables x1, x2, …, xn, for producing another real number, the value of the function, commonly denoted f(x1, x2, …, xn). For simplicity, in this article a real-valued function of several real variables will be simply called a function. To avoid any ambiguity, the other types of functions that may occur will be explicitly specified. Some functions are defined for all real values of the variables (one says that they are everywhere defined), but some other functions are defined only if the value of the variable are taken in a subset X of Rn, the domain of the function, which is always supposed to contain an open subset of Rn. In other words, a real-valued function of n real variables is a function
f:X→ℝ such that its domain X is a subset of Rn that contains a nonempty open set. An element of X being an n-tuple (x1, x2, …, xn) (usually delimited by parentheses), the general notation for denoting functions would be f((x1, x2, …, xn)). The common usage, much older than the general definition of functions between sets, is to not use double parentheses and to simply write f(x1, x2, …, xn). It is also common to abbreviate the n-tuple (x1, x2, …, xn) by using a notation similar to that for vectors, like boldface x, underline x, or overarrow x→. This article will use bold. A simple example of a function in two variables could be:
V:X→ℝX={(A,h)∈ℝ2∣A>0,h>0}V(A,h)=13Ah which is the volume V of a cone with base area A and height h measured perpendicularly from the base. The domain restricts all variables to be positive since lengths and areas must be positive. For an example of a function in two variables:
z:ℝ2→ℝz(x,y)=ax+by where a and b are real non-zero constants. Using the three-dimensional Cartesian coordinate system, where the xy plane is the domain R2 and the z axis is the codomain R, one can visualize the image to be a two-dimensional plane, with a slope of a in the positive x direction and a slope of b in the positive y direction. The function is well-defined at all points (x, y) in R2. The previous example can be extended easily to higher dimensions:
z:ℝp→ℝz(x1,x2,…,xp)=a1x1+a2x2+⋯+apxp for p non-zero real constants a1, a2, …, ap, which describes a p-dimensional hyperplane. The Euclidean norm:
f(𝒙)=‖𝒙‖=x12+⋯+xn2 is also a function of n variables which is everywhere defined, while
g(𝒙)=1f(𝒙) is defined only for x ≠ (0, 0, …, 0). For a non-linear example function in two variables:
z:X→ℝX={(x,y)∈ℝ2:x2+y2≤8,x≠0,y≠0}z(x,y)=12xyx2+y2 which takes in all points in X, a disk of radius √8 "punctured" at the origin (x, y) = (0, 0) in the plane R2, and returns a point in R. The function does not include the origin (x, y) = (0, 0), if it did then f would be ill-defined at that point. Using a 3d Cartesian coordinate system with the xy-plane as the domain R2, and the z axis the codomain R, the image can be visualized as a curved surface. The function can be evaluated at the point (x, y) = (2, √3) in X:
z(2,3)=12⋅2⋅3(2)2+(3)2=1437, However, the function couldn't be evaluated at, say
(x,y)=(65,10)⇒x2+y2=(65)2+(10)2>8 since these values of x and y do not satisfy the domain's rule.
Image The image of a function f(x1, x2, …, xn) is the set of all values of f when the n-tuple (x1, x2, …, xn) runs in the whole domain of f. For a continuous (see below for a definition) real-valued function which has a connected domain, the image is either an interval or a single value. In the latter case, the function is a constant function. The preimage of a given real number c is called a level set. It is the set of the solutions of the equation f(x1, x2, …, xn) = c.
Domain
The domain of a function of several real variables is a subset of Rn that is sometimes, but not always, explicitly defined. In fact, if one restricts the domain X of a function f to a subset Y ⊂ X, one gets formally a different function, the restriction of f to Y, which is denoted f|Y. In practice, it is often (but not always) not harmful to identify f and f|Y, and to omit the restrictor |Y. Conversely, it is sometimes possible to enlarge naturally the domain of a given function, for example by continuity or by analytic continuation. Moreover, many functions are defined in such a way that it is difficult to specify explicitly their domain. For example, given a function f, it may be difficult to specify the domain of the function g(𝒙)=1/f(𝒙). If f is a multivariate polynomial, (which has ℝn as a domain), it is even difficult to test whether the domain of g is also ℝn. This is equivalent to test whether a polynomial is always positive, and is the object of an active research area (see Positive polynomial).
Algebraic structure The usual operations of arithmetic on the reals may be extended to real-valued functions of several real variables in the following way:
… excerpt ends here. Continue reading the full article.


