Mathematical function with multiple real-number arguments
In mathematical analysis and its applications, 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 &amp;NoBreak;&amp;NoBreak; 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 &amp;NoBreak;&amp;NoBreak;.
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 "x"1, "x"2, …, "xn", for producing another real number, the "value" of the function, commonly denoted "f"("x"1, "x"2, …, "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 R"n", the domain of the function, which is always supposed to contain an open subset of R"n". In other words, a real-valued function of "n" real variables is a function
formula_1
such that its domain "X" is a subset of R"n" that contains a nonempty open set.
An element of "X" being an "n"-tuple ("x"1, "x"2, …, "xn") (usually delimited by parentheses), the general notation for denoting functions would be "f"(("x"1, "x"2, …, "x""n")). The common usage, much older than the general definition of functions between sets, is to not use double parentheses and to simply write "f"("x"1, "x"2, …, "x""n").
It is also common to abbreviate the "n"-tuple ("x"1, "x"2, …, "xn") by using a notation similar to that for vectors, like boldface x, underline , or overarrow "x". This article will use bold.
A simple example of a function in two variables could be:
formula_2
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:
formula_3
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:
formula_4
for "p" non-zero real constants "a"1, "a"2, …, "ap", which describes a "p"-dimensional hyperplane.
The Euclidean norm:
formula_5
is also a function of "n" variables which is everywhere defined, while
formula_6
is defined only for x ≠ (0, 0, …, 0).
For a non-linear example function in two variables:
formula_7
which takes in all points in "X", a disk of radius "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":
formula_8
However, the function couldn't be evaluated at, say
formula_9
since these values of "x" and "y" do not satisfy the domain's rule.
Image.
The image of a function "f"("x"1, "x"2, …, "xn") is the set of all values of "f" when the "n"-tuple ("x"1, "x"2, …, "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"("x"1, "x"2, …, "x""n") = "c".
Domain.
The domain of a function of several real variables is a subset of R"n" 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 formula_10. In practice, it is often (but not always) not harmful to identify "f" and formula_10, 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 formula_12 If "f" is a multivariate polynomial, (which has formula_13 as a domain), it is even difficult to test whether the domain of "g" is also formula_13. 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: 
It follows that the functions of "n" variables that are everywhere defined and the functions of "n" variables that are defined in some neighbourhood of a given point both form commutative algebras over the reals (R-algebras). This is a prototypical example of a function space.
One may similarly define
formula_19
which is a function only if the set of the points ("x"1, …,"x""n") in the domain of "f" such that "f"("x"1, …, "x""n") ≠ 0 contains an open subset of R"n". This constraint implies that the above two algebras are not fields.
Univariable functions associated with a multivariable function.
One can easily obtain a function in one real variable by giving a constant value to all but one of the variables. For example, if ("a"1, …, "an") is a point of the interior of the domain of the function "f", we can fix the values of "x"2, …, "xn" to "a"2, …, "an" respectively, to get a univariable function
formula_20
whose domain contains an interval centered at "a"1. This function may also be viewed as the restriction of the function "f" to the line defined by the equations "x""i" = "a""i" for "i" = 2, …, "n".
Other univariable functions may be defined by restricting "f" to any line passing through ("a"1, …, "an"). These are the functions
formula_21
where the "c""i" are real numbers that are not all zero.
In next section, we will show that, if the multivariable function is continuous, so are all these univariable functions, but the converse is not necessarily true.
Continuity and limit.
Until the second part of 19th century, only continuous functions were considered by mathematicians. At that time, the notion of continuity was elaborated for the functions of one or several real variables a rather long time before the formal definition of a topological space and a continuous map between topological spaces. As continuous functions of several real variables are ubiquitous in mathematics, it is worth to define this notion without reference to the general notion of continuous maps between topological space.
For defining the continuity, it is useful to consider the distance function of R"n", which is an everywhere defined function of 2"n" real variables:
formula_22
A function "f" is continuous at a point a = ("a"1, …, "an") which is interior to its domain, if, for every positive real number "ε", there is a positive real number "φ" such that |"f"(x) − "f"(a)| ; "ε" for all "x" such that "d"(x a) ; "φ". In other words, "φ" may be chosen small enough for having the image by "f" of the ball of radius "φ" centered at a contained in the interval of length 2"ε" centered at "f"(a). A function is continuous if it is continuous at every point of its domain.
If a function is continuous at "f"(a), then all the univariate functions that are obtained by fixing all the variables "xi" except one at the value "ai", are continuous at "f"(a). The converse is false; this means that all these univariate functions may be continuous for a function that is not continuous at "f"(a). For an example, consider the function "f" such that "f"(0, 0) = 0, and is otherwise defined by
formula_23
The functions "x" ↦ "f"("x", 0) and "y" ↦ "f"(0, "y") are both constant and equal to zero, and are therefore continuous. The function "f" is not continuous at (0, 0), because, if "ε" ; 1/2 and "y" = "x"2 ≠ 0, we have "f"("x", "y") = 1/2, even if |"x"| is very small. Although not continuous, this function has the further property that all the univariate functions obtained by restricting it to a line passing through (0, 0) are also continuous. In fact, we have
formula_24
for "λ" ≠ 0.
The limit at a point of a real-valued function of several real variables is defined as follows. Let a = ("a"1, "a"2, …, "a""n") be a point in topological closure of the domain "X" of the function "f". The function, "f" has a limit "L" when x tends toward a, denoted
formula_25
if the following condition is satisfied:
For every positive real number "ε" ; 0, there is a positive real number "δ" ; 0 such that
formula_26
for all x in the domain such that
formula_27
If the limit exists, it is unique. If a is in the interior of the domain, the limit exists if and only if the function is continuous at a. In this case, we have
formula_28
When a is in the boundary of the domain of "f", and if "f" has a limit at a, the latter formula allows to "extend by continuity" the domain of "f" to a.
Symmetry.
A symmetric function is a function "f" that is unchanged when two variables "xi" and "xj" are interchanged:
formula_29
where "i" and "j" are each one of 1, 2, …, "n". For example:
formula_30
is symmetric in "x", "y", "z" since interchanging any pair of "x", "y", "z" leaves "f" unchanged, but is not symmetric in all of "x", "y", "z", "t", since interchanging "t" with "x" or "y" or "z" gives a different function.
Function composition.
Suppose the functions
formula_31
or more compactly ξ = ξ(x), are all defined on a domain "X". As the "n"-tuple x = ("x"1, "x"2, …, "x""n") varies in "X", a subset of R"n", the "m"-tuple ξ = ("ξ"1, "ξ"2, …, "ξ""m") varies in another region Ξ a subset of R"m". To restate this:
formula_32
Then, a function "ζ" of the functions ξ(x) defined on Ξ,
formula_33
is a function composition defined on "X", in other terms the mapping
formula_34
Note the numbers "m" and "n" do not need to be equal.
For example, the function
formula_35
defined everywhere on R2 can be rewritten by introducing
formula_36
which is also everywhere defined in R3 to obtain
formula_37
Function composition can be used to simplify functions, which is useful for carrying out multiple integrals and solving partial differential equations.
Calculus.
Elementary calculus is the calculus of real-valued functions of one real variable, and the principal ideas of differentiation and integration of such functions can be extended to functions of more than one real variable; this extension is multivariable calculus.
Partial derivatives.
Partial derivatives can be defined with respect to each variable:
formula_38
Partial derivatives themselves are functions, each of which represents the rate of change of "f" parallel to one of the "x"1, "x"2, …, "xn" axes at all points in the domain (if the derivatives exist and are continuous—see also below). A first derivative is positive if the function increases along the direction of the relevant axis, negative if it decreases, and zero if there is no increase or decrease. Evaluating a partial derivative at