### Functions of multiple variables

We would like to study functions of multiple variables, which means that the functions we will consider depend on more than one argument, e.g.:

is a function of two variables. Such functions obviously appear in the real world, e.g. temperature on a surface which depends on coordinates . Or the height of a terrain.

Obviously, we can also easily check the domain of such a function. In the case of two arguments it will be a subset of a plane. E.g. the domain of is , so those are all the points of the plane except from the line .

### Limits and continuity of functions

We say that a function (assume that it depends on two arguments) has a limit in a point equal to , if for any sequence of points in the domain, such that and , we get . But if for some of such sequences this limit does not exist or there are different limits for some different sequences, that the limit of the function in question does not exists. E.g. has in limit, because for any , such that and , we have .

Similarly, as in the case of one-dimensional functions, a function is continuous in a point if its limit in this point equals its value.

### Partial derivatives

Given a function , e.g.: , we can calculate its derivatives with respect to subsequent arguments (considering the rest of arguments as constants). Such derivatives are called partial derivatives and we denote them as etc. In this case: , , .

We can also calculate further on, namely calculate second derivatives, so, e.g.: . In our case: , , , , and .

Notice that (if a function is fine enough), the order of differentiation is not relevant.

### Extrema

Similarly as in the one-dimensional case we can find local maxima and minima by analysing derivatives. The necessary condition (for fine enough functions) is that the first partial derivatives equal zero. But this condition is not enough and we have to look into the second derivatives also in the point with zero first derivatives.

Second derivatives can be viewed as a so called differential of a function in a given point. A differential of (assume that it is a function of two variables), is . If this differential gives only positive values for any (except when both equal zero), there is a local minimum in . If it gives always negative values, we get a maximum. If it allows negative and positive values depending on , there is no extreme in this point.

Let us check this using function . First derivatives: , , are equal zero for and or . Let us calculate second derivatives: , , , so the differential in is: , and is always positive, so we have a minimum here. For , we get , which gives for h_1=1, h_2=0 and for , so it is not an extremum.